path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/routes/request/index.js | IssaTan1990/antd-admin | import React from 'react'
import styles from './index.less'
import Mock from 'mockjs'
import { request, config } from '../../utils'
import {
Row,
Col,
Card,
Select,
Input,
Button,
} from 'antd'
const { api, baseURL } = config
const { dashboard, users, userLogin, user } = api
const requestOptions = [
{
... |
src/components/Home.js | laere/diversion-2 | import React, { Component } from 'react';
import Heading from '../components/Heading';
import MainContent from '../components/MainContent';
export default class HomeContainer extends Component {
render() {
return (
<MainContent>
<Heading style="homeHeader header" header="Home"/>
<div classN... |
components/pages/credits.js | dbow/89-steps | import React from 'react';
class Credits extends React.Component {
render() {
return (
<div>
<h2>Credits</h2>
<p>This will be good!!</p>
</div>
);
}
}
export default Credits;
|
demo/src/components/App/components/GitHub/GitHub.js | YingyuWu/react-autosuggest-fix-ios-scroll-issue | import styles from './GitHub.less';
import React from 'react';
import PropTypes from 'prop-types';
const GitHub = props => {
const { user, repo } = props;
return (
<a
className={styles.corner}
href={`https://github.com/${user}/${repo}`}
target="_blank"
rel="noopener noreferrer"
>
... |
src/js/components/teamPicker.js | alexzherdev/foosballtracker | import React from 'react';
import { array, func } from 'prop-types';
import Picker from './picker';
const TeamPicker = ({teams, onTeamSelect, getLabel}) => {
const items = [];
let played = false, neverPlayed = false;
teams.forEach((t) => {
if (t.played > 0 && !played) {
items.push({ isHeader: true, ... |
node_modules/native-base/Components/vendor/react-native-scrollable-tab-view/index.js | tedsf/tiptap | 'use strict';
import React from 'react';
import NativeBaseComponent from '../../Base/NativeBaseComponent';
import {
Dimensions,
Text,
View,
TouchableOpacity,
PanResponder,
Animated,
} from 'react-native';
import DefaultTabBar from './DefaultTabBar';
var deviceWidth = Dimensions.get('window').width;
expor... |
ajax/libs/vue-meta/2.2.2/vue-meta.esm.js | cdnjs/cdnjs | /**
* vue-meta v2.2.2
* (c) 2019
* - Declan de Wet
* - Sébastien Chopin (@Atinux)
* - All the amazing contributors
* @license MIT
*/
import deepmerge from 'deepmerge';
var version = "2.2.2";
// store an id to keep track of DOM updates
var batchId = null;
function triggerUpdate(vm, hookName) {
// if an upda... |
src/containers/NotFoundPage/NotFoundPage.js | nice00xt/React-user-app | import React, { Component } from 'react';
export class NotFoundPage extends Component {
render () {
return (
<div>
<span>page no found</span>
</div>
);
}
}
|
libraries/isleen/bootstrap/assets/jcrop/js/jquery.min.js | gdbhosale/vtigerTemplate | /*! jQuery v1.9.0 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license */(function(e,t){"use strict";function n(e){var t=e.length,n=st.type(e);return st.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Tt[e]={};return st.each(e.matc... |
app/App.js | cerebral/cerebral-reference-app | import React from 'react';
import {Decorator as Cerebral} from 'cerebral-view-react';
import Course from './components/Course';
import Home from './components/Home';
import Courses from './components/Courses';
import Sessions from './components/Sessions';
import MainAssignment from './components/MainAssignment/MainAssi... |
src/js/components/Nav.js | diajelovic/react-test | import React from 'react';
import NavLink from './NavLink';
export default class Nav extends React.Component {
static propTypes = {
name: React.PropTypes.string,
};
constructor(props) {
super(props);
}
render() {
return (
<nav>
<ul className="nav nav-justified">
<li><Na... |
clients/packages/admin-client/src/components/markdown/preformatted.js | nossas/bonde-client | import PropTypes from 'prop-types'
import React from 'react'
var styles = require('exenv').canUseDOM ? require('./preformatted.scss') : {}
const Preformatted = ({ children, backgroundColor, color }) => (
<pre className={styles.preformatted} style={{ backgroundColor, color }}>
<code>
{children}
</code>... |
src/Input/Textarea.js | AndriusBil/material-ui | // @flow
import React from 'react';
import classnames from 'classnames';
import debounce from 'lodash/debounce';
import EventListener from 'react-event-listener';
import withStyles from '../styles/withStyles';
const rowsHeight = 24;
export const styles = {
root: {
position: 'relative', // because the shadow ha... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/JsonInclusion.js | Clearcover/web-build | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { abstract } from './assets/abstract.json';
export default () => <summary id="feature-json-inclusion"... |
django/webcode/webcode/frontend/node_modules/react-bootstrap/es/Badge.js | OpenKGB/webcode | 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/react-devtools-shared/src/devtools/views/Components/Element.js | trueadm/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 {Fragment, useContext, useMemo, useState} from 'react';
import Store from 'reac... |
src/containers/challenges/ChallengeView.js | OlivierVillequey/hackathon | /**
* Challenge View Screen
* - The individual challenge screen
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
View,
Image,
ScrollView,
StyleSheet,
} from 'react-native';
// Cons... |
release/darwin-x64/shokushu-darwin-x64/shokushu.app/Contents/Resources/app/app/index.js | y-takey/shokushu | import { ipcRenderer } from 'electron';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router } from 'react-router';
import routes from './routes';
import configureStore from './store/configureStore';
import { exportJSON, importJSON } from './actions/Home... |
amartonline-ui/src/components/header/header.js | gruberchris/AmartOnline | import React, { Component } from 'react';
import { Navbar, Nav, NavItem, NavDropdown, MenuItem, Image, Button, Glyphicon, Badge } from 'react-bootstrap';
import { LinkContainer } from 'react-router-bootstrap';
import { NavLink } from 'react-router-dom';
class Header extends Component {
constructor(props) {
super... |
ajax/libs/vue-chartjs/2.3.5/vue-chartjs.min.js | joeyparrish/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VueChartJs=t():e.VueChartJs=t()}(this,function(){return function(e){function t(a){if(n[a])return n[a].exports;var r=n[a]={exports:{},id:a,loaded:!1};ret... |
demo/build/react-syntax-highlighter_languages_highlight_python.js | conorhastings/react-syntax-highlighter | (window["webpackJsonp"] = window["webpackJsonp"] || []).push([["react-syntax-highlighter_languages_highlight_python"],{
/***/ "./node_modules/highlight.js/lib/languages/python.js":
/*!***********************************************************!*\
!*** ./node_modules/highlight.js/lib/languages/python.js ***!
\*****... |
src/containers/Settings/index.js | skyuplam/mark-six-betting-game | import React from 'react';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import DataGrid from '../../components/DataGrid';
import { injectIntl } from 'react-intl';
import {
selectSettings,
selectGameSettings,
} from './selectors';
import {
fetchSettings,
} from './act... |
app/components/footer/__tests__/footer-test.js | aaliang/ux-tellerum | 'use strict';
jest.dontMock('../footer');
//jest.dontMock('../../../routes/router');
describe('Footer', function() {
it('sets class name', function() {
var React = require('react/addons');
//var Router = require('react-router');
var Footer = require('../footer');
var TestUtils = React.addons.TestUt... |
geonode/contrib/monitoring/frontend/src/components/organisms/alert-setting/index.js | MapStory/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router';
import HR from '../../atoms/hr';
class AlertsSetting extends React.Component {
static propTypes = {
alert: PropTypes.object.isRequired,
autoFocus: PropTypes.bool,
}
static defaultProps = {
autoFocus:... |
javascript/User/ReferendumResult.js | AppStateESS/election | 'use strict'
import React from 'react'
import PropTypes from 'prop-types'
import ReferendumResultRow from './ReferendumResultRow'
import Panel from '../Mixin/Panel'
const ReferendumResult = (props) => {
var rows = props.vote.map(function (value, key) {
return <ReferendumResultRow key={key} {...value} resetStage=... |
ajax/libs/forerunnerdb/1.3.676/fdb-core.js | froala/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/huge-apps/routes/Course/components/Nav.js | etiennetremel/react-router | import React from 'react';
import { Link } from 'react-router';
import AnnouncementsRoute from '../routes/Announcements';
import AssignmentsRoute from '../routes/Assignments';
import GradesRoute from '../routes/Grades';
const styles = {};
styles.nav = {
borderBottom: '1px solid #aaa'
};
styles.link = {
display: ... |
wrappers/md.js | simonrose121/portfolio | import React from 'react'
import 'css/markdown-styles.css'
import DocumentTitle from 'react-document-title'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
router: React.PropTypes.object,
}
},
render () {
const post = this.props.route.page.data
r... |
app/components/Footer/Copyright.js | j921216063/chenya | import styled from 'styled-components';
import React from 'react';
const Wrapper = styled.div`
color: #999;
margin-top: 1.5em;
text-align: center;
font-size: 0.9em;
`;
const Li = styled.li`
border-left: solid 1px #e0e0e0;
display: inline-block;
padding: 0 0 0 1em;
margin: 0 0 0 1em;
&:first-child {
... |
ajax/libs/rxjs/2.2.17/rx.lite.js | wackyapples/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,
'u... |
src/browser/ui/getReactRootElementInContainer.js | jasonwebster/react | /**
* Copyright 2013-2014, 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.
*
* @providesModule ... |
console-ui/src/pages/ConfigurationManagement/HistoryRollback/HistoryRollback.js | alibaba/nacos | /*
* Copyright 1999-2018 Alibaba Group Holding Ltd.
*
* 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 applica... |
ajax/libs/boardgame-io/0.47.2/boardgameio.es.js | cdnjs/cdnjs | import { nanoid } from 'nanoid';
import { applyMiddleware, compose, createStore } from 'redux';
import produce from 'immer';
import isPlainObject from 'lodash.isplainobject';
import { applyPatch, createPatch } from 'rfc6902';
import { stringify, parse } from 'flatted';
import React from 'react';
import PropTypes from '... |
ajax/libs/core-js/0.9.1/library.js | tholu/cdnjs | /**
* Core.js 0.9.1
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(undefined){
'use strict';
var __e = null, __g = null;
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******... |
app/javascript/mastodon/features/compose/components/reply_indicator.js | h-izumi/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from '../../../components/avatar';
import IconButton from '../../../components/icon_button';
import DisplayName from '../../../components/display_name';
import emojify from '../../../... |
src/Fade.js | simonliubo/react-ui | import React from 'react';
import Transition from './Transition';
class Fade extends React.Component {
render() {
return (
<Transition
{...this.props}
className='fade'
enteredClassName='in'
enteringClassName='in'
>
{this.props.children}
</Transition>
... |
frontend/src/components/common/UseButton.js | icedcoffeeallday/CostPers | import React from 'react';
import {
View,
Text,
TouchableOpacity
} from 'react-native';
import Icon from 'react-native-vector-icons/MaterialIcons';
const UseButton = ({onPress, children}) => {
return(
<View style={styles.buttonContainer}>
<TouchableOpacity
onPress={onPress}
>
... |
client/modules/core/components/.stories/poll.js | thancock20/voting-app | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { withKnobs, text, boolean, number, object } from '@kadira/storybook-addon-knobs';
import { setComposerStub } from 'react-komposer';
import Poll from '../poll.jsx';
storiesOf('core.Poll', module)
.addDecorator(withKnobs)
.add(... |
test/ColSpec.js | jesenko/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ReactDOM from 'react-dom';
import Col from '../src/Col';
describe('Col', () => {
it('Should set Offset of zero', () => {
let instance = ReactTestUtils.renderIntoDocument(
<Col xsOffset={0} smOffset={0} mdOffset={0} lg... |
modules/IndexLink.js | zipongo/react-router | import React from 'react'
import Link from './Link'
/**
* An <IndexLink> is used to link to an <IndexRoute>.
*/
const IndexLink = React.createClass({
render() {
return <Link {...this.props} onlyActiveOnIndex={true} />
}
})
export default IndexLink
|
src/containers/Marketing/Marketing.js | kingpowerclick/kpc-web-backend | import React, { Component } from 'react';
import classNames from 'classnames';
import { FilterPage,
FilterActionSelect,
FilterId,
MarketingCampaign,
} from 'components';
import { Tabs, Tab } from 'react-bootstrap';
export default class Marketing extends Component {
render() {
const styles = require('./mar... |
src/components/Pagination/Pagination.js | dovydasvenckus/time-tracker-web | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { range } from 'underscore';
import PageNumberButton from './PageNumberButton';
class Pagination extends Component {
static propTypes = {
totalPages: PropTypes.number.isRequired,
activePage: PropTypes.number.isRequired,
... |
woothemes-FlexSlider-83b3cae/bower_components/jquery/src/event.js | sedovdmitry/startpage | define([
"./core",
"./var/strundefined",
"./var/rnotwhite",
"./var/hasOwn",
"./var/slice",
"./event/support",
"./core/init",
"./data/accepts",
"./selector"
], function( jQuery, strundefined, rnotwhite, hasOwn, slice, support ) {
var rformElems = /^(?:input|select|textarea)$/i,
rkeyEvent = /^key/,
rmouseEve... |
app/jsx/canvas_cropper/cropper.js | venturehive/canvas-lms | /*
* Copyright (C) 2016 - 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... |
stories/dialogs/skip-backup.stories.js | LN-Zap/zap-desktop | import React from 'react'
import { storiesOf } from '@storybook/react'
import SkipBackupsDialog from 'components/Onboarding/Steps/components/SkipBackupsDialog'
import { Window } from '../helpers'
storiesOf('Dialogs', module)
.addDecorator(story => <Window>{story()}</Window>)
.add('Skip Backups', () => (
<SkipB... |
lib/direct-node.min.js | lisb/direct-js | !function(e,t){"use strict";function s(){return Va.__string_rec(this,"")}var n={};function i(e,t){function n(){}n.prototype=e;var i=new n;for(var r in t)i[r]=t[r];return t.toString!==Object.prototype.toString&&(i.toString=t.toString),i}var r=e.DirectAPI=function(){this.eventEmitter=new o,require("unorm")};(n.DirectAPI=... |
__tests__/components/Carousel-test.js | linde12/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import renderer from 'react-test-renderer';
import Carousel from '../../src/js/components/Carousel';
// needed because this:
// https://github.com/facebook/jest/issues/1353
jest.mock('react-dom');
describe('Carousel', ()... |
src/classic/class/__tests__/ReactClassMixin-test.js | kevinrobinson/react | /**
* 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... |
src/common/components/WhiteboardContainer/components/WhiteboardInput/WhiteboardInput.js | FranciscoHerrera/floggit-whiteboard-client | import React from 'react';
import whiteboardInputProps from './WhiteboardInput.props';
import { COLOR_1, COLOR_2, COLOR_3, COLOR_4, COLOR_NAME_1, COLOR_NAME_2, COLOR_NAME_3, COLOR_NAME_4 } from '../constants';
const WhiteboardInput = (props) => {
let title;
let infoList;
let authorName;
let color;
let visib... |
js/App/Components/SensorDetails/SubViews/SmoothingDropDown.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
*... |
app/javascript/mastodon/components/dropdown_menu.js | kagucho/mastodon | import React from 'react';
import Dropdown, { DropdownTrigger, DropdownContent } from 'react-simple-dropdown';
import PropTypes from 'prop-types';
export default class DropdownMenu extends React.PureComponent {
static contextTypes = {
router: PropTypes.object,
};
static propTypes = {
icon: PropTypes.st... |
ajax/libs/react-bootstrap/0.23.5/react-bootstrap.min.js | samthor/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactBootstrap=t(require("react")):e.ReactBootstrap=t(e.React)}(this,function(e){return function(e){function t(n){if(r[n])return ... |
node_modules/react-native/Libraries/Modal/Modal.js | odapplications/WebView-with-Lower-Tab-Menu | /**
* 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... |
public/react/src/login.js | theorye/feathers-chat-rethinkdb | import React, { Component } from 'react';
import client from './feathers';
export default class Login extends Component {
constructor(props) {
super(props);
this.state = {};
}
updateField(name, ev) {
this.setState({ [name]: ev.target.value });
}
login() {
const { email, password } = this.st... |
src/app/components/Pages/Done/index.js | allangrds/Pagarme-Front-Jr | import React, { Component } from 'react';
import styles from './Done.styl';
import styles_others from './../../../../assets/css/others/classes.styl';
import styles_checkout from './../Checkout/Checkout.styl';
import Numeral from './../../../helpers/Numeral';
import { store, actions } from './../../../flux';
import {
... |
lib/attrEditable/Factory.js | m-cuttlefish/react-mhoc | import React from 'react'
import ReactDOM from 'react-dom'
import EditableView from './EditableView'
let refsContainer = {
// [groupName]: refContainer
}
export function getContainer() {
let wrap = document.querySelector('.' + 'attr-editable-wrap')
if (!wrap) {
wrap = document.createElement('div')
wrap.... |
frontend/src/components/profile/feed/posts-list/post-preview.js | 1905410/Misago | /* jshint ignore:start */
import React from 'react';
import * as random from 'misago/utils/random';
export default function(props) {
return (
<li className="post post-infeed">
<div className="post-border">
<div className="post-body">
<div className="panel panel-default panel-post">
... |
__tests__/index.ios.js | CarterTsai/ListApp | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
sites/all/modules/jquery_update/replace/jquery/1.10/jquery.min.js | MitchRivet/morrell_consulting | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.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.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
Console/app/node_modules/rc-slider/es/common/Steps.js | RisenEsports/RisenEsports.github.io | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _extends from 'babel-runtime/helpers/extends';
import React from 'react';
import classNames from 'classnames';
import warning from 'warning';
var calcPoints = function calcPoints(vertical, marks, dots, step, min, max) {
warning(dots ? step > ... |
frontend/tests/components/loader.js | 1905410/Misago | import assert from 'assert';
import React from 'react'; // jshint ignore:line
import Loader from 'misago/components/loader'; // jshint ignore:line
import * as testUtils from 'misago/utils/test-utils';
describe("Loader", function() {
afterEach(function() {
testUtils.unmountComponents();
});
it("renders", fun... |
examples/huge-apps/components/App.js | nauzethc/react-router | import React from 'react';
import Dashboard from './Dashboard';
import GlobalNav from './GlobalNav';
class App extends React.Component {
render() {
var courses = COURSES;
return (
<div>
<GlobalNav />
<div style={{ padding: 20 }}>
{this.props.children || <Dashboard courses={co... |
src/js/components/VideoSphere.js | FlexingDream/start_screen | import React from 'react';
import {Animation, Entity, Scene} from 'aframe-react';
import styleParser from 'style-attr';
/**
* Stringify components passed as an object.
*
* {primitive: box; width: 10} to 'primitive: box; width: 10'
*/
function serializeComponents (props) {
let serialProps = {};
Object.keys(pro... |
app/src/containers/Repository/index.js | kshvmdn/github-list | import React, { Component } from 'react';
import axios from 'axios';
import './index.css';
import ring from './../../media/ring.svg';
import PageHead from './../../components/PageHead';
import Results from './../../components/Results';
const BASE_URL = 'http://0.0.0.0:3001/api/1.0'
class Repository extends Component... |
ui/src/components/RollupRuleEditor.js | m3db/m3ctl | // Copyright (c) 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... |
src/React/Widgets/ColorByWidget/AdvancedView.js | Kitware/paraviewweb | import React from 'react';
import PropTypes from 'prop-types';
import style from 'PVWStyle/ReactWidgets/ColorByWidget.mcss';
import PresetListWidget from '../PresetListWidget';
import ScalarRangeWidget from '../ScalarRangeWidget';
import PieceWiseFunctionEditorWidget from '../PieceWiseFunctionEditorWidget';
import Pi... |
ajax/libs/yui/3.8.1/scrollview-base/scrollview-base-coverage.js | maruilian11/cdnjs | if (typeof _yuitest_coverage == "undefined"){
_yuitest_coverage = {};
_yuitest_coverline = function(src, line){
var coverage = _yuitest_coverage[src];
if (!coverage.lines[line]){
coverage.calledLines++;
}
coverage.lines[line]++;
};
_yuitest_coverfunc = functio... |
templates/rubix/redux/redux-seed/src/routes.js | jeffthemaximum/jeffline | import React from 'react';
import classNames from 'classnames';
import { IndexRoute, Route } from 'react-router';
import { Grid, Row, Col, MainContainer } from '@sketchpixy/rubix';
/* Common Components */
import Sidebar from './common/sidebar';
import Header from './common/header';
import Footer from './common/foote... |
test/FadeMixinSpec.js | wjb12/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import FadeMixin from '../src/FadeMixin';
let Component;
describe('FadeMixin', () => {
beforeEach(() => {
Component = React.createClass({
mixins: [ FadeMixin ],
render() {
return (
<div {...this.prop... |
src/renderers/dom/shared/__tests__/ReactDOMComponent-test.js | lennerd/react | /**
* 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... |
simpleJsonTree/scripts/jquery-1.7.2.js | gettyimages/SimpleJsonTree | /*!
* 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.... |
src/svg-icons/content/unarchive.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentUnarchive = (props) => (
<SvgIcon {...props}>
<path d="M20.55 5.22l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.15.55L3.46 5.22C3.17 5.57 3 6.01 3 6.5V19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.4... |
node_modules/react/lib/ReactTransitionGroup.js | maxdobeck/meteor-simple-todos | /**
* 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 same directory.
*
* @providesModu... |
components/drawer/Drawer.js | jasonleibowitz/react-toolbox | import React from 'react';
import PropTypes from 'prop-types';
import { themr } from 'react-css-themr';
import classnames from 'classnames';
import { DRAWER } from '../identifiers.js';
import ActivableRenderer from '../hoc/ActivableRenderer.js';
import InjectOverlay from '../overlay/Overlay.js';
const factory = (Overl... |
Paths/React/06.Styling React Components/3-react-styling-components-m3-exercise-files/Before/src/index.js | phiratio/Pluralsight-materials | import React from 'react'
import ReactDOM from 'react-dom'
import DriftApp from './app'
ReactDOM.render(<DriftApp />, document.getElementById('app'))
|
src/components/fileTree/file.js | fmsouza/wcode | import React from 'react';
import { inject, observer } from 'mobx-react';
import * as Action from 'common/actions';
import Icon from '../icon';
import Menu from './fileMenu';
@inject('fileBuffer')
@observer
export default class ItemFile extends React.Component {
state = { name: '', path: '', type: '', abdicate: f... |
webui-react/src/App.js | zhewang/topovis | import React, { Component } from 'react';
import './App.css';
import '../node_modules/react-vis/dist/style.css';
import {XYPlot, LineSeries, MarkSeries, VerticalGridLines, HorizontalGridLines, XAxis, YAxis} from 'react-vis';
//import {csv} from 'd3-request'
import * as axios from 'axios'
import 'bootstrap/dist/css/bo... |
src/components/Weui/mediabox/mediabox_header.js | ynu/res-track-wxe | /**
* Created by n7best
*/
import React from 'react';
import classNames from 'classnames';
export default class MediaBoxHeader extends React.Component {
render() {
const {children, className, ...others} = this.props;
const clz = classNames({
weui_media_hd: true
}, className... |
src/containers/ContactEdit.js | jp7internet/react-apz | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import { contactEdit } from '../actions';
import ContactForm from './ContactForm';
class ContactEdit extends Component {
state = {
contact: {}
}
componentWillMount() {
const { ... |
tools/testUtils.js | brnewby602/kinects-it | import React from 'react';
module.exports = {
stubRouterContext: (Component, props, stubs) => {
function RouterStub() { }
Object.assign(RouterStub, {
makePath() {},
makeHref() {},
transitionTo() {},
replaceWith() {},
goBack() {},
getCurrentPath() {},
getCurrentRoute... |
app/javascript/mastodon/features/compose/components/warning.js | foozmeat/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
export default class Warning extends React.PureComponent {
static propTypes = {
message: PropTypes.node.isRequired,
};
render () {
const { mes... |
src/parser/druid/restoration/modules/talents/Cultivation.js | FaideWW/WoWAnalyzer | import React from 'react';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import { formatPercentage } from 'common/format';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import SPELLS from 'common/SPELLS';
import Analyzer from 'parser/core/Analyzer'... |
awsmobilecognitocustomui/src/components/TextFormField.js | adrianhall/blog-code | import React from 'react';
import { StyleSheet, Text, TextInput, View, TouchableOpacity } from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
const styles = StyleSheet.create({
container: {
paddingTop: 4,
paddingLeft: 8,
paddingRight: 8,
paddingBottom: 4
... |
src/encoded/static/components/static-pages/placeholders/HiGlassEmbeddedInstance.js | hms-dbmi/fourfront | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import { console, object, ajax } from '@hms-dbmi-bgm/shared-portal-components/es/components/util';
import { BasicUserContentBody, ExpandableStaticHeader } from './../components/BasicUserContentBody';
import { HiGla... |
files/clappr/0.0.81/clappr.js | bdukes/jsdelivr | require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)... |
src/svg-icons/hardware/phone-iphone.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwarePhoneIphone = (props) => (
<SvgIcon {...props}>
<path d="M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1... |
test/Scrollbars/gettersSetters.js | malte-wessel/react-custom-scrollbars | import { Scrollbars } from 'react-custom-scrollbars';
import { render, unmountComponentAtNode } from 'react-dom';
import React from 'react';
export default function createTests(scrollbarWidth, envScrollbarWidth) {
let node;
beforeEach(() => {
node = document.createElement('div');
document.body.... |
public/js/components/profile/Account.react.js | rajikaimal/Coupley | import React from 'react';
import TextField from 'material-ui/lib/text-field';
import RaisedButton from 'material-ui/lib/raised-button';
import DropDownMenu from 'material-ui/lib/DropDownMenu';
import MenuItem from 'material-ui/lib/menus/menu-item';
import Paper from 'material-ui/lib/paper';
import CardTitle from 'mate... |
src/home/Home.js | GoldStarPDX/GoldStar | import React from 'react';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import Welcome from './Welcome';
import Intro from './Intro';
const GetStarted = () => (
<div id="getStarted">
<p className="home-small">Click to get started as a</p>
<Link to="/authTeacher/signin">
... |
local-cli/templates/HelloNavigation/views/chat/ChatListScreen.js | doochik/react-native | 'use strict';
import React, { Component } from 'react';
import {
ActivityIndicator,
Image,
ListView,
Platform,
StyleSheet,
View,
} from 'react-native';
import ListItem from '../../components/ListItem';
import Backend from '../../lib/Backend';
export default class ChatListScreen extends Component {
stat... |
src/js/components/ui/SelectMultiple/SelectMultiple.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Chip from '../Chip/Chip.js';
import styles from './SelectMultiple.scss';
export default class SelectMultiple extends Component {
static propTypes = {
title : PropTypes.string,
labels : PropTypes.a... |
lib/higherOrder/layerTouchClose.js | zhipenglin/candy_mobile | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _recompose = require('recompose');
var _layer = require('./layer');
var _layer2 = _interopRequireDefault(_layer);
function _interopRequireDefault(obj) ... |
ajax/libs/unitegallery/1.7.37/js/jquery-11.0.min.js | AMoo-Miki/cdnjs | /*! jQuery v1.11.0 | (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... |
ajax/libs/6to5/2.10.0/browser-polyfill.js | x112358/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... |
src/svg-icons/image/photo-library.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePhotoLibrary = (props) => (
<SvgIcon {...props}>
<path d="M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"/>... |
packages/react-art/npm/Rectangle.js | yiminghe/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.
* @typechecks
*
* Example usage:
* <Rectangle
* width={50}
* height={50}
* stroke="green"
* fill="blue"
* />
*
* Add... |
src/containers/AddNewCartRuleByPercent/AddNewCartRuleByPercent.js | kingpowerclick/kpc-web-backend | import React, { Component } from 'react';
import classNames from 'classnames';
import { Breadcrumb} from 'components';
import { SplitButton, MenuItem } from 'react-bootstrap';
export default class AddNewCartRuleByPercent extends Component {
render() {
const styles = require('./addNewCartRuleByPercent.scss');... |
src/containers/app.js | farazcsk/marauders-map | import React from 'react';
import { connect } from 'react-redux';
import MapView from '../components/MapView';
function mapStateToProps(/* state */) {
return {
// TODO: Add state to be mapped to props
};
}
function mapDispatchToProps(/* dispatch */) {
return {
// TODO: Add actions to be mapped to props... |
src/containers/quickEntries/Container.js | lixiaoyang1992/react-native-starter-kit | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Actions } from 'react-native-router-flux';
import * as action from './action';
import Index from './Index';
export class Container extends React.Component {
constructor(props) {
super(props);
... |
test/app/components/Header.spec.js | adrienjoly/chrome-track-grabber | import { expect } from 'chai';
import sinon from 'sinon';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import Header from '../../../app/components/Header';
import TodoTextInput from '../../../app/components/TodoTextInput';
function setup() {
const props = {
addTodo: sinon.spy()
}... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.