path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
src/routes/content/index.js | DanielHabib/Float | /**
* 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 Content from './Content'... |
packages/material-ui-icons/src/BatteryCharging60TwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V11h3.87L13 7v4h4V5.33C17 4.6 16.4 4 15.67 4z" /><path d="M13 12.5h2L11 20v-5.5H9l1.87-3.5H7v9.67C7 21.4 7.6 22 8.33 22h7.33c... |
plugins/jQRangeSlider/jQEditRangeSlider-min.js | WatchSMS/Dashboard | /*! jQRangeSlider 5.7.2 - 2016-01-18 - Copyright (C) Guillaume Gautreau 2012 - MIT and GPLv3 licenses.*/!function(a,b){"use strict";a.widget("ui.rangeSliderMouseTouch",a.ui.mouse,{enabled:!0,_mouseInit:function(){var b=this;a.ui.mouse.prototype._mouseInit.apply(this),this._mouseDownEvent=!1,this.element.bind("touchstar... |
ajax/libs/concent/2.15.2/concent.js | cdnjs/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
(factory((global.concent = {}),global.React));
}(this, (function (exports,React) { 'use strict';
... |
ajax/libs/jquery/1.8.0/jquery-1.8.0.min.js | paleozogt/cdnjs | /*! jQuery v@1.8.0 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=... |
frontend/app_v2/src/components/Search/SearchPresentation.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
import { useLocation, Link } from 'react-router-dom'
import DictionaryList from 'components/DictionaryList'
import DictionaryGrid from 'components/DictionaryGrid'
import SearchInput from 'components/SearchInput'
import useIcon from 'common/useIcon'
function... |
src/components/breadcrumbs/geotag-breadcrumbs.js | Lokiedu/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2016 Loki Education (Social Enterprise)
This program 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, either version 3 of the License, o... |
SQL/client/src/components/smart/Posts/List.js | thebillkidy/MERGE-Stack | import React from 'react'
import Link from 'next/link'
import { graphql, gql } from 'react-apollo'
import Post from './Post'
import Container from '../../dumb/Container'
import Header from '../Header'
class List extends React.Component {
static propTypes = {
data: React.PropTypes.object,
}
render() {
i... |
docs/src/Anchor.js | nickuraltsev/react-bootstrap | import React from 'react';
const Anchor = React.createClass({
propTypes: {
id: React.PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.number
])
},
render() {
return (
<a id={this.props.id} href={'#' + this.props.id} className="anchor">
<span className="anchor-ic... |
src/utils/childUtils.js | tan-jerene/material-ui | import React from 'react';
import createFragment from 'react-addons-create-fragment';
export function createChildFragment(fragments) {
const newFragments = {};
let validChildrenCount = 0;
let firstKey;
// Only create non-empty key fragments
for (const key in fragments) {
const currentChild = fragments[k... |
src/app/component/tooltip-hint/tooltip-hint.js | all3dp/printing-engine-client | import PropTypes from 'prop-types'
import React from 'react'
import propTypes from '../../prop-types'
import cn from '../../lib/class-names'
const TooltipHint = ({children, tooltip, classNames, show = false}) => (
<div className={cn('TooltipHint', {show}, classNames)}>
{children}
<div className="TooltipHint... |
ajax/libs/react-slick/0.12.5/react-slick.js | honestree/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
app/modules/common/filesUpload/item/item.js | theseushu/funong-web | import React, { Component, PropTypes } from 'react';
import injectSheet from 'react-jss';
import _now from 'lodash/now';
import IconButton from 'react-mdl/lib/IconButton';
const generateKey = () => _now();
class FileUploadItem extends Component {
static propTypes = {
file: PropTypes.shape({
process: PropT... |
src/components/form/preview_item.js | woshisbb43/coinMessageWechat | //1.0.0 components
import React from 'react';
import PropTypes from 'prop-types';
import classNames from '../../utils/classnames';
/**
* Preview Item for all purpose usage
*
*/
const PreviewItem = (props) => {
const { className, label, value, ...others } = props;
const cls = classNames({
'weui-for... |
src/todo/TaskForm.js | carlodicelico/reify | import React from 'react';
const TaskForm = (props) => {
return (
<p className='control has-icon has-icon-right'>
<input autoFocus={true} className='add-task input is-large' type='text' placeholder='Add a task' />
<i className='fa fa-plus'></i>
</p>
);
};
export default TaskForm;
|
ajax/libs/F2/1.3.1/f2.min.js | icco/cdnjs | /*! F2 - v1.3.1 - 10-15-2013 - See below for copyright and license */
(function(exports){if(!exports.F2||exports.F2_TESTING_MODE){/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obta... |
react-js/browser-history-production/test/test_helper.js | vanyaland/react-demos | 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... |
definitions/npm/styled-components_v3.x.x/flow_v0.104.x-/test_styled-components_native_v3.x.x.js | splodingsocks/FlowTyped | // @flow
import nativeStyled, {
ThemeProvider as NativeThemeProvider,
withTheme as nativeWithTheme,
keyframes as nativeKeyframes,
} from 'styled-components/native'
import React from 'react'
import type {
Theme as NativeTheme,
Interpolation as NativeInterpolation,
ReactComponentFunctional as NativeReactCompo... |
auth/src/components/common/Input.js | dunkvalio/ReactNative | import React from 'react';
import { TextInput, View, Text } from 'react-native';
const Input = ({ label, value, onChangeText, placeholder, secureTextEntry }) => {
const { inputStyle, labelStyle, containerStyle } = styles;
return (
<View style={containerStyle}>
<Text style={labelStyle}>{label}</Text>
... |
src/containers/ImageModal.js | Hylozoic/hylo-redux | import React from 'react'
import Modal from '../components/Modal'
import Icon from '../components/Icon'
const { func, string } = React.PropTypes
const leftOffset = () => {
if (typeof window === 'undefined') return 0
const main = document.getElementById('main')
if (!main) return 0 // this should be the case only ... |
ajax/libs/instantsearch.js/1.8.6/instantsearch-preact.min.js | sreym/cdnjs | /*! instantsearch.js 1.8.6 | © Algolia Inc. and other contributors; Licensed MIT | github.com/algolia/instantsearch.js */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.instantsearch=t():e.instantsea... |
public/app/components/app.js | threepears/react_todo | import React from 'react';
import ToDoHeader from './header';
import EntryForm from './entryform';
import Notes from './notes';
export default class App extends React.Component {
constructor(props) {
super(props);
this.state = {todos: []};
}
componentDidMount() {
console.log("MOUNTING");
this... |
source/containers/DevTools.js | mpalmer685/DebtPayoffCalculator | 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="ctrl-h"
changePositionKey="ctrl-w">
<LogMonit... |
src/components/Navigation/Navigation.js | louisukiri/react-starter-kit | /**
* 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 cx from 'classnames';... |
src/icons/ClosedCaptioning.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class ClosedCaptioning extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<g>
<path d="M0,64v384h512V64H0z M464,255.825c0.045,26.724-1.547,47.143-3.797,80.223S441,392.5,401.097,396.168
... |
app/app.js | rjzheng/REWBoilerplate | /* Node Modules */
import React from 'react';
import ReactDOM from 'react-dom';
import { Route, Router, IndexRoute, hashHistory } from 'react-router';
import { Provider } from 'react-redux';
/* Routes */
import routes from './routes';
/* Store */
import * as conf from 'configureStore';
// Init custom store configurat... |
examples/todos/src/Todo.js | FourSS/refar | import React from 'react'
import { PureComponent } from 'react-pure-render'
import { createContainer } from '../../../lib'
class Todo extends PureComponent { // a little worker
render() {
const { id, text, completed } = this.props
if (id === 456) {
console.log(completed)
}
return (
<div>
... |
src/server.js | kswang2400/WOMO | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import 'babel/polyfill';
import _ from 'lodash';
import fs from 'fs';
import path from 'path';
import express from 'express';
import React from 'react';
import './core/Dispatcher';
import './stores/AppStore';
import db from './core/Database';
imp... |
libs/react/0.5.2/react.js | xuminready/baiducdnstatic | /**
* React v0.5.2
*/
!function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.React=e():"undefined"!=typeof global?global.React=e():"undefined"!=typeof self&&(self.React=e())}(function(){var define,module,exports;
return (function e(t,... |
admin/client/App/screens/Item/components/RelatedItemsList/RelatedItemsListRow.js | linhanyang/keystone | import React, { Component, PropTypes } from 'react';
import { DropTarget, DragSource } from 'react-dnd';
import { Columns } from 'FieldTypes';
import {
reorderItems,
resetItems,
moveItem,
} from '../../actions';
import ListControl from '../../../List/components/ListControl';
class RelatedItemsListRow extends Com... |
example/app.js | zanroo/react-treeview | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import TreeView from '../src/index';
import data from './data';
import '../src/default/style.css';
// import * as filters from './filter';
// Example: Customising The Header Decorator To Include Icons
// const decorators = {};
/*
decorators... |
node_modules/semantic-ui-react/dist/es/modules/Progress/Progress.js | SuperUncleCat/ServerMonitoring | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/i... |
ajax/libs/analytics.js/2.3.13/analytics.min.js | fatso83/cdnjs | (function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[name])return cache[name].exports;if(modules[name])return call(name,require);throw new Error('cannot find module "'+name+'"')}function call(id,require){var m=cache[id]={exports:{}};var mod=modules[id];var n... |
app/javascript/flavours/glitch/features/ui/components/image_loader.js | vahnj/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class ImageLoader extends React.PureComponent {
static propTypes = {
alt: PropTypes.string,
src: PropTypes.string.isRequired,
previewSrc: PropTypes.string.isRequired,
width: PropTypes.n... |
react/components-communicate-through-reflux/src/components/LoadingTracker/LoadingTracker.js | kunukn/sandbox-web | import React from 'react';
import {LOADING_STATES, LOADING_TYPES, LOADING_CONFIG} from '../../utils';
class LoadingTracker extends React.Component {
constructor(props) {
super(props);
this.state = {
loadingType: LOADING_TYPES.SHORT,
};
}
componentDidMount() {
... |
src/routes/search/Search.js | LevelPlayingField/levelplayingfield | /* @flow */
import React from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import FontAwesomeIcon from '@fortawesome/react-fontawesome';
import { faSearch, faSpinner, faChevronUp, faChevronDown } from '@fortawesome/fontawesome-free-solid';
import cx from 'classnames';
import qs from ... |
bootstrap/template/Web/src/main/webapp/assets/vendors/flot/jquery.js | yamingd/argo | /*!
* jQuery JavaScript Library v1.8.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time)
*/
(function(... |
frontend/node_modules/recharts/demo/component/RadarChart.js | justdotJS/rowboat | import React, { Component } from 'react';
import { Surface, Radar, RadarChart, PolarGrid, Legend, Tooltip,
PolarAngleAxis, PolarRadiusAxis, ResponsiveContainer,
LabelList, Label } from 'recharts';
import DemoRadarItem from './DemoRadarItem';
import { changeNumberOfData } from './utils';
const data = [
{ subject:... |
app/containers/HomePage/index.js | codermango/BetCalculator | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*/
import React from 'react';
import { connect } from 'react-redux';
import { RaisedButton, Dialog, FloatingActionButton } from 'material-ui';
import ContentAdd from 'material-ui/svg-icons/content/add';
import ContentRemove from 'mate... |
ajax/libs/primereact/7.0.0-rc.1/overlaypanel/overlaypanel.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import { UniqueComponentId, ConnectedOverlayScrollHandler, DomHandler, OverlayService, ZIndexUtils, Ripple, classNames, CSSTransition, Portal } from 'primereact/core';
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new T... |
src/components/ChatBox/ChatBox.js | renesansz/react-chat | import React from 'react';
import ChatBoxControls from './ChatBoxControls/ChatBoxControls';
import ChatBoxCard from './ChatBoxCard/ChatBoxCard';
import './ChatBox.css';
class ChatBox extends React.Component {
render() {
const messages = this.props.messages.map((message) =>
<ChatBoxCard key={ ... |
src/components/FeedPhoto.js | adamfaryna/flickr-public-gallery | /*
* Copyright (C) 2017 Adam Faryna <adamfaryna@appdy.net>
*
* Distributed under terms of the BSD 2-Clause license.
*/
import React from 'react';
import PropTypes from 'prop-types';
const FeedPhoto = ({ title, author, photoLink, authorLink }) => (
<div className='feed-item__feed-photo'>
<div src={photoLink} ... |
src/svg-icons/image/nature-people.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageNaturePeople = (props) => (
<SvgIcon {...props}>
<path d="M22.17 9.17c0-3.87-3.13-7-7-7s-7 3.13-7 7c0 3.47 2.52 6.34 5.83 6.89V20H6v-3h1v-4c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v4h1v5h16v-2h-3v-3.88c3.47-.41 ... |
docs/src/HomePage.js | Cellule/react-bootstrap | import React from 'react';
import NavMain from './NavMain';
import PageFooter from './PageFooter';
import Grid from '../../src/Grid';
import Alert from '../../src/Alert';
import Glyphicon from '../../src/Glyphicon';
export default class HomePage extends React.Component{
render() {
return (
<div>
<... |
ajax/libs/vkui/4.29.0/components/ActionSheet/ActionSheetDropdownDesktop.min.js | cdnjs/cdnjs | import _extends from"@babel/runtime/helpers/extends";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["children","toggleRef","closing","popupDirection","onClose","className","style"];import{createScopedElement}from"../../lib/jsxRuntime";import*as React from"react";impo... |
react-fundamentals-es6/lessons/12-composable/main.js | 3mundi/React-Bible | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('app'));
|
ajax/libs/react-router/3.0.3/ReactRouter.min.js | tonytomov/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactRouter=t(require("react")):e.ReactRouter=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].e... |
server/sonar-web/src/main/js/apps/project-admin/quality-profiles/ProfileRow.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... |
src/server.js | CSE-437/WebServer | /**
* 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 'babel-core/polyfill';
import path from 'path';
im... |
node_modules/react-router/es/withRouter.js | NickingMeSpace/questionnaire | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
import invariant from 'invariant';
import React from 'react';... |
todomvc/test/components/Header.spec.js | samlatif-uk/redux-tdd-hw | import expect from 'expect'
import React from 'react'
import TestUtils from 'react-addons-test-utils'
import Header from '../../components/Header'
import TodoTextInput from '../../components/TodoTextInput'
function setup() {
const props = {
addTodo: expect.createSpy()
}
const renderer = TestUtils.createRend... |
src/Fade.js | pandoraui/react-bootstrap | import React from 'react';
import Transition from 'react-overlays/lib/Transition';
import CustomPropTypes from './utils/CustomPropTypes';
import deprecationWarning from './utils/deprecationWarning';
class Fade extends React.Component {
render() {
let timeout = this.props.timeout || this.props.duration;
retu... |
packages/material-ui-icons/src/SentimentVerySatisfiedRounded.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="M8.88 9.94l.53.53c.29.29.77.29 1.06 0 .29-.29.29-.77 0-1.06l-.88-.88a.9959.9959 0 0 0-1.41 0l-.89.88c-.29.29-.29.77 0 1.06.29.29.77.29 1.06 0... |
src/App.spec.js | SteveHoggNZ/react-transform-boilerplate-tape-tests | import React from 'react';
import ReactDOM from 'react-dom';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import sd from 'skin-deep';
import $ from 'jquery';
import { render } from 'react-dom';
import { App, Counter } from './App';
import { NICE, SUPER_NICE } from './colors';
import test from 'tape';
test(... |
app/components/dataSet/DataSetValuesChart.js | sheldhur/Vector | // @flow
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { NoDataAlert, ProgressAlert } from '../widgets/ChartAlert';
import LineChart from '../chart/LineChart';
import TitleCurrentTime from '../main/... |
fields/types/number/NumberField.js | codevlabs/keystone | import React from 'react';
import Field from '../Field';
import { FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'NumberField',
valueChanged (event) {
var newValue = event.target.value;
if (/^-?\d*\.?\d*$/.test(newValue)) {
this.props.onChange({
path: this.props.path,
value... |
fields/components/columns/InvalidColumn.js | tony2cssc/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue';
var InvalidColumn = React.createClass({
displayName: 'InvalidColumn',
propTypes: {
col: React.PropTypes.obje... |
ajax/libs/react-localstorage/0.2.5/react-localstorage.js | cdnjs/cdnjs | 'use strict';
var React = require('react');
var invariant = require('react/lib/invariant');
var warn = require('react/lib/warning');
var hasLocalStorage = 'localStorage' in global;
var ls, testKey;
if (hasLocalStorage) {
testKey = 'react-localstorage.mixin.test-key';
try {
// Access to global `localStorage` pr... |
src/shared/SimpleAccordion/SimpleAccordion.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react';
import Icon from '../Icon';
import styles from './SimpleAccordion.css'; // eslint-disable-line no-unused-vars
const SimpleAccordion = ({title, children, show = true}) => {
if (!show) {
return null;
}
return (
<details styleName="styles.details">
<su... |
src/components/Footer/Footer.js | max-gram/react-saga-universal | import React from 'react'
import PropTypes from 'prop-types'
import css from './Footer.css'
const Footer = (props) => {
return (
<footer className={css.mainFooter}>
<div>
Fork me on <a href="https://github.com/max-gram/react-saga-universal">Github</a>
</div>
</footer>
)
}
Footer.propT... |
src/components/Viewer/components/Controls/index.js | jacobwindsor/pathway-presenter | import React from 'react';
import IconButton from 'material-ui/IconButton';
import ArrowBack from 'material-ui/svg-icons/navigation/arrow-back';
import ArrowForward from 'material-ui/svg-icons/navigation/arrow-forward';
import NavigationFullscreen from 'material-ui/svg-icons/navigation/fullscreen';
import NavigationFul... |
frontend/modules/list/components/ListHeader.js | RyanNoelk/OpenEats | "use strict";
import React from 'react'
import classNames from 'classnames'
import PropTypes from 'prop-types'
import { injectIntl, defineMessages } from 'react-intl'
import {
ENTER_KEY,
ESCAPE_KEY
} from '../constants/ListStatus'
class ListHeader extends React.Component {
constructor(props) {
super(props)... |
ajax/libs/react-bootstrap-table/3.3.8/react-bootstrap-table.min.js | wout/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactBootstrapTable=t(require("react"),require("react-dom")):e.ReactBootstrapTable=t(e.React,e.R... |
src/components/Pill/Pill.example.js | 6congyao/CGB-Dashboard | /*
* Copyright (c) 2016-present, Parse, LLC
* All rights reserved.
*
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
*/
import React from 'react';
import Pill from 'components/Pill/Pill.react';
export const component = Pill;
export const d... |
client/modules/App/components/DevTools.js | openfocus/HTH-MERN | 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="ctrl-h"
changePositionKey="ctrl-w"
>
<LogMonitor />
... |
build/lib/Route.js | zeke/react-router | 'use strict';
var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } };
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i... |
ajax/libs/mobx-react/4.0.0/index.js | BenjaminVanRyseghem/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("mobx"), require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["mobx", "react", "react-dom"], factory);
else if... |
src/Orchard.Web/Modules/Orchard.jQuery/Scripts/jquery-1.11.1.min.js | BrianAckerman/Lost-Arts-Astrology | /*! 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... |
src/core/LoginLogout/component.js | dlennox24/ricro-app-template | import Avatar from '@material-ui/core/Avatar';
import CircularProgress from '@material-ui/core/CircularProgress';
import Portal from '@material-ui/core/Portal';
import Snackbar from '@material-ui/core/Snackbar';
import withStyles from '@material-ui/core/styles/withStyles';
import axios from 'axios';
import IconAccountC... |
node_modules/bson/browser_build/bson.js | VahapZTL/OyunCeviri-EasyTranslation | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else {
var a = factory();
for(var i in a) (typeof exports === 'object' ? exports : roo... |
app/routes.js | BestBuyAPIs/bestbuy-sdk-js-sample-app | import React from 'react';
import {Route} from 'react-router';
import App from './components/App';
import Home from './components/Home';
export default (
<Route handler={App}>
<Route path='/' handler={Home}/>
<Route path='favicon.ico'/>
</Route>
); |
src/packages/recompose/__tests__/renameProp-test.js | acdlite/recompose | import React from 'react'
import { mount } from 'enzyme'
import { withProps, renameProp, compose } from '../'
test('renameProp renames a single prop', () => {
const StringConcat = compose(
withProps({ 'data-so': 123, 'data-la': 456 }),
renameProp('data-so', 'data-do')
)('div')
expect(StringConcat.displa... |
src/index.js | salmonax/photobucket-exercise | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
ReactDOM.render(<App />, document.getElementById('app')); |
ajax/libs/rxjs/2.2.25/rx.all.compat.js | joseluisq/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
v... |
src/svg-icons/content/weekend.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentWeekend = (props) => (
<SvgIcon {...props}>
<path d="M21 10c-1.1 0-2 .9-2 2v3H5v-3c0-1.1-.9-2-2-2s-2 .9-2 2v5c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2zm-3-5H6c-1.1 0-2 .9-2 2v2.15c1.16.41 2 1.51... |
client/containers/DevTools.js | theogravity/beatbox-player | 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
defaultIsVisible={false}
toggleVisibilityKey='H'
changePositionKey='Q'
defaul... |
client/core/Loader/components/Loader.js | jacob-ebey/DashboardTemplate | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { PrimaryButton, DefaultButton } from 'office-ui-fabric-react/lib/Button';
import { Dialog, DialogType, DialogFooter } from 'office-ui-fabric-react/lib/Dialog';
import... |
pootle/static/js/admin/general/components/ContentPreview.js | phlax/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.
*/
import React from 'react';
const ContentPreview = React.... |
app/components/AppBar/index.js | rahsheen/scalable-react-app | /**
*
* AppBar
*
*/
import React from 'react';
import FontAwesome from 'react-fontawesome';
import { Link } from 'react-router';
import styles from './styles.css';
function AppBar({ toggleDrawer, email }) {
const loginLink = email || (<Link to="/login"> login </Link>);
return (
<div className={styles.appBa... |
frontend/modules/recipe/containers/Recipe.js | rustymyers/OpenEats | import React from 'react'
import PropTypes from 'prop-types'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import Loading from '../../base/components/Loading'
import RecipeScheme from '../components/RecipeScheme'
import * as RecipeActions from '../actions/RecipeActions'
import * as R... |
examples/js/pagination/demo.js | prajapati-parth/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import DefaultPaginationTable from './default-pagination-table';
import CustomPaginationTable from './custom-pagination-table';
import PaginationHookTable from './pagination-hook-table';
class Demo extends React.Component {
render() {
return (
<div>
... |
src/components/topic/TopicPageTitle.js | mitmedialab/MediaCloud-Web-Tools | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import PageTitle from '../common/PageTitle';
const TopicPageTitle = (props) => {
let newValue;
if (props.value instanceof Array) {
newValue = [...props.value, props.topicName];
} else {
newValue = [props... |
src/components/auth/signout.js | juthatip/authentication-client | import React, { Component } from 'react';
import { connect } from 'react-redux';
import * as actions from '../../actions'
class Signout extends Component {
componentWillMount() {
this.props.signoutUser();
}
render() {
return <div>Sorry to see you go</div>;
}
}
export default connect(n... |
ajax/libs/tinymce/4.3.2/plugins/legacyoutput/plugin.js | kennynaoh/cdnjs | /**
* plugin.js
*
* Released under LGPL License.
* Copyright (c) 1999-2015 Ephox Corp. All rights reserved
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*
* This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u elements, al... |
client/src/pages/404.js | hstandaert/hstandaert.com | import React from 'react'
import Layout from '../components/layout'
const NotFoundPage = () => (
<Layout>
<h1>NOT FOUND</h1>
<p>You just hit a route that doesn't exist... the sadness.</p>
</Layout>
)
export default NotFoundPage
|
src/js/components/icons/base/Login.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... |
packages/material-ui-icons/src/Wifi.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13z" />
, 'Wifi');
|
src/components/ProposalInput/DateInput.js | nambawan/g-old | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, FormattedMessage } from 'react-intl';
import FormField from '../FormField';
import { utcCorrectedDate } from '../../core/helpers';
import Box from '../Box';
import FormValidation from '../FormValidation';
import { dateToValidation, ... |
__tests__/components/icons/status/Warning-test.js | nickjvm/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import renderer from 'react-test-renderer';
import Warning from
'../../../../src/js/components/icons/status/Warning';
describe('Warning', () => {
it('has correct default options', () => {
const component = rendere... |
src/client/story_box.js | mkobar/hacker-menu | import React from 'react'
import _ from 'lodash'
import Client from 'electron-rpc/client'
import StoryList from './story_list.js'
import Spinner from './spinner.js'
import Menu from './menu.js'
import StoryType from '../model/story_type'
export default class StoryBox extends React.Component {
constructor (props) {
... |
src/index.js | zestxjest/sf-movies | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import finalCreateStore from './redux/createStore';
import App from './App';
const store = finalCreateStore();
ReactDOM.render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById('root')
... |
node_modules/react-router/es6/withRouter.js | Shwrndasink/btholt-react-tutorial | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
import invariant from 'invariant';
import React from 'react';... |
docs/src/pages/components/tables/MaterialTableDemo.js | allanalexandre/material-ui | import React from 'react';
import MaterialTable from 'material-table';
export default function MaterialTableDemo() {
const [state, setState] = React.useState({
columns: [
{ title: 'Name', field: 'name' },
{ title: 'Surname', field: 'surname' },
{ title: 'Birth Year', field: 'birthYear', type: '... |
app/javascript/mastodon/features/directory/components/account_card.js | ashfurrow/mastodon | import React from 'react';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { makeGetAccount } from 'mastodon/selectors';
import Avatar from 'mastodon/compone... |
packages/netlify-cms-widget-image/src/ImagePreview.js | netlify/netlify-cms | import React from 'react';
import PropTypes from 'prop-types';
import styled from '@emotion/styled';
import { List } from 'immutable';
import { WidgetPreviewContainer } from 'netlify-cms-ui-default';
const StyledImage = styled(({ src }) => <img src={src || ''} role="presentation" />)`
display: block;
max-width: 10... |
packages/material-ui-icons/src/RepeatOneRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M7 7h10v1.79c0 .45.54.67.85.35l2.79-2.79c.2-.2.2-.51 0-.71l-2.79-2.79c-.31-.31-.85-.09-.85.36V5H6c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1s1-.45 1-1V7zm10 10H7v-1.79c0-.45-.54-.67-.85-.35l-2.79 2.79c-.2.2-.2... |
classic/src/scenes/mailboxes/src/Scenes/SwitcherScene/SwitcherScene.js | wavebox/waveboxapp | import React from 'react'
import PropTypes from 'prop-types'
import shallowCompare from 'react-addons-shallow-compare'
import { withStyles } from '@material-ui/core/styles'
import Zoom from '@material-ui/core/Zoom'
import SwitcherSceneContent from './SwitcherSceneContent'
import { RouterDialog, RouterDialogStateProvide... |
ajax/libs/muicss/0.6.1/extra/mui-react-combined.min.js | tholu/cdnjs | !function(e){var t=e.babelHelpers={};t.classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},t.createClass=function(){function e(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.definePro... |
app/src/client/client.js | orYoffe/myFullstackJsNetwork | import 'babel-polyfill'
import './sass/index.scss'
import faviconUrl from 'file!./img/favicon.ico'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import routes from './js/routes'
import { Router, browserHistory } from 'react-router'
import { syncHistoryWithStore } fr... |
src/client/index.js | JulienPradet/quizzALJP | import React from 'react'
import ReactDOM from 'react-dom'
import { Router, Route, IndexRoute } from 'react-router'
import history from './util/history'
import App from './container/App'
import Landing from './container/Landing'
import Manager from './container/manager/Manager'
import Viewer from './container/viewer/Vi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.