path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
src/components/Header/Header.js | zmj1316/InfomationVisualizationCourseWork | /**
* 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 withStyles from 'isomorp... |
examples/complete/material/src/routes/Projects/components/NewProjectDialog/NewProjectDialog.js | prescottprue/react-redux-firebase | import React from 'react'
import PropTypes from 'prop-types'
import Button from '@material-ui/core/Button'
import Dialog from '@material-ui/core/Dialog'
import DialogTitle from '@material-ui/core/DialogTitle'
import DialogActions from '@material-ui/core/DialogActions'
import DialogContent from '@material-ui/core/Dialog... |
RNLearning/z-day04-Estore/Home/IMMainTop.js | ivanl001/ReactNative-Learning | /**
* Created by feng on 16/12/11.
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
ScrollView,
} from 'react-native';
var topData = require('../../z-LocalData/TopMenu.json').data;
var IMWindow = require('Dimensions').get('window');
var IMMainTopListVi... |
react/features/speaker-stats/components/SpeakerStatsItem.js | bgrozev/jitsi-meet | /* @flow */
import React, { Component } from 'react';
import TimeElapsed from './TimeElapsed';
/**
* The type of the React {@code Component} props of {@link SpeakerStatsItem}.
*/
type Props = {
/**
* The name of the participant.
*/
displayName: string,
/**
* The total milliseconds the ... |
src/parser/druid/guardian/modules/azeritetraits/MasterfulInstincts.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox';
import { calculateAzeriteEffects } from 'common/stats';
import { formatPercentage } from 'common/format';
import StatTrack... |
packages/cf-component-table/src/TableFoot.js | koddsson/cf-ui | import React from 'react';
import PropTypes from 'prop-types';
class TableFoot extends React.Component {
render() {
let className = 'cf-table__foot';
if (this.props.className.trim())
className += ' ' + this.props.className.trim();
return (
<tfoot className={className}>
{this.props.c... |
src/app.js | falmar/react-app | // Copyright 2016 David Lavieri. All rights reserved.
// Use of this source code is governed by a MIT License
// License that can be found in the LICENSE file.
import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import {Router, Route, browserHistory} from 'react-router';... |
src/router.js | bingqichen/cnode-react | import React from 'react';
import { Router, Route, IndexRedirect } from 'dva/router';
import App from './routes/App';
import TopicsList from './routes/TopicsList';
import TopicDetail from './routes/TopicDetail';
export const routes = (
<div>
<Route path="/" component={App}>
<IndexRedirect to="/topicslist"... |
examples/auth-with-shared-root/components/Login.js | stshort/react-router | import React from 'react'
import { withRouter } from 'react-router'
import auth from '../utils/auth.js'
const Login = React.createClass({
getInitialState() {
return {
error: false
}
},
handleSubmit(event) {
event.preventDefault()
const email = this.refs.email.value
const pass = this.r... |
server/dashboard/js/app.js | timofey-barmin/mzbench | import 'babel-core/polyfill';
import React from 'react';
import ReactDOM from "react-dom";
import MZBenchApp from './components/MZBenchApp.react';
import './utils/MZBenchRouter';
ReactDOM.render(
<MZBenchApp />,
document.getElementById('mzbench-container')
);
|
ajax/libs/react-native-web/0.13.18/exports/Touchable/index.js | cdnjs/cdnjs | /**
* 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.
*
*
* @format
*/
'use strict';
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var targ... |
node_modules/react-native/Libraries/GeoLocation/Geolocation.ios.js | aliv1/kinnect_git | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
generators/example/templates/script.js | cloudflare/generator-cf-module | import React from 'react';
import {render} from 'react-dom';
import Component from '../src/index';
class Application extends React.Component {
render() {
return (
<div>
<h1><%- description %> Example</h1>
<Component/>
</div>
);
}
}
render(<Application/>, document.getElementByI... |
test/helpers/shallowRenderHelper.js | jezzasan/taproom-react | /**
* 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'... |
src/app/MainView.js | anvaka/npmrank.vis | import React from 'react';
import createComponent from './lib/createComponent.js';
import HoverDetails from './HoverDetails.js';
import GlobalHelp from './GlobalHelp.js';
import NavButtons from './NavButtons.js';
export default createComponent(model => (
<div>
<h1>npm growth rate (top 1k packages)</h1>
{
... |
ajax/libs/vis/3.4.2/vis.js | eduardo-costa/cdnjs | /**
* vis.js
* https://github.com/almende/vis
*
* A dynamic, browser-based visualization library.
*
* @version 3.4.2
* @date 2014-09-12
*
* @license
* Copyright (C) 2011-2014 Almende B.V, http://almende.com
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file e... |
app/src/routes/LocationMostFollowedDevelopers.js | alpcanaydin/github-stats-for-turkey | import React from 'react';
import PropTypes from 'prop-types';
import UserCard from '../components/UserCard';
const LocationMostFollowedDevelopers = ({ name, data }) => (
<div>
<h1 className="title">En Çok Takipçisi Olan Geliştiriciler</h1>
<h2 className="subtitle">
{name} için en çok takipçisi olan g... |
ajax/libs/intl-tel-input/10.0.7/js/intlTelInput.js | him2him2/cdnjs | /*
* International Telephone Input v10.0.7
* https://github.com/jackocnr/intl-tel-input.git
* Licensed under the MIT license
*/
// wrap in UMD - see https://github.com/umdjs/umd/blob/master/jqueryPluginCommonjs.js
(function(factory) {
if (typeof define === "function" && define.amd) {
define([ "jquery" ]... |
ajax/libs/yui/3.7.1/event-custom-base/event-custom-base-debug.js | vdurmont/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... |
node_modules/react-icons/lib/io/android-share-alt.js | bengimbel/Solstice-React-Contacts-Project | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }... |
src/client/Spinner.js | JiLiZART/tmfeed-menu | import React from 'react'
export default class Spinner extends React.Component {
render () {
return (
<div className='spinner'>
Загрузка...
</div>
)
}
}
|
mlflow/server/js/src/model-registry/components/RegisterModelForm.js | mlflow/mlflow | import React from 'react';
import { Form, Select, Input } from 'antd';
import PropTypes from 'prop-types';
import './RegisterModelForm.css';
const { Option, OptGroup } = Select;
const { TextArea } = Input;
const CREATE_NEW_MODEL_LABEL = 'Create New Model';
// Include 'CREATE_NEW_MODEL_LABEL' as part of the value for... |
ajax/libs/rxjs/2.2.21/rx.compat.js | lucasls/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... |
app/assets/scripts/components/loading-message.js | openaq/openaq.github.io | 'use strict';
import React from 'react';
import c from 'classnames';
var LoadingMessage = React.createClass({
displayName: 'LoadingMessage',
propTypes: {
type: React.PropTypes.string,
children: React.PropTypes.object
},
getClasses: function () {
return c('data-loading-msg', {
'data-loading-... |
examples/react/src/players/FullControl.js | thangngoc89/react-howler | import React from 'react'
import ReactHowler from 'ReactHowler'
import raf from 'raf' // requestAnimationFrame polyfill
import Button from '../components/Button'
class FullControl extends React.Component {
constructor (props) {
super(props)
this.state = {
playing: false,
loaded: false,
loo... |
lib/components/swatches/SwatchesColor.js | OhJia/react-color | 'use strict';
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProp... |
public/js/components/SocialFamilyInformations.js | Vabrins/CadernetaDoIdoso | import React from 'react';
import $ from 'jquery';
import { Link } from 'react-router-dom';
import Snackbar from 'material-ui/Snackbar';
import Validation from './Validation';
class SocialFamilyInformation extends React.Component {
constructor (props) {
super(props);
this.state = {do_you_live_alone_1_b:'... |
src/components/Menu.js | sparkdesignsystem/spark-design-system | import React from 'react';
import propTypes from 'prop-types';
import InstallingSparkDocsMenu from './InstallingSparkDocsMenu';
import UsingSparkDocsMenu from './UsingSparkDocsMenu';
import PrinciplesSparkDocsMenu from './PrinciplesDocsMenu';
const Menu = ({ context }) => (
<div className="docs-menu">
{ context ... |
vendor/jquery/jquery.min.js | lafabbrique/lafabbrique_freelancer | /*! jQuery v1.12.4 | (c) jQuery Foundation | 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 window?window:this,fu... |
node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/browserify/node_modules/syntax-error/node_modules/esprima-six/test/3rdparty/jquery-1.7.1.js | jasonrhodes/node-static | /*!
* jQuery JavaScript Library v1.7.1
* 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... |
stories/ConvertToRawDraftContent/index.js | jpuri/react-draft-wysiwyg | /* @flow */
import React, { Component } from 'react';
import { EditorState, convertToRaw } from 'draft-js';
import { Editor } from '../../src';
class ConvertToRawDraftContent extends Component {
state = {
editorState: EditorState.createEmpty(),
}
onEditorStateChange: Function = (editorState) => {
this.... |
node_modules/react-icons/md/enhanced-encryption.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdEnhancedEncryption = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m26.6 26.6v-3.2h-5v-5h-3.2v5h-5v3.2h5v5h3.2v-5h5z m-11.8-16.6v3.4h10.4v-3.4c0-2.8-2.4-5.2-5.2-5.2s-5.2 2.4-5.2 5.2z m15.2 3.4c1.8 0 3.4 1.4 3.4 3.2v16.8c0 ... |
node_modules/semantic-ui-react/dist/es/collections/Form/FormDropdown.js | SuperUncleCat/ServerMonitoring | import _extends from 'babel-runtime/helpers/extends';
import React from 'react';
import { customPropTypes, getElementType, getUnhandledProps, META } from '../../lib';
import Dropdown from '../../modules/Dropdown';
import FormField from './FormField';
/**
* Sugar for <Form.Field control={Dropdown} />.
* @see Dropdow... |
ajax/libs/6to5/2.0.2/browser-polyfill.js | barkinet/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... |
packages/react-interactions/events/src/dom/Scroll.js | mjackson/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 type {
ReactDOMResponderEvent,
ReactDOMResponderContext,
PointerType,
} from 'shared/ReactDOMTypes';
impo... |
misc/jquery.js | hacktm15/pph |
/*!
* jQuery JavaScript Library v1.4.4
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.... |
src/registerServiceWorker.js | markthethomas/react-ssr-fiber | // In production, we register a service worker to serve assets from local cache.
// This lets the app load faster on subsequent visits in production, and gives
// it offline capabilities. However, it also means that developers (and users)
// will only see deployed updates on the "N+1" visit to a page, since previously... |
app/containers/AdminFournisseur/components/ProduitForm.js | Proxiweb/react-boilerplate | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { reduxForm, Field } from 'redux-form';
import MenuItem from 'material-ui/MenuItem';
import CustomSelectField from 'components/CustomSelectField';
import { TextField } from 'redux-form-material-ui';
import { Editor } from 'react-draft-... |
src/icons/radio.js | carmelopullara/react-feather | import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';
const Radio = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
return (
<svg
ref={ref}
xmlns="http://www.w3.org/2000/svg"
width={size}
height={size}
viewBox="0 0 24 24"
fill="no... |
src/Alert.js | tannewt/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Alert = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
onDismiss: React.PropTypes.func,
dismissAfter: React.PropTypes.number,
closeLabel: React.PropTypes.string
},
getD... |
examples/todos-with-undo/index.js | mjasinski5/redux | import React from 'react';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import App from './containers/App';
import todoApp from './reducers';
const store = createStore(todoApp);
const rootElement = document.getElementById('root');
React.render(
// The child must be wrapped in a funct... |
src/pages/podcasting/index.js | Vision100IT/v100it-template | import React from 'react';
import fm from 'front-matter';
import Index from '../../components';
import {Markdown} from '../../components/markdown';
import content from '../../content/podcasting.md';
const {body, attributes} = fm(content);
const Podcasting = () => (
<Index>
<div className="podcasting-wrapper">
<... |
node_modules/react-bootstrap/es/DropdownToggle.js | darklilium/Factigis_2 | 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 ... |
packages/my-joy-instances/src/containers/instances/snapshots.js | geek/joyent-portal | import React from 'react';
import forceArray from 'force-array';
import { connect } from 'react-redux';
import { stopSubmit, startSubmit, change, reset } from 'redux-form';
import { compose, graphql } from 'react-apollo';
import { Margin } from 'styled-components-spacing';
import find from 'lodash.find';
import reverse... |
pages/work/javascript-30.js | k97/node-slasher-app | import React from 'react';
import axios from 'axios';
import Layout from '../../components/Layout/index';
class LaDetail extends React.Component {
static getInitialProps({ query: workDetail }) {
return { workDetail };
}
constructor(props) {
super(props);
this.state = {
pId: null
};
}
... |
examples/todo/js/components/TodoList.js | almasakchabayev/relay | /**
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNES... |
js/graphiql.js | faassen/relaypy | import React from 'react';
import ReactDOM from 'react-dom';
import GraphiQL from 'graphiql';
import fetch from 'isomorphic-fetch';
import 'babel/polyfill';
import 'graphiql/graphiql.css';
function graphQLFetcher(graphQLParams) {
return fetch(window.location.origin + '/graphql', {
method: 'post',
headers: { ... |
src/components/changelog-list-item.js | getinsomnia/website | import React from 'react';
// There is no concept of typing in this project yet, so adding here for future reference.
// Convert (PR:123:abc) to anchors
// Returns type Replacements = { [string]: React.ReactNode };
// If there are no tags present, this will simply return an empty object
const findTagReplacements = (t... |
packages/react/src/components/UIShell/__tests__/SkipToContent-test.js | carbon-design-system/carbon-components | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { mount } from 'enzyme';
import SkipToContent from '../SkipToContent';
describe('SkipToContent', () => {
... |
ajax/libs/material-ui/5.0.0-beta.4/ToggleButtonGroup/ToggleButtonGroup.js | cdnjs/cdnjs | import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
const _excluded = ["children", "className", "color", "exclusive", "fullWidth", "onChange", "orientation", "size", "value"];
import * as React from 'react';
impo... |
packages/react-server-examples/code-splitting/components/Header.js | redfin/react-server | import React from 'react';
import {logging} from 'react-server';
import PropTypes from "prop-types";
const logger = logging.getLogger(__LOGGER__);
const Header = ({ headerText }) => {
logger.info("rendering the header");
return (
<div className="header">
React-Server { headerText }
</div>
);
};
Header.prop... |
src/renderer/pages/DashboardPage.js | MovieCast/moviecast-desktop | import React, { Component } from 'react';
import { withStyles } from '@material-ui/core';
const styles = {
root: {
flex: 1,
display: 'flex',
overflowY: 'auto',
},
inner: {
display: 'flex',
height: 100000
}
}
class DashboardPage extends Component {
render() {
const { classes } = ... |
app/javascript/mastodon/features/compose/components/poll_form.js | dunn/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import IconButton from 'mastodon/components/icon_butt... |
node_modules/react-bootstrap/es/DropdownButton.js | firdiansyah/crud-req | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from... |
docs/app/Examples/elements/Input/Variations/InputExampleActionDropdown.js | ben174/Semantic-UI-React | import React from 'react'
import { Dropdown, Input } from 'semantic-ui-react'
const options = [
{ text: 'This Page', value: 'page' },
{ text: 'This Organization', value: 'org' },
{ text: 'Entire Site', value: 'site' },
]
const InputExampleActionDropdown = () => (
<Input
action={<Dropdown basic floating op... |
ajax/libs/forerunnerdb/1.3.553/fdb-core+persist.js | tonytomov/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... |
examples/forms-material-ui/src/components/_common/Spinner.js | lore/lore-forms | import React from 'react';
import PropTypes from 'prop-types';
import { CircularProgress } from 'material-ui';
import _ from 'lodash';
import createReactClass from 'create-react-class';
export default createReactClass({
displayName: 'Spinner',
propTypes: {
display: PropTypes.func.isRequired,
children: Pro... |
src/components/App.spec.js | teacherdata/salaries | import React from 'react'
import { shallow } from 'enzyme'
import App from './App'
const setup = () => {
return shallow(<App />)
}
it('renders without crashing', () => {
setup()
})
it('renders with the correct attributes', () => {
const wrapper = setup()
const notice = <div className='App' />
expect(wrappe... |
ajax/libs/forerunnerdb/1.3.40/fdb-core+persist.min.js | BenjaminVanRyseghem/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... |
site/src/templates/docs.js | LastCallMedia/Mannequin | import React from 'react'
import Page from '../components/Page'
import PageWrapper from '../components/PageWrapper'
import MenuTree from '../components/MenuTree'
export default function Template(props) {
const { markdownRemark: post, allMarkdownRemark: nav } = props.data
const menu = buildMenu(nav.edges, post.head... |
packages/mui-icons-material/lib/esm/FlutterDashOutlined.js | oliviertassinari/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M11.07 11.7c.29-.39.81-.56 1.27-.37.17.07.32.18.43.33.22.28.25.59.22.85-.05.33-.25.63-.54.79 0 0-4.87 2.95-5.07 2.69s3.69-4.29 3.69-4.29zM22 10c0 2.5-1 3-1.... |
examples/tree-view/src/index.js | roth1002/redux | import React from 'react'
import { render } from 'react-dom'
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import reducer from './reducers'
import generateTree from './generateTree'
import Node from './containers/Node'
const tree = generateTree()
const store = createStore(reducer, tree)
r... |
src/svg-icons/av/repeat-one.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvRepeatOne = (props) => (
<SvgIcon {...props}>
<path d="M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4zm-4-2V9h-1l-2 1v1h1.5v4H13z"/>
</SvgIcon>
);
AvRepeatOne = pure(AvRepeatOne);
AvRepeatOn... |
Examples/ExampleAPI25/App.js | devstepbcn/react-native-android-wifi | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
Modal,
StyleSheet,
Text,
TextInput,
TouchableHighlight,
ScrollView,
View,
PermissionsAndroid
} from 'react-native';
import wifi from 'react-native-android-wifi';
... |
ajax/libs/vee-validate/2.0.0-rc.25/vee-validate.js | sashberd/cdnjs | /**
* vee-validate v2.0.0-rc.25
* (c) 2017 Abdelrahman Awad
* @license MIT
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.VeeValidate = factory());
}(this, (fun... |
site/pages/ExamplePage.js | Reggino/react-dnd | import React from 'react';
import Header from '../components/Header';
import PageBody from '../components/PageBody';
import SideBar from '../components/SideBar';
import { ExamplePages } from '../Constants';
export default class ExamplesPage {
render() {
return (
<div>
<Header/>
<PageBody ha... |
ajax/libs/react/15.3.2/react-with-addons.min.js | redmunds/cdnjs | /**
* React (with addons) v15.3.2
*
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the s... |
node_modules/@material-ui/core/es/NoSsr/NoSsr.js | pcclarke/civ-techs | import React from 'react';
import PropTypes from 'prop-types';
import { exactProp } from '@material-ui/utils';
const useEnhancedEffect = typeof window !== 'undefined' && process.env.NODE_ENV !== 'test' ? React.useLayoutEffect : React.useEffect;
/**
* NoSsr purposely removes components from the subject of Server Side R... |
src/Link/macOs/index.js | gabrielbull/react-desktop | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Margin, { marginPropTypes } from '../../style/margin';
import Padding, { paddingPropTypes } from '../../style/padding';
import FontSize, { fontSizePropTypes } from '../../style/fontSize';
import Dimension, { dimensionPropTypes } from '... |
app/javascript/mastodon/components/status.js | Toootim/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from './avatar';
import AvatarOverlay from './avatar_overlay';
import RelativeTimestamp from './relative_timestamp';
import DisplayName from './display_name';
import MediaGallery from... |
src/client/dashboardPlots.js | radiantgenomics/ngs-dashboard | import React from 'react';
import Flexbox from 'flexbox-react';
import { Line, Circle } from 'rc-progress';
let sortFunc = (a,b) => {
let match1 = a.match(/(\D+)(\d+)$/);
let match2 = b.match(/(\D+)(\d+)$/);
if (match1 && match2) {
if (match1[1] !== match2[1])
return (match1[1] > match2[1]? 1: -1);
... |
public/adminlte/bower_components/Flot/jquery.js | maycowa/GerenciamentoArquivosCI | /*!
* jQuery JavaScript Library v1.8.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time)
*/
(function(... |
vertex_ui/src/App.js | zapcoop/vertex | // @flow
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
type Props = {};
type State = {};
class App extends Component<Props, State> {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo"... |
ui/jq.ui.js | jekey/appframework | (function ($) {
var cache = [];
var objId=function(obj){
if(!obj.jqmCSS3AnimateId) obj.jqmCSS3AnimateId=$.uuid();
return obj.jqmCSS3AnimateId;
}
var getEl=function(elID){
if (typeof elID == "string" || elID instanceof String) {
return document.getElementById(e... |
src/components/forms/DashboardItem.js | slkjse9/slkjse9.github.io | import React from 'react';
import PropTypes from 'prop-types';
import Comment from 'react-icons/lib/go/comment';
import GitBranch from 'react-icons/lib/go/git-branch';
import GitPullRequest from 'react-icons/lib/go/git-pull-request';
import IssueClosed from 'react-icons/lib/go/issue-closed';
import IssueOpened from 'r... |
assets/jqwidgets/demos/react/app/loader/righttoleftlayout/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxLoader from '../../../jqwidgets-react/react_jqxloader.js';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
class App extends React.Component {
componentDidMount() {
this.refs.openLoader.on('click', () => {
... |
RNTester/js/XHRExampleOnTimeOut.js | negativetwelve/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
* ... |
app/src/components/CardBase.js | cs-cordero/mtgls | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import {removeReminderText} from '../util';
import {getCardColor} from '../util';
export default class CardBase extends React.Component {
static PropTypes = {
cardImg: PropTypes.string.isRequired,
ca... |
ajax/libs/angular-ui-select/0.8.4/select.js | shelsonjava/cdnjs | /*!
* ui-select
* http://github.com/angular-ui/ui-select
* Version: 0.8.3 - 2014-11-25T22:50:54.095Z
* License: MIT
*/
(function () {
"use strict";
var KEY = {
TAB: 9,
ENTER: 13,
ESC: 27,
SPACE: 32,
LEFT: 37,
UP: 38,
RIGHT: 39,
DOWN: 40,
SHIFT: 16,
CTRL: 17,
ALT: ... |
src/containers/App/index.js | blitze/fcc-react-recipebox | import React from 'react';
// material-ui
import { deepOrange500 } from 'material-ui/styles/colors';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import Layout from '../../components/Layout';
const muiTheme = getMuiTheme({
palette: {
... |
app/javascript/mastodon/features/community_timeline/index.js | foozmeat/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import {
refreshCommunityTimeline,
... |
web-server/v0.4/src/pages/Exception/403.js | atheurer/pbench | import React from 'react';
import { Link } from 'dva/router';
import Exception from 'ant-design-pro/lib/Exception';
export default () => (
<Exception
type="403"
desc={"Sorry, you don't have access to this page."}
style={{ minHeight: 500, height: '80%' }}
linkElement={Link}
/>
);
|
src/app/keyring/components/AdvKeyGenOptions.js | mailvelope/mailvelope | /**
* Copyright (C) 2016 Mailvelope GmbH
* Licensed under the GNU Affero General Public License version 3
*/
import React from 'react';
import PropTypes from 'prop-types';
import * as l10n from '../../../lib/l10n';
import moment from 'moment';
import {KeyringOptions} from '../KeyringOptions';
import DatePicker from... |
webpack/scenes/ModuleStreams/Details/Profiles/TableSchema.js | adamruzicka/katello | import React from 'react';
import { translate as __ } from 'foremanReact/common/I18n';
import {
headerFormatter,
cellFormatter,
} from '../../../../move_to_foreman/components/common/table';
import ProfileRpmsCellFormatter from './ProfileRpmsCellFormatter';
const TableSchema = [
{
property: 'name',
header... |
lib/components/analysis/title.js | conveyal/scenario-editor | // @flow
import Icon from '@conveyal/woonerf/components/icon'
import message from '@conveyal/woonerf/message'
import React from 'react'
import {Button} from '../buttons'
type Props = {
abortFetchTravelTimeSurface: () => void,
createRegionalAnalysis: () => void,
disableCreateRegionalAnalysis: boolean,
disableF... |
app/javascript/flavours/glitch/features/compose/components/text_icon_button.js | im-in-space/mastodon | import React from 'react';
import PropTypes from 'prop-types';
const iconStyle = {
height: null,
lineHeight: '27px',
width: `${18 * 1.28571429}px`,
};
export default class TextIconButton extends React.PureComponent {
static propTypes = {
label: PropTypes.string.isRequired,
title: PropTypes.string,
... |
src/Elevation/Elevation.js | gutenye/react-mc | // @flow
import React from 'react'
import cx from 'classnames'
import type { PropsC } from '../types'
class Elevation extends React.Component {
props: {
z: number | string,
} & PropsC
static defaultProps = {
component: 'div',
}
render() {
const { component: Component, z, className, ...rest } = ... |
shared/tests/components.spec.js | mahfuzsust/mernt | import expect from 'expect';
import TestUtils from 'react-addons-test-utils';
import PostListItem from '../components/PostListItem/PostListItem';
import PostCreateView from '../components/PostCreateView/PostCreateView';
import React from 'react';
import expectJSX from 'expect-jsx';
import { Link } from 'react-router';
... |
app/components/__tests__/SummaryRing.js | LeagueDevelopers/lol-skins-viewer | import React from 'react';
import { shallow, mount } from 'enzyme';
import SummaryRing from '../SummaryRing';
describe('<SummaryRing />', () => {
it('should render correctly', () => {
const labelWrapper = shallow(
<SummaryRing
className="test"
value={9999}
onClick={() => false}
... |
files/rxjs/2.2.15/rx.lite.compat.js | MenZil/jsdelivr | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'u... |
packages/mui-icons-material/lib/PhonelinkRingRounded.js | oliviertassinari/material-ui | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
src/components/lists/TransactionListItem.js | whphhg/vcash-electron | import React from 'react'
import { observer } from 'mobx-react'
import moment from 'moment'
const TransactionListItem = observer(props => {
const tx = props.wallet.tx.get(props.search.tx[props.index])
return (
<div
className={
'list-item' +
(props.index % 2 === 0 ? ' even' : '') +
... |
ajax/libs/x-editable/1.4.4/jqueryui-editable/js/jqueryui-editable.js | ZDroid/cdnjs | /*! X-editable - v1.4.4
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
* http://github.com/vitalets/x-editable
* Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */
/**
Form with single input element, two buttons and two states: normal/loading.
Applied as jQuery method to DIV tag (not to for... |
app/javascript/mastodon/components/poll.js | theoria24/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import classNames from 'classnames';
import Motion fr... |
app/javascript/mastodon/features/ui/components/boost_modal.js | clworld/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 '../../../components/button';
import StatusContent from '../../../components/status_content';
import Av... |
src/containers/Root.js | thangngoc89/react-base | import React from 'react'
import { Provider } from 'react-redux'
import { Router } from 'react-router'
export default class Root extends React.Component {
static propTypes = {
history: React.PropTypes.object.isRequired,
routes: React.PropTypes.element.isRequired,
store: React.PropTypes.object.isRequired
... |
src/index.js | buildbreakdo/scoped-css | /**
* Copyright 2016-present, Joshua Robinson
* All rights reserved.
*
* This source code is licensed under the MIT license.
*
*/
import React, { Component, cloneElement, isValidElement } from 'react';
import adler32 from 'react-lib-adler32';
const __DEV__ = (process.env.NODE_ENV !== 'production');
class Style... |
lib/components/RouterLink.js | rodrigocipriani/br-react-utils | function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
import React from 'react';
// import {Link} from 'react-router';
// import { Link } from 'react-ro... |
src/Main/DiscordButton.js | mwwscott0/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import DiscordLogo from './Images/Discord-Logo+Wordmark-White.svg';
const DiscordButton = ({ style }) => (
<a
className="btn discord"
role="button"
href="https://discord.gg/AxphPxU"
style={style}
>
<img src={DiscordLogo} alt="Disco... |
app/components/QuickButton.js | jcasner/EarthDawnDiceRoller | import React from 'react';
import { Text, View } from 'react-native';
import Button from './Button';
import { containerStyles, textStyles } from './styles';
const QuickButton = props =>
<View style={containerStyles.container}>
<Text style={textStyles.quickButton}>{props.name}</Text>
<Button handlePress={pro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.