path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/routes/BoardList/components/BoardListView.js | eunvanz/handpokemon2 | import React from 'react'
import PropTypes from 'prop-types'
import shallowCompare from 'react-addons-shallow-compare'
import { toast } from 'react-toastify'
import { concat, findIndex } from 'lodash'
import { getMsg, isScreenSize } from 'utils/commonUtil'
import BoardElement from './BoardElement'
import Editor from ... |
site/src/components/DemoBox.js | averted/elemental | import React from 'react';
import classnames from 'classnames';
import E from '../../../src/constants';
const ALIGN_TRANSFORM = {
'center': 'center',
'left': 'flex-start',
'right': 'flex-end',
}
var DemoBox = React.createClass({
propTypes: {
align: React.PropTypes.oneOf(['center', 'left', 'right']),
children:... |
node_modules/jsx-loader/node_modules/react-tools/src/browser/eventPlugins/ChangeEventPlugin.js | paulshen/me | /**
* 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 ... |
website/layout/BlogPostLayout.js | PlexChat/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
node_modules/socket.io/node_modules/debug/browser.js | militarpancho/webrtc |
/**
* This is the web browser implementation of `debug()`.
*
* Expose `debug()` as the module.
*/
exports = module.exports = require('./debug');
exports.log = log;
exports.formatArgs = formatArgs;
exports.save = save;
exports.load = load;
exports.useColors = useColors;
exports.storage = 'undefined' != typeof chro... |
src/js/components/icons/base/Clone.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
node_modules/semantic-ui-react/dist/commonjs/modules/Sidebar/SidebarPusher.js | jessicaappelbaum/cljs-update | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _classnames = require('classnames');
var _classnames2 = _interopRequireDefault(_classnames);
var _react = require('react')... |
fields/types/url/UrlColumn.js | Tangcuyu/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue';
var UrlColumn = React.createClass({
displayName: 'UrlColumn',
propTypes: {
col: React.PropTypes.object,
da... |
src/client/components/notfound.react.js | jirastom/react-learnig | import Component from '../components/component.react';
import DocumentTitle from 'react-document-title';
import React from 'react';
import {Link} from 'react-router';
export default class NotFound extends Component {
static propTypes = {
msg: React.PropTypes.object.isRequired
}
render() {
const {msg: {... |
ThinkPHP/Extend/Tool/thinkeditor/ThinkEditor.js | UDBIAWDIF/5ihzp | (function ($) {
var ie = $.browser.msie,
iOS = /iphone|ipad|ipod/i.test(navigator.userAgent);
$.TE = {
version:'1.0', // 版本号
debug: 1, //调试开关
timeOut: 3000, //加载单个文件超时时间,单位为毫秒。
defaults: {
//默认参数controls,noRigths,plugins,定义加载插件
controls: "source,|,undo,redo,... |
src/renderers/dom/server/__tests__/ReactServerRendering-test.js | perperyu/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... |
ajax/libs/forerunnerdb/1.3.496/fdb-legacy.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... |
bower_components/modernizr/test/caniuse_files/jquery.min.js | geekyMoa/megasus-wireframes | /*!
* jQuery JavaScript Library v1.6.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
actor-sdk/sdk-web/src/components/call/CallAvatar.react.js | y0ke/actor-platform | /*
* Copyright (C) 2015-2016 Actor LLC. <https://actor.im>
*/
import React, { Component, PropTypes } from 'react';
import classNames from 'classnames';
import { CallStates } from '../../constants/ActorAppConstants';
import AvatarItem from '../common/AvatarItem.react';
class CallAvatar extends Component {
static p... |
20161216/cnode/app/main.js | fengnovo/react-native | import React from 'react';
import{
AppRegistry,
Platform,
TouchableOpacity,
StyleSheet,
Navigator,
View,
Text,
Image
} from 'react-native';
import HomePage from './HomePage';
const defaultRoute = {
component: HomePage
};
class Avigation extends React.Component {
_renderScene(route, navigator) {
... |
src/botPage/view/react-components/ErrorPage.js | binary-com/binary-bot | import React from 'react';
import PropTypes from 'prop-types';
import { translate } from '../../../common/i18n';
import * as style from '../style';
const ErrorPage = ({ title, message, redirectButtonTitle, redirectButtonURL }) => (
<div style={style.errorDiv}>
<h3 style={style.errorHeader}> {`${translate(t... |
node_modules/react-icons/ti/volume-mute.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const TiVolumeMute = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m32.8 8.8c-0.6-0.6-1.7-0.6-2.3 0l-2.6 2.6c-0.6-1.1-1.6-1.7-2.7-1.7-0.7 0-1.5 0.3-2.2 0.8l-4.5 2.9c-1.2 0.9-3.7 1.6-5.2 1.6-2.7 0-5 2.2-5 5v3.3c0 2.1 1.3 3.9 3.1 4.... |
ajax/libs/handsontable/0.10.0/jquery.handsontable.js | wallin/cdnjs | /**
* Handsontable 0.10.0
* 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: Fri Dec 27 2013 17:46:22 GMT+0100 (Central European... |
Libraries/Core/setUpNavigator.js | hoangpham95/react-native | /**
* 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 strict
* @format
*/
'use strict';
const {polyfillObjectProperty} = require('../Utilities/PolyfillFunctions');
let navi... |
node_modules/react-router/es6/RouteContext.js | jsg7440/jQuery-ToDo | 'use strict';
import React from 'react';
var object = React.PropTypes.object;
/**
* The RouteContext mixin provides a convenient way for route
* components to set the route in context. This is needed for
* routes that render elements that want to use the Lifecycle
* mixin to prevent transitions.
*/
var RouteCon... |
tests/lib/rules/indent.js | hotoo/eslint | /**
* @fileoverview This option sets a specific tab width for your code
* @author Dmitriy Shekhovtsov
* @author Gyandeep Singh
* @copyright 2014 Dmitriy Shekhovtsov. All rights reserved.
* @copyright 2015 Gyandeep Singh. All rights reserved.
*/
"use strict";
//----------------------------------------------------... |
src/routes/contact/index.js | arkeros/react-native-starter-kit | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Contact from './Contact'... |
packages/material-ui-icons/src/FormatColorText.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path fillOpacity=".36" d="M0 20h24v4H0z" /><path d="M11 3L5.5 17h2.25l1.12-3h6.25l1.12 3h2.25L13 3h-2zm-1.38 9L12 5.67 14.38 12H9.62z" /></g>
, 'FormatColorText');
|
src/templates/blog-post.js | asyn/asyn.github.io | import React from 'react'
import BlogPostContainer from '../components/Blog/post-container'
import BlogPostContent from '../components/Blog/post-content'
export default function Template ({ data }) {
const { markdownRemark: post } = data
return (
<BlogPostContainer pageTitle={post.frontmatter.title} >
<B... |
src/components/navlink.js | netlify/staticgen | import React from 'react'
import { Link } from 'gatsby'
import styled from '@emotion/styled'
const NavLink = styled(Link)`
color: #fff;
text-decoration: none;
padding: 10px;
display: block;
text-align: center;
&:active,
&:focus,
&:hover {
color: #00c7b7;
}
`
const NavAnchor = NavLink.withCompon... |
ajax/libs/react/0.4.1/react.min.js | EragonJ/cdnjs | /**
* React v0.4.1
*
* Copyright 2013 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... |
ajax/libs/flocks.js/0.15.5/flocks.min.js | DaAwesomeP/cdnjs | if("undefined"===typeof k)var k=require("react"); (function(){function t(){return!0}function u(){return!0}function e(a){return"[object Array]"===Object.prototype.toString.call(a)}function g(a){return"undefined"===typeof a}function v(a){return"object"!==typeof a||"[object Array]"===Object.prototype.toString.call(a)?!1:!... |
examples/huge-apps/routes/Course/components/Dashboard.js | nottombrown/react-router | import React from 'react'
class Dashboard extends React.Component {
render() {
return (
<div>
<h3>Course Dashboard</h3>
</div>
)
}
}
export default Dashboard
|
ajax/libs/onsen/2.0.0-beta.12/js/angular-onsenui.min.js | tholu/cdnjs | /*! angular-onsenui.js for onsenui - v2.0.0-beta.12 - 2016-04-25 */
!function(){var initializing=!1,fnTest=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){},Class.extend=function(prop){function Class(){!initializing&&this.init&&this.init.apply(this,arguments)}var _super=this.prototype;initializing=!... |
ajax/libs/forerunnerdb/1.3.677/fdb-core.js | dada0423/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
ajax/libs/react-highcharts/6.0.1/highstock.src.js | boneskull/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["Highcharts"] = fact... |
ajax/libs/yui/3.9.1/datatable-core/datatable-core-coverage.js | jtushar53/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... |
src/containers/tests/metafields.spec.js | jekyll/jekyll-admin | import React from 'react';
import { mount } from 'enzyme';
import { MetaFields } from '../MetaFields';
import MetaField from '../../components/metadata/MetaField';
import { content } from './fixtures';
const defaultProps = {
fields: content,
metadata: content,
key_prefix: '',
staticFields: {},
};
const actio... |
src/map/js/components/LayerPanel/LegendBase.js | wri/gfw-water | //- NOT IN USE, NEED TO FIND A WAY TO PASS LAYER INFOS TO this.props.children
import Request from 'utils/request';
import React from 'react';
export default class LegendBase extends React.Component {
constructor (props) {
super(props);
this.state = { layerInfos: [] };
}
componentDidMount() {
Request... |
src/icons/PhoneIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class PhoneIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M13.25 21.59c2.88 5.66 7.51 10.29 13.18 13.17l4.4-4.41c.55-.55 1.34-.71 2.03-.49C35.1 30.6 37.51 31 40 31c1.... |
src/js/components/DislikeButton.js | ejoreo/portfolio-site | import React, { Component } from 'react';
class DislikeButton extends Component {
render() {
return (
<div className="DislikeButton">
Dislike
<button>
Button
</button>
</div>
);
}
}
export default DislikeButton;
|
src/PrecizeSoft.GetPdfOnline.Web.SpaApp/wwwroot/swagger/lib/jquery-1.8.0.min.js | precizeman/get-pdf-online | !function(e,t){function n(e){var t=he[e]={};return K.each(e.split(te),function(e,n){t[n]=!0}),t}function r(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(me,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r||"false"!==r&&("null"===r?null:+r+""===r?+r:ge.test(r)?K.parseJSON(r):r)... |
views/decoration_toggle.js | gastrodia/black-screen | import React from 'react';
export default React.createClass({
getInitialState() {
return {enabled: this.props.invocation.state.decorate};
},
handleClick(event) {
stopBubblingUp(event);
var newState = !this.state.enabled;
this.setState({enabled: newState});
this.prop... |
src/Components/Footer.js | vlmlee/LaTeX-Preview | import React from 'react';
const Footer = () => (
<footer>
<p>Created by Michael Lee © 2016</p>
</footer>
);
export default Footer; |
sources/js/welcome.js | streetlives/streetlivesnyc | 'use strict';
import React from 'react';
import '../scss/welcome.scss';
module.exports.Welcome = React.createClass({
render: function() {
return (
<div className="Welcome Dialog">
<div className="Welcome-inner Dialog-inner">
<div className="Welcome-content... |
js/minified/jquery-1.9.1.min.js | xiwc/malihu-custom-scrollbar-plugin | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
node_modules/react-icons/md/volume-up.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdVolumeUp = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m23.4 5.4c6.7 1.5 11.6 7.5 11.6 14.6s-4.9 13.1-11.6 14.6v-3.4c4.8-1.4 8.2-5.9 8.2-11.2s-3.4-9.8-8.2-11.2v-3.4z m4.1 14.6c0 3-1.6 5.5-4.1 6.7v-13.4c2.5 1.2 4.1 3.7 4.... |
src/svg-icons/image/photo-size-select-actual.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePhotoSizeSelectActual = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3C2 3 1 4 1 5v14c0 1.1.9 2 2 2h18c1 0 2-1 2-2V5c0-1-1-2-2-2zM5 17l3.5-4.5 2.5 3.01L14.5 11l4.5 6H5z"/>
</SvgIcon>
);
ImagePhotoSiz... |
test/specs/elements/List/ListList-test.js | vageeshb/Semantic-UI-React | import React from 'react'
import * as common from 'test/specs/commonTests'
import ListList from 'src/elements/List/ListList'
describe('ListList', () => {
common.isConformant(ListList)
common.rendersChildren(ListList)
describe('list', () => {
it('omitted when rendered as `ol`', () => {
shallow(<ListLi... |
examples/5_params/index.js | losogudok/losogudok.github.io | import React from 'react'
import ReactDOM from 'react-dom'
import {Switch, Router, Route} from 'react-router'
import {Link} from 'react-router-dom'
import createHistory from 'history/createHashHistory'
const history = createHistory()
const NewRecipe = () => (
<div>
<div>Новый рецепт</div>
<textare... |
gui/components/Settings.js | venogram/ExpressiveJS | import React, { Component } from 'react';
function Settings(props) {
return (
<div id="Settings">
</div>
)
}
module.exports = Settings;
|
src/js/components/Button/stories/CustomThemed/Active.js | grommet/grommet | import React from 'react';
import { Grommet, Button, Box, Text } from 'grommet';
import { Add } from 'grommet-icons';
export const Active = () => (
<Grommet
theme={{
global: {
font: {
family: `-apple-system, BlinkMacSystemFont`,
},
},
button: { default: {} }, // enabli... |
vendor/assets/bower_components/angular-truncate/test/lib/angular/angular-scenario.js | loarie/inaturalist | /*!
* 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.
... |
ajax/libs/vue-chartjs/3.0.0/vue-chartjs.js | sufuf3/cdnjs | /*!
* vue-chartjs v3.0.0
* (c) 2017 Jakub Juszczak <jakub@posteo.de>
* http://vue-chartjs.org
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("chart.js"));
else if(typeof define === 'function' && define... |
Component/Publish/Publish.js | outman1992/Taoertao | /**
* Created by 58484 on 2016/9/10.
*/
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Image,
TouchableOpacity,
TextInput,
ListView,
ScrollView,
Pla... |
ajax/libs/can.js/5.29.0/everything.min.js | extend1994/cdnjs | !function(e,t){"undefined"==typeof process&&(e.process={argv:[],cwd:function(){return""},browser:!0,env:{NODE_ENV:"development"},version:"",platform:e.navigator&&e.navigator.userAgent&&/Windows/.test(e.navigator.userAgent)?"win":""})}("object"==typeof self&&self.Object==Object?self:"object"==typeof process&&"[object pr... |
ajax/libs/highcharts/4.1.0/highcharts.src.js | nolsherry/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v4.1.0 (2015-02-16)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clear... |
docs/app/Examples/modules/Progress/States/ProgressExampleDisabled.js | ben174/Semantic-UI-React | import React from 'react'
import { Progress } from 'semantic-ui-react'
const ProgressExampleDisabled = () => (
<Progress percent={60} disabled>
Disabled
</Progress>
)
export default ProgressExampleDisabled
|
ajax/libs/angular.js/0.10.4/angular-scenario.js | simudream/cdnjs | /*!
* 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.
... |
packages/arwes/src/Image/sandbox.js | romelperez/ui | import React from 'react';
import Arwes from '../Arwes';
import Image from './index';
export default () => (
<Arwes>
<div style={{ margin: '0 auto', padding: 20, maxWidth: 600 }}>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dol... |
src/js/components/Select.js | nickjvm/grommet | // (C) Copyright 2014 Hewlett Packard Enterprise Development LP
import React, { Component, PropTypes } from 'react';
import { findDOMNode } from 'react-dom';
import classnames from 'classnames';
import CSSClassnames from '../utils/CSSClassnames';
import Props from '../utils/Props';
import KeyboardAccelerators from '..... |
packages/ringcentral-widgets-docs/src/app/pages/Components/DialerPanel/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import { parse } from 'react-docgen';
import CodeExample from '../../../components/CodeExample';
import ComponentHeader from '../../../components/ComponentHeader';
import PropTypeDescription from '../../../components/PropTypeDescription';
import Demo from './Demo';
// eslint-disable-next-lin... |
ajax/libs/react-slick/0.5.0/react-slick.min.js | yukinying/cdnjs | !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.Slider=n(require("react")):t.Slider=n(t.React)}(this,function(t){return function(t){function n(e){if(r[e])return r[e].exports;var... |
app/index.js | golivera/neon-wallet | import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
// import { createBrowserHistory } from 'history';
import { browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import { AppContainer } from 'react-hot-loader';
import configureStore from... |
example/examples/TakeSnapshot.js | athaeryn/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
Image,
} from 'react-native';
import MapView from 'react-native-maps';
import flagBlueImg from './assets/flag-blue.png';
import flagPinkImg from './assets/flag-pink.png';
const { width, height } = Dimensions.get('win... |
src/components/withViewport.js | stinkyfingers/IsoTest | /**
* 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'; // eslint-disabl... |
public/javascripts/main.js | nicrou/react_js_playground | import React from 'react';
import ReactDOM from 'react-dom';
import Counter from './counter';
document.addEventListener('DOMContentLoaded', function() {
ReactDOM.render(
React.createElement(Counter),
document.getElementById('mount')
);
});
|
packages/react-error-overlay/src/components/Footer.js | lolaent/create-react-app | /**
* 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.
*/
/* @flow */
import React from 'react';
import { darkGray } from '../styles';
const footerStyle = {
fontFamily: 'sans-serif',
color:... |
dist/components/dropdownColorPicker/NormalRenderer.jsx.js | fcfe/fcui2 | /**
* 下拉颜色选择器-默认渲染器
* @author Brian Li
* @email lbxxlht@163.com
* @version 0.0.2.2
*/
define(function (require) {
var React = require('react');
var tools = require('../../core/colorPickerTools');
return React.createClass({
// @override
getDefaultProps: function getDefaultProps() {
... |
example/examples/AnimatedMarkers.js | j0ergo/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
Animated,
} from 'react-native';
import MapView from 'react-native-maps';
const screen = Dimensions.get('window');
const ASPECT_RATIO = screen.width / screen.height;
const LATITUDE = 37.78825;
const LONGITUDE = -122... |
packages/material-ui-icons/src/ArrowDownward.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z" /></g>
, 'ArrowDownward');
|
src/React/Properties/CollapsiblePropertyGroup/index.js | Kitware/paraviewweb | import React from 'react';
import PropTypes from 'prop-types';
import style from 'PVWStyle/ReactProperties/CollapsiblePropertyGroup.mcss';
import factory from '../PropertyFactory';
export default function render(props) {
const isCollapsed = !props.prop.data.value[0];
const id = props.prop.data.id;
return (
... |
frontend/src/ProductosList/ProductosListView.js | GAumala/Facturacion | import React from 'react';
import { findProductos, deleteProducto } from 'facturacion_common/src/api';
import MaterialTable from '../lib/MaterialTable';
import ListState from './ListState';
const ColumnTypes = MaterialTable.ColumnTypes;
const columns = ['Reg. Sanitario', 'Marca', 'Nombre', 'Precio Venta'];
const keys... |
src/pages/homepage/list/OpenTopics.js | HeliumLau/Hoop-react | import React from 'react';
import Header from 'components/Header.js';
import ArticleList from 'components/ArticleList.js';
import './normalcontainer.less';
export default class OpenTopics extends React.Component {
constructor(props) {
super(props);
this.state = {
articlelist: [
... |
ajax/libs/react-autosuggest/3.0.0-alpha.5/autosuggest.js | Amomo/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("React"));
else if(typeof define === 'function' && define.amd)
define(["React"], factory);
else if(typeof exports === 'object')
exports["Autosuggest"] = fac... |
app/containers/NotFoundPage/index.js | aoshmyanskaya/tko | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it... |
ui/src/main/js/index.js | crashlytics/aurora | import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import SchedulerClient from 'client/scheduler-client';
import Navigation from 'components/Navigation';
import Home from 'pages/Home';
import Instance from 'pages/Instance';
import Job from 'p... |
node-react/client/src/signin/Signin.js | FabioZTessitore/probability | import React, { Component } from 'react';
class SignIn extends Component {
constructor (props) {
super (props);
this.changePage = this.changePage.bind(this);
this.signin = this.signin.bind(this);
}
changePage () {
this.props.changePage('landing');
}
signin(e) {
e.preventDefault();
... |
src/components/lists/ConnectionListItem.js | whphhg/vcash-electron | import React from 'react'
import { observer } from 'mobx-react'
const ConnectionListItem = observer(({ t, connections, index }) => {
const instance = connections.instances.get(connections.ids[index])
const { rpc } = instance.status
const color = rpc === null ? '' : rpc === true ? 'green' : 'red'
return (
... |
examples/auth-with-shared-root/components/About.js | mattkrick/react-router | import React from 'react'
const About = React.createClass({
render() {
return <h1>About</h1>
}
})
export default About
|
ajax/libs/analytics.js/1.3.4/analytics.js | reustle/cdnjs | ;(function(){
/**
* Require the given path.
*
* @param {String} path
* @return {Object} exports
* @api public
*/
function require(path, parent, orig) {
var resolved = require.resolve(path);
// lookup failed
if (null == resolved) {
orig = orig || path;
parent = parent || 'root';
var err = new ... |
source/client/components/visitor/layout/menu.js | lawshe/boda | import React from 'react';
import Navbar from 'react-bootstrap/lib/Navbar';
import Link from 'react-router/lib/Link';
import wedding from '../../../../../config/wedding.js';
import glob from 'styles/app';
import local from './_styles';
import NavList from './nav-list';
import variables from '../../../../../config/varia... |
files/rxjs/2.3.21/rx.js | Metrakit/jsdelivr | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
v... |
react/gameday2/components/embeds/EmbedNotSupported.js | phil-lopreiato/the-blue-alliance | import React from 'react'
const EmbedNotSupported = () => {
const containerStyles = {
margin: 20,
textAlign: 'center',
}
const textStyles = {
color: '#ffffff',
}
return (
<div style={containerStyles}>
<p style={textStyles}>This webcast is not supported.</p>
</div>
)
}
export de... |
packages/relay-runtime/store/__tests__/RelayModernEnvironment-ExecuteWithModule-test.js | yungsters/relay | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow
* @emails oncall+relay
*/
// flowlint ambiguous-object-type:error
'use strict';
const RelayModernEnvironmen... |
modules/frontend/src/js/components/widgets/ImportTilesetButton.js | fleximaps/fleximaps | import styles from './ImportTilesetButton.css';
import CSSModules from 'react-css-modules';
import { Link } from 'react-router'
import React from 'react';
export default CSSModules(class ImportTilesetButton extends React.Component {
render() {
return (
<Link styleName='button' to={`/maps/impor... |
web/app/themes/0031flyfishing/js/components/single.js | vincent-derks/react-0031flyfishing | import React, { Component } from 'react'
import { connect } from 'react-redux'
import axios from 'axios'
import * as Actions from './../actions'
import Lightbox from 'react-images'
import $ from 'jquery'
import renderHTML from 'react-render-html'
import Loader from './loader'
import RelatedPosts from './relatedposts'
... |
src/__tests__/Spinner-test.js | tleunen/react-mdl | /* eslint-env mocha */
import expect from 'expect';
import React from 'react';
import { render } from './render';
import Spinner from '../Spinner';
describe('Spinner', () => {
it('should render a div with the spinner css classes', () => {
const output = render(<Spinner value="1" />);
expect(output... |
src/js/app.js | morganney/gol | 'use strict'
import React from 'react'
import ReactDOM from 'react-dom'
import Title from './components/title'
import GridSizeSelector from './components/grid-size-selector'
import GameOfLife from './components/game-of-life'
class App extends React.Component {
constructor (props) {
super(props)
this.handle... |
src/MenuItem.js | modulexcite/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import SafeAnchor from './SafeAnchor';
const MenuItem = React.createClass({
propTypes: {
header: React.PropTypes.bool,
divider: React.PropTypes.bool,
href: React.PropTypes.string,
title: React.PropTypes.string,
target: ... |
pootle/static/js/shared/components/LayeredComponent.js | unho/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*
* Original idea: https://github.com/Khan/react-components
... |
ajax/libs/yui/3.17.2/datatable-core/datatable-core-coverage.js | adatapost/cdnjs | /*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/datatable-core/datatable-core.js']) {
__coverage__['build/datatable-core/datatable-... |
src/client/components/nice-button/nice-button.js | fk1blow/react-presentception | import React from 'react';
import classNames from 'classnames';
class NiceButton extends React.Component {
render() {
const btnCls = classNames(this.props.className, {
'nice-button': true
});
return (
<div className={btnCls}>
{this.props.children}
</div>
);
}
}
export de... |
resume-app/src/components/Summary.js | robsonperassoli/robsonperassoli.github.io | import React from 'react'
import styled from 'styled-components'
import Section from './Section'
const Text = styled.p`
line-height: 1.2em;
margin-bottom: 0.7em;
`
function Summary() {
return (
<Section title='Profile'>
<Text>My name is Robson Gian Perassoli.</Text>
<Text>I work with programming... |
ajax/libs/orb/1.0.4/orb.min.js | shallaa/cdnjs | /**
* orb v1.0.4, Pivot grid javascript library.
*
* Copyright (c) 2014 Najmeddine Nouri <devnajm@gmail.com>.
*
* @version v1.0.4
* @link http://nnajm.github.io/orb/
* @license MIT
*/
"use strict";!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof... |
app/javascript/mastodon/features/ui/components/focal_point_modal.js | res-ac/mstdn.res.ac | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { connect } from 'react-redux';
import ImageLoader from './image_loader';
import classNames from 'classnames';
import { changeUploadCompose } from '../../../... |
src/jsx/components/sample/SamplePage.js | developerJohnBeagan2/DatesPicker | /*eslint-disable import/default */
import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import { bindActionCreators } from 'redux';
//import {withRouter} from 'react-router-dom';
import TextInput from '../common/TextInput';
import * as sampleActions from '../../actions/sa... |
client/components/setupWizard/SideBar.js | subesokun/Rocket.Chat | import { Box, Margins, Scrollable } from '@rocket.chat/fuselage';
import { useMediaQuery } from '@rocket.chat/fuselage-hooks';
import React from 'react';
import { useTranslation } from '../../contexts/TranslationContext';
import Logo from './Logo';
import './SideBar.css';
function SideBar({
logoSrc = 'images/logo/lo... |
internals/templates/appContainer.js | tomazy/react-boilerplate | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
wp-content/themes/CherryFramework_v3.1.44/js/jquery-1.7.2.min.js | nagiro/jep | /*! 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... |
src/components/Dialogs/LoginDialog/Separator.js | welovekpop/uwave-web-welovekpop.club | import React from 'react';
const LoginMethodSeparator = () => (
<p className="LoginMethodSeparator">
<span className="LoginMethodSeparator-line" />
<span className="LoginMethodSeparator-label">or</span>
<span className="LoginMethodSeparator-line" />
</p>
);
export default LoginMethodSeparator;
|
app/Pages/HomePage.js | Byte-Code/lm-digitalstore | import React from 'react';
import Page from '../components/Page';
import Home from '../containers/Home';
export default function HomePage() {
return (
<Page
background="linear-gradient(0, #efefef, #ffffff)"
height="1920px"
>
<Home />
</Page>
);
}
|
client/src/components/log-viewer/Pagination.js | peachy-manasis/log-file-viewer | import React from 'react'
import { Button, ButtonGroup } from 'reactstrap';
const Pagination = ({resetSearch, prevPage, nextPage, lastPage}) => {
return (
<div className="Pagination-container">
<ButtonGroup>
<Button size="lg" onClick={resetSearch()}>«</Button>
... |
node_modules/react-bootstrap/es/Fade.js | C0deSamurai/muzjiks | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import classNames from 'classnames';
import React fr... |
src/components/Tab/Tab-test.js | wfp/ui | import React from 'react';
import Tab from '../Tab';
import { shallow, mount } from 'enzyme';
describe('Tab', () => {
describe('renders as expected', () => {
const wrapper = shallow(<Tab label="firstTab" />);
it('adds extra classes that are passed via className', () => {
wrapper.setProps({ className: ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.