path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
app/utils/SlateEditor/HRule.js | GolosChain/tolstoy | import React from 'react'
export default class HRule extends React.Component {
render() {
const { node, state } = this.props
const isFocused = state.selection.hasEdgeIn(node)
const className = isFocused ? 'active' : null
return <hr className={className} />
}
}
|
examples/js/custom/toolbar/custom-button-group.js | powerhome/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-unused-vars: 0 */
/* eslint no-alert: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn, ButtonGroup } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i... |
src/containers/Root.js | LBenzahia/arabicstemmer_frontend |
// TODO: integrating DevTools
import React from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import PropTypes from 'prop-types';
import { Provider } from 'react-redux';
import App from './AppStem';
import DevTools from './DevTools';
const Root = ({}) => (
<MuiThemeProvider>
<P... |
ajax/libs/recompose/0.20.1/Recompose.js | maruilian11/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["Recompose"] = facto... |
sites/all/themes/mosscon/scripts/js/jquery-1.7.2.min.js | clrockwell79/2014mosscon | /*! 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... |
ajax/libs/thorax/2.2.0/thorax-combined-mobile.js | gasolin/cdnjs | /* Zepto v1.0 - polyfill zepto detect event ajax form fx - zeptojs.com/license */
;(function(undefined){
if (String.prototype.trim === undefined) // fix for iOS 3.2
String.prototype.trim = function(){ return this.replace(/^\s+|\s+$/g, '') }
// For iOS 3.x
// from https://developer.mozilla.org/en/JavaScript/... |
test/test_helper.js | ddigioia/react_router_practice_1 | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
ajax/libs/primereact/6.1.0/components/progressbar/ProgressBar.min.js | cdnjs/cdnjs | "use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.Pro... |
src/components/row.js | barrierandco/barrierandco | import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
const RowStyle = styled.div`
background: linear-gradient(to bottom, white, #f2f2f2);
box-shadow: rgba(0, 0, 0, 0.15) 0 20px 50px 0;
padding: 40px 20px;
@media ${props => props.theme.breakpoint} {
padding: 10... |
ajax/libs/yui/3.4.1pr1/event-focus/event-focus-min.js | paleozogt/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... |
frontend/src/components/task/task-tabs.js | worknenjoy/gitpay | import React from 'react'
import PropTypes from 'prop-types'
import { injectIntl, FormattedMessage } from 'react-intl'
import renderHTML from 'react-render-html'
import marked from 'marked'
import ReactPlaceholder from 'react-placeholder'
import 'react-placeholder/lib/reactPlaceholder.css'
import { messages } from './m... |
third_party/blink/perf_tests/speedometer/resources/todomvc/architecture-examples/react-redux/src/components/Footer.spec.js | scheib/chromium | import React from 'react'
import TestUtils from 'react-addons-test-utils'
import Footer from './Footer'
import { SHOW_ALL, SHOW_ACTIVE } from '../constants/TodoFilters'
const setup = propOverrides => {
const props = Object.assign({
completedCount: 0,
activeCount: 0,
filter: SHOW_ALL,
onClearCompleted... |
app/javascript/mastodon/features/ui/util/react_router_helpers.js | cobodo/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { Switch, Route } from 'react-router-dom';
import ColumnLoading from '../components/column_loading';
import BundleColumnError from '../components/bundle_column_error';
import BundleContainer from '../containers/bundle_container';
// Small wrapper t... |
3party/glm/doc/api/jquery.js | syershov/omim | /*!
* jQuery JavaScript Library v1.7.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
ajax/libs/highmaps/1.0.4/highmaps.src.js | hcxiong/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highmaps JS v1.0.4 (2014-09-02)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clearTi... |
ajax/libs/react-slick/0.14.2/react-slick.min.js | brix/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports.Slider=e(require("react"),require("react-dom")):t.Slider=e(t.React,t.ReactDOM)}(this,function(t,... |
MobileApp/node_modules/react-native-elements/example/src/views/lists_home.js | VowelWeb/CoinTradePros.com | import Expo from 'expo';
import React, { Component } from 'react';
import {
View,
ScrollView,
StyleSheet,
Image,
TouchableHighlight,
ListView,
} from 'react-native';
import {
Text,
Card,
ButtonGroup,
Tile,
Grid,
Col,
Row,
Icon,
List,
ListItem,
Avatar
} from 'react-native-elements';
i... |
misc/tabledrag.js | ndubbaka/mirror-drupal | (function ($) {
/**
* Drag and drop table rows with field manipulation.
*
* Using the drupal_add_tabledrag() function, any table with weights or parent
* relationships may be made into draggable tables. Columns containing a field
* may optionally be hidden, providing a better user experience.
*
* Created tableD... |
modules/core/client/components/NoContent.js | Trustroots/trustroots | import classnames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
export default function NoContent({
children = null,
className,
icon,
message,
}) {
return (
<div className={classnames('row content-empty', className)}>
{icon && <i className={`icon-3x icon-${icon}`... |
src/main/app/src/components/Comment.js | pugnascotia/spring-react-boilerplate | /* @flow */
import React from 'react';
const Comment = (props : { content: string, author : string }) => (
<div className="message">
<h3>{props.content}</h3>
<p>By {props.author}</p>
</div>
);
export default Comment;
|
src/server.js | kriuz/clicker | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
import ApiC... |
client/modules/App/__tests__/Components/Header.spec.js | Hashnode/mern-starter | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import { shallow } from 'enzyme';
import { FormattedMessage } from 'react-intl';
import { Header } from '../../components/Header/Header';
import { intl } from '../../../../util/react-intl-test-helper';
const intlProp = { ...intl, enabledLang... |
client/src/templates/Challenges/projects/ProjectForm.js | BhaveshSGupta/FreeCodeCamp | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Form } from '../../../components/formHelpers';
const propTypes = {
isFrontEnd: PropTypes.bool,
isSubmitting: PropTypes.bool,
onSubmit: PropTypes.func.isRequired,
updateProjectForm: PropTypes.func.isRequired
};
const frontE... |
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/actual.js | mohammed52/something.pk | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
ajax/libs/react/15.4.1/react-with-addons.min.js | sajochiu/cdnjs | /**
* React (with addons) v15.4.1
*
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the s... |
examples/bower_components/typeahead.js/test/vendor/jquery-1.9.1.js | jpapillon/bootstrap-tagsinput | /*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-4
*/
(function( window, undefined ) {
// Can't do t... |
src/routes.js | harouf/react-redux-searchportal | import React from 'react';
import {Route} from 'react-router';
import {
App,
Chat,
Home,
Widgets,
About,
Login,
LoginSuccess,
Survey,
NotFound,
} from 'containers';
export default (store) => {
const requireLogin = (nextState, replaceState) => {
const { auth: { user }} = stor... |
public/js/cat_source/es6/components/segments/SegmentButtons.js | matecat/MateCat | import React from 'react'
import _ from 'lodash'
import SegmentStore from '../../stores/SegmentStore'
import CatToolStore from '../../stores/CatToolStore'
import SegmentFilter from '../header/cattol/segment_filter/segment_filter'
import SegmentUtils from '../../utils/segmentUtils'
import CattoolConstants from '../../c... |
src/routes/admin/index.js | BenRichter/app2 | /**
* 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 Layout from '../../compo... |
ajax/libs/angular.js/1.0.0rc5/angular-scenario.js | ldiqual/cdnjs | /** @license
* jQuery JavaScript Library v1.7
* 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 Lic... |
node_modules/rx/dist/rx.all.compat.js | Dereekk/okay | // Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'function': true,
'object': true
};
function checkGlobal(value) {
return (value && value.Object === Object) ? value : null;
}
var freeExpor... |
src/layouts/index.js | teknekale/teknekale | import React from 'react';
import PropTypes from 'prop-types';
import Link from 'gatsby-link';
import Helmet from 'react-helmet';
const Header = () => (
<div
style={{
background: 'rebeccapurple',
marginBottom: '1.45rem'
}}
>
<div
style={{
margin: '0 auto',
maxWidth: 96... |
app/components/ScreenSaver/ScreenSaver.js | mfi-dev/jag-kiosk | /* global $ */
import React from 'react'
import _ from 'lodash'
import './ScreenSaver.styl'
import IMAGE_JSON from '../../images/images.json'
class ScreenSaver extends React.Component {
constructor (props) {
super(props)
const tagNames = ['early_years', 'modern_era', 'todays_force']
const date = new Date... |
src/editable/html/containers/FreeLayout.js | webcerebrium/ec-react15-lib | import React from 'react';
import { Logger, renderChildren, getStyling } from './../../../services';
export const FreeLayout = ({ section, index, props, context, pos, childIndex }) => {
Logger.of('render.html.FreeLayout').info('section', section, 'index', index, 'props', props, 'pos', pos);
const sp = { props, co... |
ajax/libs/ember-data.js/1.0.0-beta.7/ember-data.js | begriffs/cdnjs | /*!
* @overview Ember Data
* @copyright Copyright 2011-2014 Tilde Inc. and contributors.
* Portions Copyright 2011 LivingSocial Inc.
* @license Licensed under MIT license (see license.js)
* @version 1.0.0-beta.7.f87cba88
*/
(function(global) {
var define, requireModule, require, requirejs;
(funct... |
docs/src/pages/demos/tabs/TabsWrappedLabel.hooks.js | Kagami/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { makeStyles } from '@material-ui/styles';
import AppBar from '@material-ui/core/AppBar';
import Tabs from '@material-ui/core/Tabs';
import Tab from '@material-ui/core/Tab';
import Typography from '@material-ui/core/Typography';
function TabContaine... |
ajax/libs/6to5/1.13.0/browser-polyfill.js | artch/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... |
js/jquery-1.11.2.min.js | suriyadeepan/suriyadeepan.github.io | /*! jQuery v1.11.2 | (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... |
src/Sparklines.js | codevlabs/react-sparklines | import React from 'react';
import SparklinesLine from './SparklinesLine';
import SparklinesBars from './SparklinesBars';
import SparklinesSpots from './SparklinesSpots';
import SparklinesReferenceLine from './SparklinesReferenceLine';
import SparklinesNormalBand from './SparklinesNormalBand';
import DataProcessor from ... |
src/decorators/withViewport.js | tomesposito/blog | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from '../../node_modules/react/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height:... |
app/components/DummyScreen.js | y-takey/shokushu | import _ from 'lodash';
import React, { Component } from 'react';
import styles from './DummyScreen.module.css';
const style = {
margin: 0,
padding: 0,
backgroundColor: "#282c34",
backgroundImage: "none",
fontSize: "15px",
fontFamily: "Menlo, Consolas, 'DejaVu Sans Mono', monospace",
lineHeight: 1.2,
c... |
packages/icons/src/dv/CreativeCommons.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function DvCreativeCommons(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M23.77 20.675c-1.129-2.063-3.06-2.881-5.303-2.881-3.262 0-5.855 2.305-5.855 6.214 0 3.971 2.437 6.214 5.964 6.214 2.266 0 4.19-1.246 5.256-3.... |
src/server.js | hiEven/HackNTUClient | import Express from 'express';
import React from 'react';
import Location from 'react-router/lib/Location';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
im... |
ajax/libs/yui/2.7.0/container/container-debug.js | 2947721120/cdnjs | /*
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.7.0r2
*/
(function () {
/**
* Config is a utility used within an Object to allow the implementer to
* maintain a list of local configuration properties and list... |
src/components/AutoComplete.js | OrganicCat/ld-email-service | import React from 'react'
import { searchService } from '../utils/searchService'
import { connect } from 'react-redux'
class AutoComplete extends React.Component {
constructor(props) {
super(props)
this.state = {
name: '',
list: [],
cursor: 0,
loading: false,
}
this.handleKeyD... |
src/svg-icons/device/access-alarms.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceAccessAlarms = (props) => (
<SvgIcon {...props}>
<path d="M22 5.7l-4.6-3.9-1.3 1.5 4.6 3.9L22 5.7zM7.9 3.4L6.6 1.9 2 5.7l1.3 1.5 4.6-3.8zM12.5 8H11v6l4.7 2.9.8-1.2-4-2.4V8zM12 4c-5 0-9 4-9 9s4 9 9 9 9-4 9... |
test/FormGroupSpec.js | azmenak/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import FormGroup from '../src/FormGroup';
import {shouldWarn} from './helpers';
describe('FormGroup', function() {
it('renders children', function() {
let instance = ReactTestUtils.renderIntoDocument(
<FormGroup>
<spa... |
src/components/Layout/Footer.js | vincentdd/crm | import React from 'react'
import {
config
} from 'utils'
import styles from './Footer.less'
const Footer = () => (<div className={styles.footer}>
{config.footerText}
</div>)
export default Footer |
src/AboutUs.js | noedlm/png-site | import React, { Component } from 'react';
class AboutUs extends Component {
render() {
return (
<div className="d-flex jumbotron jumbotron-fluid section" id="about-us">
<div className="container container-fluid">
<h1 className="display-4 spread-letters">About Us</h1>
<br/>
... |
src/containers/DevTools/DevTools.js | thomastanhb/ericras | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor toggleVisibilityKey="H"
changePositionKey="Q">
<LogMonitor />
</Dock... |
packages/react-router-native/examples/Ambiguous.js | goblortikus/react-router | import React from 'react'
import { StyleSheet, Text, AppRegistry, View } from 'react-native'
import { NativeRouter, Route, Link, Switch } from 'react-router-native'
const About = () => <Text style={styles.header}>About</Text>
const Company = () => <Text style={styles.header}>Company</Text>
const User = ({ match }) => ... |
src/TextField/EnhancedTextarea.js | rscnt/material-ui | import React from 'react';
import EventListener from 'react-event-listener';
const rowsHeight = 24;
function getStyles(props, context, state) {
return {
root: {
position: 'relative', // because the shadow has position: 'absolute'
},
textarea: {
height: state.height,
width: '100%',
... |
__tests__/index.android.js | jonajgs/se-ov | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/NAICSCompatibilityModal.js | louh/naics-browser | import React from 'react'
import './NAICSCompatibilityModal.css'
function NAICSCompatibilityModal (props) {
return (
<div className="compatibility-modal-container">
<div className="compatibility-modal-background" onClick={props.closeModal} />
<div className="compatibility-modal">
<div classNa... |
app/views/Homies.js | mziemer21/wedding | import React, { Component } from 'react';
import '../assets/styles/shell.css';
export default class Homies extends Component {
render() {
return (
<div>
</div>
);
}
}
|
packages/vs-button/story.js | vivintsolar-oss/react-components | import React from 'react';
import { storiesOf } from '@storybook/react';
import { withKnobs, text, boolean } from '@storybook/addon-knobs';
import VSButton from './src/index';
const stories = storiesOf('Button', module);
stories.addDecorator(withKnobs);
stories.add('Primary', () => {
return (
<VSButton
d... |
src/components/Home/Home.js | samkguerrero/samkguerrero_react | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present 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 * as FontAwesome from 'react-icons/lib/fa';
i... |
fields/types/cloudinaryimage/CloudinaryImageColumn.js | trentmillar/keystone | import React from 'react';
import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var CloudinaryImageColumn = React.createClass({
displayName: 'CloudinaryImageCo... |
ajax/libs/6to5/3.0.1/browser.js | dada0423/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/components/ui/bold.js | xavier-besson/react-playground | import React from 'react';
import Default from 'components/ui/default';
/**
* @class Bold
* @extends Default
*/
class Bold extends Default {
/**
* React method.
* Return a single React element.
* This element can be either a representation of a native DOM component,
* such as <div />, or another composit... |
app/javascript/mastodon/components/autosuggest_emoji.js | ikuradon/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import unicodeMapping from '../features/emoji/emoji_unicode_mapping_light';
import { assetHost } from 'mastodon/utils/config';
export default class AutosuggestEmoji extends React.PureComponent {
static propTypes = {
emoji: PropTypes.object.isRequire... |
ajax/libs/forerunnerdb/1.3.394/fdb-legacy.min.js | pombredanne/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... |
app/Resources/static-src/app/js/courseset-manage/detail/index.js | richtermark/SMEAGOnline | import ReactDOM from 'react-dom';
import React from 'react';
import MultiInput from 'app/common/component/multi-input';
import postal from 'postal';
class detail {
constructor() {
this.init();
}
init() {
this.initCkeditor();
this.renderMultiGroupComponent('course-goals', 'goals');
this.renderMul... |
src/svg-icons/action/assignment-late.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentLate = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-6 15h-2v-2h2v2zm0... |
src/form_builder/editor/string_input.js | clearbridgesoft/form-builder | import React from 'react';
import Form from 'react-jsonschema-form';
import common from './_common';
import deepmerge from 'deepmerge';
const schema = deepmerge(common,{
'type':'object',
'properties':{
'name':{
'type':'string',
'title':'Name'
},
'configs':{
'type': 'object',
'pr... |
frontend/src/MovieFile/Editor/MediaInfoPopover.js | Radarr/Radarr | import React from 'react';
import DescriptionList from 'Components/DescriptionList/DescriptionList';
import DescriptionListItem from 'Components/DescriptionList/DescriptionListItem';
function MediaInfoPopover(props) {
return (
<DescriptionList>
{
Object.keys(props).map((key) => {
const ti... |
examples/huge-apps/routes/Grades/components/Grades.js | moudy/react-router | import React from 'react';
class Grades extends React.Component {
render () {
return (
<div>
<h2>Grades</h2>
</div>
);
}
}
export default Grades;
|
assets/admin/js/datatables/js/jquery.js | developerPagpug/0001 | /*! jQuery v1.8.2 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d===... |
websites/skraning.vefverdlaun.is/src/app/middlewares/react-router/index.js | svef/www | import React from 'react'
import { BrowserRouter, StaticRouter } from 'react-router-dom'
const router = () => session => {
const context = {}
session.on('server', next => {
next()
if (context.url) {
session.req.redirect(context.status || 302, context.url)
} else if (context.status) {
sessio... |
src-example/components/molecules/PrimaryNavigation/index.stories.js | SIB-Colombia/biodiversity_catalogue_v2_frontend | import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { PrimaryNavigation } from 'components'
storiesOf('PrimaryNavigation', module)
.add('default', () => (
<PrimaryNavigation />
))
.add('reverse', () => (
<PrimaryNavigation reverse />
))
|
templates/rubix/laravel/laravel-example/src/main.js | jeffthemaximum/jeffline | import React from 'react';
import ReactDOM from 'react-dom';
import routes from './routes';
import render, { setRoutes } from '@sketchpixy/rubix/lib/others/router';
import { isBrowser } from '@sketchpixy/rubix';
if (isBrowser()) {
render(routes, () => {
console.log('Completed rendering!');
});
if (module.h... |
index.js | torvalde/torvalde.github.io | 'use strict';
import React from 'react';
import { render } from 'react-dom';
import Hello from './js/components/Hello';
render(
<Hello page={window.location.pathname}/>,
document.getElementById('main')
);
|
src/routes/RetailersMap/components/MapLoading/MapLoadingSlider.js | TheModevShop/craft-app | import React from 'react';
import $ from "jquery";
import Promise from 'bluebird'
import MapLoading from './MapLoading2';
import './map-loading-slider.less';
class MapLoadingSlider extends React.Component {
constructor(...args) {
super(...args);
this.state = {
index: 1
};
}
componentDidMount(... |
examples/dev/src/components/ImmutableList.js | pure-ui/styleguide | import React from 'react';
import { List } from 'immutable';
/**
* ImmutableList component
*
* @exampleFixtures
* import { List } from 'immutable';
* const list = List([1,2,3]);
* const emptyList = List();
* @example
* <Component data={ emptyList } />
* @example
* <Component data={ list } />
*/
export defau... |
packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/DestructuringAndAwait.js | Timer/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.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
async function load() {
return {
users: [
{ i... |
index.js | sherwinterunez/rn-avatar |
import React, { Component } from 'react';
import {
Image,
Text,
TouchableOpacity,
View,
} from 'react-native';
export default class Avatar extends Component {
setAvatarColor() {
const userName = this.props.avatarName || '';
const name = userName.toUpperCase().split(' ');
//console.log({userNam... |
app/javascript/mastodon/features/account_gallery/components/media_item.js | musashino205/mastodon | import Blurhash from 'mastodon/components/blurhash';
import classNames from 'classnames';
import Icon from 'mastodon/components/icon';
import { autoPlayGif, displayMedia, useBlurhash } from 'mastodon/initial_state';
import { isIOS } from 'mastodon/is_mobile';
import PropTypes from 'prop-types';
import React from 'react... |
test/FadeSpec.js | glenjamin/react-bootstrap | import React from 'react';
import { mount } from 'enzyme';
import Fade from '../src/Fade';
describe('Fade', () => {
let Component, wrapper;
beforeEach(() => {
Component = class extends React.Component {
render() {
let { children, ...props } = this.props;
return (
<Fade ref={r... |
src/index.js | City-Bus-Stops/get-route-components | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, browserHistory, IndexRedirect } from 'react-router';
import { Provider } from 'react-redux';
import { syncHistoryWithStore } from 'react-router-redux';
import 'leaflet/dist/leaflet.css';
import '../public/css/index.css';
import '../no... |
server/sonar-web/src/main/js/apps/project-admin/links/Header.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
node_modules/react-native/local-cli/templates/HelloNavigation/views/welcome/WelcomeScreen.js | joan17cast/Enigma | 'use strict';
import React, { Component } from 'react';
import {
Image,
Platform,
StyleSheet,
} from 'react-native';
import ListItem from '../../components/ListItem';
import WelcomeText from './WelcomeText';
export default class WelcomeScreen extends Component {
static navigationOptions = {
title: 'Welc... |
sdk/Javascript/src/MobileServiceLogin.js | YOTOV-LIMITED/azure-mobile-services | // ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
/// <reference path="C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0\ExtensionSDKs\Microsoft.W... |
src/routes.js | iGameLab/teleport-client | import React from 'react'
import { Route, IndexRoute } from 'react-router'
import Root from './root/Root'
import Home from './pages/Home/Home'
import Games from './pages/Games/Games'
import GameDetail from './pages/GameDetail/GameDetail'
import GameLobby from './pages/GameLobby/GameLobby'
import Manage from './pages/M... |
actor-apps/app-web/src/app/components/common/ConnectionState.react.js | chenbk85/actor-platform | import React from 'react';
import classnames from 'classnames';
import ConnectionStateStore from 'stores/ConnectionStateStore';
const getStateFromStore = () => {
return {
connectionState: ConnectionStateStore.getState()
};
};
class ConnectionState extends React.Component {
constructor(props) {
super(pro... |
app/components/App.js | migueloop/1streaction | import React from 'react';
import Navbar from './Navbar';
import Footer from './Footer';
class App extends React.Component {
render() {
return (
<div>
<Navbar history={this.props.history} />
{this.props.children}
<Footer />
</div>
);
}
}
export default App; |
ajax/libs/raven.js/3.2.1/raven.js | tholu/cdnjs | /*! Raven.js 3.2.1 (bbd229d) | github.com/getsentry/raven-js */
/*
* Includes TraceKit
* https://github.com/getsentry/TraceKit
*
* Copyright 2016 Matt Robenolt and other contributors
* Released under the BSD license
* https://github.com/getsentry/raven-js/blob/master/LICENSE
*
*/
(function(f){if(typeof export... |
src/svg-icons/social/people.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPeople = (props) => (
<SvgIcon {...props}>
<path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.... |
docs/src/pages/components/dialogs/AlertDialogSlide.js | kybarg/material-ui | import React from 'react';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
import DialogContentText from '@material-ui/core/DialogContentText';
import D... |
admin/client/App/screens/Item/components/EditForm.js | jacargentina/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import moment from 'moment';
import assign from 'object-assign';
import {
Button,
Col,
Form,
FormField,
FormInput,
ResponsiveText,
Row,
Spinner,
} from 'elemental';
import { Fields } from 'FieldTypes';
import AlertMessages from '../../../share... |
files/backbone.marionette/1.8.2/backbone.js | afghanistanyn/jsdelivr | // 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 ... |
Build/MongoDB/NavDB/node_modules/send/node_modules/debug/src/browser.js | AndriesJacobus/COS301Phase3BroadswordNavigation | /**
* 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 chrom... |
src/components/App.js | sjackson212/A6DotCom | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present 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 PropTypes from 'prop-... |
ajax/libs/forerunnerdb/1.3.374/fdb-all.js | brix/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
src/routes/householdDetail/index.js | 0xcdc/rfb-client-app | import React from 'react';
import { stubHousehold } from 'components/stubs';
import Layout from 'components/Layout';
import HouseholdDetail from './HouseholdDetail';
const title = 'RFB Household Detail';
function loadHousehold(id, graphQL) {
const query = `
{
household(id: ${id}) {
id
addre... |
src/interface/report/Results/CharacterTab.js | yajinni/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { makeCharacterUrl, makeArmoryUrl } from 'interface/makeAnalyzerUrl';
import WoWAnalyzerIcon from 'interface/icons/WoWAnalyzer';
import ArmoryIcon from 'interface/icons/Armory';
import Combatant from 'parser/... |
imports/ui/containers/connections/connectSelect.js | jiyuu-llc/jiyuu | import React from 'react';
import { composeWithTracker } from 'react-komposer';
import { Connections } from '/lib/collections';
import ConnectSelect from '../../components/connections/connectSelect.jsx';
const composer = ( props, onData ) => {
if (subsManager.subscribe('connections').ready()
&& connectedUs... |
src/svg-icons/editor/format-textdirection-l-to-r.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatTextdirectionLToR = (props) => (
<SvgIcon {...props}>
<path d="M9 10v5h2V4h2v11h2V4h2V2H9C6.79 2 5 3.79 5 6s1.79 4 4 4zm12 8l-4-4v3H5v2h12v3l4-4z"/>
</SvgIcon>
);
EditorFormatTextdirectionLToR = p... |
ajax/libs/yui/3.10.1/simpleyui/simpleyui-debug.js | KyleMit/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
@main yui
@submodule yui-base
**/
/*jshint eqeqeq: false*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The... |
ajax/libs/yui/3.10.1/scrollview-base/scrollview-base.js | ethantw/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
// Local vars
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
IE = Y.UA.ie... |
src/components/idle.js | whoisandie/react-player | import React from 'react';
import cx from 'classnames';
import Player from '../player';
const { PropTypes, Component } = React;
class Idle extends Component {
static propTypes = {
playing: PropTypes.bool,
player: PropTypes.instanceOf(Player),
className: PropTypes.string,
}
shouldComponentUpdate() {... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.