path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
packages/material-ui-icons/src/UnsubscribeRounded.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M18.5 11.5c.92 0 1.75.26 2.49.69V5c0-1.1-.89-2-1.99-2H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h8.55c-.02-.17-.05-.33-.05-.5 0-2.76 2.24-5 5-5zm-5.6... |
src/components/CheckboxFilter.js | NuCivic/react-dash | import React, { Component } from 'react';
import Registry from '../utils/Registry';
import BaseFilter from './BaseFilter';
import ReactSelect from './ReactSelect';
export default class CheckboxFilter extends BaseFilter {
constructor(props) {
super(props);
this.state.checked = this.state.checked || false;
... |
app/containers/HomePage/index.js | aaronlangford31/ruah-web | import React from 'react';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import H2 from '../../components/styled/H2';
export const HomePage = () => (
<article>
<Helmet
title="Home"
meta={[
{ name: 'description', ... |
EndToEnd/testapp/e2e.vr.js | ichengde/react-vr | 'use strict';
import React from 'react';
import {AppRegistry, NativeModules, Text, View} from 'react-vr';
window.NativeModules = NativeModules;
class End2End extends React.Component {
render() {
return (
<View>
<Text
style={{
backgroundColor: '#777879',
fontSize:... |
src/Parser/Paladin/Holy/Modules/Items/SoulOfTheHighlord.js | hasseboulen/WoWAnalyzer | import React from 'react';
import ITEMS from 'common/ITEMS';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Wrapper from 'common/Wrapper';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
class SoulOfTheHighlord extends Analyze... |
ajax/libs/video.js/5.12.3/video.js | extend1994/cdnjs | /**
* @license
* Video.js 5.12.3 <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>
*
* Includes vtt.js <https://github.com/mozilla/vtt.js>
* Available under Apache License Vers... |
client/modules/Post/__tests__/components/PostListItem.spec.js | eantler/simmeme-client | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import PostListItem from '../../components/PostListItem/PostListItem';
import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper';
const post = { name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: ... |
src/parser/hunter/marksmanship/modules/spells/azeritetraits/InTheRhythm.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import BoringSpellValueText from 'interface/statistics/components/BoringSpellValueText';
import UptimeIcon from 'interface/icons/Uptime';
import HasteIcon from 'interface/icons/Haste';
import AzeritePowerStatisti... |
shared/components/SubComponents/Question/Dropdown.js | KCPSoftware/KCPS-React-Starterkit | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { saveQuestion } from '../../../actions/questionActions';
import Validation from '../../../utils/validation/Validation';
import InputValidation from '../../../utils/validation/InputValidation';
import { TooltipTrigger } from 'pui-re... |
src/components/flex/flex_item.js | woshisbb43/coinMessageWechat | //1.0.0 components
import React from 'react';
import PropTypes from 'prop-types';
/**
* Evenly distribute flex items
*
*/
const FlexItem = (props) => {
const { component, children, ...others } = props;
return (
<component className="weui-flex__item" {...others}>
{ children }
</c... |
src/pages/Infos/index.js | alacroix/baka-reader | // @flow
import React, { Component } from 'react';
import { AppState, StatusBar, StyleSheet, View } from 'react-native';
import { Book, Page, TouchableIcon } from 'bakareader/src/components';
import { saveProgression } from 'bakareader/src/services/BookManager';
const styles = StyleSheet.create({
container: {
... |
ajax/libs/forerunnerdb/1.3.445/fdb-core+persist.min.js | dhenson02/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
src/components/LinkButton.js | erikdesjardins/media-db | import classNames from 'classnames';
import React from 'react';
export default React.memo(function LinkButton({ className, title, disabled, onClick, children }) {
const handleClick = e => {
e.preventDefault();
if (!disabled) {
onClick();
}
};
return (
<a
className={classNames('LinkButton', className)... |
app/talk/discussion-preview.spec.js | amyrebecca/Panoptes-Front-End | import React from 'react';
import assert from 'assert';
import {Link} from 'react-router';
import { shallow } from 'enzyme';
import DiscussionPreview from './discussion-preview';
const validProject = {
id: 34,
slug: 'test/project'
};
const discussion = {
id: 42,
board_id: 3456,
latest_comment: 1234
};
desc... |
src/containers/UserManager.js | TarlyFM/tarlyfm_front | import React, { Component } from 'react';
import { Modal, Menu } from 'semantic-ui-react';
import 'whatwg-fetch';
import { Layout} from './';
import { Logo, GenericForm } from '../components';
import { request, SERVER } from '../networkGenerics';
class UserManager extends Component {
constructor (props) {
supe... |
docs/src/pages/Home.js | sghall/resonance | // @flow
import React from 'react'
import PropTypes from 'prop-types'
import { withStyles } from '@material-ui/core/styles'
import Link from 'react-router/lib/Link'
import Button from '@material-ui/core/Button'
import Grid from '@material-ui/core/Grid'
import Paper from '@material-ui/core/Paper'
import Typography from... |
ajax/libs/material-ui/5.0.0-beta.1/modern/Stepper/Stepper.min.js | cdnjs/cdnjs | import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";import _extends from"@babel/runtime/helpers/esm/extends";const _excluded=["activeStep","alternativeLabel","children","className","connector","nonLinear","orientation"];import*as React from"react";import PropTypes from"pro... |
ajax/libs/jointjs/0.9.0/joint.all.js | ematsusaka/cdnjs | /*! JointJS v0.8.1 - JavaScript diagramming library 2014-05-13
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/*!
* jQuery JavaScript Library v2.0.3
* http://jquery... |
src/js/Dividers/__tests__/Divider.js | lwhitlock/grow-tracker | /* eslint-env jest*/
jest.unmock('../Divider');
import React from 'react';
import { findDOMNode } from 'react-dom';
import { renderIntoDocument, Simulate } from 'react-dom/test-utils';
import Divider from '../Divider';
describe('Divider', () => {
it('updates the className with inset or vertical', () => {
let d... |
ajax/libs/muicss/0.2.0-rc1/react/mui-react.js | wout/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);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports... |
app/ht/GDUSHalfHourHot.js | Hey2Li/RNGD | /**
* Created by Tebuy on 2017/4/21.
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
TouchableOpacity,
ListView,
DeviceEventEmitter,
Dimensions,
Navigator
} from 'react-native';
import CommunaNavBar from '../main/GDCommunalNavBar';
import CommunaHotCell f... |
src/parser/hunter/beastmastery/modules/spells/azeritetraits/HazeOfRage.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import { formatNumber, formatPercentage } from 'common/format';
import { calculateAzeriteEffects } from 'common/stats';
import SPELLS from 'common/SPELLS';
import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox';
imp... |
src/view/post/List.js | fishmankkk/mircowater2.0 | import React from 'react'
import { Table } from 'antd'
import styles from './List.less'
const List = ({ ...tableProps }) => {
const columns = [
{
title: 'Image',
dataIndex: 'image',
className: styles.image,
width: 64,
render: text => <img alt="Feture" width={26} src={text} />,
}... |
src/NetworkAuth.js | talarip/shine-demo | import React from 'react';
const InvitationInfo = (props) => {
console.log('InvitationInfo', props);
const invitationId = props.match.params.invitationId;
if (!props.match.params.invitationId) {
return null;
}
console.log('sent_by_uid', props.invitationsInfo[invitationId] && props.invitationsInfo[invita... |
ajax/libs/rxjs/2.1.2/rx.modern.js | tomsoir/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
(function (window, undefined) {
var freeExports = typeof exports == 'object' && exports &&
(typeof global == 'object' && global && global == global.global && (window = global... |
js/components/meetings/index.js | aditya-simplecrm/iosReactAppNoresha |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Actions, ActionConst } from 'react-native-router-flux';
import { Container, Header, Title, Content, Text, Button, Icon, Left, Body, Right,Tabs,Tab,Form, Item, Label, Input } from 'native-base';
import { setIndex } from '../../ac... |
node_modules/react-icons/fa/deviantart.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const FaDeviantart = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m31.4 6.8l-6.8 13 0.5 0.6h6.3v9.3h-11.4l-0.9 0.7-3.2 6.1-0.7 0.6h-6.7v-6.7l6.8-13-0.6-0.7h-6.2v-9.3h11.3l1-0.6 3.2-6.1 0.6-0.7h6.8v6.8z"/></g>
</Icon>
)
expor... |
app/javascript/mastodon/features/list_editor/components/account.js | dunn/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { makeGetAccount } from '../../../selectors';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Avatar from '../../../compone... |
packages/react-devtools-core/webpack.backend.js | rickbeerendonk/react | const {resolve} = require('path');
const {DefinePlugin} = require('webpack');
const {
GITHUB_URL,
getVersionString,
} = require('react-devtools-extensions/utils');
const NODE_ENV = process.env.NODE_ENV;
if (!NODE_ENV) {
console.error('NODE_ENV not set');
process.exit(1);
}
const builtModulesDir = resolve(__di... |
src/ChatList/ChatList.js | abdurrahmanekr/react-chat-elements | import React, { Component } from 'react';
import './ChatList.css';
import ChatItem from '../ChatItem/ChatItem';
const classNames = require('classnames');
export class ChatList extends Component {
onClick(item, i, e) {
if (this.props.onClick instanceof Function)
this.props.onClick(item, i, e)... |
src/js/components/Card.js | MarcusWasTaken/ArmelloCards | import React from 'react'
const Card = ({ id, name, deck, symbol }) => (
<li className="card">
<div className="card-image-wrapper">
<img
width="548"
height="278"
src={`https://s3.eu-west-2.amazonaws.com/armello-cards-assets/cards/${deck}/${id}.png`}
alt={`${name} card imag... |
ajax/libs/react-dom/18.0.0-alpha-386e8f2ea-20210624/umd/react-dom.production.min.js | cdnjs/cdnjs | /** @license React vundefined
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
(function(){/*
Modernizr 3.0.0pre (Custom Build) | MIT
*/
'use strict'... |
src/views/components/admin/CohortEditor.js | Domiii/project-empire | import React, { Component } from 'react';
import DynamicForm from 'src/views/tools/DynamicForm';
import { dataBind } from 'dbdi/react';
import {
Panel, Button, ListGroup, ListGroupItem, Alert, Badge
} from 'react-bootstrap';
export const schemaTemplate = {
type: 'object',
properties: [
{
id: 'name',
... |
src/FormControls/Static.js | xsistens/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import InputBase from '../InputBase';
import childrenValueValidation from '../utils/childrenValueInputValidation';
class Static extends InputBase {
getValue() {
const {children, value} = this.props;
return children ? children : value;
}
ren... |
app/javascript/mastodon/components/load_gap.js | sylph-sin-tyaku/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, defineMessages } from 'react-intl';
import Icon from 'mastodon/components/icon';
const messages = defineMessages({
load_more: { id: 'status.load_more', defaultMessage: 'Load more' },
});
export default @injectIntl
class LoadGap exte... |
src/client/lib/flux/flux.react.js | obimod/este | import Component from '../../components/component.react';
import FluxClass from './flux';
import React from 'react';
import invariant from 'invariant';
// https://developers.google.com/web/updates/2012/08/When-milliseconds-are-not-enough-performance-now?hl=en
function now() {
const hasBrowserPerformanceNow =
pro... |
src/components/screen/ScreenBar.js | hostables/musicquiz | import React from 'react'
import './ScreenBar.css'
import '../../variables.css'
const ScreenBar = ({ children, backgroundColor, className }) => (
<div
className={className ? `ScreenBar ${className}` : 'ScreenBar'}
style={{backgroundColor: backgroundColor}}
>
{children}
</div>
)
ScreenBar.defaultProp... |
app/user/profile/SelectedSkillListItem.js | sagnikm95/internship-portal | import React from 'react';
import { Label, Icon } from 'semantic-ui-react';
import PropTypes from 'prop-types';
export default class SelectedSkillListItem extends React.Component {
constructor() {
super();
this.handleClick = (event, data) => {
console.log(data.children[1]);
this.props.removeSkill... |
docs/src/app/components/pages/components/Divider/ExampleMenu.js | nathanmarks/material-ui | import React from 'react';
import Divider from 'material-ui/Divider';
import {Menu, MenuItem} from 'material-ui/Menu';
const style = {
// Without this, the menu overflows the CodeExample container.
float: 'left',
};
const DividerExampleMenu = () => (
<Menu desktop={true} style={style}>
<MenuItem primaryText... |
misc/jquery.js | CountPacMan/foodblog |
/*!
* jQuery JavaScript Library v1.4.4
* 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.... |
src/components/Admin/index.js | unihackhq/skilled-acolyte-frontend | import React from 'react';
import { Container } from 'bloomer';
const Admin = () => (
<Container>
Hey mate <span role="img" aria-label="raised hands">🙌</span>
</Container>
);
export default Admin;
|
SentenceMosaics/app/components/ChooseSaveOrNew.js | DFAxCMU/sentence-mosaics | 'use strict';
import React, { Component } from 'react';
import {
View,
Text,
Image,
TouchableHighlight,
} from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
import { connect } from 'react-redux';
import { clearWordPicker, setModal, showDefaultSentence } from '../actions';
import { styl... |
ajax/libs/forerunnerdb/1.3.609/fdb-core.min.js | amoyeh/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
stories/places/index.js | algolia/react-instantsearch | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import places from 'places.js';
import connect from './connector';
class Places extends Component {
static propTypes = {
refine: PropTypes.func.isRequired,
defaultRefinement: PropTypes.object.isRequired,
};
createRef = (c) => ... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestParameters.js | RobzDoom/frame_trap | /**
* 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.
*/
import Rea... |
examples/huge-apps/components/App.js | clloyd/react-router | /*globals COURSES:true */
import React from 'react'
import Dashboard from './Dashboard'
import GlobalNav from './GlobalNav'
class App extends React.Component {
render() {
return (
<div>
<GlobalNav />
<div style={{ padding: 20 }}>
{this.props.children || <Dashboard courses={COURSES... |
web/src/components.js | squaremo/ambergreen | require('font-awesome-webpack');
require('./main.less');
import React from 'react';
import ReactDOM from 'react-dom';
import ComponentExamples from './components/dev/examples';
ReactDOM.render(<ComponentExamples />, document.getElementById('app'));
|
information/blendle-frontend-react-source/app/modules/item/components/BuyItemWarningDialog/index.js | BramscoChill/BlendleParser | import React from 'react';
import { string, number, func } from 'prop-types';
import { Dialog, DialogBody, Label, Button, ButtonGroup } from '@blendle/lego';
import UserAvatar from 'components/UserAvatar';
import Link from 'components/Link';
import { formatCurrency } from 'instances/i18n';
import CSS from './styles.scs... |
www/imports/component/Select22.js | ucscHexmap/hexagram |
/*
A react wrapper for the pre-react select2 v3.
TODO: Not every event implemented.
*/
/*
Adapted from https://github.com/rkit/react-select2-wrapper
The MIT License (MIT)
Copyright (c) 2015 Igor Romanov
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated do... |
ajax/libs/rxjs/2.4.8/rx.lite.compat.js | barkinet/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
};
... |
tools/deploy.js | sherlock221/react-starter-kit | /**
* React Starter Kit (http://www.reactstarterkit.com/)
*
* Copyright © 2014-2015 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 push from 'git-push';
/**
* Deploy the contents of... |
test/footer.js | n7best/react-weui | import React from 'react';
import { shallow } from 'enzyme';
import assert from 'assert';
import WeUI from '../src/index';
const { Footer, FooterText, FooterLinks, FooterLink } = WeUI;
describe(`<Footer></Footer>`, ()=>{
const content = 'Copyright © 2008-2016 weui.io'
const wrapper = shallow(
<F... |
src/interface/icons/Haste.js | anom0ly/WoWAnalyzer | import React from 'react';
const icon = (props) => (
<svg
xmlns="http://www.w3.org/2000/svg"
version="1.1"
viewBox="16 16 32 32"
className="icon"
{...props}
>
<path d="M33.446,23.135c-0.89,0-1.612,0.722-1.612,1.612v8.049l-4.079,4.078c-0.63,0.629-0.63,1.65,0,2.28 c0.315,0.314,0.728,0.472,1.1... |
src/templates/basic/index.js | binocarlos/folder-ui | import React from 'react'
import { Route, IndexRoute } from 'react-router'
import TreeWrapper from '../../components/TreeWrapper'
import ToolbarWrapper from '../../components/ToolbarWrapper'
import Tree from '../../containers/Tree'
import ChildrenToolbar from '../../containers/ChildrenToolbar'
import ChildrenTable fr... |
ajax/libs/6to5/2.9.3/browser-polyfill.js | AlexisArce/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/client/components/Details.js | gearz-lab/hypersonic | import _ from 'underscore';
import React from 'react';
import {AutoForm, DefaultDetailsComponentFactory} from 'redux-autoform';
import Alert from 'react-bootstrap/lib/Alert'
var Details = React.createClass({
/**
* Returns the document title
* @returns {*}
*/
getDocumentTitle: function () {
... |
examples/src/views/TabBarView.js | LayGit/layui | import React from 'react'
import { NavBar, Container, TabBar } from 'layui'
const ContainerBlock = Container.Block
const TabBarItem = TabBar.Item
export default class TabBarView extends React.Component {
render () {
return (
<div>
<NavBar title="标签页" />
<Container>
<TabBar defActi... |
app/javascript/mastodon/features/list_editor/index.js | lynlynlynx/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { injectIntl } from 'react-intl';
import { setupListEditor, clearListSuggestions, ... |
packages/vue-styleguidist/src/client/rsg-components/Props/renderDefault.js | vue-styleguidist/vue-styleguidist | import React from 'react'
import Text from 'rsg-components/Text'
import Code from 'rsg-components/Code'
import { unquote, showSpaces } from './util'
// to keep showing those vluei insead of empty, we treat them separaty
const defaultValueBlacklist = ['null', 'undefined', "''", '""']
export default function renderDefa... |
packages/material-ui-icons/src/FilterHdr.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let FilterHdr = 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>;
FilterHdr = pure(FilterHdr);
FilterHdr.muiName = 'SvgIcon';
export ... |
app/javascript/mastodon/components/button.js | imas/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class Button extends React.PureComponent {
static propTypes = {
text: PropTypes.node,
onClick: PropTypes.func,
disabled: PropTypes.bool,
block: PropTypes.bool,
secondary: PropTypes.... |
ajax/libs/ScrollMagic/2.0.1/ScrollMagic.js | koggdal/cdnjs | /*!
* ScrollMagic v2.0.1 (2015-03-17)
* The javascript library for magical scroll interactions.
* (c) 2015 Jan Paepke (@janpaepke)
* Project Website: http://janpaepke.github.io/ScrollMagic
*
* @version 2.0.1
* @license Dual licensed under MIT license and GPL.
* @author Jan Paepke - e-mail@janpaepke.de
*
* @f... |
packages/material-ui/src/FormLabel/FormLabel.js | Kagami/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { componentPropType } from '@material-ui/utils';
import formControlState from '../FormControl/formControlState';
import withFormControlContext from '../FormControl/withFormControlContext';
import withStyles from '... |
docs/src/app/components/pages/components/Paper/ExampleCircle.js | ichiohta/material-ui | import React from 'react';
import Paper from 'material-ui/Paper';
const style = {
height: 100,
width: 100,
margin: 20,
textAlign: 'center',
display: 'inline-block',
};
const PaperExampleCircle = () => (
<div>
<Paper style={style} zDepth={1} circle={true} />
<Paper style={style} zDepth={2} circle={... |
es6/Upload/UploadList.js | yurizhang/ishow | 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... |
node_modules/_rc-switch@1.5.3@rc-switch/es/Switch.js | ligangwolai/blog | import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/help... |
packages/material-ui-icons/src/AccessibleForwardSharp.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><circle cx="18" cy="4.54" r="2" /><path d="M15 17h-2c0 1.65-1.35 3-3 3s-3-1.35-3-3 1.35-3 3-3v-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5zm5-3.5h-3.86... |
src/Parser/GuardianDruid/Modules/Spells/IronFur.js | mwwscott0/WoWAnalyzer | import React from 'react';
import { formatPercentage, formatThousands } from 'common/format';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import Module from 'Parser/Core/Module';
import Combatants from 'Parser/Cor... |
test/specs/polar/RadarSpec.js | sdoomz/recharts | import React from 'react';
import { expect } from 'chai';
import { Surface, Radar, Sector } from 'recharts';
import { mount, render } from 'enzyme';
describe('<Radar />', () => {
const data = [
{ x: 200, y: 230, cx: 250, cy: 250, angle: 30, radius: 60, value: 4 },
{ x: 300, y: 405, cx: 250, cy: 250, angle: 9... |
public/js/components/Reset.react.js | TRomesh/Coupley | import React from 'react';
import Avatar from 'material-ui/lib/avatar';
import Card from 'material-ui/lib/card/card';
import CardActions from 'material-ui/lib/card/card-actions';
import CardHeader from 'material-ui/lib/card/card-header';
import CardMedia from 'material-ui/lib/card/card-media';
import CardTitle from 'ma... |
src/components/App/App.js | josedigital/koala-app | import React from 'react'
import { HeaderContainer } from '../../containers'
import { SavedJobsList, HomePage, Dashboard } from '../index'
import { checkUser, createUser, isEmpty, jobHelpers } from '../../utils/helpers'
import './App.css'
class App extends React.Component {
constructor(props) {
super(props)
... |
gbe/resources/assets/js/components/AvbTreemap.js | DemocracyApps/Community-Budget-Explorer | import React from 'react';
import d3 from 'd3';
var d3BarChart = require('./aux/D3BarChart');
var avbStuff = require('./aux/avb.js');
import md5 from 'blueimp-md5';
var AvbTreemap = React.createClass({
propTypes: {
data: React.PropTypes.object.isRequired,
width: React.PropTypes.number.isRequired,
... |
src/svg-icons/device/brightness-medium.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBrightnessMedium = (props) => (
<SvgIcon {...props}>
<path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6... |
ajax/libs/reactable/0.9.0/reactable.js | gaearon/cdnjs | /** @jsx React.DOM */
"use strict";
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['react'], factory);
} else if (typeof exports === 'object') {
// Node. Does not work with strict CommonJS, but
// on... |
App/Home/index.js | thisishuey/react-hot-boilerplate | import React, { Component } from 'react';
import Radium from 'radium';
import { Button, FontAwesome, PageHeader } from '../../Components';
@Radium
class Home extends Component {
render() {
return (
<div>
<PageHeader>Hello, Huey!</PageHeader>
<Button>
Font Awesome Button! <FontAwe... |
examples/counter/src/index.js | DreamAndDead/redux-copier | import React from 'react'
import ReactDOM from 'react-dom'
import { createStore } from 'redux'
import Counter from './components/Counter'
import reducer, * as actionCreators from './ducks'
import { copifyReducer, copifyActions } from 'redux-copier'
let copifiedReducer = copifyReducer(reducer);
const store = createSt... |
app/javascript/mastodon/features/blocks/index.js | haleyashleypraesent/ProjectPrionosuchus | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import LoadingIndicator from '../../components/loading_indicator';
import { ScrollContainer } from 'react-router-scroll';
import Column from '../ui/components... |
spec/coffeescripts/react_files/components/FileRenameFormSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2014 - 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/client/containers/ShowContainer.js | ngnono/hello-babel | /**
* Created by ngnono on 17-2-16.
*/
import {connect} from 'react-redux';
import App from '../components/Show.js';
import fetchGet from '../services/showService';
/**
* state 2 props
* @param state
* @returns {{value: number}}
*/
function mapStateToProps(state) {
let own = state.show || state;
return... |
ajax/libs/mobx/2.0.5/mobx.min.js | extend1994/cdnjs | /** MobX - (c) Michel Weststrate 2015, 2016 - MIT Licensed */
function U(e,i){o(e,"autorun methods cannot have modifiers"),n("function"==typeof e,"autorun expects a function"),n(0===e.length,"autorun expects a function without arguments"),i&&(e=e.bind(i));var r=new S(e.name||"Autorun",function(){this.track(e)});return ... |
assets/js/vendor/jquery-1.11.0.min.js | laras126/suya-theme | /*! 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... |
files/wordpress/3.6/js/jquery/jquery.js | wallin/jsdelivr | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
src/Event/components/formSteps/AddEventStep1.js | jirkae/hobby_hub | import React, { Component } from 'react';
import { Button, FormGroup, ControlLabel, FormControl, Row, Col } from "react-bootstrap";
import TagsSuggestInput from "./../../../Base/components/TagsSuggestInput";
import { fetchTags } from './../../../Base/services/restApi';
class AddEventStep1 extends Component {
constru... |
client/src/components/LayoutMobilePortraitComponent.js | krzysztofkolek/github-bugtracker | 'use strict';
import React from 'react';
require('styles//LayoutMobilePortrait.css');
class LayoutMobilePortraitComponent extends React.Component {
render() {
return (
<div className="layoutmobileportrait-component">
Please edit src/components///LayoutMobilePortraitComponent.js to update this com... |
app/javascript/mastodon/features/compose/components/character_counter.js | pixiv/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { length } from 'stringz';
export default class CharacterCounter extends React.PureComponent {
static propTypes = {
text: PropTypes.string.isRequired,
max: PropTypes.number.isRequired,
};
checkRemainingText (diff) {
if (diff < 0)... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | CAIOFCP/telocoach | 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'));
|
ajax/libs/ember-data.js/1.0.0-beta.19.2/ember-data.js | joeylakay/cdnjs | (function() {
"use strict";
var ember$data$lib$system$model$errors$invalid$$create = Ember.create;
var ember$data$lib$system$model$errors$invalid$$EmberError = Ember.Error;
/**
A `DS.InvalidError` is used by an adapter to signal the external API
was unable to process a request because the c... |
fields/types/password/PasswordField.js | giovanniRodighiero/cms | import React from 'react';
import Field from '../Field';
import {
Button,
FormInput,
InlineGroup as Group,
InlineGroupSection as Section,
} from '../../../admin/client/App/elemental';
module.exports = Field.create({
displayName: 'PasswordField',
statics: {
type: 'Password',
},
getInitialState () {
return... |
src/containers/discover/awesomes/AwesomesDetail.js | phodal/growth-ng | /* eslint-disable no-undef */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { ScrollView, Text, View, ActivityIndicator, FlatList, TouchableHighlight } from 'react-native';
import { ListItem } from 'react-native-elements';
import * as shortid from 'shortid';
import Helper from '..... |
docs/app/Examples/views/Item/Content/Images.js | jcarbo/stardust | import React from 'react'
import { Item } from 'stardust'
const { Group, Image } = Item
const Images = () => (
<Group divided>
<Item>
<Image src='http://semantic-ui.com/images/wireframe/image.png' />
</Item>
<Item>
<Image src='http://semantic-ui.com/images/wireframe/image.png' />
</Item... |
docs/app/Examples/elements/Step/States/StepExampleDisabled.js | ben174/Semantic-UI-React | import React from 'react'
import { Step } from 'semantic-ui-react'
const StepExampleDisabled = () => (
<Step.Group>
<Step disabled>Billing</Step>
</Step.Group>
)
export default StepExampleDisabled
|
src/svg-icons/social/public.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPublic = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ClassProperties.js | Antontsyk/react_vk | import React from 'react'
export default class extends React.Component {
users = [
{ id: 1, name: '1' },
{ id: 2, name: '2' },
{ id: 3, name: '3' },
{ id: 4, name: '4' }
];
render() {
return (
<div id="feature-class-properties">
{this.users.map(user => (
<div key={use... |
src/Collapse.js | gianpaj/react-bootstrap | import React from 'react';
import Transition from 'react-overlays/lib/Transition';
import domUtils from './utils/domUtils';
import CustomPropTypes from './utils/CustomPropTypes';
import deprecationWarning from './utils/deprecationWarning';
import createChainedFunction from './utils/createChainedFunction';
let capitali... |
src-admin/src/Components/CustomCheckbox.js | ioBroker/ioBroker.admin | import { Checkbox, FormControlLabel, withStyles } from '@material-ui/core';
import React from 'react';
import clsx from 'clsx';
import I18n from '@iobroker/adapter-react/i18n';
import PropTypes from 'prop-types';
const styles = theme => ({
input: {
minWidth: 300
}
});
const CustomCheckbox = ({ title, ... |
ajax/libs/rxjs/2.2.14/rx.lite.js | bradens/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,
'u... |
tests/client/core/containers/TestHandleLogin.js | muffinresearch/addons-frontend | /* global btoa */
import React from 'react';
import { renderIntoDocument } from 'react-addons-test-utils';
import { findDOMNode } from 'react-dom';
import { Provider } from 'react-redux';
import cookie from 'react-cookie';
import { createStore } from 'redux';
import HandleLogin, { mapDispatchToProps } from 'core/cont... |
js-old/src/views/SyncWarning/syncWarning.js | destenson/ethcore--parity | // Copyright 2015-2017 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 lat... |
higher-demo/dva-antd/mockjs-demo/src/components/Example.js | CFshuming/react-demo-gather | import React from 'react';
const Example = () => {
return (
<div>
Example
</div>
);
};
Example.propTypes = {
};
export default Example;
|
src/shared/components/socialLogin/google.js | hollomancer/operationcode_frontend | import React from 'react';
import config from 'config/environment';
import GoogleLogin from 'react-google-login';
import SocialLogin from './socialLogin';
import styles from './socialMediaButtons.css';
const Google = (props) => {
const responseGoogle = (response) => {
const login = new SocialLogin(props);
lo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.