path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
src/components/Feedback/Feedback.js | edsrupp/eds-mess | /**
* 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, { Component } from 'react';
import s from '.... |
examples/huge-apps/routes/Course/routes/Assignments/routes/Assignment/components/Assignment.js | sleexyz/react-router | import React from 'react';
class Assignment extends React.Component {
//static loadProps (params, cb) {
//cb(null, {
//assignment: COURSES[params.courseId].assignments[params.assignmentId]
//});
//}
render () {
//var { title, body } = this.props.assignment;
var { courseId, assignmentId } ... |
Realization/frontend/czechidm-core/src/components/advanced/RoleFormAttributeInfo/RoleFormAttributeInfo.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
//
import * as Basic from '../../basic';
import { RoleFormAttributeManager, SecurityManager } from '../../../redux';
import AbstractEntityInfo from '../EntityInfo/AbstractEntityInfo';
import EntityInfo from '../EntityI... |
app/javascript/mastodon/features/picture_in_picture/index.js | MitarashiDango/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Video from 'mastodon/features/video';
import Audio from 'mastodon/features/audio';
import { removePictureInPicture } from 'mastodon/actions/picture_in_picture';
import Header from './components/header';
import F... |
ajax/libs/yui/3.3.0/event/event-focus-min.js | JimBobSquarePants/cdnjs | YUI.add("event-focus",function(e){var d=e.Event,c=e.Lang,a=c.isString,b=c.isFunction(e.DOM.create('<p onbeforeactivate=";"/>').onbeforeactivate);function f(h,g,j){var i="_"+h+"Notifiers";e.Event.define(h,{_attach:function(l,m,k){if(e.DOM.isWindow(l)){return d._attach([h,function(n){m.fire(n);},l]);}else{return d._attac... |
app/components/scantask/TaskTips.js | superhuahua/xunfengES | import React from 'react';
import { Popover, Button } from 'antd';
class TaskTips extends React.Component{
render(){
let content = (
<div>
<strong>资产发现</strong><br />
单次扫描<br />
192.168.1.1-192.168.1.255<br />
使用master队列扫描(默认)<br ... |
ajax/libs/flocks.js/0.14.3/flocks.min.js | shallaa/cdnjs | if("undefined"==typeof React)var React=require("react");!function(){"use strict";function j(a,b){"string"==typeof a?s(a,["warn","debug","error","log","info","exception","assert"])?console[a]("Flocks2 ["+a+"] "+b.toString()):console.log("Flocks2 [Unknown level] "+b.toString()):void 0===h.flocks_config?console.log("Flock... |
src/inspectReactElement.js | jsdf/inspect-react-element | import util from 'util';
import React from 'react';
import omit from 'lodash.omit';
import indentString from 'indent-string';
function inspectReactProp(propName, propValue) {
if (typeof propValue == 'string') return `${propName}="${propValue}"`;
return `${propName}={${util.inspect(propValue)}}`;
}
function inspec... |
examples/todos-with-undo/index.js | paulkogel/redux | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import App from './components/App'
import todoApp from './reducers'
const store = createStore(todoApp)
const rootElement = document.getElementById('root')
ren... |
app/static/js/jquery-latest-1.10.2/jquery-latest.min.js | neviim/serverlog | /*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
ajax/libs/react-redux/5.0.2/react-redux.js | tholu/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("redux"));
else if(typeof define === 'function' && define.amd)
define(["react", "redux"], factory);
else if(typeof exports === 'object')
e... |
src/slides/3-what-is-a-shell/4-end-of-input.js | johnloy/pres-hulk-bash | import * as React from "react";
import Radium from "radium";
import Slide from "../../components/slide";
import SlideTitleComic from "../../components/slide-title-comic";
import {
List,
ListItem,
Appear
} from "spectacle";
import styles from "../../styles";
@Radium
class BulletsSlide extends React.Component {
... |
app/components/socialSetting.js | andry-baka/dapur-ngebul-app | import React from 'react';
import {
View,
StyleSheet
} from 'react-native';
import {
RkText,
RkTheme
} from 'react-native-ui-kitten';
import {RkSwitch} from './switch/index';
export class SocialSetting extends React.Component {
constructor(props) {
super(props);
this.state = {
selected: this.pr... |
src/mui/list/FilterForm.spec.js | azureReact/AzureReact | import assert from 'assert';
import { render } from 'enzyme';
import React from 'react';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import TranslationProvider f... |
challenge6/start/node_modules/browserify/node_modules/syntax-error/node_modules/esprima-six/assets/codemirror/codemirror.js | tashoecraft/node-workshop | // CodeMirror version 2.32
//
// All functions that need access to the editor's state live inside
// the CodeMirror function. Below that, at the bottom of the file,
// some utilities are defined.
// CodeMirror is the only global var we claim
var CodeMirror = (function() {
// This is the function that produce... |
app/react-icons/fa/tablet.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaTablet extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m21.3 31.4q0-0.5-0.4-1t-1-0.4-1 0.4-0.5 1 0.5 1 1 0.5 1-0.5 0.4-1z m8.6-3.5v-... |
packages/mcs-lite-admin-web/src/utils/MockProvider.js | MCS-Lite/mcs-lite | import React from 'react';
import PropTypes from 'prop-types';
import { IntlProvider } from 'react-intl';
import { ThemeProvider } from 'styled-components';
import { theme } from 'mcs-lite-theme';
const MockProvider = ({ children }) => (
<IntlProvider messages={{}} locale="en">
<ThemeProvider theme={theme}>{chil... |
app/javascript/mastodon/components/button.js | ikuradon/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class Button extends React.PureComponent {
static propTypes = {
text: PropTypes.node,
onClick: PropTypes.func,
disabled: PropTypes.bool,
block: PropTypes.bool,
secondary: PropTypes.... |
web/react/src/client/components/locs/WebVR/WebVR.js | JamesMillercus/Portfolio-Website | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Iframe from 'react-iframe';
import Instructions from './Instructions/Instructions';
import { fetchWebMode } from './../../../actions';
import './assets/scss';
class WebVR extends Component {
constructor() {
super();
this.... |
examples/backbone_marionette/node_modules/backbone/backbone.js | theflimflam/todomvc | // Backbone.js 1.1.2
// (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
(function(root, factory) {
// Set up Backbone appropriately for ... |
app/javascript/mastodon/components/status.js | robotstart/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... |
native-module/voiceNative/__tests__/index.ios.js | deneuv34/tryout-02 | 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 />
);
});
|
desktop-application/node_modules/react-overlays/lib/Modal.js | santosh-surya/pcb-cnc-machine | /*eslint-disable react/prop-types */
'use strict';
exports.__esModule = 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]; } } } ... |
docs/src/app/AppRoutes.js | rhaedes/material-ui | import React from 'react';
import {
Route,
Redirect,
IndexRoute,
} from 'react-router';
// Here we define all our material-ui ReactComponents.
import Master from './components/Master';
import Home from './components/pages/Home';
import Prerequisites from './components/pages/get-started/Prerequisites';
import In... |
src/parser/priest/discipline/modules/features/AtonementHealingBreakdown.js | fyruna/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import Toggle from 'react-toggle';
import Icon from 'common/Icon';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatNumber, formatPercentage } from 'common/format';
import { TooltipElement } from 'common/Tooltip'... |
packages/material-ui-icons/src/BatteryFullRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M15.67 4H14V3c0-.55-.45-1-1-1h-2c-.55 0-1 .45-1 1v1H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.34 22h7.32c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z" />
, 'BatteryFullRounded');
|
packages/material-ui-icons/src/BookmarksRounded.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M19 18l2 1V3c0-1.1-.9-2-2-2H8.99C7.89 1 7 1.9 7 3h10c1.1 0 2 .9 2 2v13zM15 5H5c-1.1 0-2 .9-2 2v16l7-3 7 3V7c0-1.1-.9-2-2-2z" /></g></React.Fr... |
ajax/libs/react-intl/1.0.0/react-intl-with-locales.js | hanbyul-here/cdnjs | (function() {
"use strict";
var $$utils$$hop = Object.prototype.hasOwnProperty;
function $$utils$$extend(obj) {
var sources = Array.prototype.slice.call(arguments, 1),
i, len, source, key;
for (i = 0, len = sources.length; i < len; i += 1) {
source = sources[i];
... |
src/scripts/components/NewTurnButton.js | Tankenstein/encountr | import React, { Component } from 'react';
class NewTurnButton extends Component {
render() {
return (
<button
className="new-turn-button"
onClick={this.props.onNewTurn}>
<span className="glyphicon glyphicon-repeat"></span> New turn
</button>
);
}
}
export default NewTu... |
ajax/libs/phaser/2.2.2/custom/p2.js | rileyjshaw/cdnjs | /**
* The MIT License (MIT)
*
* Copyright (c) 2013 p2.js authors
*
* 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 ... |
src/parser/druid/feral/modules/features/checklist/Component.js | FaideWW/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import RACES from 'game/RACES';
import Checklist from 'parser/shared/modules/features/Checklist2';
import Rule from 'parser/shared/modules/features/Checklist2/Rule';
import Requi... |
web/test/010-app-test.js | opendaylight/spectrometer | /**
# @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0>
##############################################################################
# Copyright (c) 2016 The Linux Foundation and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public L... |
sites/all/modules/contrib/jquery_update/replace/jquery/1.8/jquery.js | arabdigitalexpression/adef-camps | /*!
* 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(... |
app/containers/ActiveListWrap.js | redsx/NAMI | import immutable from 'immutable'
import { connect } from 'react-redux'
import React, { Component } from 'react'
import PureRender, { shouldComponentUpdate } from '../plugins/PureRender.js'
import SearchInput from '../components/SearchInput.jsx'
const ActiveListWrap = (ItemComponent) => class extends Component{
co... |
jiuzhou/page/RegisterLogin/Login.js | Cowboy1995/JZWXZ | /**
* Created by Tong on 2017/5/10.
*/
/**
* Created by 1 on 2016/11/17.
*/
/**
* Created by 1 on 2016/10/21.
* 登陆界面
*/
import React, { Component } from 'react';
import {
Text,
StyleSheet,
View,
TextInput,
TouchableOpacity,
ToastAndroid,
Dimensions,
Image,
}from 'react-native';
le... |
ajax/libs/material-ui/5.0.0-alpha.33/legacy/Autocomplete/Autocomplete.min.js | cdnjs/cdnjs | import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import _defineProperty from"@babel/runtime/helpers/esm/defineProperty";import _extends from"@babel/runtime/helpers/esm/extends";import*as React from"react";import PropTypes from"prop-types";import clsx from"clsx";import{chainPropTy... |
src/Axis.js | 4Catalyzer/react-d3-svg | import React from 'react';
import { directionType } from './PropTypes';
import purePlotClass from './utils/purePlotClass';
@purePlotClass({ scale: ({ props }) => props.scale })
export default class Axis extends React.Component {
static propTypes = {
scale: React.PropTypes.func.isRequired,
orient: directionT... |
svg-icons/maps/directions-walk.js | janmarsicek/material-ui | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
ui/node_modules/react-bootstrap/ie8/src.js | bpatters/eservice | import React from 'react';
import Button from '../src/Button';
import DropdownButton from '../src/DropdownButton';
import MenuItem from '../src/MenuItem';
import Accordion from '../src/Accordion';
import Panel from '../src/Panel';
import ButtonToolbar from '../src/ButtonToolbar';
import OverlayTrigger from '../src/Over... |
ajax/libs/angular.js/0.9.4/angular-scenario.js | aFarkas/cdnjs | /*!
* jQuery JavaScript Library v1.4.2
* 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.
... |
ajax/libs/material-ui/5.0.0-beta.5/modern/MenuItem/MenuItem.min.js | cdnjs/cdnjs | import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";import _extends from"@babel/runtime/helpers/esm/extends";const _excluded=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex"];import*as React from"react";import PropTypes ... |
renderer/components/Form/RadioGroup.js | LN-Zap/zap-desktop | import React from 'react'
import PropTypes from 'prop-types'
import { RadioGroup as InformedRadioGroup } from 'informed'
import { Text } from 'components/UI'
import Label from './Label'
const RadioGroup = ({ label, field, description, isRequired, tooltip, children, ...rest }) => (
<>
{label && (
<Label htm... |
lib/components/Search.js | veeracs/react-stackex | import React from 'react'
import styles from './search.scss'
export default class Search extends React.Component {
render() {
return (
<div className={styles.search}>
<h2>Search StackExchange.com</h2>
<p><input type="text" /></p>
</div>
)
}
}
|
ajax/libs/yui/3.10.0/datatable-core/datatable-core-debug.js | mikesir87/cdnjs | YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@since 3.5.0
**/
var INVALID = Y.Attribute.INVALID_VALUE,
Lang = Y.Lang,
isFunction = Lang.isFunction,
isObject = Lang.isO... |
Agenda/src/components/pedido.js | interlegis/agenda-evento | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { reduxForm } from 'redux-form';
import { Link } from 'react-router';
import _ from 'lodash';
import { cadastroPedido, getUsuario } from '../actions';
import { SELECT, CHECKBOX, TEXTAREA, DATA_INICIO, DATA_FIM,
TIME, TELEFONE } from ... |
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | KevinKhieu/PeaceDashboard | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
pages/login/index.js | kylecarter/bank | import React from 'react'
import jQuery from 'jquery'
import Head from 'next/head'
import { Button } from 'react-bootstrap'
const $ = jQuery;
export default class Login extends React.Component {
constructor() {
super();
this.state = {
username: 'client.tester@email.com',
password: ... |
src/components/Home.js | BingbingYanYK/configuratorDemo | import React from 'react';
import Interactive from 'react-interactive';
import { Link } from 'react-router-dom';
import { Code } from '../styles/style';
import s from '../styles/home.style';
export default function Home() {
const repoReadmeLink = text => (
<Interactive
as="a"
{...s.link}
href="... |
examples/huge-apps/components/GlobalNav.js | KamilSzot/react-router | import React from 'react';
import { Link } from 'react-router';
const styles = {};
class GlobalNav extends React.Component {
static defaultProps = {
user: {
id: 1,
name: 'Ryan Florence'
}
};
constructor (props, context) {
super(props, context);
this.logOut = this.logOut.bind(this);... |
src/js/components/scores/NewScoreHeader.js | alexzherdev/foosballtracker | import React from 'react';
const NewScoreHeader = () => (
<div className="row">
<div className="form-group col-md-4">
<h4>Team 1</h4>
</div>
<div className="form-group col-md-4">
<h4>VS</h4>
</div>
<div className="form-group col-md-4">
<h4>Team 2</h4>
</div>
</div>
);
exp... |
ajax/libs/openlayers/2.11/lib/OpenLayers/Control/Panel.js | alkutin/cdnjs | /* Copyright (c) 2006-2011 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the Clear BSD license.
* See http://svn.openlayers.org/trunk/openlayers/license.txt for the
* full text of the license. */
/**
* @requires OpenLayers/Control.js
*/
/**
* Class: OpenLayers.... |
web/src/components/About.js | jinghang/react-todo-demo | import React from 'react'
const About = () => (
<div>
<h2>About</h2>
</div>
)
export default About
|
client/route/index.js | dantegg/blog_koa_sys | /**
* Created by dantegg on 2017/1/1.
*/
import App from '../container/app'
import React from 'react'
import Login from '../container/login/login'
import Home from '../container/home/home'
import Space from '../container/space/space'
import Manage from '../container/manage/manage'
import Blog from '../container/blog/... |
Examples/UIExplorer/UIExplorerApp.ios.js | YComputer/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
web/modes/index.js | artpi/SmartPi | import React from 'react';
import get from 'lodash/get';
import RGBControl, { Avatar as RGBAvatar, deviceActions as rgbActions } from '../modes/rgb-control.js';
import Switch, { Avatar as SwitchAvatar, deviceActions as switchActions } from '../modes/switch.js';
import { actions as nodemcuActions } from '../devices/nod... |
wp-content/themes/showtime/freshwork/freshpanel/js/jquery.js | jonthewayne/FanActions | /*!
* jQuery JavaScript Library v1.4.2
* 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.
... |
tests/interactive/scroll-view-sizing.js | MarkieMark/gnome-shell | /* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */
const Clutter = imports.gi.Clutter;
const Gtk = imports.gi.Gtk;
const Lang = imports.lang;
const Shell = imports.gi.Shell;
const St = imports.gi.St;
const UI = imports.testcommon.ui;
// This is an interactive test of the sizing behavior of StScrollV... |
react/gameday2/gameday2.js | bdaroz/the-blue-alliance | import 'babel-polyfill'
import React from 'react'
import ReactGA from 'react-ga'
import { Provider } from 'react-redux'
import thunk from 'redux-thunk'
import { createStore, applyMiddleware, compose } from 'redux'
import ReactDOM from 'react-dom'
import queryString from 'query-string'
import injectTapEventPlugin from '... |
examples/flux-chat/js/components/ThreadListItem.react.js | gougouGet/flux | /**
* This file is provided by Facebook for 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,
* FITNESS FOR A PARTICUL... |
apps/marketplace/components/Teams/Flows/TeamTable.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react'
import { sortObjectByName } from 'marketplace/components/helpers'
import commonStyles from './TeamStages.scss'
import styles from './ReviewTeamStage.scss'
const TeamTable = props => {
const { teamLeads, teamMembers } = props
const sortedTeamLeadKeys = sortObjectByName(teamLeads)
cons... |
src/Parser/Core/Modules/DamageTaken.js | hasseboulen/WoWAnalyzer | import React from 'react';
import { formatThousands, formatNumber, formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS';
import MAGIC_SCHOOLS from 'common/MAGIC_SCHOOLS';
import Analyzer from 'Parser/Core/Analyzer';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import Togg... |
app/components/common/HeaderBar.js | ayqy/ready-to-work | import React, { Component } from 'react';
import { Button } from 'antd';
export default class HeaderBar extends React.Component {
render() {
const padding = '6px';
return (
<div>
<div className="header header-bar">
<Button onClick={this.props.toMainPage} style={{marginLeft: padding}} ... |
src/TabPane.js | zanjs/react-bootstrap | import React from 'react';
import deprecationWarning from './utils/deprecationWarning';
import Tab from './Tab';
const TabPane = React.createClass({
componentWillMount() {
deprecationWarning(
'TabPane', 'Tab',
'https://github.com/react-bootstrap/react-bootstrap/pull/1091'
);
},
render() {
... |
src/EVT/IntranetBundle/Resources/public/assets/plugins/flot/jquery.min.js | Bodaclick/EVTAE | (function(window,undefined){var rootjQuery,readyList,document=window.document,location=window.location,navigator=window.navigator,_jQuery=window.jQuery,_$=window.$,core_push=Array.prototype.push,core_slice=Array.prototype.slice,core_indexOf=Array.prototype.indexOf,core_toString=Object.prototype.toString,core_hasOwn=Obj... |
ajax/libs/pouchdb/6.1.0/pouchdb.js | nolsherry/cdnjs | // PouchDB 6.1.0
//
// (c) 2012-2016 Dale Harvey and the PouchDB team
// PouchDB may be freely distributed under the Apache license, version 2.0.
// For all details and documentation:
// http://pouchdb.com
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define=... |
client/src/components/AttachmentUpload.js | wilimitis/DoctorIQ | import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
class AttachmentUpload extends React.Component {
constructor(props) {
super(props)
this.state = { file: '' };
}
handleFileChange(e) {
e.preventDefault();
this.setState({
file: e.target.files[0]
});
}
... |
src/components/common/LoginLink.js | xavierlefevre/react-hot-redux-firebase-starter | import React from 'react';
import {Link} from 'react-router';
const LoginLink = () => {
return (
<span>
<Link to="/register" activeClassName="active">Sign Up</Link>
{" | "}
<Link to="/login" activeClassName="active">Login</Link>
</span>
);
};
export default LoginLink;
|
bootstrap-3.0.0/js/tests/vendor/jquery.js | pkafei/Flask-Visualization | /*! 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... |
node_modules/react-router/es/Link.js | soniacq/LearningReact | 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]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
eListViewDemo/index.android.js | yueenen/React-Native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class aaa extends Component {
render() {
return (
<View style={styles.container}>
... |
packages/material-ui-icons/src/StayCurrentPortrait.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let StayCurrentPortrait = props =>
<SvgIcon {...props}>
<path d="M17 1.01L7 1c-1.1 0-1.99.9-1.99 2v18c0 1.1.89 2 1.99 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z" />
</SvgIcon>;
StayCurren... |
vendor/coresphere/console-bundle/Resources/public/js/jquery-1.8.3.min.js | Faramad/EROE | /*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===... |
test/components/Todo/index.spec.js | elemus/react-redux-todo-example | import React from 'react';
import { expect } from 'chai';
import { shallow } from 'enzyme';
import ToDo from '../../../src/components/Todo';
const setup = (props = {
tasks: [],
onTaskAdd() {},
onTaskToggle() {},
onTaskDelete() {},
}) => shallow(<ToDo {...props} />);
describe('Component | Todo', () => {
it('... |
examples/jenarMine/components/editView/AddFuncButton.js | tatsuhino/reactPractice | import React, { PropTypes,Component } from 'react'
import TextField from 'material-ui/TextField';
import FlatButton from 'material-ui/FlatButton';
import styles from '../../css/main.css'
import FontIcon from 'material-ui/FontIcon';
import {hashHistory} from 'react-router';
class AddFuncButton extends Component {
con... |
static/js/jquery-1.11.0.js | bep/landing-page-hugo | /*! 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 win... |
src/browser/me/MePage.js | reedlaw/read-it | // @flow
import type { State, User } from '../../common/types';
import React from 'react';
import SignOut from '../auth/SignOut';
import getUserPhotoUrl from '../../common/users/getUserPhotoUrl';
import linksMessages from '../../common/app/linksMessages';
import { Box, Image, Text } from '../../common/components';
impo... |
frontend/components/FeedbackModal.js | ryanhugh/searchneu | /*
* This file is part of Search NEU and licensed under AGPL3.
* See the license file in the root folder for details.
*/
import React from 'react';
import PropTypes from 'prop-types';
import { Transition } from 'react-transition-group';
import {
Button,
Icon,
Modal,
Header,
TextArea,
Input,
Form,
M... |
ajax/libs/prop-types/15.5.2/prop-types.min.js | ahocevar/cdnjs | !function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{var g;g="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,g.PropTypes=f()}}(function(){return function e(t,n,r){fun... |
src/index.js | interaction-matters/component-structure-demo | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import Button from 'components/Button/Button';
import Demo from './Demo';
// Import all of our base styles
import styles from './app.scss';
export default class App extends Component {
render() {
return (
<div>
<h4>Buttons De... |
ajax/libs/boardgame-io/0.44.1/esm/react.js | cdnjs/cdnjs | import 'nanoid';
import './Debug-db9d5a63.js';
import 'redux';
import './turn-order-ec34409c.js';
import 'immer';
import 'lodash.isplainobject';
import './reducer-fcd5a508.js';
import 'rfc6902';
import './initialize-b7b6b696.js';
import './transport-0079de87.js';
import { C as Client$1 } from './client-b6b7ebef.js';
im... |
lib-dist/svg-icons/maps/person-pin-circle.js | IsenrichO/mui-with-arrows | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
imports/ui/pages/Documents/EditDocument/EditDocument.js | haraneesh/mydev | import React from 'react';
import PropTypes from 'prop-types';
import { withTracker } from 'meteor/react-meteor-data';
import { Meteor } from 'meteor/meteor';
import Documents from '../../../../api/Documents/Documents';
import DocumentEditor from '../../../components/DocumentEditor/DocumentEditor';
import NotFound from... |
ajax/libs/6to5/2.0.3/browser.js | gereon/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... |
src/svg-icons/av/stop.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvStop = (props) => (
<SvgIcon {...props}>
<path d="M6 6h12v12H6z"/>
</SvgIcon>
);
AvStop = pure(AvStop);
AvStop.displayName = 'AvStop';
AvStop.muiName = 'SvgIcon';
export default AvStop;
|
app/javascript/mastodon/features/home_timeline/components/column_settings.js | riku6460/chikuwagoddon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { injectIntl, FormattedMessage } from 'react-intl';
import SettingToggle from '../../notifications/components/setting_toggle';
export default @injectIntl
class ColumnSettings extends React.... |
packages/material-ui-icons/src/PartyModeSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M22 4h-5.17L15 2H9L7.17 4H2v16h20V4zM12 7c1.63 0 3.06.79 3.98 2H12c-1.66 0-3 1.34-3 3 0 .35.07.69.18 1H7.1c-.06-.32-.1-.66-.1-1 0-2.76 2.24-5 5-5zm0 10c-1.63 0-3.06-.79-3.98-2H12c1.66 0 3-1.34 3-3 0-.... |
submissions/masiulis/src/components/components/components/sith-list-item.js | enkidevs/flux-challenge | import React from 'react';
export default class extends React.Component {
static propTypes = {
name: React.PropTypes.string,
homeworld: React.PropTypes.string,
obiPlanet: React.PropTypes.string,
}
render() {
const textColor = this.props.homeworld === this.props.obiPlanet ... |
src/js/views/Profile/Profile.js | TheoZimm/SaltyDashboard | import React from 'react';
import Box from 'grommet/components/Box';
import Header from '../../components/Header/';
import ProjectManagement from '../../components/ProjectManagement/';
import {RoleAwareComponent} from 'react-router-role-authorization';
import axios from 'axios';
class Profile extends RoleAwareComponen... |
src/components/pages/SingleAnimePage.js | migueliriano/react-anime-project | import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import HeroImage from 'components/modules/HeroImage';
import AnimeMainInfo from 'components/modules/AnimeMainInfo';
import AnimeCard from 'components/modules/AnimeCard';
import YoutubeVideo from 'components/modules/YoutubeVideo'... |
node_modules/native-base/__tests__/basic/Badge.ios.js | odapplications/WebView-with-Lower-Tab-Menu | import 'react-native';
import React from 'react';
import renderer from 'react-test-renderer';
import { Badge } from './../../src/basic/Badge';
// import Icon from '../../../Components/Widgets/Icon';
// Note: test renderer must be required after react-native.
jest.mock('Platform', () => {
const Platform = require.... |
public/cms/libs/ckeditor/skins/bootstrapck/sample/js/jquery-1.11.0.min.js | faozimipa/kodicms-laravel | !function(o,ea){"object"==typeof module&&"object"==typeof module.exports?module.exports=o.document?ea(o,!0):function(o){if(!o.document)throw Error("jQuery requires a window with a document");return ea(o)}:ea(o)}("undefined"!=typeof window?window:this,function(o,ea){function Ba(a){var b=a.length,d=c.type(a);return"func... |
familyconnections/ui/js/tablesorter/docs/js/jquery-1.4.4.min.js | sauravpratihar/fcms | /*!
* 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.
... |
UI/src/components/Crowns.js | ssvictorlin/PI | import React, { Component } from 'react';
import { ScrollView, View, Image, Text, ActivityIndicator, Dimensions } from 'react-native';
import { get } from '../../api.js';
import { Card, CardSection } from './common';
import PieGraph from './pie.js'
import firebase from 'firebase';
export default class Crowns extends C... |
src/pages/elvanto/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/elvanto.md';
const {body, attributes} = fm(content);
const Elvanto = () => (
<Index>
<div className="elvanto-wrapper">
<div class... |
packages/material-ui-icons/src/CallMissedOutgoingSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M3 8.41l9 9 7-7V15h2V7h-8v2h4.59L12 14.59 4.41 7 3 8.41z" />
, 'CallMissedOutgoingSharp');
|
ajax/libs/forerunnerdb/1.3.420/fdb-core.js | bootcdn/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/material-ui-icons/src/BorderRightSharp.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M7 21h2v-2H7v2zM3 5h2V3H3v2zm4 0h2V3H7v2zm0 8h2v-2H7v2zm-4 8h2v-2H3v2zm8 0h2v-2h-2v2zm-8-8h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm8 8h2v-2h-2v2zm4-4h2v-2h-2v2zm4-10v18h2V3h-2zm-4 18h2v-2... |
packages/material-ui-icons/lib/esm/ReportProblemTwoTone.js | mbrookes/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M12 5.99 4.47 19h15.06L12 5.99zM13 18h-2v-2h2v2zm-2-4v-4h2v4h-2z",
opacity: ".3"
}, "0"), /*#__PURE__*/_jsx("path", {
d: "M12 2 1 21h22L12 2zm0 3.99L19.... |
packages/react-server-examples/code-splitting/components/Body.js | redfin/react-server | import React, { Component } from 'react';
import {logging} from 'react-server';
const logger = logging.getLogger(__LOGGER__);
export default class Body extends Component {
constructor(props) {
super(props);
this.increment = () => {
this.setState({exclamationCount: this.state.exclamationCount + 1});
}
thi... |
js/App/Components/PreLoginScreens/SubViews/LoginForm.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
*... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.