path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
app/javascript/mastodon/features/compose/components/search.js | 5thfloor/ichiji-social | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Overlay from 'react-overlays/lib/Overlay';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import { searchEnabled } from '../... |
react/features/base/react/components/web/Watermarks.js | parisjulien/arkadin-jitsimeet | /* @flow */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { translate } from '../../../i18n';
declare var interfaceConfig: Object;
/**
* The CSS style of the element with CSS class <tt>rightwatermark</tt>.
*
* @private
*/
const _RIGHT_WATERMARK_STYLE = {
backgroundI... |
app/jsx/files/BreadcrumbCollapsedContainer.js | djbender/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... |
src/components/Button/demo/basic/index.js | lebra/lebra-components | import React, { Component } from 'react';
import { render } from 'react-dom';
import Button from '../../index';
import './index.less';
export default class BaseDemo extends Component {
render() {
return (
<div className="button-con">
<div className="left">
<Button>确定</Button>
<Button ... |
test/fixtures/jquery-1.10.1.min.js | Aturan/grunt-transform-js | /*! jQuery v1.10.1 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.1.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.1",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
docs/src/pages/components/slider/InputSlider.js | kybarg/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Grid from '@material-ui/core/Grid';
import Typography from '@material-ui/core/Typography';
import Slider from '@material-ui/core/Slider';
import Input from '@material-ui/core/Input';
import VolumeUp from '@material-ui/icons/VolumeU... |
node_modules/react-scripts/template/src/App.js | jkahrs595/website | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
... |
ajax/libs/rxjs/2.3.13/rx.lite.compat.js | dhowe/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... |
src/components/slider/Slider.js | JunisphereSystemsAG/react-color | 'use strict' /* @flow */
import React from 'react'
import ReactCSS from 'reactcss'
import shallowCompare from 'react-addons-shallow-compare'
import { ColorWrap, Hue } from '../common'
import SliderSwatches from './SliderSwatches'
import SliderPointer from './SliderPointer'
export class Slider extends ReactCSS.Compon... |
ajax/libs/jquery.fancytree/2.14.0/jquery.fancytree.js | sashberd/cdnjs | /*!
* jquery.fancytree.js
* Tree view control with support for lazy loading and much more.
* 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.14.0
* @date 2015... |
examples/CardFull.js | jareth/react-materialize | import React from 'react';
import Card from '../src/Card';
import CardTitle from '../src/CardTitle';
export default
<Card className='small'
header={<CardTitle image='assets/sample-1.jpg'>Card Title</CardTitle>}
actions={[<a href='#'>This is a Link</a>]}>
I am a very simple card. I am good at containing small bit... |
src/index.js | trailsuite/react-inlinesvg | "use strict"
import React from 'react';
import once from 'once';
import ieXDomain from 'httpplease/plugins/oldiexdomain';
let httpplease = require('httpplease');
let InlineSVGError;
let Status;
let configurationError;
let createError;
let delay;
let getHash;
let isSupportedEnvironment;
let me;
let supportsInlineSVG;... |
test/specs/collections/Table/Table-test.js | koenvg/Semantic-UI-React | import _ from 'lodash'
import React from 'react'
import Table from 'src/collections/Table/Table'
import TableBody from 'src/collections/Table/TableBody'
import TableCell from 'src/collections/Table/TableCell'
import TableFooter from 'src/collections/Table/TableFooter'
import TableHeader from 'src/collections/Table/Tab... |
packages/material-ui-icons/src/CloudQueueSharp.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.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.... |
js/jqwidgets/demos/react/app/treegrid/dataexport/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxTreeGrid from '../../../jqwidgets-react/react_jqxtreegrid.js';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
class App extends React.Component {
componentDidMount() {
this.refs.myTreeGrid.expandRow(2);
... |
src/parser/paladin/holy/modules/StatValues.js | fyruna/WoWAnalyzer | import React from 'react';
import { Trans } from '@lingui/macro';
import SPELLS from 'common/SPELLS';
import HIT_TYPES from 'game/HIT_TYPES';
import BaseHealerStatValues from 'parser/shared/modules/features/BaseHealerStatValues';
import STAT from 'parser/shared/modules/features/STAT';
import HealingValue from 'parser/... |
files/react/0.14.0-alpha3/react-with-addons.js | labsvisual/jsdelivr | /**
* React (with addons) v0.14.0-alpha3
*/
(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!=="u... |
ajax/libs/react-instantsearch/4.1.0/Dom.js | extend1994/cdnjs | /*! ReactInstantSearch 4.1.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define ===... |
src/index.js | mooniak/fontpad | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './styles/fonts.css';
import './styles/App.css';
import './index.css';
import '../node_modules/react-grid-layout/css/styles.css';
import '../node_modules/react-resizable/css/styles.css';
ReactDOM.render(
<App />,
document... |
RN/RNFluxDemo/components/Login.js | puyanLiu/LPYFramework | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View
} from 'react-native';
import {
Actions
} from 'react-native-router-flux';
import Button from "react-native-button";
class Login extends Component {... |
app/components/loginComponents/Form.js | MPDL/LabCam | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { StyleSheet, View } from 'react-native';
import UserInput from './UserInput';
import usernameImg from '../../images/username.png';
import passwordImg from '../../images/password.png';
const styles = StyleSheet.create({
container:... |
src/components/Modal/ModalContent.js | clhenrick/nyc-crash-mapper | import React, { Component } from 'react';
// Higher Order Component (HOC) that wraps modal content's children
// see https://facebook.github.io/react/docs/higher-order-components.html
const ModalContent = (WrappedComponent, config) => {
const { modalType, closeModal } = config;
return class MC extends Component {... |
src/components/RequestActiveRecord.js | y-takey/rails-dashboard | import _ from "lodash";
import React, { Component } from "react";
import StyledRow from "./StyledRow";
import formatter from "../formatter";
const typeStyle = { fg: "magenta", bold: true, align: "right" };
const durationStyle = { fg: "yellow" };
const sqlStyle = {};
const durationHeaderStyle = { fg: "yellow" };
const ... |
src/index.js | albertveldman96/aveld | import React from 'react';
import { render } from 'react-dom';
import { createStore, applyMiddleware, compose } from 'redux';
import { Provider } from 'react-redux';
import { BrowserRouter as Router, Route} from 'react-router-dom';
import thunk from 'redux-thunk';
import WeatherApp from './components/WeatherApp';
impor... |
packages/material-ui-icons/src/MoodTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm3.5 4c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zm-7 0c.83 0 1.5.67 1.5 1.5S9.33 11 8.5 11 7 10.33 ... |
ajax/libs/material-ui/5.0.0-alpha.28/node/Toolbar/Toolbar.min.js | cdnjs/cdnjs | "use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard"),_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _objectWithoutPropertiesLoose2=_interopRequireDefault(require... |
node_modules/jsx-loader/node_modules/react-tools/src/test/worker.js | chenbeitingting/reactjs-webpack-demo | /* jshint worker: true */
'use strict';
if (typeof console == 'undefined') {
this.console = {
error: function(e) {
postMessage(JSON.stringify({
type: 'error',
message: e.message,
stack: e.stack
}));
},
log: function(message) {
postMessage(JSON.stringify({
... |
client/components/counter/Counter.spec.js | UruIT/react-seed | import React from 'react';
import ShallowRenderer from 'react-test-renderer/shallow';
import { shallow } from 'enzyme';
import Counter from './Counter';
describe('<Counter/>', () => {
it('snapshot', () => {
const renderer = new ShallowRenderer();
const tree = renderer.render(<Counter />);
expect(tree).toMatch... |
fields/types/location/LocationField.js | jacargentina/keystone | import _ from 'lodash';
import React from 'react';
import Field from '../Field';
import { Button, Checkbox, FormField, FormInput, FormNote, FormRow } from 'elemental';
/**
* TODO:
* - Remove dependency on underscore
* - Custom path support
*/
module.exports = Field.create({
displayName: 'LocationField',
getIn... |
web/src/index.js | jaemk/transfer | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, Switch, Redirect } from 'react-router-dom';
import { createHashHistory } from 'history';
import './index.css';
import NavBar from './components/NavBar';
import Upload from './components/Upload';
import Download from './components/Downl... |
actor-apps/app-web/src/app/components/common/State.react.js | fengshao0907/actor-platform | import React from 'react';
import { MessageContentTypes } from 'constants/ActorAppConstants';
class State extends React.Component {
static propTypes = {
message: React.PropTypes.object.isRequired
};
render() {
const { message } = this.props;
if (message.content.content === MessageContentTypes.SERVI... |
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js | sprjr/react-router | import React from 'react';
import { Link } from 'react-router';
class Sidebar extends React.Component {
render () {
var assignments = COURSES[this.props.params.courseId].assignments
return (
<div>
<h3>Sidebar Assignments</h3>
<ul>
{assignments.map(assignment => (
... |
frontend/src/DiscoverMovie/Table/DiscoverMovieActionsCell.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import VirtualTableRowCell from 'Components/Table/Cells/VirtualTableRowCell';
class DiscoverMovieActionsCell extends Component {
//
// Render
render() {
const {
id,
...otherProps
} = this.props;
return (
... |
frontend/test/app/components/RetireConfirmationDialog-test.js | clouserw/testpilot | import React from 'react';
import { expect } from 'chai';
import sinon from 'sinon';
import { shallow, mount } from 'enzyme';
import RetireConfirmationDialog from '../../../src/app/components/RetireConfirmationDialog';
describe('app/components/RetireConfirmationDialog', () => {
let props, mockClickEvent, subject;
... |
src/routes/contact/index.js | pavlosvos/krifominima | /**
* 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 Layout from '../../compo... |
packages/material-ui-icons/src/Explicit.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><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-2zm-4 6h-4v2h4v2h-4v2h4v2H9V7h6v2z" /></React.Fragment>
, 'Explicit');
|
blueprints/layout/files/__test__/layouts/__name__Layout.spec.js | hbaughman/audible-temptations | import React from 'react'
describe('(Layout) <%= pascalEntityName %>', () => {
it('should exist', () => {
})
})
|
pootle/static/js/auth/components/SocialSignInForm.js | JohnnyKing94/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.
*/
import React from 'react';
import { PureRenderMixin } from... |
webpack/components/Content/Details/ContentDetailInfo.js | pmoravec/katello | import React from 'react';
import PropTypes from 'prop-types';
import { Table } from 'react-bootstrap';
// using Map to preserve order
const createRows = (details, mapping) => {
const rows = [];
/* eslint-disable no-restricted-syntax, react/jsx-closing-tag-location */
for (const key of mapping.keys()) {
row... |
src/resources/assets/js/submission/scoreboard/reducers.js | tmlpstats/tmlpstats | import { combineReducers } from 'redux'
import { modelReducer, formReducer } from 'react-redux-form'
import Immutable from 'immutable'
import { SCOREBOARDS_FORM_KEY, SCOREBOARD_SAVED, scoreboardLoad, scoreboardSave, messages } from './data'
const sfLength = SCOREBOARDS_FORM_KEY.length
const ToSave = Immutable.Record(... |
src/svg-icons/av/fast-rewind.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFastRewind = (props) => (
<SvgIcon {...props}>
<path d="M11 18V6l-8.5 6 8.5 6zm.5-6l8.5 6V6l-8.5 6z"/>
</SvgIcon>
);
AvFastRewind = pure(AvFastRewind);
AvFastRewind.displayName = 'AvFastRewind';
export def... |
src/icons/LocalCafeIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class LocalCafeIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M40 6H8v20c0 4.42 3.58 8 8 8h12c4.42 0 8-3.58 8-8v-6h4c2.21 0 4-1.79 4-4v-6c0-2.21-1.79-4-4-4zm0 10h-4v-... |
frontend/src/AddMovie/ImportMovie/SelectFolder/ImportMovieRootFolderRowConnector.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { deleteRootFolder } from 'Store/Actions/rootFolderActions';
import ImportMovieRootFolderRow from './ImportMovieRootFolderRow';
function createMapStateT... |
scripts/Component.js | uraway/flux-tutorial | import React from 'react';
import ActionCreator from './ActionCreator';
import Store from './Store';
import EventEmitter from './EventEmitter';
let dispatcher = new EventEmitter();
let action = new ActionCreator(dispatcher);
let store = new Store(dispatcher);
export default class Component extends React.Component {
... |
js/import/staticComponents.js | acthp/ucsc-xena-client | import React from 'react';
import cssClasses from './ImportPage.module.css';
import loader from './loader.gif';
const maxColumns = 6,
numRows = 5,
maxNumRows = 20,
maxSymbolsInCell = 20;
const cropColumnContent = cell => cell.length > maxSymbolsInCell ? cell.slice(0, maxSymbolsInCell) + '...' : cell;
cons... |
node_modules/react-icons/fa/envelope-square.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const FaEnvelopeSquare = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m30.9 2.9q2.6 0 4.5 1.8t1.9 4.6v21.4q0 2.7-1.9 4.6t-4.5 1.8h-21.5q-2.6 0-4.5-1.8t-1.9-4.6v-21.4q0-2.7 1.9-4.6t4.5-1.8h21.5z m0.7 23.5v-9.7q-0.7 0.8-1.5 1.2-0.7... |
tests/routes/Home/components/HomeView.spec.js | learningnewthings/funfunapp | import React from 'react'
import { HomeView } from 'routes/Home/components/HomeView'
import { render } from 'enzyme'
describe('(View) Home', () => {
let _component
beforeEach(() => {
_component = render(<HomeView />)
})
it('Renders a welcome message', () => {
const welcome = _component.find('h4')
... |
ReactTest/app/component/Nav.js | OlesiaBelmega/OlesiaBelmega.github.io | import React from 'react';
import {NavLink} from 'react-router-dom';
function Nav() {
return(
<ul className="nav">
<li>
<NavLink exact activeClassName='active' to='/'>
Home
</NavLink>
</li>
<li>
<NavLink ac... |
ui/ChangepasswordScreen.js | namalkanishka/Uranus | import React, { Component } from 'react';
import { Text, View, StyleSheet, Button, TextInput } from 'react-native';
import { Constants } from 'expo';
export default class App extends Component {
state = {
inputValue: "New Password",
inputValue1: "Confirm Password"
};
_handleTextChange = inputValue ... |
test/server/ModalSpec.js | AlexKVal/react-bootstrap | import React from 'react';
import {assert} from 'chai';
import Modal from '../../src/Modal.js';
describe('Modal', () => {
it('Should be rendered on the server side', function () {
let noOp = () => {};
assert.doesNotThrow(function renderOnServerSide() {
return React.renderToString(
<Modal onHid... |
Ethereum-based-Roll4Win/node_modules/react-bootstrap/es/Tooltip.js | brett-harvey/Smart-Contracts | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import classNames from 'classnames';
import React from 'react';
import isRequiredForA11y from 'prop-types-extra/lib/isRequiredForA11y';
import { createBootstrap... |
examples/todomvc/index.js | Creamov/redux | import React from 'react';
import App from './containers/App';
import 'todomvc-app-css/index.css';
React.render(
<App />,
document.getElementById('root')
);
|
src/components/topic/TopicContent.js | ahonn/v2exRN | import React, { Component } from 'react';
import {
View,
Text,
StyleSheet,
Linking
} from 'react-native';
import HtmlRender from 'react-native-html-render';
class TopicTitle extends Component {
render() {
const { topic } = this.props;
const content = topic.content_rendered;
const html = `<p>${co... |
src/js/components/icons/base/Indicator.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
tests/node_modules/sinon/test/rhino/env.rhino.1.2.js | adamkpurdy/mbys | /*
* Envjs core-env.1.2.13
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
*/
var Envjs = function(){
var i,
name,
override = function(){
for(i=0;i<arguments.length;i++){
... |
include/javascript/tiny_mce/plugins/legacyoutput/editor_plugin_src.js | chip1exchange/xchangecrm | /**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*
* This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u elements... |
vertex_ui/src/components/Thumbnail/Thumbnail.js | zapcoop/vertex | import React from 'react';
import { PropTypes } from 'prop-types';
import { SafeAnchor } from 'react-bootstrap';
import classNames from 'classnames';
const Thumbnail = props => {
const { src, alt, image, className, children, ...otherProps } = props;
const thumbnailClasses = classNames(className, 'thumbnail');
... |
node_modules/reactify/node_modules/react-tools/src/browser/ui/__tests__/ReactDOMIDOperations-test.js | mjibson/mog | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-co... |
ajax/libs/6to5/3.1.0/browser.js | LSleutsky/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return... |
dokomoforms/static/src/survey/js/components/baseComponents/__tests__/ResponseFields-tests.js | SEL-Columbia/dokomoforms | import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
// a noop function useful for passing into components that require it.
var noop = () => {};
describe('ResponseFields', () => {
var ResponseFields, ResponseField;
beforeEach(function() {
jest.... |
Bonobo.Git.Server/Scripts/jquery-1.4.4-vsdoc.js | dunderburken/Bonobo-Git-Server | /*
* This file has been commented to support Visual Studio Intellisense.
* You should not use this file at runtime inside the browser--it is only
* intended to be used only for design-time IntelliSense. Please use the
* standard jQuery library for all production use.
*
* Comment version: 1.4.4a
*/
/*!
* Note:... |
src/Weekday.js | saenglert/react-day-picker | import React, { Component } from 'react';
import PropTypes from 'prop-types';
export default class Weekday extends Component {
static propTypes = {
weekday: PropTypes.number,
className: PropTypes.string,
locale: PropTypes.string,
localeUtils: PropTypes.object,
weekdaysLong: PropTypes.arrayOf(Pro... |
internals/templates/containers/LanguageProvider/index.js | polymattic/nnsb-calculator | /*
*
* 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... |
app/javascript/components/RoundMap/Map/Legend/index.js | skyderby/skyderby | import React from 'react'
import styled from 'styled-components'
import { useSelector } from 'react-redux'
import LegendItem from './LegendItem'
import {
afterExitColor,
windowStartColor,
windowEndColor
} from 'components/RoundMap/constants'
const Legend = () => {
const { rangeFrom, rangeTo } = useSelector(st... |
stories/icon/icon_list.js | lanyuechen/dh-component | import React from 'react';
import json from './icon.json';
import { Icon } from '../../src';
const style = {
parent: {
display: 'flex',
flexWrap: 'wrap',
flexDirection: 'row'
},
child: {
width: 120,
height: 64,
display: 'flex',
flexDirection: 'column',
justifyContent: 'center'... |
ajax/libs/react/0.3.2/react.min.js | arkaindas/cdnjs | /**
* React v0.3.2
*
* Copyright 2013 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... |
ajax/libs/forerunnerdb/1.3.578/fdb-all.min.js | ahocevar/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... |
ajax/libs/react-router/0.10.1/react-router.min.js | calvinf/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... |
ajax/libs/react-instantsearch/4.1.0-beta.2/Core.js | cdnjs/cdnjs | /*! ReactInstantSearch 4.1.0-beta.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && ... |
react/src/pages/bymonth/UsageByMonth.js | VREMSoftwareDevelopment/bwmon | /*
* Copyright (C) 2010 - 2020 VREM Software Development <VREMSoftwareDevelopment@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http: //w... |
src/components/NavBlock.js | laere/scape | import React, { PropTypes } from 'react';
import { Link } from 'react-router';
const NavBlock = (props) => {
return (
<Link to={props.path}>
<div className="navBlock">
<div>
<img className="navBlock__image" src={props.img} alt="Runescape image"/>
</div>
<div className="nav... |
app/javascript/mastodon/features/ui/components/video_modal.js | yukimochi/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Video from 'mastodon/features/video';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Footer from 'mastodon/features/picture_in_picture/components/footer';
import... |
docs/app/Examples/elements/Step/Variations/StepExampleSizeMini.js | shengnian/shengnian-ui-react | import React from 'react'
import { Icon, Step } from 'shengnian-ui-react'
const StepExampleSizeMini = () => (
<Step.Group size='mini'>
<Step>
<Icon name='truck' />
<Step.Content>
<Step.Title>Shipping</Step.Title>
<Step.Description>Choose your shipping options</Step.Description>
... |
ajax/libs/forerunnerdb/1.3.357/fdb-all.js | emmy41124/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
ajax/libs/webshim/1.14.4-RC2/dev/shims/es6.js | jackdoyle/cdnjs | // ES6-shim 0.8.0 (c) 2013 Paul Miller (paulmillr.com)
// ES6-shim may be freely distributed under the MIT license.
// For more details and documentation:
// https://github.com/paulmillr/es6-shim/
webshim.register('es6', function($, webshim, window, document, undefined){
'use strict';
var isCallableWithoutNew = fun... |
Tutorial/debugging.js | bonniee/egghead-standalones | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View
} from 'react-native';
export default class Tutorial extends Component {
render() {
console.log('before the debug statement');
debugger;
console.log('after the debug statement');
console.log('a third statement');
retu... |
src/index.js | fckey/shapit | /* eslint-disable no-console */
import 'babel-polyfill';
import React from 'react';
import {render} from 'react-dom';
import configureStore from './store/configureStore';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
//require('./favicon.ic... |
src/EndorseContentLayout/EndorseContentLayout.spec.js | skyiea/wix-style-react | import React from 'react';
import EndorseContentLayout from './EndorseContentLayout.driver';
describe('EndorseContentLayout', () => {
let driver;
beforeEach(() => driver = new EndorseContentLayout());
it('should render', () => {
driver.when.created();
expect(driver.get.root().length).toBe(1);
});
... |
src/index.js | instructure/canvas-planner | /*
* Copyright (C) 2017 - 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... |
client/src/components/Spinner.js | BDiuguid/fantasy-fifa | import React from 'react';
import { branch, renderComponent } from 'recompose';
const Spinner = () => <div>SUPER LOADER!</div>;
const spinnerWhileLoading = isLoading =>
branch(isLoading, renderComponent(Spinner));
export default spinnerWhileLoading;
|
[4]. Project/DianShang/Component/Mine/SJMine.js | knightsj/RN_Demo | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
ScrollView
} from 'react-native';
var MyCell = require('../Common/SJCommonImageCell')
var HeaderView = require('./SJMineHeaderView');
var MiddleView = require('./SJMineMiddleView')
var Mine = React.createClass({
rend... |
src/svg-icons/action/android.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAndroid = (props) => (
<SvgIcon {...props}>
<path d="M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10zM3.5 8C2.67 8... |
Samples/Core.AppScriptPart/Core.AppScriptPartWeb/Scripts/jquery-1.9.1.min.js | biste5/PnP | /* NUGET: BEGIN LICENSE TEXT
jQuery v1.9.1
Microsoft grants you the right to use these script files for the sole purpose of either: (i) interacting through your browser with the Microsoft website, subject to the website's terms of use; or (ii) using the files as included with a Microsoft product subject to that produc... |
src/routes/error/index.js | ImanMh/react-proto | /**
* 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 ErrorPage from './Err... |
ajax/libs/yui/3.11.0pr1/event-custom-base/event-custom-base.js | honestree/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @mo... |
assets/jqwidgets/demos/react/app/menu/contextmenu/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxMenu from '../../../jqwidgets-react/react_jqxmenu.js';
class App extends React.Component {
componentDidMount() {
document.getElementById('container').addEventListener('mousedown', (event) => {
let rightClick = this.isRightC... |
theme/assets/global/plugins/owl-carousel/assets/js/jquery-1.9.1.min.js | premiumBH/bamaex | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
packages/material-ui-icons/src/OpenInNewSharp.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>
, 'OpenInNewSharp');
|
libs/F2/1.3.1/f2.no-easyXDM.js | itdos/baiducdnstatic | ;(function(exports) {
if (exports.F2 && !exports.F2_TESTING_MODE) {
return;
}
/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d... |
src/cms/preview-templates/post-preview.js | dalareo/dalareo.github.io | // @flow strict
import React from 'react';
import type { Entry, WidgetFor } from '../../types';
type Props = {
entry: Entry,
widgetFor: WidgetFor
};
const PostPreview = ({ entry, widgetFor }: Props) => {
const body = widgetFor('body');
const title = entry.getIn(['data', 'title']);
return (
<div classNa... |
app/src/App.js | WoundedPixels/us-population | // @flow
import React, { Component } from 'react';
import * as d3 from 'd3';
import { interpolateYlOrRd } from 'd3-scale-chromatic';
import ZoomableGroup from './components/ZoomableGroup/ZoomableGroup';
import CentroidCircleMap from './components/CentroidCircleMap/CentroidCircleMap';
import ColorScaleLegend from './c... |
src/svg-icons/notification/sd-card.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSdCard = (props) => (
<SvgIcon {...props}>
<path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 6h-2V4h2v4zm3 0h-2V4h2v4zm3 0h-2V4h2v4z"/>
</SvgIcon>
);
NotificationS... |
examples/with-react-intl/components/Nav.js | giacomorebonato/next.js | import React from 'react'
import {FormattedMessage} from 'react-intl'
import Link from 'next/link'
export default () => (
<nav>
<li>
<Link href='/'>
<a><FormattedMessage id='nav.home' defaultMessage='Home' /></a>
</Link>
</li>
<li>
<Link href='/about'>
<a><FormattedMessa... |
src/svg-icons/maps/rate-review.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsRateReview = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 14v-2.47l6.88-6.88c.2-.2.51-.2.71 0l1.77 1.77c.2.2.2.51 0 .71L8.47 14H6zm1... |
src/Components/Testimonials.js | cmbirk/cmbirk.io | import React, { Component } from 'react';
class Testimonials extends Component {
render() {
if(this.props.data){
var testimonials = this.props.data.testimonials.map(function(testimonials){
return <li key={testimonials.user}>
<blockquote>
<p>{testimonials.text}</p>
... |
src/Root.js | AamuLumi/EschVG | import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
import {Provider} from 'react-redux';
import Store from './reducers';
ReactDOM.render(
<Provider store={Store}><App/></Provider>, document.getElementById('app'));
|
src/helpers/connectData.js | captainill/react-redux-universal-hot-example | import React, { Component } from 'react';
import hoistStatics from 'hoist-non-react-statics';
/*
Note:
When this decorator is used, it MUST be the first (outermost) decorator.
Otherwise, we cannot find and call the fetchData and fetchDataDeffered methods.
*/
export default function connectData(fetchData, fe... |
src/components/DeveloperMenu.ios.js | AcademyPgh/Y1S2-ReplayFX-Schedule | import React from 'react';
import * as snapshot from '../utils/snapshot';
import {
TouchableOpacity,
ActionSheetIOS,
StyleSheet
} from 'react-native';
/**
* Simple developer menu, which allows e.g. to clear the app state.
* It can be accessed through a tiny button in the bottom right corner of the screen.
* ... |
js/App/Components/ExchangeOffer/SubViews/Block.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... |
client/src/components/employer/whyHireGrads.js | Siyanda-Mzam/hire-grad | import React from 'react';
const WhyHireGrads = () => {
return (
<div className="section">
<div className="container">
<div className="columns">
<div className="column is-7 is-half content">
<h1>Access a curated list of graduates</h1>
<br />
<h4><strong>Only the best</strong></h4... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.