path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/Table/Table.spec.js | collegepulse/material-react-components | /* eslint-env mocha */
import assert from 'assert';
import React from 'react';
import {createMount} from '../../test/utils';
import Table, {
TableBody, TableCell, TableHead, TableRow
} from '.';
describe('Tabs', () => {
let mount;
beforeEach(() => {
mount = createMount();
});
afterEach(() => {
mou... |
app/javascript/mastodon/features/compose/components/navigation_bar.js | tateisu/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ActionBar from './action_bar';
import Avatar from '../../../components/avatar';
import Permalink from '../../../components/permalink';
import IconButton from '../../../components/icon_button... |
examples/emojis/index.js | ashutoshrishi/slate | import { Editor } from 'slate-react'
import { Value } from 'slate'
import React from 'react'
import initialValue from './value.json'
/**
* Emojis.
*
* @type {Array}
*/
const EMOJIS = [
'😃',
'😬',
'😂',
'😅',
'😆',
'😍',
'😱',
'👋',
'👏',
'👍',
'🙌',
'👌',
'🙏',
'👻',
'🍔',
'🍑',
... |
src/ui/form/email/email-story.js | josmardias/react-redux-boilerplate | import React from 'react'
import { storiesOf } from '@kadira/storybook'
import Email from '.'
storiesOf('ui.Form.Email', module)
.add('Default', () => (
<Email />
))
|
app/views/ProfileNavigatorView.js | hippothesis/Recipezy | /*
* Copyright 2017-present, Hippothesis, 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.
*/
'use strict';
import React, { Component } from 'react';
import { Icon } from 'native-base';
import { StackN... |
ajax/libs/react-ios-switch/0.1.13/bundle.js | jonobr1/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Switch=t():e.Switch=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(... |
src/components/InfoArea/InfoArea/InfoArea.js | easingthemes/easingthemes.github.io | import React from 'react';
import { Link } from 'react-router';
/**
* React component implementation.
*
* @author dfilipovic
* @namespace ReactApp
* @class InfoArea
* @extends ReactApp
*/
export class InfoArea extends React.Component {
//------------------------------------------------------------------------... |
src/svg-icons/action/perm-device-information.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermDeviceInformation = (props) => (
<SvgIcon {...props}>
<path d="M13 7h-2v2h2V7zm0 4h-2v6h2v-6zm4-9.99L7 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 19H7V5h10v14z"/>
... |
src/index.js | silviaclaire/react-project-readable | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './components/App';
import store from './store'
import { Provider } from 'react-redux'
import { BrowserRouter } from 'react-router-dom'
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(
<Pro... |
mobile/app/module/Sidebar/SidebarComponent.js | liyangwood/DreamCup | import React from 'react';
import {Content, Text, List, ListItem, Container} from 'native-base';
import KG from 'kg';
const style = KG.Style.create({
box : {
backgroundColor : '$drawerBG',
flex : 1,
paddingTop : '$statusBarHeight'
},
font : {
color : '#fff',
fontSize : 18
}
});
export defa... |
docs/src/pages/system/flexbox/JustifyContent.js | allanalexandre/material-ui | import React from 'react';
import Box from '@material-ui/core/Box';
function JustifyContent() {
return (
<div style={{ width: '100%' }}>
<Box display="flex" justifyContent="flex-start" m={1} p={1} bgcolor="background.paper">
<Box p={1} bgcolor="grey.300">
Item 1
</Box>
<Bo... |
ajax/libs/react-native-web/0.0.0-b2a3e86d/cjs/exports/RefreshControl/index.min.js | cdnjs/cdnjs | "use strict";exports.__esModule=!0,exports.default=void 0;var _View=_interopRequireDefault(require("../View")),_react=_interopRequireDefault(require("react"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _objectWithoutPropertiesLoose(e,r){if(null==e)return{};for(var t,o={},i=Object.k... |
ajax/libs/react-data-grid/0.13.29/react-data-grid.min.js | wout/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactDataGrid=t(require("react")):e.ReactDataGrid=t(e.React)}(this,function(e){return function(e){function t(o){if(r[o])return r[... |
src/routes/contact/index.js | dreambo8563/RSK | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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 Contact from './Conta... |
examples/counter/containers/App.js | b2whats/redux | import React, { Component } from 'react';
import CounterApp from './CounterApp';
import { createRedux } from 'redux';
import { Provider } from 'redux/react';
import * as stores from '../stores';
const redux = createRedux(stores);
export default class App extends Component {
render() {
return (
<Provider r... |
app/javascript/mastodon/components/play_music.js | honpya/taketodon | import React from 'react'
export default class PlayMusic extends React.PureComponent {
constructor(props) {
super(props);
this.state = {
isPlaying: false
};
}
handleClick = () => {
this.isPlaying() ? this.stopMusic() : this.playMusic()
this.setState({ isPlaying: this.isPlaying() })
... |
src/components/Header.js | BoilerMake/frontend | import React from 'react';
const Header = ({ startColor, endColor, img, children }) => {
return (
<div
className="header"
style={{
background: `url(${img}) no-repeat`,
backgroundPosition: 'center',
backgroundSize: 'cover'
}}
>
<div
className="gradient"
... |
react/src/routes/login/index.js | Blackbaud-BethRichardson/skywalker | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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 Login from './Login';
e... |
src/components/MonsterBag.js | mineralmink/poke | /**
* Created by mineralmink on 3/22/2017 AD.
*/
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { fetchMonsterBag } from '../actions/index';
import { Link } from 'react-router';
import _ from 'underscore';
class MonsterBag extends Component {
handleMonsterBag = (monste... |
ui/src/stories/ZoomableImage.stories.js | damianmoore/photo-manager | import React from 'react'
import ZoomableImage from '../components/ZoomableImage'
export default {
title: 'Photonix/Photo Detail/Zoomable Image',
component: ZoomableImage,
}
const Template = (args) => (
<div style={{ position: 'absolute', top: 0, left: 0 }}>
<ZoomableImage {...args} />
</div>
)
export c... |
app/src/components/Intro/Electron.js | RyanCCollins/ryancollins.io | import React from 'react';
const Electron = () => (
<div className="orbit">
<div className="electron" />
</div>
);
export default Electron;
|
blog/src/index.js | WendySanarwanto/udemy-modern-react-with-redux | import React from 'react';
import ReactDOM from 'react-dom';
import ReduxPromise from 'redux-promise';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { browserHistory, Router } from 'react-router';
import reducers from './reducers';
import routes from './routes';
... |
client/app/scripts/charts/node-shape-stack.js | dilgerma/scope | import React from 'react';
import { isContrastMode } from '../utils/contrast-utils';
export default function NodeShapeStack(props) {
const contrastMode = isContrastMode();
const Shape = props.shape;
const [dx, dy] = contrastMode ? [0, 8] : [0, 5];
const dsx = (props.size * 2 + (dx * 2)) / (props.size * 2);
c... |
packages/react-instantsearch-core/src/connectors/connectHighlight.js | algolia/react-instantsearch | import createConnector from '../core/createConnector';
import { HIGHLIGHT_TAGS, parseAlgoliaHit } from '../core/highlight';
const highlight = ({
attribute,
hit,
highlightProperty,
preTag = HIGHLIGHT_TAGS.highlightPreTag,
postTag = HIGHLIGHT_TAGS.highlightPostTag,
}) =>
parseAlgoliaHit({
attribute,
... |
src/GridList/TileTitle.js | gutenye/react-mc | // @flow
import React from 'react'
import cx from 'classnames'
import type { PropsC } from '../types'
class Title extends React.Component {
props: PropsC
static defaultProps = {
component: 'span',
}
static displayName = 'GridList.Tile.Title'
render() {
const { component: Component, className, ...re... |
src/svg-icons/image/photo-library.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePhotoLibrary = (props) => (
<SvgIcon {...props}>
<path d="M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"/>... |
pootle/static/js/admin/components/Search.js | garthylou/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
'use strict';
import cx from 'classnames';
import React f... |
ajax/libs/ember-data.js/2.13.0-beta.4/ember-data.js | jonobr1/cdnjs | (function(){
"use strict";
/*!
* @overview Ember Data
* @copyright Copyright 2011-2017 Tilde Inc. and contributors.
* Portions Copyright 2011 LivingSocial Inc.
* @license Licensed under MIT license (see license.js)
* @version 2.13.0-beta.4
*/
var loader, define, requireModule, require, requirej... |
src/index.js | mattschwartz/mattschwartz | import 'bootstrap/dist/css/bootstrap.css'
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { ConnectedRouter } from 'connected-react-router'
import { createBrowserHistory } from 'history'
import configureStore from './store/configureStore'
import App from './conta... |
app/js/pages/User_index.js | arcsecw/myfd | import React from 'react';
import {
Table,
Tabs,
Item,
} from 'amazeui-react'
import auth from '../components/auth'
import {
Order_all,
Order_finished,
Order_remain,
} from '../components/User_index'
var User_index = React.createClass({
render() {
return (
<div>
... |
src/scenes/home/components/VideosList/AddToFavoritesButton.js | ismaelgt/english-accents-map | import React from 'react'
import PropTypes from 'prop-types'
class AddToFavouritesButton extends React.Component {
componentDidMount () {
componentHandler.upgradeDom()
}
componentDidUpdate () {
componentHandler.upgradeDom()
}
isFavorite (id) {
return this.props.favorites.indexOf(id) > -1
}
... |
ajax/libs/maple.js/1.5.0/maple.min.js | honestree/cdnjs | !function t(e,r,n){function o(a,u){if(!r[a]){if(!e[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(i)return i(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=r[a]={exports:{}};e[a][0].call(c.exports,function(t){var r=e[a][1][t];return o(r?r:t)},c,c.ex... |
scripts/app.js | robhowell/rob.news-admin-web | 'use strict';
var React = require('react');
var Parse = require('parse').Parse;
var ParseReact = require('parse-react');
Parse.initialize("exxmyoXjp9hxxVBQx3tr16ITdZC3gjwTh6QgdrTC", "2e6Ymf7Dr8eo1KG1DLmsFJTpiXOMm1jk1Bmg6OPy");
var App = React.createClass({
render() {
return (
<div className="pageWrapper"... |
ajax/libs/highstock/2.1.9/highstock.src.js | CyrusSUEN/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highstock JS v2.1.9 (2015-10-07)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clearT... |
src/components/LocationsBlock.js | ArchersDeLaBretagneRomantique/Frontend | import React from 'react';
import Map from './Map';
const indoorMapCoord = {
lat: 48.332637,
lng: -1.824863
};
const outdoorMapCoord = {
lat: 48.353744,
lng: -1.827651
};
const LocationsBlock = () => {
return (
<div>
<h2>Localisations</h2>
<div className="row">
<div className="col... |
ajax/libs/vue/0.12.9-csp/vue.js | sashberd/cdnjs | /*!
* Vue.js v0.12.9-csp
* (c) 2015 Evan You
* Released under the MIT License.
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define(factory);
else if(... |
ajax/libs/yui/3.10.0/datatable-core/datatable-core.js | avinassh/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... |
node_modules/react-bootstrap/es/DropdownMenu.js | joekay/awebb | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _Array$from from 'babel-runtime/core-js/array/from';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtim... |
packages/mineral-ui-icons/src/IconFlare.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconFlare(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}>
... |
js/components/side/profile_info.js | Krelix/krelix.github.io | /**
* Created by krelix on 24/03/2016.
*/
import React from 'react';
export default class ProfileInfo extends React.Component {
render() {
// CSS transforms... transform container, span content with display block and inverse transform
// Also : -webkit-clip-path : polygon(14% 0, 85% 0, 78% 100%, 0% 100%);... |
src/img/imgs/icon_fullcontrol.js | mikah1337/null-terminator | import React from 'react';
export default class Icon_Fullcontrol extends React.Component {
constructor(props) {
super(props);
this.state = {
height: this.props.height || "70%",
color: this.props.color || "#d2d4d8"
}
}
render() {
return (
... |
src/svg-icons/social/poll.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPoll = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/>
</SvgIcon>
);
SocialPoll = ... |
packages/material-ui-icons/src/ReplyAllOutlined.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M7 8V5l-7 7 7 7v-3l-4-4 4-4zm6 1V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z" /></React.Fragment>
, 'ReplyAllOutlined');
|
ajax/libs/cyclejs-core/0.20.0/cycle.min.js | kennynaoh/cdnjs | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Cycle=f()}})(f... |
packages/ringcentral-widgets-docs/src/app/index.js | ringcentral/ringcentral-js-widget | import React from 'react';
import { render } from 'react-dom';
import { HashRouter as Router, Route } from 'react-router-dom';
import MainView from './components/MainView';
import OverView from './pages/OverView';
import ColorsPage from './pages/Styles/Colors';
import ButtonsPage from './pages/Styles/Buttons';
import ... |
Samples/NET/cs/CslaMVC/CslaMVC.Web/Scripts/jquery-1.4.4.min.js | ronnymgm/csla-light | /*!
* Note: While Microsoft is not the author of this file, Microsoft is
* offering you a license subject to the terms of the Microsoft Software
* License Terms for Microsoft ASP.NET Model View Controller 3.
* Microsoft reserves all other rights. The notices below are provided
* for informational purposes only and... |
sites/all/modules/jquery_update/replace/jquery/1.7/jquery.min.js | druprad/gdnint | /*! jQuery v1.7.2 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 cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde... |
ajax/libs/react-native-web/0.12.3/cjs/exports/SectionList/index.min.js | cdnjs/cdnjs | "use strict";exports.__esModule=!0,exports.default=void 0;var _SectionList=_interopRequireDefault(require("../../vendor/react-native/SectionList"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _default=_SectionList.default;exports.default=_default,module.exports=exports.default; |
src/routes/Home/MB_index/MB_header.js | markwang2764/react-ant | import React from 'react';
import {Row, Col} from 'antd';
import {
Menu,
Icon,
Tabs,
message,
Form,
Input,
Button,
CheckBox,
Modal
} from 'antd';
const FormItem = Form.Item;
const SubMenu = Menu.SubMenu;
const TabPane = Tabs.TabPane;
const MenuItemGroup = Menu.ItemGroup;
import {Router, Route, Link, browserHis... |
src/App.js | monners/coloring-book | import React, { Component } from 'react';
import Bird from './components/Bird.jsx';
import ColorInput from './components/ColorInput.jsx';
export class App extends Component {
constructor() {
super();
this.state = {
tail: 'ff0202',
legs: 'ab93ab',
body: 'fffada',
... |
tools/public-components.js | collinwu/react-bootstrap | import React from 'react';
import * as index from '../src/index';
let components = [];
Object.keys(index).forEach(function (item) {
if (index[item] instanceof React.Component.constructor) {
components.push(item);
}
});
export default components;
|
docs/src/app/components/pages/components/FlatButton/ExampleSimple.js | hai-cea/material-ui | import React from 'react';
import FlatButton from 'material-ui/FlatButton';
const FlatButtonExampleSimple = () => (
<div>
<FlatButton label="Default" />
<FlatButton label="Primary" primary={true} />
<FlatButton label="Secondary" secondary={true} />
<FlatButton label="Disabled" disabled={true} />
... |
packages/components/src/VirtualizedList/CellLabel/LabelColumn.component.js | Talend/ui | import React from 'react';
import { defaultColumnConfiguration } from '../Content.component';
import CellLabel from './CellLabel.component';
export const cellType = 'label';
export const labelColumnConfiguration = {
cellRenderer: props => <CellLabel {...props} />,
};
// this is a fake component to be usable in JSX,
... |
src/svg-icons/image/assistant-photo.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageAssistantPhoto = (props) => (
<SvgIcon {...props}>
<path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"/>
</SvgIcon>
);
ImageAssistantPhoto = pure(ImageAssistantPhoto);
ImageAssistantPhoto.displayName = 'Image... |
ajax/libs/react-router/0.8.0/react-router.min.js | mathiasrw/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.ReactRouter=e()}}(function(){var define;return functi... |
app/javascript/mastodon/components/column_header.js | esetomo/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { FormattedMessage, injectIntl, defineMessages } from 'react-intl';
const messages = defineMessages({
show: { id: 'column_header.show_settings', defaultMessage: 'Show settings' },
hide: { id: 'column_header.h... |
example/__tests__/index.android.js | Piroro-hs/react-native-twitter | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
app/containers/NotFoundPage/index.js | VonIobro/ab-web | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import styled from 'styled-components';
import H1 from '../../components/H1';
import { backgroundBoxed } from '../../variables';
impor... |
src/lib.js | himawan-r/react-essentials | import React from 'react';
import text from './titles.json';
import './css/hello.css';
import './css/goodbye.scss';
export const hello = (
<h1 id='title'
className= 'hello'>
{text.hello}
</h1>
)
export const goodbye = (
<h1 id='title'
className= 'goodbye'>
{text.goodbye}
... |
src/components/AddToScheduleButton/index.js | r1cebank/EventCore | /* eslint-disable import/no-unresolved */
import React from 'react';
import LinearGradient from 'react-native-linear-gradient';
import { Animated, View, TouchableOpacity, Image } from 'react-native';
import { Components, Assets } from '../../global/globalIncludes';
const { Text } = Components.Text;
import Styles from ... |
src/Form/__tests__/ErrorWrapper.Test.js | BlueChilli/ChilliSource.Web.Forms | import React from 'react';
import { shallow } from 'enzyme';
import ErrorWrapper from '../ErrorWrapper.tsx';
const input = <input key="input" value="This is in an input tag" />;
const div = <div key="div">This is in a div tag</div>;
const className = 'some-class';
const singleChildWithTypeNotHidden = {
className,
t... |
test/OverlayDeprecationSpec.js | HorizonXP/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Position from '../src/Position';
import Transition from '../src/Transition';
import Portal from '../src/Portal';
import { shouldWarn } from './helpers';
describe('Components moved to react-overlays', () => {
it('should warn ab... |
client/src/js/components/HomePage.js | muhammad-saleh/weightlyio | "use strict";
import React from 'react';
import WeightCharts from './WeightCharts';
import AppActions from '../actions/AppActions';
import WeightStore from '../stores/WeightStore';
import UserStore from '../stores/UserStore';
import UserTile from './UserTile';
import UserBMI from './UserBMI';
import UserGoal from './Us... |
client/scripts/components/user/entities/relationship-text-field/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program 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, either version 3 of the
Lic... |
src/SearchBox/components/SearchBox.js | ambitioninc/react-ui | import React from 'react';
import {
BLUR_DELAY_MS,
debounce,
getClassName,
KEY_CODES,
noop,
request
} from '../../utils';
class SearchBox extends React.Component {
constructor(...args) {
super(...args);
this.state = {
selectedIndex: -1,
showDropDow... |
app/javascript/mastodon/features/compose/components/warning.js | h3zjp/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
export default class Warning extends React.PureComponent {
static propTypes = {
message: PropTypes.node.isRequired,
};
render () {
const { mes... |
examples/shopping-cart/src/components/Product.spec.js | roth1002/redux | import React from 'react'
import { shallow } from 'enzyme'
import Product from './Product'
const setup = props => {
const component = shallow(
<Product {...props} />
)
return {
component: component
}
}
describe('Product component', () => {
it('should render title and price', () => {
const { com... |
components/Limbs.js | loggur/branches | import React, { Component } from 'react';
import provide from 'react-redux-provide';
import getFiletypeIcon from '../utilities/getFiletypeIcon.js';
import getTreePaths from '../utilities/getTreePaths.js';
import onClickToggle from '../common/onClickToggle.js';
import {
createFile, createFolder, changePath, deletePath... |
ajax/libs/jquery-mobile/1.4.2/jquery.mobile.js | ruo91/cdnjs | /*!
* jQuery Mobile 1.4.2
* Git HEAD hash: 9d9a42a27d0c693e8b5569c3a10d771916af5045 <> Date: Fri Feb 28 2014 17:32:01 UTC
* http://jquerymobile.com
*
* Copyright 2010, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
*/
(function ( root, doc, factory ... |
react/HamburgerIcon/HamburgerIcon.iconSketch.js | seekinternational/seek-asia-style-guide | import React from 'react';
import HamburgerIcon from './HamburgerIcon';
export const symbols = {
'HamburgerIcon': <HamburgerIcon />
};
|
frontend/test/components/TopicCard/Desc.spec.js | metamaps/metamaps_gen002 | /* global describe, it */
import React from 'react'
import { expect } from 'chai'
import { shallow } from 'enzyme'
import sinon from 'sinon'
import Desc from '../../../src/components/TopicCard/Desc.js'
function render(props) {
return shallow(<Desc {...props} />)
}
function sharedAssertions(wrapper, desc, { descPro... |
imports/ui/pages/Recipes/ViewRecipe.js | haraneesh/mydev | import { Meteor } from 'meteor/meteor';
import React from 'react';
import PropTypes from 'prop-types';
import { Editor, EditorState } from 'draft-js';
import { stateFromHTML } from 'draft-js-import-html';
import {
Button, Panel, Row, Col,
} from 'react-bootstrap';
import { withTracker } from 'meteor/react-meteor-data... |
src/routes/ui/search.js | simors/HLifeAdmin | import React from 'react'
import { Search } from '../../components/ui'
import { Table, Row, Col, Card } from 'antd'
const SearchPage = () => <div className='content-inner'>
<Row gutter={32}>
<Col lg={8} md={12}>
<Card title='默认'>
<Search />
</Card>
</Col>
<Col lg={8} md={12}>
<C... |
assets/js/jquery.min.js | xpilgrim/Webstory-2016-07-Jerusalem-Holy-Sepulchure | /*! jQuery v1.11.3 | (c) 2005, 2015 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... |
ajax/libs/mediaelement/1.1.1/jquery.js | JohnKim/cdnjs | /*!
* 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.
... |
actor-apps/app-web/src/app/utils/require-auth.js | hardikamal/actor-platform | import React from 'react';
import LoginStore from 'stores/LoginStore';
export default (Component) => {
return class Authenticated extends React.Component {
static willTransitionTo(transition) {
if (!LoginStore.isLoggedIn()) {
transition.redirect('/auth', {}, {'nextPath': transition.path});
}... |
src/components/Navbar/Navigation/index.js | easingthemes/easingthemes.github.io | /**
*
* Navigation
*
*/
import React from 'react';
import { IndexLink, Link } from 'react-router';
import './styles.scss';
function Navigation() {
return (
<div className="navbar-collapse collapse navbar-main-collapse">
<ul className="nav navbar-nav">
<li>
<IndexLink to='/' activeClassName="active">
... |
packages/website/storybook/lineseries-story.js | uber/react-vis | /* eslint-env node */
import React from 'react';
import {storiesOf} from '@storybook/react';
import {
withKnobs,
color,
number,
object,
select,
text
} from '@storybook/addon-knobs/react';
import {LineSeries} from 'react-vis';
import {generateLinearData, nonUniformX} from './storybook-data.js';
import {S... |
index.ios.js | lvtanxi/HelloReactNative | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class HelloReactNative extends Component {
render() {
return (
<View style={styles.co... |
app/jsx/shared/SVGWrapper.js | venturehive/canvas-lms | /*
* Copyright (C) 2015 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
app/javascript/mastodon/features/account/components/header.js | glitch-soc/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Button from 'mastodon/components/button';
import ImmutablePureComponent from 'react-immutable-pure-component';
impo... |
src/svg-icons/hardware/speaker.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSpeaker = (props) => (
<SvgIcon {...props}>
<path d="M17 2H7c-1.1 0-2 .9-2 2v16c0 1.1.9 1.99 2 1.99L17 22c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5 2c1.1 0 2 .9 2 2s-.9 2-2 2c-1.11 0-2-.9-2-2s.89-2 2-2zm0 16c... |
5eShapedCompanion/4.4.8/5eShapedCompanion.js | NathaTerrien/Natha-roll20-api-scripts | var ShapedScripts =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ ... |
ajax/libs/ink/2.2.1/js/ink.js | kood1/cdnjs |
(function() {
'use strict';
/**
* @module Ink_1
*/
/**
* global object
*
* @class Ink
*/
// skip redefinition of Ink core
if ('Ink' in window) { return; }
// internal data
/*
* NOTE:
* invoke Ink.setPath('Ink', '/Ink/'); before requiring local... |
HomeRange/app/common/MyCheckBox.js | Onlyjson/yanShu_Project | /**
* @author: zhangyh-k@glondon.com
* @description:
* @Date: 2017/11/16 下午4:27
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
TouchableOpacity
} from 'react-native';
export default class MyCheckBox extends Component {
state = {
bgc:'#1aa0f7',
};
... |
dist/1.10.1/jquery-ajax-css-deprecated-effects-event-alias-offset-wrap.min.js | michael829/jquery-builder | /*! jQuery v1.10.1 -wrap,-css,-event-alias,-ajax,-ajax/script,-ajax/jsonp,-ajax/xhr,-effects,-offset,-dimensions,-deprecated | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.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... |
ajax/libs/material-ui/4.9.5/NativeSelect/NativeSelectInput.js | cdnjs/cdnjs | "use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _extends2 = _interopRequireDefaul... |
ajax/libs/extjs/4.2.1/src/chart/Chart.js | wallin/cdnjs | /*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as
published by the Free Software Foundation and appearing in the file LICENSE included in... |
renderer/components/Activity/PaymentModal/Htlc.js | LN-Zap/zap-desktop | import React from 'react'
import PropTypes from 'prop-types'
import { Flex } from 'rebass/styled-components'
import { CoinBig } from '@zap/utils/coin'
import { Text } from 'components/UI'
import { CryptoSelector, CryptoValue } from 'containers/UI'
import HtlcHops from './HtlcHops'
const Htlc = ({ route, isAmountVisibl... |
src/Table.js | tonylinyy/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Table = React.createClass({
propTypes: {
striped: React.PropTypes.bool,
bordered: React.PropTypes.bool,
condensed: React.PropTypes.bool,
hover: React.PropTypes.bool,
responsive: React.PropTypes.bool
},
render() {
let c... |
node_modules/react-bootstrap/es/PagerItem.js | saltypaul/SnipTodo | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/svg-icons/action/touch-app.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTouchApp = (props) => (
<SvgIcon {...props}>
<path d="M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74zm9.84 4.63l-4.... |
mobile/node_modules/@angular/forms/src/directives/template_driven_errors.js | lumenrobot/lumen-helpdesk | /**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { FormErrorExamples as Examples } from './error_examples';
export var TemplateDrivenErrors = (function () {
... |
packages/icons/src/md/action/CameraEnhance.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdCameraEnhance(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M18 6h12l3.66 4H40c2.2 0 4 1.8 4 4v24c0 2.2-1.8 4-4 4H8c-2.2 0-4-1.8-4-4V14c0-2.2 1.8-4 4-4h6.34L18 6zm6 30c5.52 0 10-4.48 10-10s-4.48-10-10-10... |
admin/client/App/shared/InvalidFieldType.js | giovanniRodighiero/cms | /**
* Renders an "Invalid Field Type" error
*/
import React from 'react';
const InvalidFieldType = function (props) {
return (
<div className="alert alert-danger">
Invalid field type <strong>{props.type}</strong> at path <strong>{props.path}</strong>
</div>
);
};
InvalidFieldType.propTypes = {
path: Reac... |
src/svg-icons/hardware/computer.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareComputer = (props) => (
<SvgIcon {...props}>
<path d="M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"/>
</SvgIcon>
);
HardwareComputer ... |
src/layouts/CoreLayout/CoreLayout.js | Mikosko/EimPanel | /**
* @Author: Miloš Kolčák
* @Date: 2017-01-04T11:00:20+01:00
* @Email: milos.kolcak@gmail.com
* @Last modified by: Miloš Kolčák
* @Last modified time: 2017-01-12T15:07:49+01:00
*/
import React from 'react'
import style from './style.scss'
import '../../styles/core.scss'
import TopPanel from '../../components/T... |
src/svg-icons/device/access-alarm.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceAccessAlarm = (props) => (
<SvgIcon {...props}>
<path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-... |
dist/internal/components/session/CurrentSessionCard.js | Caleydo/ordino | import React from 'react';
import { GlobalEventHandler, I18nextManager, PropertyHandler, ErrorAlertHandler, NotificationHandler, ProvenanceGraphMenuUtils, } from 'tdp_core';
import { GraphContext, HighlightSessionCardContext } from '../../constants';
import { ListItemDropdown } from '../../../components';
import { Comm... |
ajax/libs/forerunnerdb/1.3.560/fdb-all.min.js | dlueth/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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.