path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
flow-typed/npm/react-data-grid_vx.x.x.js | biosistemika/scinote-web | // flow-typed signature: bc9de7d76b8c1b9bc1d4b84e5f36892d
// flow-typed version: <<STUB>>/react-data-grid_v^2.0.2/flow_v0.56.0
/**
* This is an autogenerated libdef stub for:
*
* 'react-data-grid'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work... |
src/js/components/icons/base/DocumentPdf.js | odedre/grommet-final | /**
* @description DocumentPdf 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.
*... |
stories/Input/ExampleRoundInput.js | nirhart/wix-style-react | import React from 'react';
import Input from 'wix-style-react/Input';
const style = {
display: 'inline-block',
padding: '0 5px',
width: '200px',
lineHeight: '22px',
verticalAlign: 'top'
};
const defaultProps = {
size: 'normal',
magnifyingGlass: true,
placeholder: 'They did not know it was impossible, ... |
packages/material-ui-icons/src/AirlineSeatIndividualSuiteRounded.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M7 13c1.65 0 3-1.35 3-3S8.65 7 7 7s-3 1.35-3 3 1.35 3 3 3zm12-6h-6c-1.1 0-2 .9-2 2v5H3V8c0-.55-.45-1-1-1s-1 .45-1 1v7c0 1.1.9 2 2 2h18c1.1 0 ... |
app/lib/angular-ui-bootstrap/src/accordion/test/accordion.spec.js | basara7/UncleBu | describe('uib-accordion', function() {
var $animate, $scope;
beforeEach(module('ui.bootstrap.accordion'));
beforeEach(module('ngAnimateMock'));
beforeEach(module('uib/template/accordion/accordion.html'));
beforeEach(module('uib/template/accordion/accordion-group.html'));
beforeEach(inject(function(_$anima... |
ReactTest/ReactTest/Content/Scripts/react/react-with-addons.js | amirnasser/Test1 | /**
* React (with addons) v0.14.7
*/
(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!=="undef... |
src/components/Toggle/Toggle-story.js | carbon-design-system/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { withKnob... |
app/sidebar/components/Controls.js | Raymond-Zhu/music-video-app | import React, { Component } from 'react';
export default class Controls extends Component {
constructor(props) {
super(props);
this.state = {paused: true};
this.handleTouch = this.handleTouch.bind(this);
}
handleTouch() {
if(this.state.paused) {
this.setState({paused: false});
} else {... |
Examples/UIExplorer/Navigator/NavigatorExample.js | urvashi01/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
stories/examples/PopoverFocus.js | reactstrap/reactstrap | /* eslint react/no-multi-comp: 0, react/prop-types: 0 */
import React from 'react';
import { Button, UncontrolledPopover, PopoverHeader, PopoverBody } from 'reactstrap';
const Example = (props) => {
return (
<div>
<Button id="PopoverFocus" type="button">
Launch Popover (Focus)
</Button>
... |
packages/material-ui-icons/src/LaunchSharp.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M19 19H5V5h7V3H3v18h18v-9h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z" /></React.Fragment>
, 'LaunchSharp');
|
src/app/auth/Signup/Signup.js | omrilitov/react-universal | import React from 'react';
import {
CardTitle,
CardText,
CardActions,
FlatButton,
TextField
} from 'material-ui';
const styles = {
actions: {
display: 'flex',
justifyContent: 'flex-end'
},
text: {
display: 'flex',
flexDirection: 'column'
},
nameContainer: {
display: 'flex',
... |
ajax/libs/orb/1.0.1/orb.min.js | WebReflection/cdnjs | /**
* orb v1.0.1, Pivot grid javascript library.
*
* Copyright (c) 2014 Najmeddine Nouri.
*
* @version v1.0.1
* @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 define&&define.amd)... |
ajax/libs/material-ui/4.9.4/es/ListItemSecondaryAction/ListItemSecondaryAction.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import withStyles from '../styles/withStyles';
export const styles = {
... |
src/Parser/Monk/Mistweaver/Modules/Spells/SheilunsGift.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import { formatNumber, formatPercentage } from 'common/format';
import Combatants from 'Parser/Core/Modules/Combatants';
import AbilityTracker from 'Parser/Core/Modules/Ab... |
src/components/FlipView.js | simonayzman/Bubbl | import React, { Component, PropTypes } from 'react';
import { Animated } from 'react-native';
export default class FlipView extends Component {
static propTypes = {
renderFront: PropTypes.func.isRequired,
renderBack: PropTypes.func.isRequired,
onFlip: PropTypes.func,
flipped: PropTypes.bool,
};
... |
frontend/src/Components/Table/Table.js | geogolem/Radarr | import classNames from 'classnames';
import _ from 'lodash';
import PropTypes from 'prop-types';
import React from 'react';
import IconButton from 'Components/Link/IconButton';
import Scroller from 'Components/Scroller/Scroller';
import TableOptionsModalWrapper from 'Components/Table/TableOptions/TableOptionsModalWrapp... |
lib/shared/screens/admin/screens/settings/screens/seo/index.js | relax/relax | import Component from 'components/component';
import Content from 'components/content';
import React from 'react';
import SettingsForm from 'components/settings-form';
import mapSettingsIds from 'helpers/map-settings-ids';
import {
description,
copyright,
keywords,
robots,
dctitle
} from 'statics/settings-key... |
ajax/libs/vis/3.3.0/vis.js | warpech/cdnjs | /**
* vis.js
* https://github.com/almende/vis
*
* A dynamic, browser-based visualization library.
*
* @version 3.3.0
* @date 2014-08-29
*
* @license
* Copyright (C) 2011-2014 Almende B.V, http://almende.com
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file e... |
src/components/AccountTitle/AccountTitle.js | expdevelop/ultrastore | import React from 'react'
import { Title, Link } from 'components'
import { classNames } from 'helpers'
import s from './AccountTitle.sass'
// TODO: sidebar title integration
const AccountTitle = ({
start = 'Для продолжения необходимо',
firstLink = {content: 'войти', link: '?account&signin'},
end = 'или', lastLi... |
ajax/libs/antd-mobile/1.0.0-alpha.13/antd-mobile.min.js | Piicksarn/cdnjs | /*!
* antd-mobile v1.0.0-alpha.13
*
* Copyright 2015-present, Alipay, Inc.
* All rights reserved.
*/
!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 expor... |
ajax/libs/ngOfficeUiFabric/0.8.0/ngOfficeUiFabric.js | ahocevar/cdnjs | /*!
* ngOfficeUIFabric
* http://ngofficeuifabric.com
* Angular 1.x directives for Microsoft's Office UI Fabric
* https://angularjs.org & https://dev.office.com/fabric
* v0.8.0
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exp... |
src/index.js | minmaster/gig-native-web | 'use strict';
import App from './common/components/App/App';
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route } from 'react-router';
// CSS
require('normalize.css');
require('./styles/main.css');
var content = document.getElementById('content');
ReactDOM.render((
<App />
), con... |
packages/minimongo/package.js | jdivy/meteor | Package.describe({
summary: "Meteor's client-side datastore: a port of MongoDB to Javascript",
version: '1.0.17'
});
Package.onUse(function (api) {
api.export('LocalCollection');
api.export('Minimongo');
api.export('MinimongoTest', { testOnly: true });
api.use(['underscore', 'ejson', 'id-map', 'ordered-dic... |
assets/js/landing/component/org-create-form.js | ueokande/teamdone | import React, { Component } from 'react';
import Dialog from 'material-ui/Dialog';
import MenuItem from 'material-ui/MenuItem';
import PropTypes from 'prop-types';
import SelectField from 'material-ui/SelectField';
import TextField from 'material-ui/TextField';
import FlatButton from 'material-ui/FlatButton';
export d... |
examples/sidebar/app.js | dashed/react-router | import React from 'react';
import HashHistory from 'react-router/lib/HashHistory';
import { Router, Route, Link } from 'react-router';
import data from './data';
var Category = React.createClass({
render() {
var category = data.lookupCategory(this.props.params.category);
return (
<div>
<h1>{cat... |
ajax/libs/clappr/0.0.100/clappr.js | underyx/cdnjs | require=(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)... |
ajax/libs/react-slick/0.6.6/react-slick.min.js | hare1039/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.Slider=e(require("react")):t.Slider=e(t.React)}(this,function(t){return function(t){function e(s){if(i[s])return i[s].exports;var... |
src/components/SearchResult/SearchResult.js | aos2006/tesDeploy | import React from 'react';
import { ProductItem } from 'components/Product';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './searchResult.css';
export const SearchResult = ({ quantity, list }) => (
<div className={s.root}>
<h3 className={s.title}>{`${quantity} Searched result`}<... |
src/components/Navigation/Navigation.js | kaushik94/react-starter | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { PropTypes } from 'react';
import classNames from 'classnames';
import styles from './Navigation.css';
import withStyles from '../../decorators/withStyles';
import Link from '../../utils/Link';
@withStyles(styles)
class Navigation... |
frontend/src/components/editor/actions/image.js | 1905410/Misago | // jshint ignore:start
import React from 'react';
import Action from './action';
import isUrl from 'misago/utils/is-url';
export default function(props) {
return (
<Action
execAction={insertImage}
title={gettext("Insert image")}
{...props}
>
<span className="material-icon">
in... |
js/components/inputgroup/regular.js | LetsBuildSomething/vmag_mobile |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Icon, Text, Body, Left, Right, Input, Item } from 'native-base';
import { Actions } from 'react-native-router-flux';
imp... |
test/validation.spec.js | formio/react-formio | import EventEmitter from 'eventemitter2';
import React from 'react';
import sinon from 'sinon';
import {expect} from 'chai';
import Form from '../src/components/Form';
import {
textField,
visible,
layout,
columns
} from './fixtures';
import {
createIfExceed,
createMount,
seq
} from './utils';
describe('... |
ajax/libs/rxjs/2.2.3/rx.js | francescoagati/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,
freeModule = typeof module == 'object' && module && module.exports == freeExports &&... |
node_modules/grunt-legacy-log-utils/node_modules/underscore.string/test/test_underscore/vendor/jquery.js | DE-DevCon/2016-defensive-coding-for-dummies | /*!
* jQuery JavaScript Library v1.7.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
ajax/libs/babel-core/5.4.7/browser-polyfill.js | hare1039/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... |
jenkins-design-language/src/js/components/material-ui/svg-icons/notification/system-update.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const NotificationSystemUpdate = (props) => (
<SvgIcon {...props}>
<path d="M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14zm-1-6h-3V8h-2v5H8l4 4 4-4z"/>
</SvgIcon>
);
NotificationSystemUpdat... |
webapp-src/src/Hutch/Coin.js | babelouest/hutch | import React, { Component } from 'react';
import i18next from 'i18next';
import CoinEditElementUrl from './CoinEditElementUrl';
import CoinEditElementUsername from './CoinEditElementUsername';
import CoinEditElementPassword from './CoinEditElementPassword';
import CoinEditElementFile from './CoinEditElementFile';
imp... |
client-web/client-web/src/containers/LoginRegisterPage.js | ppsari/final | import React from 'react'
import Login from '../components/Login'
import Register from '../components/Register'
import MenuBar from '../components/MenuBar'
import Footer from '../components/Footer'
// import SocialLogin from '../components/SocialLogin'
import { TabContent, TabPane, Nav, NavItem, NavLink } from 'reacts... |
src/scripts/Loader.js | williamthing/yoda | 'use strict';
import React from 'react';
import Join from 'react/lib/joinClasses';
export default React.createClass({
getDefaultProps() {
return {
size: 32,
stroke: 6,
direction: 'col',
message: 'Loading...'
};
},
renderSpinner(props) {
let spinClass = Join('spinner-containe... |
src/Demo.js | interaction-matters/component-structure-demo | import React, { Component } from 'react';
import Button from 'components/Button/Button';
export default class Demo extends Component {
render() {
return (
<div>
<Button type="default">Default</Button>
<Button type="primary">Primary</Button>
<Button type="success">Success</Bu... |
ajax/libs/core-js/0.3.0/core.js | emijrp/cdnjs | /**
* Core.js 0.3.0
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2014 Denis Pushkarev
*/
!function(returnThis, framework, undefined){
'use strict';
/******************************************************************************
* Module : common ... |
frontend/src/components/eois/cfeiTableContainer.js | unicef/un-partner-portal | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Grid from 'material-ui/Grid';
import PaginatedList from '../common/list/paginatedList';
import RenderProjectCells from './cells/tableCells';
import TableWithStateInUrl from '../common/hoc/tableWit... |
styleguide/sections/Blocks.js | iest/loggins | import React, { Component } from 'react';
import Section from '../components/Section';
import Btn from 'components/Btn/Btn';
import PhotoHero from 'components/Blocks/PhotoHero';
import PHH from 'components/Blocks/PhotoHero.css';
import PlainHero from 'components/Blocks/PlainHero';
import PLH from 'components/Blocks/... |
src/components/common/NickImagePreloader/NickImagePreloader.js | nckblu/muchnews | /* Based on my angular directive: https://github.com/nckblu/ng-img-preload/ */
import React from "react";
import cn from "classnames";
export class NickImagePreloader extends React.Component {
static propTypes = {
children: React.PropTypes.oneOfType([
React.PropTypes.arrayOf(React.PropTypes.node),
Re... |
client/ingest/csv-aligner.js | jaketrent/gratigoose | import { DragDropContext } from 'react-dnd'
import HTML5Backend from 'react-dnd-html5-backend'
import React from 'react'
import styleable from 'react-styleable'
import { CHOOSABLE_COLUMNS } from './utils'
import css from './csv-aligner.css'
import CsvColumnOptions from './csv-column-options'
import CsvHeaderToggle fro... |
src/components/DataTable/TableToolbarAction.js | joshblack/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import PropTypes from 'prop-types';
import React from 'react';
import OverflowMenuItem from '../OverflowMenuItem';
const TableToolbarAction ... |
src/encoded/static/components/collection.js | T2DREAM/t2dream-portal | import React from 'react';
import PropTypes from 'prop-types';
import { Panel, PanelHeading, PanelBody } from '../libs/bootstrap/panel';
import * as globals from './globals';
import DataColors from './datacolors';
// Maximum number of facet charts to display.
const MAX_FACET_CHARTS = 3;
// Initialize a list of color... |
Examples/UIExplorer/ModalExample.js | chentsulin/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
src/svg-icons/action/camera-enhance.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCameraEnhance = (props) => (
<SvgIcon {...props}>
<path d="M9 3L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2h-3.17L15 3H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.2... |
ajax/libs/highcharts/4.1.0/highcharts.src.js | KOLANICH/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v4.1.0 (2015-02-16)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clear... |
app/views/Homepage.js | greymj/pokemon_prof_viewer | import React from 'react';
import PokemonActions from '../actions/PokemonActions';
import PokemonStore from '../stores/PokemonStore';
import SearchBox from './searchInput';
import PokemonList from './pokemonList';
import PokemonData from './pokemonData';
import async from 'async';
import _ from 'underscore';
var docs =... |
packages/material-ui-icons/src/WcTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M.01 0h24v24h-24V0z" /><path d="M5.5 22v-7.5H4V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5.5H9.5V22h-4zM18 22v-6h3l-2.54-7.63C18.18 7.55 17.42 7 16.56 7h-.12c-.86 0-1.63.55-1.9 1.37... |
src/Animatronics.spec.js | andrewkshim/react-animatronics |
import React from 'react'
import { shallow } from 'enzyme'
import Animatronics from './Animatronics'
describe('<Animatronics>', () => {
class Base extends React.Component {
render() {
return <div></div>;
}
}
test('should throw when "children" prop is not a function', () => {
expect(() => {
... |
react-flux-mui/js/material-ui/src/svg-icons/image/camera-front.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCameraFront = (props) => (
<SvgIcon {...props}>
<path d="M10 20H5v2h5v2l3-3-3-3v2zm4 0v2h5v-2h-5zM12 8c1.1 0 2-.9 2-2s-.9-2-2-2-1.99.9-1.99 2S10.9 8 12 8zm5-8H7C5.9 0 5 .9 5 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.... |
src/carouselElement.js | timveretennikov/reactive-carousel | import React from 'react'
const CarouselElement = ({isActive, onClickCb, imagePath, caption}, context) => {
return (
<div className="rc-element rc-fade"
style={{ display: isActive ? 'block' : 'none' }}
onClick={onClickCb}>
<img src={imagePath}
alt="Image"... |
apps/seyyah/src/index.js | hwclass/hwclass.github.com | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
display/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/tmp/app.js | tino/remote_actuator | /* Modernizr 2.0.6 (Custom Build) | MIT & BSD
* Build: http://www.modernizr.com/download/#-iepp
*/
;window.Modernizr=function(a,b,c){function w(a,b){return!!~(""+a).indexOf(b)}function v(a,b){return typeof a===b}function u(a,b){return t(prefixes.join(a+";")+(b||""))}function t(a){j.cssText=a}var d="2.0.6",e={},f=b.do... |
examples/real-world/index.js | BayanGroup/redux | import 'babel-core/polyfill';
import React from 'react';
import Root from './containers/Root';
import BrowserHistory from 'react-router/lib/BrowserHistory';
React.render(
<Root history={new BrowserHistory()} />,
document.getElementById('root')
);
|
packages/neos-ui/src/Containers/Modals/SelectNodeType/nodeTypeFilter.js | mstruebing/PackageFactory.Guevara | import React from 'react';
import PropTypes from 'prop-types';
import TextInput from '@neos-project/react-ui-components/src/TextInput/';
import IconButton from '@neos-project/react-ui-components/src/IconButton/';
import Icon from '@neos-project/react-ui-components/src/Icon/';
import {neos} from '@neos-project/neos-ui-d... |
admin/src/components/ItemsTableValue.js | asifiqbal84/keystone | import blacklist from 'blacklist';
import classnames from 'classnames';
import React from 'react';
var ItemsTableValue = React.createClass({
displayName: 'ItemsTableValue',
propTypes: {
className: React.PropTypes.string,
exterior: React.PropTypes.bool,
field: React.PropTypes.string,
interior: React.PropTypes... |
ajax/libs/oojs-ui/0.12.3/oojs-ui.js | joeyparrish/cdnjs | /*!
* OOjs UI v0.12.3
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2015 OOjs UI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2015-08-11T22:34:00Z
*/
( function ( OO ) {
'use strict';
/**
* Namespace for all classes, static methods and s... |
ajax/libs/yui/3.9.0/datatable-core/datatable-core-debug.js | froala/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... |
src/client/javascripts/app/html.js | rhobot/ryanrho.com | import React from 'react';
export default React.createClass({
displayName: 'HTML',
propTypes: {
markup: React.PropTypes.string.isRequired
},
render() {
const cdnUrl = 'https://s3-us-west-1.amazonaws.com/ryanrho.com';
return (
<html className="full-height">
<head>
<meta ch... |
app/javascript/mastodon/features/compose/index.js | codl/mastodon | import React from 'react';
import ComposeFormContainer from './containers/compose_form_container';
import NavigationContainer from './containers/navigation_container';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import { mountCom... |
templates/rubix/meteor/meteor-seed/imports/common/footer.js | jeffthemaximum/jeffline | import React from 'react';
import {
Row,
Col,
Grid,
} from '@sketchpixy/rubix';
export default class Footer extends React.Component {
state = {
version: 0
};
componentDidMount() {
this.setState({
version: document.body.getAttribute('data-version')
});
}
render() {
var year = ne... |
src/components/Button/stories.js | Secullum/secullum-react-ui | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import Button from './index';
storiesOf('Button', module)
.add('default', () => (
<Button onClick={action('default clicked')}>Default</Button>
))
.add('primary', () => (
<Button onClick={action('primary clicked')} primary>P... |
test/PanelSpec.js | brynjagr/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Panel from '../src/Panel';
import Table from '../src/Table';
describe('Panel', function () {
it('Should have class and body', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Panel>Panel content</Panel>... |
examples/api-usage/src/index.js | atomic-app/react-svg | import React from 'react'
import ReactDOM from 'react-dom'
import { ReactSVG } from 'react-svg'
ReactDOM.render(
<ReactSVG
afterInjection={(error, svg) => {
if (error) {
console.error(error)
return
}
console.log(svg)
}}
beforeInjection={(svg) => {
svg.classList.add... |
client/app/scripts/components/overlay.js | alban/scope | import React from 'react';
import classNames from 'classnames';
export default class Overlay extends React.Component {
render() {
const className = classNames('overlay', { faded: this.props.faded });
return <div className={className} />;
}
}
|
node_modules/eslint-config-airbnb/test/test-react-order.js | johangirod/kata-base | import test from 'tape';
import { CLIEngine } from 'eslint';
import eslintrc from '../';
import reactRules from '../rules/react';
import reactA11yRules from '../rules/react-a11y';
const cli = new CLIEngine({
useEslintrc: false,
baseConfig: eslintrc,
rules: {
// It is okay to import devDependencies in tests.... |
client/src/components/eventCard.js | blusclips/zonaster | import React, { Component } from 'react';
import Icon from 'react-native-vector-icons/FontAwesome';
import{ Container, Content, DeckSwiper, Header, Left, Body, Text, Right, Button, Badge, Title, Tabs, Tab, TabHeading, List, ListItem, Thumbnail, Card, CardItem, H3} from 'native-base';
import { AppRegistry,StyleSheet, Vi... |
spec/sections/TableSection.js | kmees/react-fabric | import React from 'react'
import Table from '../../src/Table'
const TableSection = () => (
<section>
<h2>Table</h2>
<Table fixed>
<thead>
<tr>
<th>File name</th>
<th>Location</th>
<th>Modified</th>
<th>Type</th>
</tr>
</thead>
<tbody>... |
examples/CarouselFullWidth.js | mattBlackDesign/react-materialize | import React from 'react';
import Carousel from '../src/Carousel';
export default
<Carousel options={{ fullWidth: true }} images={[
'https://lorempixel.com/800/400/food/1',
'https://lorempixel.com/800/400/food/2',
'https://lorempixel.com/800/400/food/3',
'https://lorempixel.com/800/400/food/4',
'https://lor... |
ajax/libs/react-datepicker/0.20.0/react-datepicker.min.js | honestree/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("moment"),require("react-dom"),require("react"),require("react-onclickoutside"),require("tether")):"function"==typeof define&&define.amd?define(["moment","react-dom","react","react-onclickoutside","tether"],t):"object"==typeof exp... |
app/javascript/mastodon/features/compose/components/navigation_bar.js | RobertRence/Mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Avatar from '../../../components/avatar';
import IconButton from '../../../components/icon_button';
import Permalink from '../../../components/permalink';
import { FormattedMessage } from 'r... |
src/containers/PostList.js | caesai/medialeaks | import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import {parseJSON} from '../utils';
const actions = {
initPage: (page) => ({
type: 'PAGE_INIT',
payload: {
initedPage: page
}
}),
initialize: (type) => (dispatch) => {
dispatch(act... |
pages/theming.js | isogon/styled-mdl-website | import React from 'react'
import NormalLayout from '../components/NormalLayout'
import ComponentTitle from '../components/ComponentTitle'
const Theming = () => (
<NormalLayout>
<ComponentTitle title="Theming" subtitle="TODO" />
</NormalLayout>
)
export default Theming
|
packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/ImageInclusion.js | facebookincubator/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import tiniestCat from './assets/tiniest-cat.jpg';
const ImageInclusion = () => (
<img id="feature-image-i... |
node_modules/react-icons/md/add-box.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdAddBox = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m28.4 21.6v-3.2h-6.8v-6.8h-3.2v6.8h-6.8v3.2h6.8v6.8h3.2v-6.8h6.8z m3.2-16.6c1.8 0 3.4 1.6 3.4 3.4v23.2c0 1.8-1.6 3.4-3.4 3.4h-23.2c-1.9 0-3.4-1.6-3.4-3.4v-23.2c0-1.8 1... |
Examples/UIExplorer/UIExplorerBlock.js | yjyi/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
packages/material-ui-icons/src/SettingsInputComponent.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2.82V23h2v-4.18C6.16 18.4 7 17.3 7 16v-2H1v2zM21 6V2c0-.55-.45-1-1... |
index.ios.js | DevelopHack/React-Native-Github | /**
* React Native App Github
* @Lionel Diaz Moron
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class Github extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.wel... |
01_webstack/03Wk02/conFusion_Exercise/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | allenmodroid/webstack | import React from 'react';
// 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';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
application/components/shared/fetchOverlay/index.js | ronanamsterdam/squaredcoffee | import React, { Component } from 'react';
import { Text, View, Animated, Easing } from 'react-native';
import Button from 'react-native-button';
import styles from '../../../statics/styles';
import AwesomeIcon from 'react-native-vector-icons/FontAwesome';
export default class FetchOverlay extends Component {
s... |
src/app/components/search/SearchResultsTable/FolderCell.js | meedan/check-web | import React from 'react';
import PropTypes from 'prop-types';
import TableCell from '@material-ui/core/TableCell';
import { makeStyles } from '@material-ui/core/styles';
import { truncateLength } from '../../../helpers';
const useStyles = makeStyles({
title: {
whiteSpace: 'nowrap',
overflow: 'hidden',
t... |
examples/star-wars/js/components/StarWarsShip.js | NevilleS/relay | /**
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNES... |
source/components/textHeader.react.js | argaskins/ThinkReact-Jenkins | import React from 'react'
const headerStyle = {
color:"blue"
}
const textBlock = ({title}) => {
return (<h2 style={headerStyle} >'${title}'</h2>)
};
export deafult textBlock;
|
packages/material-ui-icons/src/FilterFramesSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M22 4h-6l-4-4-4 4H2v18h20V4zm-2 16H4V6h4.52l3.52-3.5L15.52 6H20v14zM18 8H6v10h12" />
, 'FilterFramesSharp');
|
templates/beez3/javascript/hide.js | kewaunited/joomla-cms | // Angie Radtke 2009 - 2012 thanks to daniel //
/*global window, localStorage, Cookie, altopen, altclose, big, small, rightopen, rightclose, bildauf, bildzu */
function saveIt(name) {
var x = document.getElementById(name).style.display;
if (!x) {
alert('No cookie available');
} else if (localStorage) {
local... |
src/components/create/MessageUrl.js | securely-app/web | import React from 'react';
import styled from 'styled-components';
import CopyButton from '../common/buttons/CopyButton';
const MessageUrlWrapper = styled.div`
font-family: 'Work Sans', sans-serif;
color: #fff;
font-size: 15px;
text-align: center;
`;
const MessageUrl = props => (
<MessageUrlWrapper>
<p ... |
todomvc/react/bower_components/react/react.js | stephanebachelier/todomvc-perf-comparison | /**
* React v0.8.0
*/
!function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.React=e():"undefined"!=typeof global?global.React=e():"undefined"!=typeof self&&(self.React=e())}(function(){var define,module,exports;return (function e(t,n... |
test/PanelSpec.js | thealjey/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Panel from '../src/Panel';
import Table from '../src/Table';
describe('Panel', function () {
it('Should have class and body', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Panel>Panel content</Panel>... |
app/containers/LanguageProvider/index.js | spiridonov-oa/management-tool | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
js/jqwidgets/demos/react/app/slider/fluidsize/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxSlider from '../../../jqwidgets-react/react_jqxslider.js';
class App extends React.Component {
render() {
return (
<JqxSlider ref='mySlider' style={{ margin: '50% auto' }}
height={70} width={'80%'}
... |
src/components/Main.js | Steinkuo/gallery-by-react | require('normalize.css/normalize.css');
require('styles/App.scss');
import ImgFigure from './ImgFigure.js';
import ControllerUnit from './ControllerUnit.js';
import React from 'react';
import ReactDOM from 'react-dom' //use ES6
// 获取图片相关的数据
var imageDatas = require('../data/imageDatas.json');
// 利用自执行函数, 将图片名信息转成图片... |
src/ContentBlocks/Shared/VideoPlayer/index.js | grommet/grommet-cms-content-blocks | /* eslint-disable */
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { findDOMNode } from 'react-dom';
import classnames from 'classnames';
import CSSClassnames from 'grommet/utils/CSSClassnames';
import Props fro... |
packages/material-ui/src/ListItemSecondaryAction/ListItemSecondaryAction.js | allanalexandre/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import withStyles from '../styles/withStyles';
export const styles = {
/* Styles applied to the root element. */
root: {
position: 'absolute',
right: 16,
top: '50%',
transform: 'translateY(-50%)',
},
};
/**
... |
public/src/js/main.js | Robertmw/imagistral | import React from 'react';
import { render } from 'react-dom';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import { Router, Route, IndexRoute } from 'react-router';
import Editor from './pages/editor';
import Wall from './pages/wall';
import style from '../css/style.less';
render(
<Router ... |
app/javascript/mastodon/features/compose/components/upload_button.js | kibousoft/mastodon | import React from 'react';
import IconButton from '../../../components/icon_button';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 're... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.