path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/index.js | liaofeijun/feijun | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
ajax/libs/angular.js/0.9.11/angular-scenario.min.js | viskin/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.
... |
spec/coffeescripts/jsx/due_dates/DueDatesSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2015 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
ajax/libs/forerunnerdb/1.3.869/fdb-core+views.min.js | ahocevar/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
src/js/components/ui/NetworkLine/NetworkLine.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import styles from './NetworkLine.scss';
import RoundedIcon from "../RoundedIcon/RoundedIcon";
export default class NetworkLine extends Component {
static propTypes = {
network: PropTypes.string.isRequired
};
renderIcon... |
ajax/libs/react-datetime/1.2.1/react-datetime.min.js | jonobr1/cdnjs | /*
react-datetime v1.2.1
https://github.com/arqex/react-datetime
MIT: https://github.com/arqex/react-datetime/raw/master/LICENSE
*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require(void 0),require(void 0)):"function"==typeof define&&define.amd?define([,],e):"object"==typeof expo... |
examples/with-segment-analytics/pages/_app.js | BlancheXu/test | import React from 'react'
import Page from '../components/Page'
import App from 'next/app'
export default class MyApp extends App {
static async getInitialProps ({ Component, router, ctx }) {
let pageProps = {}
if (Component.getInitialProps) {
pageProps = await Component.getInitialProps(ctx)
}
... |
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js | WangCrystal/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
import ActorClient from 'utils/ActorClient';
import Inputs from 'utils/Inputs';
import { Styles, FlatButton } from 'material-ui';
import { KeyCodes... |
wp-content/plugins/jquery-updater/js/jquery-1.7.2.min.js | successdt/ecom_daiduong | /*! jQuery v1.7.2 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde... |
Practicas/Pokechat-F/componentes/PokeTable.js | tonkyfiero/React_Ejercicios | /*
*Import Modulos
*/
import React from 'react';
import PokeRow from './PokeRow.js';
export default class PokeTable extends React.Component{
render(){
return(
<ul className="poketable">
{
this.props.pokemons.map((pokemon)=>{
return(<PokeRow key={pokemon.numero}
onRugido2={this.props.onRug... |
liujie/count-down/src/index.js | ffjy/exercise | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
generators/entity-server/files.js | gmarziou/generator-jhipster | /**
* Copyright 2013-2021 the original author or authors from the JHipster project.
*
* This file is part of the JHipster project, see https://www.jhipster.tech/
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... |
test/specs/chart/RadarChartSpec.js | recharts/recharts | import React from 'react';
import { expect } from 'chai';
import { RadarChart, Radar, PolarGrid, PolarAngleAxis, PolarRadiusAxis } from 'recharts';
import { mount, render } from 'enzyme';
import sinon from 'sinon';
describe('<RadarChart />', () => {
const data = [
{ name: 'iPhone 3GS', value: 420, half: 210 },
... |
renderer/components/Channels/ChannelStatus.js | LN-Zap/zap-desktop | import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import { FormattedMessage } from 'react-intl'
import { Flex } from 'rebass/styled-components'
import snakeCase from 'lodash/snakeCase'
import { StatusIndicator, Text } from 'components/UI'
import messages from './message... |
frontend/src/containers/GraphToolbar/GraphToolbar.js | temaptz/life-analytics | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import SelectGraph from '../../components/SelectGraph/SelectGraph';
import GraphActions from '../../components/GraphActions/GraphActions';
import TimePeriodPanel from '../../components/TimePeriod/TimePeriodPane... |
index.ios.js | strawferry/Onion-math-demo | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Navigator,
TextInput,
TouchableHighlight,
} from 'react-native';
import QuestionIndex from "./QuestionIndex.js";
... |
src/Components/Header/Header.js | rudrakshpathak/react-app-boilerplate | import React, { Component } from 'react';
import './Header.css';
class Header extends Component {
render() {
return (
<div>
<header className="main-header">
{ /* Logo */}
<a href="index2.html" className="logo">
{ /* mini logo for sidebar mini 50x50 pixels... |
app/components/SearchGithub.js | joshuar500/repository-notes | import React from 'react';
class SearchGithub extends React.Component {
getRef(ref){
this.usernameRef = ref;
}
handleSubmit(){
const username = this.usernameRef.value;
this.usernameRef.value = '';
this.context.router.push("/profile/" + username);
}
render(... |
ajax/libs/handsontable/0.10.4/jquery.handsontable.js | raszi/cdnjs | /**
* Handsontable 0.10.4
* Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs
*
* Copyright 2012, Marcin Warpechowski
* Licensed under the MIT license.
* http://handsontable.com/
*
* Date: Thu Mar 20 2014 13:06:05 GMT+0100 (CET)
*/
/*jslin... |
ajax/libs/react/0.9.0/react.min.js | kartikrao31/cdnjs | /**
* React v0.9.0
*
* Copyright 2013-2014 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... |
app/js/components/styled/Spinner.js | blockstack/blockstack-browser | import React from 'react'
import styled from 'styled-components'
import PropTypes from 'prop-types'
const Spinner = ({ size = 50, stroke = 4 }) => (
<StyledSpinner size={size} viewBox="0 0 50 50">
<circle
className="path"
cx="25"
cy="25"
r="20"
fill="none"
strokeWidth={stroke}... |
app/containers/ReguliVot/components/item-rule.js | code4romania/monitorizare-vot-votanti-client | import React from 'react';
import styled from 'styled-components';
import Icons from 'components/Icons';
const RuleWrapper = styled.div`
cursor: pointer;
`;
function ItemRule(props) {
return (
<div className="col-sm-4 col-lg-3 rule">
<div
id={props.id}
onTouchTap={props.selectItem}
... |
client/src/components/Explorer/ExplorerPanel.js | mikedingjan/wagtail | import PropTypes from 'prop-types';
import React from 'react';
import FocusTrap from 'focus-trap-react';
import { STRINGS, MAX_EXPLORER_PAGES } from '../../config/wagtailConfig';
import Button from '../Button/Button';
import LoadingSpinner from '../LoadingSpinner/LoadingSpinner';
import Transition, { PUSH, POP } from... |
src/index.js | Hearthpebble/hp-frontend | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
app/components/PerfItem.js | react-rpm/react-rpm | import React from 'react';
import PropTypes from 'prop-types';
import styles from './../assets/perfitem.css';
const propTypes = {
onClick: PropTypes.func.isRequired,
selected: PropTypes.bool.isRequired,
label: PropTypes.string.isRequired,
};
const PerfItem = ({ onClick, selected, label }) => (
<button
onC... |
src/views/AccountsListing/AccountsListing.js | folio-org/ui-users | import _ from 'lodash';
import React from 'react';
import {
FormattedMessage,
injectIntl,
} from 'react-intl';
import PropTypes from 'prop-types';
import queryString from 'query-string';
import {
Button,
ButtonGroup,
Checkbox,
Col,
Dropdown,
DropdownMenu,
filterState,
Pane,
PaneHeader,
PaneHead... |
ajax/libs/yui/3.3.0pr3/event-custom/event-custom-debug.js | kennynaoh/cdnjs | YUI.add('event-custom-base', function(Y) {
/**
* 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.
* @module ev... |
src/__spec__/ensure.spec.js | canalplus/react-keys | import { createStore } from 'redux';
import { _init } from '../listener';
import { ensureKnownBinder, ensureState, isUnknownBinder } from '../ensure';
import * as store from '../store';
import sinon from 'sinon';
describe('ensure', () => {
describe('ensureState', () => {
it('should not throw exception when state... |
jquery/1.6.4/jquery.js | JerryDev/library | /*!
* jQuery JavaScript Library v1.6.4
* 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.
... |
react/features/chat/components/native/ChatPrivacyDialog.js | bgrozev/jitsi-meet | // @flow
import React from 'react';
import { ConfirmDialog } from '../../../base/dialog';
import { translate } from '../../../base/i18n';
import { connect } from '../../../base/redux';
import { AbstractChatPrivacyDialog, _mapDispatchToProps, _mapStateToProps } from '../AbstractChatPrivacyDialog';
/**
* Implements ... |
grunt/config/compress.js | angeliaz/react | 'use strict';
var grunt = require('grunt');
var version = grunt.config.data.pkg.version;
module.exports = {
starter: {
options: {
archive: './build/react-' + version + '.zip'
},
files: [
{cwd: './build/starter', src: ['**'], dest: 'react-' + version + '/'}
]
}
};
|
app/webpack/observations/identify/containers/annotations_container.js | pleary/inaturalist | import { connect } from "react-redux";
import Annotations from "../../show/components/annotations";
import {
addAnnotation,
deleteAnnotation,
voteAnnotation,
unvoteAnnotation
} from "../actions/current_observation_actions";
function mapStateToProps( state ) {
return {
observation: state.currentObservatio... |
src/components/cplusplus/original/CplusplusOriginal.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './CplusplusOriginal.svg'
/** CplusplusOriginal */
function CplusplusOriginal({ width, height, className }) {
return (
<SVGDeviconInline
className={'CplusplusOrigina... |
src/svg-icons/social/notifications.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialNotifications = (props) => (
<SvgIcon {...props}>
<path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 ... |
src/Interpolate.js | gianpaj/react-bootstrap | // https://www.npmjs.org/package/react-interpolate-component
// TODO: Drop this in favor of es6 string interpolation
import React from 'react';
import ValidComponentChildren from './utils/ValidComponentChildren';
const REGEXP = /\%\((.+?)\)s/;
const Interpolate = React.createClass({
displayName: 'Interpolate',
... |
src/Tooltip.js | HPate-Riptide/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import isRequiredForA11y from 'react-prop-types/lib/isRequiredForA11y';
import { bsClass, getClassSet, prefix, splitBsProps }
from './utils/bootstrapUtils';
const propTypes = {
/**
* An html id attribute, necessary for accessibility
* @type {st... |
src/client/story_list.js | Viktour19/hacker-menu | import React from 'react'
import Story from './story.js'
import _ from 'lodash'
export default class StoryList extends React.Component {
render () {
var onUrlClick = this.props.onUrlClick
var onMarkAsRead = this.props.onMarkAsRead
var storyNodes = _.map(this.props.stories, function (story, index) {
... |
src/components/video.js | asommer70/dvdpila.electron | 'use babel';
import React, { Component } from 'react';
export default class Video extends Component {
constructor(props) {
super(props);
console.log('Video props:', props);
this.state = {
player: undefined,
$player: undefined,
file_url: null,
url: '',
type: ''
}
}
... |
app/react-icons/fa/cube.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaCube extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m21.5 36.4l14.3-7.8v-14.2l-14.3 5.2v16.8z m-1.4-19.3l15.5-5.7-15.5-5.7-15.6 5.7... |
packages/cf-component-select/src/Select.js | jroyal/cf-ui | /**
* original html structure (note that extra divs have been inserted by using fela)
*
* <div class="cf-select">
* <label class="cf-select__label">Label</label>
*
* <div class="Select is-searchable has-value">
* <input type="hidden"/>
*
* <div class="Select-control">
* <div class="Select-pl... |
react/features/base/media/components/native/Video.js | KalinduDN/kalindudn.github.io | /* @flow */
import React, { Component } from 'react';
import { RTCView } from 'react-native-webrtc';
import styles from './styles';
/**
* The React Native {@link Component} which is similar to Web's
* {@code HTMLVideoElement} and wraps around react-native-webrtc's
* {@link RTCView}.
*/
export default class Video... |
ajax/libs/react-router/0.11.1/react-router.min.js | jdh8/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.ReactRouter=e()}}(function(){var define;return functi... |
user_guide/_static/jquery.js | jorgearmandotu/apuestascode | /*! 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/babel-core/5.0.8/browser.min.js | quba/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.babel=e()}}(function(){var e,t,n;return function r(e,t,... |
episode-023/priv/static/js/app.js | thaterikperson/elmseeds | (function() {
'use strict';
var globals = typeof window === 'undefined' ? global : window;
if (typeof globals.require === 'function') return;
var modules = {};
var cache = {};
var aliases = {};
var has = ({}).hasOwnProperty;
var expRe = /^\.\.?(\/|$)/;
var expand = function(root, name) {
var re... |
app/containers/HomePage.js | wilomgfx/code-push-gui | // @flow
import React, { Component } from 'react';
import Home from '../components/Home';
export default class HomePage extends Component {
render() {
return (
<Home />
);
}
}
|
frontend/app/components/About.js | orels1/Red-Portal | import React from 'react'
import {Link} from 'react-router';
class About extends React.Component {
constructor(props) {
super(props);
// And listen to any changes to get the two-way binding
this.onChange = this.onChange.bind(this);
}
componentDidMount() {
// Will fire once,... |
src/components/pieces/test/index.js | unindented/puzzle-creator | import React from 'react'
import Pieces from 'components/pieces'
import {render} from 'utils/test'
describe('Pieces', function () {
describe('without the necessary properties', function () {
beforeEach(function () {
const props = {
url: 'foo'
}
this.element = render(<Pieces {...props} /... |
analysis/monkwindwalker/src/modules/resources/ChiDetails.js | yajinni/WoWAnalyzer | // Heavily inspired by resource breakdown in Feral and Retribution
import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import { Panel } from 'interface';
import Statistic from 'parser/ui/Statistic';
import { STATISTIC_ORDER } from 'parser/ui/StatisticBox';
import ResourceBreakdown from 'parser/shar... |
springboot/GReact/node_modules/react-bootstrap/es/MenuItem.js | ezsimple/java | 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 ... |
docs/src/demos/TriggerDemo.js | cristovao-trevisan/react-plotter | import React from 'react'
import Plotter from '../../../src/Plotter'
import LineStyle from '../../../src/plot-styles/line'
import {Sawtoothwave} from '../../../src/helpers/waveGenerators'
import CircleMarker from '../../../src/markers/circle'
import Code from '../Code'
const codeString = (trigger, onlyFull) => (
`impo... |
static/js/jquery-1.7.1.min.js | jspan/Open-Knesset | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
src/dataTypes/Obj.js | mrose/react-dump | import React from 'react';
import { renderElement ,Row, Table } from '../format';
export const Obj = ( props ) => {
const obj = props.obj || { }
const opts = props.opts || { expand:true
, format:'html'
, label:'Object'
}
... |
react-i18n-example/src/i18n.js | backpaper0/sandbox | import React from 'react';
export default React.createContext({
hello: "Hello, world!"
});
|
src/components/app.js | gothbarbie/client-auth | import React, { Component } from 'react'
import Header from './header'
export default class App extends Component {
render() {
return (
<div>
<Header />
{this.props.children}
</div>
);
}
}
|
src/svg-icons/hardware/keyboard-arrow-left.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardArrowLeft = (props) => (
<SvgIcon {...props}>
<path d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"/>
</SvgIcon>
);
HardwareKeyboardArrowLeft = pure(HardwareKeyboardArrowLeft);
Hardware... |
docs/src/app/components/pages/components/AutoComplete/Page.js | hwo411/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import autoCompleteReadmeText from './README';
import autoCompleteCode from '!ra... |
index.ios.js | xfredlix/snacktime | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React from 'react';
import { AppRegistry } from 'react-native';
import snacktime from './components/Navigator.ios.js';
AppRegistry.registerComponent('snacktime', () => snacktime);
|
frontend/src/Components/Link/Button.js | geogolem/Radarr | import classNames from 'classnames';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { align, kinds, sizes } from 'Helpers/Props';
import Link from './Link';
import styles from './Button.css';
class Button extends Component {
//
// Render
render() {
const {
classN... |
src/components/Sidebar/SignUp.js | ryanbaer/busy | import React from 'react';
import { FormattedMessage } from 'react-intl';
import './SidebarBlock.less';
const SignUp = () =>
(<div className="SidebarBlock">
<h3 className="SidebarBlock__title">
<FormattedMessage id="new_to_busy" defaultMessage="New to Busy?" />
</h3>
<a target="_blank" rel="noopene... |
src/app/MenuNode.react.js | blueberryapps/react-bluekit | import Component from './PureRenderComponent.react';
import Icon from './atoms/Icon.react';
import nodesStyles from './styles/Nodes';
import Radium from 'radium';
import React from 'react';
import RPT from 'prop-types';
class MenuNode extends Component {
static propTypes = {
nodes: RPT.object.isRequired,
pa... |
src/index.js | pnicolli/demo-calculator | import React from 'react';
import ReactDOM from 'react-dom';
import AppContainer from './containers/AppContainer';
import registerServiceWorker from './registerServiceWorker';
import './index.css';
ReactDOM.render(<AppContainer />, document.getElementById('root'));
registerServiceWorker();
|
ajax/libs/react/18.0.0-rc.0-next-05a55a4b0-20220119/cjs/react-jsx-dev-runtime.production.min.js | cdnjs/cdnjs | /**
* @license React
* react-jsx-dev-runtime.production.min.js
*
* 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.
*/
'use strict';require("object-assign");exports.Fragment=60107;if("fu... |
src/components/Feedback/Feedback.js | jhines2k7/react-starter-typescript | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback extends Component {
render() {
return (
<div className="Feedback... |
test/server/ModalSpec.js | wjb12/react-bootstrap | import React from 'react';
import {assert} from 'chai';
import Modal from '../../src/Modal.js';
describe('Modal', () => {
it('Should be rendered on the server side', () => {
let noOp = () => {};
assert.doesNotThrow(function renderOnServerSide() {
return React.renderToString(
<Modal onHide={noO... |
app/components/tables/tableList.js | imankit/dashboard-ui | /**
* Created by Darkstar on 1/2/2017.
*/
'use strict';
import React from 'react';
import Search from 'material-ui/svg-icons/action/search';
import {grey500} from 'material-ui/styles/colors';
import {FormControl, FormGroup, InputGroup, Modal, Button} from 'react-bootstrap';
import TablesContainer from './tableContai... |
src/js/app/index.js | tzq668766/learnGitBranching | var Backbone = require('backbone');
var EventEmitter = require('events').EventEmitter;
var React = require('react');
var assign = require('object-assign');
var util = require('../util');
var intl = require('../intl');
var LocaleStore = require('../stores/LocaleStore');
var LocaleActions = require('../actions/LocaleAct... |
ajax/libs/mathjs/10.5.0/math.min.js | cdnjs/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.math=t():e.math=t()}(this,function(){return r=[function(e,t,r){var n=r(115),i=r(35),r=r(198);n||i(Object.prototype,"toString",r,{unsafe:!0})},function(r... |
tests/framework.spec.js | availabs/kauffman-atlas | import assert from 'assert'
import React from 'react'
import {mount, render, shallow} from 'enzyme'
class Fixture extends React.Component {
render () {
return (
<div>
<input id='checked' defaultChecked />
<input id='not' defaultChecked={false} />
</div>
)
}
}
describe('(Framewo... |
examples/huge-apps/routes/Course/routes/Assignments/routes/Assignment/components/Assignment.js | Jonekee/react-router | import React from 'react';
class Assignment extends React.Component {
render () {
var { courseId, assignmentId } = this.props.params;
var { title, body } = COURSES[courseId].assignments[assignmentId]
return (
<div>
<h4>{title}</h4>
<p>{body}</p>
</div>
);
}
}
export d... |
src/components/App/setViewport.js | jrylander/nodetut | /*
* React.js Starter Kit
* Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC.
*
* 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'; // eslint-disable-line no-unused-vars
import { ... |
react-flux-mui/js/material-ui/src/svg-icons/hardware/security.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSecurity = (props) => (
<SvgIcon {...props}>
<path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"/>
</SvgIcon>
);
Hardwa... |
src/component/BuyMe.js | holdonnn/holdonnn.github.io | import React from 'react'
import styled from 'styled-components'
const Wrapper = styled.div`
text-align: center;
`
export class BuyMe extends React.Component {
render() {
return (
< Wrapper>
<a href="https://www.buymeacoffee.com/jaehyunbaekblog" target="_blank">
... |
docs/app/Examples/modules/Checkbox/Types/CheckboxExampleRadio.js | shengnian/shengnian-ui-react | import React from 'react'
import { Checkbox } from 'shengnian-ui-react'
const CheckboxExampleRadio = () => (
<Checkbox radio label='Radio choice' />
)
export default CheckboxExampleRadio
|
meteor/imports/ui/pages/PDF.js | globeandmail/chart-tool | import React, { Component } from 'react';
import { Meteor } from 'meteor/meteor';
import { parse as parseQueryString } from 'query-string';
import Charts from '../../api/Charts/Charts';
import Chart from '../components/Chart';
import { withTracker } from 'meteor/react-meteor-data';
class PDF extends Component {
con... |
src/SubcategoryList/index.js | christianalfoni/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import Spacer from '../Spacer';
import ProgressbarLabeledPercentage from '../ProgressbarLabeledPercentage';
import Typography from '../Typography';
import Wrapper from '../Wrapper';
import styles from './styles.css';
class SubcategoryList extends React.Com... |
app/scripts/components/nodes-resources/node-resources-metric-box.js | hustbill/autorender-js | import React from 'react';
import { connect } from 'react-redux';
import NodeResourcesMetricBoxInfo from './node-resources-metric-box-info';
import { applyTransform } from '../../utils/transform-utils';
import {
RESOURCES_LAYER_TITLE_WIDTH,
RESOURCES_LABEL_MIN_SIZE,
RESOURCES_LABEL_PADDING,
} from '../../constan... |
ajax/libs/yui/3.4.1/simpleyui/simpleyui-debug.js | mrehayden1/cdnjs | /**
* The YUI module contains the components required for building the YUI seed
* file. This includes the script loading mechanism, a simple queue, and
* the core utilities for the library.
* @module yui
* @submodule yui-base
*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
* The YUI global names... |
packages/material-ui-icons/src/BlockTwoTone.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4... |
node_modules/lite-server/node_modules/browser-sync/node_modules/rx/dist/rx.lite.extras.js | ethan1341/heroku-league | // Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'function': true,
'object': true
};
function checkGlobal(value) {
return (value && value.Object === Object) ? value : null;
}
var freeExports ... |
src/components/Polygons.js | 2075/2030-ICO | import React from 'react';
// import ReactDOM from 'react-dom';
import * as THREE from 'three';
import ExampleBase from './RenderBase';
import React3 from 'react-three-renderer';
import PointCloud from './PointCloud';
// import TrackballControls from './Trackball';
const perspectiveCameraName = 'perspectiveCamera';
... |
app/containers/OnTheJob/index.js | DhammaLuke/affirmation | /*
*
* OnTheJob
*
*/
import React from 'react';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import selectOnTheJob from './selectors';
import PostPreview from '../../components/PostPreview/index';
export class OnTheJob extends React.PureComponent { // eslint-disable-line react/prefer-... |
packages/material-ui-icons/src/StarsRounded.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm3.23 15.39L12 15.45l-3.22 1.94c-.38.23-.85-.11-.75-.54l.85-... |
packages/material-ui-icons/src/MusicOffRounded.js | Kagami/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="M14 9.61V7h2c1.1 0 2-.9 2-2s-.9-2-2-2h-3c-.55 0-1 .45-1 1v3.61l2 2zM5.12 3.56a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l8.29 8.3v.28c-.... |
docs/src/app/components/pages/components/FontIcon/ExampleSimple.js | verdan/material-ui | import React from 'react';
import FontIcon from 'material-ui/FontIcon';
import {blue500, red500, greenA200} from 'material-ui/styles/colors';
const iconStyles = {
marginRight: 24,
};
const FontIconExampleSimple = () => (
<div>
<FontIcon
className="muidocs-icon-action-home"
style={iconStyles}
/... |
ajax/libs/quickblox/1.0.2/quickblox.min.js | jessepollak/cdnjs | !function e(t,n,r){function o(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(i)return i(s,!0);throw new Error("Cannot find module '"+s+"'")}var l=n[s]={exports:{}};t[s][0].call(l.exports,function(e){var n=t[s][1][e];return o(n?n:e)},l,l.exports,e,t,n,r)}return n[s].exports... |
contento/js/src/hooks/contentEditor/components/FragmentList.js | inmagik/contento | import React from 'react';
import { SortableContainer } from 'react-sortable-hoc'
import Fragment from './Fragment'
const FragmentList = ({ name, fragments, fragmentsSchemas, updateFragmentData, updateFragment, removeFragment }) => (
<div>
{fragments.map((fragment, index) =>
<Fragment
key={`region-... |
ajax/libs/reactable/0.11.3/reactable.js | sreym/cdnjs | window.React["default"] = window.React;
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(["exports"], factory);
} else if (typeof exports !== "undefined") {
factory(exports);
} else {
var mod = {
exports: {}
};
factory... |
src/parser/mage/arcane/modules/features/ArcaneMissiles.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import { formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
const debug = false;
class ArcaneMissiles extends A... |
enrolment-ui/src/modules/Main/components/TopBar.js | overture-stack/enrolment | import React from 'react';
import { withTranslation } from 'react-i18next';
import { getOneConfig } from '../../../config';
const TopBar = props => {
const { i18n } = props;
const { multiLingual } = getOneConfig('multiLingual');
const renderLanguagePicker = () => {
const activeLanguageClass = (currentLang, ... |
src/package/plugins/slate-grid-plugin/GridCellNode.js | abobwhite/slate-editor | import React from 'react'
const GridCellNode = ({ attributes, children }) => (
<td {...attributes}>
{children}
</td>
)
export default GridCellNode
|
src/svg-icons/av/queue.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvQueue = (props) => (
<SvgIcon {...props}>
<path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9h-4v4h-2v-4H9V9h4V5h2v4h4v2z"/>
</SvgIco... |
client/utils/accountHelpers.js | Cellarise/cell-cycle | import React from 'react';
import R from 'ramda';
import classnames from 'classnames';
import SelectBoxV2 from '../collection/selectBox.jsx';
import {getWorkgroupRecords, getAccountFlagRecords} from './accountUtils';
export function accountNameFormatter(account, showRCN, showRMID) {
let name;
if (R.isNil(account)... |
.storybook/config.js | guilhermecvm/react-dribbble-components | import React from 'react'
import { configure, addDecorator } from '@storybook/react'
const req = require.context('../src/components', true, /\.stories\.js$/)
const styles = {
fontFamily: '"Avenir Next", Helvetica, sans-serif',
}
const FontDecorator = story => <div style={styles}>{story()}</div>
addDecorator(FontDe... |
node_modules/@angular/router/bundles/router.umd.min.js | tupamba/kardex | /**
* @license Angular v4.3.1
* (c) 2010-2017 Google, Inc. https://angular.io/
* License: MIT
*/
!function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?factory(exports,require("@angular/common"),require("@angular/core"),require("rxjs/BehaviorSubject"),require("rxjs/Subject"),require("rxjs/ob... |
course/format/amd/src/courseeditor.js | sbourget/moodle | // This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: 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
// (at your option) any later version.
//
// Moodle is dis... |
js/jqwidgets/demos/react/app/formattedinput/events/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxFormattedInput from '../../../jqwidgets-react/react_jqxformattedinput.js';
import JqxPanel from '../../../jqwidgets-react/react_jqxpanel.js';
class App extends React.Component {
componentDidMount() {
this.refs.myFormattedInput.on('open... |
src/public/js/main.js | Natinux/ironsource-test | import React from 'react';
import {render} from 'react-dom';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import { Provider } from 'react-redux';
import configureStore from './store/configureStore';
import { LocalStorageHelper, LogH... |
docs/src/app/components/pages/components/Slider/ExampleDisabled.js | hai-cea/material-ui | import React from 'react';
import Slider from 'material-ui/Slider';
const SliderExampleDisabled = () => (
<div>
<Slider disabled={true} />
<Slider disabled={true} value={0.5} />
<Slider disabled={true} value={1} />
</div>
);
export default SliderExampleDisabled;
|
examples/with-webpack-bundle-analyzer/pages/index.js | giacomorebonato/next.js | import React from 'react'
import Link from 'next/link'
export default class Index extends React.Component {
static getInitialProps ({ req }) {
if (req) {
// Runs only in the server
const faker = require('faker')
const name = faker.name.findName()
return { name }
}
// Runs only in... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.