path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/components/Header/Header.js | bootcampcamp/givingbranch | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Header.css';
import withStyles from '../../decorators/withStyles';
import Link from '../Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header extends Compo... |
src/components/exercises/TutorialVideo.js | cognostics/serlo-abc | import React from 'react';
import { View } from 'react-native';
import Video from '../common/Video';
const styles = {
container: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
backgroundColor: 'black'
}
};
const TutorialVideo = ({ video }) => {
return (
<View style={styles.contai... |
ajax/libs/highcharts/3.0.9/highcharts.src.js | leecrossley/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v3.0.9 (2014-01-15)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout... |
src/js/app.js | varmais/spteefu | import React from 'react';
import Router, { Route } from 'react-router';
import Spteefu from './components/Spteefu';
import Login from './components/Login';
import Dashboard from './components/Dashboard';
import RouterContainer from './services/RouterContainer';
import { STORAGE_KEY } from './constants/LoginConstants';... |
ajax/libs/webshim/1.15.0-RC2/dev/shims/moxie/js/moxie-html4.js | tresni/cdnjs | /**
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
* v1.2.1
*
* Copyright 2013, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*
* Date: 2014-05-14
*/
/**
* Compiled inline version. (Library ... |
test/multi_month_test.js | lmenus/react-datepicker | import React from 'react'
import Calendar from '../src/calendar'
import Month from '../src/month'
import YearDropdown from '../src/year_dropdown'
import { shallow } from 'enzyme'
describe('Multi month calendar', function () {
var dateFormat = 'MMMM YYYY'
function getCalendar (extraProps) {
return shallow(
... |
packages/material-ui-icons/src/ContactlessSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM8.46 14.45l-1.36-.62c.28-.61.41-1.24.4-1.86-.01-.63-.14-1.24-.4-1.8l1.36-.63c.35.75.53 1.56.54 2.4.01.86-.17 1.7-.54 2.51zm3.07 1.56l... |
src/basic/Container.js | sampsasaarela/NativeBase | import React, { Component } from 'react';
import { View } from 'react-native';
import { connectStyle } from 'native-base-shoutem-theme';
import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames';
import {ToastContainer as Toast} from './ToastContainer';
import {ActionSheetContainer as ActionSheet} from './Actio... |
draft-js-emoji-plugin/src/components/Emoji/index.js | koaninc/draft-js-plugins | import React from 'react';
import unionClassNames from 'union-class-names';
import emojione from 'emojione';
const Emoji = ({ theme = {}, cacheBustParam, imagePath, imageType, className, decoratedText, ...props }) => {
const shortName = emojione.toShort(decoratedText);
// short name to image url code steal from em... |
app/components/Users/Header.js | klpdotorg/tada-frontend | import React from 'react';
const Header = () => {
return (
<div className="users-table-header">
<p className="users-header-text">List of Users</p>
<hr className="users-underline" />
</div>
);
};
export { Header };
|
code/modules/html_interface/js/jquery.min.js | CrAzYPiLoT-SS13/FTL13 | /*! jQuery v1.11.1 | (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... |
node_modules/react-icons/ti/lock-open-outline.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const TiLockOpenOutline = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m22.2 28.3c0 1.2-1 2.2-2.2 2.2s-2.2-1-2.2-2.2c0-1.2 1-2.1 2.2-2.1s2.2 0.9 2.2 2.1z m7.8-21.6c-3.7 0-6.7 3-6.7 6.6v5h-6.6v-1.6h-5c-1.9 0-3.4 1.5-3.4 3.3v11.7c0... |
ajax/libs/forerunnerdb/1.3.768/fdb-legacy.min.js | humbletim/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... |
molgenis-core-ui/src/main/javascript/modules/react-components/jobs/JobsContainer.js | marieke-bijlsma/molgenis | /**
* The JobsContainer retrieves jobs from the server and renders them using the
* Jobs component. Shows a spinner while fetching.
*
* @module JobsContainer
*
* @param username
* The username of the one viewing the jobs. Jobs can be filtered
* based on this username
*
* @exports JobsCon... |
src/components/IndicHuitre.js | olivmarcel/aquack | import React, { Component } from 'react';
import { Grid, Col, Jumbotron, Button, ToggleButtonGroup, ToggleButton } from 'react-bootstrap';
import Carte from "./Carte";
export default class Indic extends Component {
altIndic() {
console.log("...");
}
render() {
const indicHuitre = [1,2,4,6,7,8,9,10];
return... |
src/components/colors/test/index.js | unindented/palette-chrome | import React from 'react'
import Colors from 'components/colors'
import {render} from 'utils/test'
describe('Colors', function () {
describe('without the necessary properties', function () {
beforeEach(function () {
const props = {
url: 'foo',
format: 'hex'
}
this.element = rend... |
examples/dictionary/html/js/jquery-1.7.2.js | redfigure/groonga | /*!
* 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/yui/3.13.0/datatable-body/datatable-body.js | ruo91/cdnjs | YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = ... |
src/App.js | ifunk/audiovisual-react | import React, { Component } from 'react';
import Visualisation from './components/Visualisation';
import BarbershopEffect from './effects/BarbershopEffect';
import RainEffect from './effects/RainEffect';
import ShapeEffect from './effects/ShapeEffect';
import LineEffect from './effects/LineEffect';
import RGBSplitFilte... |
src/averageReviewTimeReport.js | Earthstar/gerrit-report-dashboard | import React from 'react';
// "Pure Function" way of declaring React classes. Useful if don't need to store state
const AverageReviewTimeReport = (props) =>
<div className="report-container">
<h2>Average Review Time</h2>
<span className="large-report">{props.averageHours} hours</span>
</div>;
export { AverageRevi... |
src/pages/VaccineDispensingPage.js | sussol/mobile | /* eslint-disable react/forbid-prop-types */
/**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2021
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Wizard } from '../widgets';
import { PatientSelect } from '../widgets/Tabs/PatientSelect';
import ... |
src/svg-icons/av/playlist-add-check.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlaylistAddCheck = (props) => (
<SvgIcon {...props}>
<path d="M14 10H2v2h12v-2zm0-4H2v2h12V6zM2 16h8v-2H2v2zm19.5-4.5L23 13l-6.99 7-4.51-4.5L13 14l3.01 3 5.49-5.5z"/>
</SvgIcon>
);
AvPlaylistAddCheck = pure... |
cordova/myreact/node_modules/core-js/client/core.js | yjiang28/Hackers | /**
* core-js 1.2.7
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2016 Denis Pushkarev
*/
!function(__e, __g, undefined){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require f... |
src/components/bottomBar.item.js | pcyan/dva-example-rn | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Image,
} from 'react-native';
import { IconToggle } from 'react-native-material-design';
const NORMAL_COLOR = '#2b2b2b';
const SELECTED_COLOR = '#006eff';
class Item extends Component {
constructor(props) {
super(props);
l... |
generators/advanced-base/templates/src/pages/Signup.js | bamlab/generator-rn-toolbox | // @flo
import React, { Component } from 'react';
import { StyleSheet, View } from 'react-native';
import { NavigationActions, StackActions } from 'react-navigation';
import type { NavigationTabScreenOptions } from 'react-navigation';
import { Page, Button, TextInput } from 'components';
import theme from 'theme';
imp... |
ajax/libs/react/0.3.3/JSXTransformer.js | ahw/cdnjs | /**
* JSXTransformer v0.3.3
*/
(function(e){if("function"==typeof bootstrap)bootstrap("jsxtransformer",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeJSXTransformer=e}else"undefined"!=typeof wi... |
src/components/Contentful/Floor/presenter.js | ndlib/usurper | // Presenter component for a Floor content type from Contentful
import React from 'react'
import PropTypes from 'prop-types'
import 'static/css/global.css'
import PageAlerts from 'components/Contentful/Alert/Page'
import LibMarkdown from 'components/LibMarkdown'
import Image from 'components/Image'
import PageTitle fro... |
src/routes/register/index.js | kevinchau321/TReactr | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../co... |
test/PagerSpec.js | apkiernan/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react-addons-test-utils';
import ReactDOM from 'react-dom';
import Pager from '../src/Pager';
describe('Pager', () => {
it('Should output a unordered list as root element with class "pager"', () => {
let instance = ReactTestUtils.renderIntoDocument(
<... |
ajax/libs/vue/3.0.0-alpha.3/vue.global.prod.js | cdnjs/cdnjs | var Vue=function(e){"use strict";function n(e,n){const t=Object.create(null),o=e.split(",");for(let e=0;e<o.length;e++)t[o[e]]=!0;return n?e=>!!t[e.toLowerCase()]:e=>!!t[e]}const t={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",32:"NEED_PATCH",16:"FULL_PROPS",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",51... |
frontend/components/responsible/component-size.js | apostolidhs/wiregoose | import React from 'react';
import PropTypes from 'prop-types';
import has from 'lodash/has';
const componentSize = {
propType: createPropType(),
defaultProps: {
width: 0,
},
xxs: 320,
xs: 480,
sm: 768,
md: 992,
lg: 1200,
isXxs,
isXs,
isSm,
isMd,
isLg,
sizeFormatter,
};
export default c... |
stories/Tooltip/Composite/CompositeStory.js | skyiea/wix-style-react | import React from 'react';
import {storiesOf} from '@storybook/react';
import InteractiveCodeExample from '../../utils/Components/InteractiveCodeExample';
import ExampleTooltip from './ExampleTooltip';
import ExamplePopover from './ExamplePopover';
import ExamplePopoverMenu from './ExamplePopoverMenu';
storiesOf('7. T... |
public/javascripts/vendor/jqueryui/dialog-unpatched.js | usmschuck/canvas | /*!
* jQuery UI Dialog @VERSION
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Dialog
*
* Depends:
* jquery.ui.core.js
* jquery.ui.widget.js
* jquery.ui.button.js
* jquery.ui.dra... |
node_modules/grunt-google-cdn/node_modules/google-cdn/node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/rx/src/core/linq/observable/amb.js | thakur-himanshu/guitsm | /**
* Propagates the observable sequence or Promise that reacts first.
*
* @example
* var = Rx.Observable.amb(xs, ys, zs);
* @returns {Observable} An observable sequence that surfaces any of the given sequences, whichever reacted first.
*/
Observable.amb = function () {
var acc = observableNev... |
js/jquery.js | networkresilience/www-networkresilience-com | /*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
src/pages/GameEdit/components/UploadThumbnail.js | iGameLab/teleport-client | import React from 'react'
import PropTypes from 'prop-types'
import FileUpload from '../../../components/FileUpload'
import config from '../../../config'
export default class UploadThumbnail extends React.Component{
static propTypes = {
appId: PropTypes.string.isRequired
}
render(){
retu... |
src/containers/App/index.js | mmazzarolo/tap-the-number | /* @flow */
/**
* Main application component, handles the routing.
*/
import React, { Component } from 'react';
import { StatusBar } from 'react-native';
import { Image, View } from 'react-native-animatable';
import { inject, observer } from 'mobx-react/native';
import backgroundImg from 'src/images/bg.jpg';
import... |
app/javascript/mastodon/features/direct_timeline/components/conversation.js | pointlessone/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import StatusContainer from '../../../containers/status_container';
export default class Conversation extends ImmutablePureComp... |
packages/wix-style-react/src/MarketingLayout/docs/examples.js | wix/wix-style-react | import React from 'react';
import Button from '../../Button';
import Image from '../../Image';
export const description = {
title: 'Description',
text:
'Marketing layout is a layout designed to promote new features or display first time visit. Component has title, description, action and illustration areas.',
... |
docs/src/app/components/pages/components/TimePicker/ExampleInternational.js | xmityaz/material-ui | import React from 'react';
import TimePicker from 'material-ui/TimePicker';
const TimePickerInternational = () => (
<div>
<TimePicker
hintText="Custom Labels"
okLabel="确定"
cancelLabel="取消"
/>
</div>
);
export default TimePickerInternational;
|
node_modules/react-bootstrap/es/Well.js | ProjectSunday/rooibus | 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 ... |
stories/core/Dropdown.js | rentpath/react-ui | import React from 'react'
import { action } from '@storybook/addon-actions'
import {
Dropdown,
Text,
Menu,
Card,
} from 'react-ui-core/src'
import {
DropdownButtonExample,
DropdownInputExample,
DynamicDropdownExample,
} from './ExampleComponents'
import StoryBookTheme from '../theme/Storybook.css'
const ... |
src/components/Title.js | mirego/mirego-open-web | import React from 'react';
import styled from '@emotion/styled';
const Content = styled.div`
padding: 0 10px;
margin: 0 0 30px;
text-align: center;
color: #666;
@media (prefers-color-scheme: dark) {
& {
color: #aaa;
}
}
`;
const Title = styled.h2`
margin: 0 0 5px;
text-align: center;
... |
app/components/Settings.js | chrigu/braukontrol-react | // @flow
import React, { Component } from 'react';
import { Link } from 'react-router';
import { Chart } from './Chart';
import styles from './Braumeister.css';
import Alert from './Alert';
import Header from '../common/Header';
export default class Settings extends Component {
constructor(props) {
super(prop... |
packages/material-ui-icons/src/ViewStreamOutlined.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="M4 6v12h17V6H4zm15 10H6v-3h13v3zM6 11V8h13v3H6z" /></g></React.Fragment>
, 'ViewStreamOutlined');
|
test/calculator_test.js | gomo/react-calcpicker | import React from 'react'
import assert from 'power-assert'
import Adapter from 'enzyme-adapter-react-16'
import { mount, shallow, configure } from 'enzyme'
configure({adapter: new Adapter()})
import Calculator from '../src/js/components/Calculator'
import Action from '../src/js/classes/Action'
const createCalculato... |
packages/material-ui-icons/src/StoreMallDirectoryTwoTone.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="M5.64 9l-.6 3h13.92l-.6-3z" opacity=".3" /><path d="M4 7l-1 5v2h1v6h10v-6h4v6h2v-6h1v-2l-1-5H4zm8 11H6v-4h6v4zm-6.96-6l.6-3h12.72l.6 3H5.04zM4 4... |
src/containers/blurb.js | b0ts/react-redux-sweetlightstudios-website | import React, { Component } from 'react';
import { connect } from 'react-redux'; // glue between react and redux
import { Jumbotron } from 'react-bootstrap';
class Blurb extends Component {
render() {
return ( // no blurbs info in config, then don't show blurb
(this.props.siteConfig.blurbs[this.props.article] ==... |
src/index.js | blankPen/Qimooc | import React from 'react';
import { AppRegistry } from 'react-native';
import { Provider } from 'react-redux';
import router from './routers/';
import configureStore from './configureStore';
const store = configureStore();
const Qimooc = () => (
<Provider store={store}>
{router}
</Provider>
);
AppRegistry.re... |
src/containers/views/DocumentNew.js | ashmaroli/jekyll-admin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { findDOMNode } from 'react-dom';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { browserHistory, withRouter } from 'react-router';
import { HotKeys } from 'react-hotkeys';
import DocumentTit... |
__tests__/index.android.js | wudizhuo/kindle_react_app | 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/app.js | emiprandi/toggl | import React from 'react';
import ReactDOM from 'react-dom';
import Api from './services/api';
import DB from './services/db';
const api = new Api();
const db = new DB();
import Login from './components/Login';
import Loading from './components/Loading';
import Entries from './components/Entries';
import Timer from '... |
ajax/libs/yasr/2.4.6/yasr.bundled.min.js | iskitz/cdnjs | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){... |
site/src/components/editor/RingSpinner.js | ben-eb/cssnano | import React from 'react';
import styles from './RingSpinner.module.css';
/* eslint-disable import/prefer-default-export */
export function RingSpinner() {
return (
<div className={styles.wrapper}>
<div className={styles.circle}></div>
</div>
);
}
|
src/main/webapp/assets/vendors/jquery/jquery-1.11.1.js | noc06140728/gitbucket | /*!
* jQuery JavaScript Library v1.11.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-05-01T17:42Z
*/
(function( global, factory ) {
if ... |
app/pages/set/moduleManage/modal/addButtonModal.js | duxianwei520/react | import React, { Component } from 'react';
import { Button, Form, Input } from 'antd';
import { connect } from 'react-redux';
import { regExpConfig } from '@reg';
import Drawer from '@components/draw/draw';
const FormItem = Form.Item;
// @connect((state, props) => ({
// config: state.config
// }))
@Form.create()
/... |
src/components/LayerManager/LayerManager.spec.js | maartenplieger/GeoWeb-FrontEnd | import React from 'react';
import { default as LayerManager } from './LayerManager';
import { shallow, mount } from 'enzyme';
import { Col } from 'reactstrap';
import { panel } from './TestPanel.json';
import cloneDeep from 'lodash.clonedeep';
describe('(Component) LayerManager', () => {
let _panel;
const emptyFunc... |
src/components/font-awesome.js | jorgerobles/LaserWeb4 | /**
* Font-Awesome module.
* @module
*/
// React
import React from 'react'
/**
* Communication component.
*
* @extends module:react~React~Component
* @param {Object} props Component properties.
*/
class Icon extends React.Component {
/**
* @type {Object}
* @member module:components/font-awesome~... |
packages/material-ui-icons/src/Unsubscribe.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M18.5 13c-1.93 0-3.5 1.57-3.5 3.5s1.57 3.5 3.5 3.5 3.5-1.57 3.5-3.5-1.57-3.5-3.5-3.5zm2 4h-4v-1h4v1zm-6.95 0c-.02-.17-.05-.33-.05-.5 0-2.76 2.24-5 5-5 .92 0 1.76.26 2.5.69V5c0-1.1-.9-2... |
assets/node_modules/material-ui/svg-icons/device/battery-charging-20.js | janta-devs/nyumbani | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
app/containers/LocaleToggle/index.js | abasalilov/react-boilerplate | /*
*
* LanguageToggle
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import Toggle from 'components/Toggle';
import Wrapper from './Wrapper';
import messages from './messages';
import { appLocales } from '../../... |
assets/javascripts/kitten/components/graphics/icons-next/chrono-icon-next/index.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
export const ChronoIconNext = ({ color, title, ...props }) => (
<svg
width="20"
height="20"
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
{title && <title>{title}</title>}
<path
d="M11.399 1.667a.83... |
node_modules/material-ui/svg-icons/action/view-week.js | andrycodestuffs/atom-sync-packages | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
ajax/libs/material-ui/4.9.4/esm/Table/TableContext.js | cdnjs/cdnjs | import React from 'react';
/**
* @ignore - internal component.
*/
var TableContext = React.createContext();
if (process.env.NODE_ENV !== 'production') {
TableContext.displayName = 'TableContext';
}
export default TableContext; |
examples/official-storybook/stories/addon-notes.stories.js | rhalff/storybook | import React from 'react';
import { storiesOf } from '@storybook/react';
import { withNotes, withMarkdownNotes } from '@storybook/addon-notes';
import BaseButton from '../components/BaseButton';
import markdownNotes from './notes/notes.md';
const baseStory = () => (
<BaseButton label="Button with notes - check the ... |
frontend/src/components/ExpenseEmptyState.js | OpenCollective/opencollective-website | import React from 'react';
export default ({i18n}) => {
return (
<div className='center'>
<div className='flex items-center justify-center'>
<img width='111' height='151'
src='/public/images/collectives/expenses-empty-state-image.jpg'
srcSet='/public/images/collectives/expenses-... |
test/helpers/shallowRenderHelper.js | littlewin-wang/mufly | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
ajax/libs/jquery.fancytree/2.11.0/jquery.fancytree-all.js | maruilian11/cdnjs | /*!
* jquery.fancytree.js
* Dynamic tree view control, with support for lazy loading of branches.
* https://github.com/mar10/fancytree/
*
* Copyright (c) 2008-2015, Martin Wendt (http://wwWendt.de)
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.11.0
* @da... |
src/parser/priest/holy/modules/talents/90/DivineStar.js | ronaldpereira/WoWAnalyzer | import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox';
import React from 'react';
import ItemHealingDone from 'interface/ItemHealingDone';
import ItemDamageDone from 'interface/ItemDamageDone';
// Examp... |
src/RangeScale/presentations/RangeSelector.js | gevorgmakaryan/react-range-scale | /*jshint esversion: 6 */
import React from 'react';
import { addEvent, removeEvent } from '../utils';
import {
containerStyles,
rangeSizeIndicator,
rangePicker
} from '../styles';
export default class RangeSelector extends React.Component {
/**
* Constructor of the class
*/
constructo... |
examples/paragraphs/src/index.js | josepot/react-redux-scroll | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import App from './App';
import configureStore from './store';
// eslint-disable-next-line max-len
const content = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore e... |
src/parser/shared/modules/features/Checklist/PreparationRule.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { Trans } from '@lingui/macro';
import Rule from './Rule';
import Requirement from './Requirement';
class PreparationRule extends React.PureComponent {
static propTypes = {
children: PropTypes.node,
thresholds: PropTypes.object.isRequired... |
src/applications/medical-copays/utils/helpers.js | department-of-veterans-affairs/vets-website | import React from 'react';
import moment from 'moment';
import FEATURE_FLAG_NAMES from 'platform/utilities/feature-toggles/featureFlagNames';
import { toggleValues } from 'platform/site-wide/feature-toggles/selectors';
import { getMedicalCenterNameByID } from 'platform/utilities/medical-centers/medical-centers';
expor... |
packages/ringcentral-widgets-docs/src/app/pages/Components/OfflineModeBadge/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import { parse } from 'react-docgen';
import CodeExample from '../../../components/CodeExample';
import ComponentHeader from '../../../components/ComponentHeader';
import PropTypeDescription from '../../../components/PropTypeDescription';
import Demo from './Demo';
// eslint-disable-next-lin... |
src/components/screens/name.js | builderscon/nanp | // @flow
import React from 'react'
import {
StyleSheet,
Text,
View,
} from 'react-native'
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
})
type Props = {
screenProps: {
qrCodeReader: {
readData: string,
},
},
}
cons... |
src/user/ui/logoutbutton/LogoutButton.js | flysonic10/initial-celestial-offering | import React from 'react'
const LogoutButton = ({ onLogoutUserClick }) => {
return(
<li className="pure-menu-item">
<a href="#" className="pure-menu-link" onClick={(event) => onLogoutUserClick(event)}>Logout</a>
</li>
)
}
export default LogoutButton
|
src/components/grid/row.js | awaseem/Jam | import React from 'react';
import styles from '../../css/skeleton.css';
function Row(props) {
return (
<div className={styles.row}>{props.children}</div>
);
}
Row.propTypes = {
children: React.PropTypes.any.isRequired,
};
export default Row;
|
packages/components/src/ActionList/ActionList.stories.js | Talend/ui | import React from 'react';
import { action } from '@storybook/addon-actions';
import ActionList from './ActionList.component';
const actions = [
{
label: 'Recent datasets',
icon: 'talend-clock',
'data-feature': 'actionlist.item',
onClick: action('Recent clicked'),
},
{
label: 'Favorite datasets',
icon: ... |
src/component/SecondModal.js | BristolPound/cyclos-mobile-3-TownPound | import React from 'react'
import { Animated, BackHandler } from 'react-native'
import animateTo from '../util/animateTo'
import merge from '../util/merge'
import { screenHeight } from '../util/ScreenSizes'
const modalSlideTime = 300
const style = {
left: 0,
right: 0,
bottom: 0,
position: 'absolute',
backgro... |
src/utils/createContextWrapper.js | bvasko/react-bootstrap | import React from 'react';
/**
* Creates new trigger class that injects context into overlay.
*/
export default function createContextWrapper(Trigger, propName) {
return contextTypes => {
class ContextWrapper extends React.Component {
getChildContext() {
return this.props.context;
}
... |
app/javascript/mastodon/features/directory/components/account_card.js | MitarashiDango/mastodon | import React from 'react';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { makeGetAccount } from 'mastodon/selectors';
import Avatar from 'mastodon/compone... |
step6-serviceapi/app/js/components/Github.js | jintoppy/react-training | import React from 'react';
import Profile from './Profile';
import {Link} from 'react-router';
import $ from 'jquery';
class Github extends React.Component {
constructor(props) {
super(props);
this.state = {
user: {}
};
}
componentDidMount(){
let url = 'https://a... |
src/parser/demonhunter/vengeance/modules/talents/SpiritBombSoulsConsume.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER';
import SPELLS from 'common/SPELLS/index';
import SpellLink from 'common/SpellLink';
import { formatPercentage } ... |
JAVA/Android/mobileEmulator/index.ios.js | batazor/MyExampleAndExperiments | /**
* 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 mobileEmulator extends Component {
render() {
return (
<View style={styles.cont... |
app/components/IssueIcon/index.js | VeloCloud/website-ui | import React from 'react';
function IssueIcon(props) {
return (
<svg
height="1em"
width="0.875em"
className={props.className}
>
<path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v... |
packages/material-ui-icons/legacy/Battery30.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V15h10V5.33z" /><path d="M7 15v5.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V15H7z" /></React... |
ajax/libs/griddle-react/1.0.0-alpha.10/griddle.min.js | jonobr1/cdnjs | !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.Griddle=n(require("react")):e.Griddle=n(e.React)}(this,function(__WEBPACK_EXTERNAL_MODULE_3__){return function(e){function n(r){i... |
tests/routes/Search/components/ResultTable.spec.js | far-fetched/kiwi | import React from 'react';
import { ResultTable } from 'routes/Search/components/ResultTable';
import { shallow } from 'enzyme';
import moment from 'moment';
describe('(Component) ResultTable', () => {
let _props, _spies, _wrapper;
beforeEach(() => {
let dateNowTime = (new Date().getTime() / 1000);
_prop... |
ajax/libs/mediaelement/2.9.1/jquery.js | binaek89/cdnjs | /*!
* jQuery JavaScript Library v1.7
* 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.
*... |
Examples/UIExplorer/UIExplorerTitle.js | futbalguy/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/shared/visualization/visUtilities.js | cityofasheville/simplicity2 | import React from 'react';
import { Mark } from 'semiotic-mark';
import { colorSchemes } from './colorSchemes';
export const dollarFormatter = (value) => {
if (!value || value === 0) { return '$0'; }
return [value < 0 ? '-$' : '$', Math.abs(value).toLocaleString()].join('');
};
export const labelOrder = (formatt... |
src/templates/not-found-template.js | saegeullee/saegeullee.github.io | // @flow strict
import React from 'react';
import Sidebar from '../components/Sidebar';
import Layout from '../components/Layout';
import Page from '../components/Page';
import { useSiteMetadata } from '../hooks';
const NotFoundTemplate = () => {
const { title, subtitle } = useSiteMetadata();
return (
<Layout... |
test/test_helper.js | shubaan/LearnIt | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
examples/simple/components/App.js | idream3/react-custom-scrollbars | import React, { Component } from 'react';
import { Scrollbars } from 'react-custom-scrollbars';
export default class App extends Component {
render() {
return (
<div>
<Scrollbars style={{ height: 300, marginBottom: 50}}>
<p>Lorem ipsum dolor sit amet, consete... |
app/scripts/ocr_screen.js | joe-re/OCR-Screen | import AnalyzableViewer from './components/analyzable_viewer';
import React from 'react';
import jQuery from 'jquery';
// jcrop require global jQuery Object.
if(!window.jQuery) { window.jQuery = window.$ = jQuery; }
require('jcrop');
function getQueryParams() {
let params = {};
const hashes = window.location.... |
ajax/libs/rxjs/2.3.8/rx.lite.compat.js | chrisyip/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... |
ajax/libs/flocks.js/1.5.0/flocks.js | RoryStolzenberg/cdnjs |
/** @jsx React.DOM */
/* jshint node: true, browser: true, newcap: false */
/* eslint max-statements: 0, no-else-return: 0, brace-style: 0 */
/* eslint-env node,browser */
/**
* The Flocks library module. Load this module and use either the
* flocks <tt>flocks.createClass</tt> wrapper or the <tt>flocks plumbing<... |
src/components/Doctor/DoctorName.js | aspsoluciones/mcw-client | import React from 'react';
const DoctorName = ({doctor}) => {
var _titulo = (doctor.sexo == 'F') ? 'Dra.' : 'Dr';
return(
<div className="ui column">
<h1 className="ui bg-mcwDark huge label">{_titulo} { doctor.nombre } { doctor.apellido }</h1>
<h3 className="color-mcwDark doctor-s... |
ajax/libs/video.js/5.0.0-rc.17/video.js | calebmer/cdnjs | /**
* @license
* Video.js 5.0.0-rc.17 <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... |
packages/react-devtools-shared/src/devtools/views/Button.js | ericyang321/react | /**
* 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.
*
* @flow
*/
import * as React from 'react';
import Tooltip from '@reach/tooltip';
import styles from './Button.css';
import toolt... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.