path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
fields/types/cloudinaryimages/CloudinaryImagesField.js | quenktechnologies/keystone | var _ = require('underscore'),
$ = require('jquery'),
React = require('react'),
Field = require('../Field');
var SUPPORTED_TYPES = ['image/gif', 'image/png', 'image/jpeg', 'image/bmp', 'image/x-icon', 'application/pdf', 'image/x-tiff', 'image/x-tiff', 'application/postscript', 'image/vnd.adobe.photoshop'];
var Thu... |
ajax/libs/onsen/1.3.7/js/onsenui.js | jonathantneal/cdnjs | /*! onsenui - v1.3.7 - 2015-07-27 */
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// JavaScript Dynamic Content shim for Windows Store apps
(function () {
if (window.MSApp && M... |
app/js/search.js | michaelbrewerdavis/gerrit-mobile | import React from 'react'
import { connect } from 'react-redux'
import Changes from './components/changes'
import Loading from './components/loading'
import actions from './actions'
import * as nav from './nav'
require('../css/app.css')
function SearchHeader(props, state) {
return (
<nav.Header {...props} cont... |
src/index.js | jiangxy/websocket-debug-tool | import React from 'react';
import ReactDOM from 'react-dom';
import WebSocketDebugTool from './components/WebSocketDebugTool';
ReactDOM.render(<WebSocketDebugTool/>, document.getElementById('root'));
|
server/sonar-web/src/main/js/apps/organizations/navigation/OrganizationNavigation.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact 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... |
public/app/components/ui-project-tab/index.js | vincent-tr/mylife-home-studio | 'use strict';
import React from 'react';
import * as mui from 'material-ui';
import * as bs from 'react-bootstrap';
import PropertiesContainer from '../../containers/ui-project-tab/properties-container';
import ExplorerContainer from '../../containers/ui-project-tab/explorer-container';
import DialogConfirmImportComp... |
ajax/libs/reactive-coffee/1.2.2/reactive-coffee.js | sullivanmatt/cdnjs | (function() {
var rxFactory,
__slice = [].slice,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = ne... |
src/components/ProductCardList/ProductCardList.js | GoogleChromeLabs/react-shrine | /*
* Copyright 2019 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
packages/mui-icons-material/lib/LandscapeTwoTone.js | oliviertassinari/material-ui | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
src/pages/pug-puppies-for-sale.js | robwalkerco/caerurfapugs | import React from 'react'
import Link from 'gatsby-link'
import styled from 'styled-components'
import Alert from '../components/Alert'
import Image from '../components/Image'
const OurPuppiesForSave = () => (
<div>
<h1>Pug Puppies for sale</h1>
<Alert title="Daphne has had her puppies">
<p>5 beautiful ... |
app/javascript/mastodon/features/directory/index.js | tootsuite/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Column from 'mastodon/components/column';
import ColumnHeader from 'mastodon/components/column... |
example/src/Examples.js | benkeen/react-country-region-selector | import React, { Component } from 'react';
import { CountryDropdown, RegionDropdown } from 'react-country-region-selector';
class Examples extends Component {
constructor (props) {
super(props);
this.getCountryValue = this.getCountryValue.bind(this);
this.getRegionValue = this.getRegionValue.bind(this);
// w... |
src/control/content/components/AddLocation.js | BuildFire/placesPlugin2 | import React from 'react';
import LocationForm from './LocationForm';
class AddLocation extends React.Component {
onSubmit(data) {
this.props.onSubmit(data);
}
render() {
return <LocationForm
chatWithLocationOwner={this.props.chatWithLocationOwner}
socialWall={this.props.socialWall}
p... |
src/svg-icons/av/loop.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvLoop = (props) => (
<SvgIcon {...props}>
<path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.... |
docs/src/app/components/pages/components/Snackbar/ExampleSimple.js | w01fgang/material-ui | import React from 'react';
import Snackbar from 'material-ui/Snackbar';
import RaisedButton from 'material-ui/RaisedButton';
export default class SnackbarExampleSimple extends React.Component {
constructor(props) {
super(props);
this.state = {
open: false,
};
}
handleTouchTap = () => {
th... |
codes/reactstrap-demo/src/views/Components/Cards/Cards.js | atlantis1024/react-step-by-step | import React, { Component } from 'react';
class Cards extends Component {
render() {
return (
<div className="animated fadeIn">
<div className="row">
<div className="col-sm-6 col-md-4">
<div className="card">
<div className="card-header">
Card tit... |
web/components/shared/effects/Quake.js | skidding/flatris | // @flow
import React, { Component } from 'react';
import type { Node } from 'react';
import type { Player } from 'shared/types/state';
type Props = {
player1: ?Player,
player2: ?Player,
children: ?Node,
};
class Quake extends Component<Props> {
render() {
const { children, player1, player2 } = this.pro... |
examples/shopping-cart/test/components/ProductItem.spec.js | tatsuhino/reactPractice | import expect from 'expect'
import React from 'react'
import { shallow } from 'enzyme'
import Product from '../../components/Product'
import ProductItem from '../../components/ProductItem'
function setup(product) {
const actions = {
onAddToCartClicked: expect.createSpy()
}
const component = shallow(
<Pr... |
ajax/libs/forerunnerdb/1.3.483/fdb-core+views.js | holtkamp/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... |
internals/scripts/generate-templates-for-linting.js | kossel/react-boilerplate | /**
* This script is for internal `react-boilerplate`'s usage. The only purpose of generating all of these templates is
* to be able to lint them and detect critical errors. Every generated component's name has to start with
* 'RbGenerated' so it can be easily excluded from the test coverage reports.
*/
const node... |
app/javascript/mastodon/components/display_name.js | SerCom-KC/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
export default class DisplayName extends React.PureComponent {
static propTypes = {
account: ImmutablePropTypes.map.isRequired,
};
render () {
const displayNameHtml = { __html: this.props.account.get('display_name_ht... |
app/containers/SignUpContainer.js | jcarral/cafeADE | import React, { Component } from 'react';
import { connect } from 'react-redux';
import SignUp from '../components/SignUp';
import LoadingPage from '../components/LoadingPage';
import { signUp } from '../actions/statusActions';
class SignUpContainer extends Component {
static navigationOptions = {
title: 'Regi... |
server/sonar-web/src/main/js/apps/component-measures/details/drilldown/ListHeader.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/parser/DEFAULT_BUILD.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import ArmoryIcon from 'interface/icons/Armory';
export default {
name: "Standard Build",
url: "standard",
icon: <ArmoryIcon />,
};
|
docs/src/HomePage.js | tigerandgirl/ssc-refer | import React from 'react';
import NavMain from './NavMain';
import PageFooter from './PageFooter';
export default class HomePage extends React.Component {
render() {
return (
<div>
<NavMain activePage="home" />
<main className="bs-docs-masthead" id="content" role="main">
<div cl... |
app/src/pages/About.js | nickdecooman/template-react-frontend | // @flow
import React from 'react';
import ContentBlock from '../components/ContentBlock';
import { Button } from '../components/Common';
import { StyleSheet } from '../utils/aphrodite';
import { AMBER_500, TEAL_700, WHITE } from '../styles/colors';
const contentBlockStyles = StyleSheet.create({
title: {
color:... |
examples/using-page-transitions/src/pages/cat.js | mingaldrichgan/gatsby | /* eslint-disable react/prop-types */
import React from "react"
import { Link } from "gatsby"
const Cat = () => (
<div>
<h1>meow</h1>
<div>
<Link to="/">Go to home</Link>
</div>
<div>
<Link to="/dog/">Go to dog</Link>
</div>
<div>
<Link to="/long-page/">Go to long page</Link... |
src/ReactBoilerplate/Scripts/components/ErrorList.js | pauldotknopf/react-aspnet-boilerplate | import React, { Component } from 'react';
import { Glyphicon } from 'react-bootstrap';
class ErrorList extends Component {
render() {
const {
errors
} = this.props;
if (!errors) return null;
if (Array.isArray(errors)) {
if (errors.length === 0) return null;
return (
<div cla... |
app/components/modals/SearchForNodesModal/hooks.js | decred/decrediton | import { useState, useMemo } from "react";
import { useSelector } from "react-redux";
import * as sel from "selectors";
import { useIntl } from "react-intl";
export function useSearchForNodesModal() {
const [node, setNode] = useState(null);
const describeGraph = useSelector(sel.lnDescribeGraph);
const searchResu... |
springboot/GReact/node_modules/react-hot-loader/lib/index.js | ezsimple/java | 'use strict';
var AppContainer = require('./AppContainer');
module.exports = function warnAboutIncorrectUsage(arg) {
if (this && this.callback) {
throw new Error('React Hot Loader: The Webpack loader is now exported separately. ' + 'If you use Babel, we recommend that you remove "react-hot-loader" ' + 'from the... |
client/testpage/index.js | dengcqw/ParseWebPageList |
import ReactDOM from 'react-dom'
import React from 'react'
import { DatePicker } from 'antd';
require('es6-promise').polyfill();
require('isomorphic-fetch');
class App extends React.Component {
constructor (props) {
super(props)
this.state = {
result: "login"
}
//this._privateFunction.bind(t... |
imports/ui/pages/Baskets/NewBasket.js | haraneesh/mydev | import React from 'react';
import PropTypes from 'prop-types';
import { Meteor } from 'meteor/meteor';
import { withTracker } from 'meteor/react-meteor-data';
import Products from '../../../api/Products/Products';
import Loading from '../../components/Loading/Loading';
import BasketEditor from '../../components/Baskets... |
packages/material-ui-icons/src/Opacity.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Opacity = props =>
<SvgIcon {...props}>
<path d="M17.66 8L12 2.35 6.34 8C4.78 9.56 4 11.64 4 13.64s.78 4.11 2.34 5.67 3.61 2.35 5.66 2.35 4.1-.79 5.66-2.35S20 15.64 20 13.64 19.22 9.56 17.66 8zM6 14c.01-2... |
analysis/roguesubtlety/src/CONFIG.js | yajinni/WoWAnalyzer | import React from 'react';
import { Tyndi } from 'CONTRIBUTORS';
import SPECS from 'game/SPECS';
import CHANGELOG from './CHANGELOG';
export default {
// The people that have contributed to this spec recently. People don't have to sign up to be long-time maintainers to be included in this list. If someone built a l... |
src/__tests__/setup.js | prometheusresearch/react-forms | /**
* @copyright 2015 Prometheus Research, LLC
*/
import assert from 'power-assert';
import jsdom from 'jsdom';
import sinon from 'sinon';
import TestUtils from 'react-addons-test-utils';
let document = jsdom.jsdom('<!doctype html><html><body></body></html>');
let window = document.defaultView;
glob... |
index.ios.js | DrPandemic/TwiolioRN | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class TwilioRN extends Component {
render() {
return (
<View style={styles.container}... |
ajax/libs/handsontable/0.10.5/jquery.handsontable.js | stefanocudini/cdnjs | /**
* Handsontable 0.10.5
* 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: Mon Mar 31 2014 14:19:47 GMT+0200 (CEST)
*/
/*jsli... |
src/components/App/App.js | CavHack/orbifold | import React from 'react';
import { RouteHandler } from 'react-router';
import withContext from '../../decorators/withContext';
import mui, { FontIcon } from 'material-ui';
import Logo from '../Logo';
import Navigation from '../Navigation';
import Radium from 'radium';
import ClusterStore from '../../stores/ClusterStor... |
admin/client/components/Popout/PopoutFooter.js | wmertens/keystone | import React from 'react';
const buttonBaseClassname = 'Popout__footer__button Popout__footer__button--';
var PopoutFooter = React.createClass({
displayName: 'PopoutFooter',
propTypes: {
children: React.PropTypes.node,
primaryButtonAction: React.PropTypes.func,
primaryButtonIsSubmit: React.PropTypes.bool,
p... |
src/ObjectDescription.js | xyc/react-object-inspector | import React, { Component } from 'react';
// Styles
import objectStyles from './objectStyles';
/**
* A short description of the object
*/
export default class ObjectDescription extends Component{
render() {
const object = this.props.object;
switch (typeof object){
case 'number':
return (<spa... |
ajax/libs/rxjs/2.3.9/rx.all.compat.js | kalkidanf/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... |
packages/cf-component-pagination/src/PaginationItem.js | mdno/mdno.github.io | import React from 'react';
import PropTypes from 'prop-types';
import Icon from 'cf-component-icon';
import { combineRules, createComponent } from 'cf-style-container';
const active = ({ active, theme }) => {
if (!active) return {};
return {
color: theme.colorActive,
borderColor: theme.borderColorActive,
... |
src/Form/Form.js | yurizhang/ishow | import React from 'react';
import PropTypes from 'prop-types';
import {default as Component} from '../Common/plugs/index.js'; //提供style, classname方法
import '../Common/css/Form.css'
export default class Form extends Component {
constructor(props) {
super(props);
this.state = {
fields: []
}
}
... |
app/javascript/spec/forms/data-driven-form.spec.js | ManageIQ/manageiq-ui-classic | import React from 'react';
import { mount } from 'enzyme';
import { componentTypes } from '@@ddf';
import { act } from 'react-dom/test-utils';
import MiqFormRenderer from '../../forms/data-driven-form';
describe('DataDrivenForm', () => {
let initialProps;
beforeEach(() => {
const schema = {
fields: [{
... |
ajax/libs/rxjs/2.3.18/rx.all.js | schoren/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... |
ajax/libs/core-js/0.9.16/library.js | BobbieBel/cdnjs | /**
* core-js 0.9.16
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(undefined){
'use strict';
var __e = null, __g = null;
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/*****... |
src/data-fields/date-data-field.js | apconic/aos-forms | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import DatePicker from 'material-ui/DatePicker';
import { isNullOrUndefined, isDefined } from '../util';
export default class DateDataField extends Component {
static propTypes = {
labelText: PropTypes.string,
value: PropTypes.obje... |
demo3/components/users.js | gmccrackin/marty-examples | import React from 'react';
import Marty from 'marty';
class User extends React.Component {
render() {
return (
<div>
<div>{this.props.id} {this.props.name}</div>
</div>
)
}
}
class Users extends React.Component {
onSubmit(e) {
e.preventDefaul... |
client/src/pages/category/CategoryListItem.js | ccwukong/lfcommerce-react | import React from 'react';
import PropTypes from 'prop-types';
import { Button, Badge } from 'reactstrap';
import { injectIntl, FormattedMessage } from 'react-intl';
const CategoryListItem = props => {
const {
name,
level,
status,
id,
onViewClick,
onStatusUpdateClick,
intl: { formatMessag... |
src/App.js | lslima91/React-PostCSS-Playground | import React, { Component } from 'react';
// import {main, section, sec} from './css/style.styl'
import {main, section, sec} from './css/style.css'
const Responsive = () =>(
<div className={section}>
<div className={sec}>1</div>
<div className={sec}>2</div>
<div className={sec}>3</div>
... |
ajax/libs/yui/3.7.2/datatable-body/datatable-body-coverage.js | upgle/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/components/Feedback/Feedback.js | CHANGHUOO/myHole | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import withStyle... |
app/components/ProvidersList/index.js | Budaa/coding_test | import React from 'react';
import BankButton from 'components/BankButton';
import Banks from '../../utils/banks-const';
import Container from './Container';
const ProvidersList = ( { providers } ) => (
<Container>
{providers && providers.size &&
providers.map((provider, key) => <BankButton key={key} alt={p... |
src/components/FullScreenSearch.js | codevinsky/deep-ellum-jukebox-ui | require('../styles/full-screen-search.css');
import React from 'react';
import { Button, Input, Glyphicon, Dropdown, MenuItem, Grid, Row, Col, Table, Image } from 'react-bootstrap';
import classNames from 'classnames';
import { watchViewport } from '../hocs';
import { SearchActions, QueueActions } from '../actions';... |
src/createStore.js | brabadu/tanok | import Rx from '@evo/rx';
import React from 'react';
import compose from './compose';
import { INIT } from './coreActions';
import { StreamWrapper, dispatch } from './streamWrapper.js';
function makeStreamState(
initialState, update, streamWrapper, middlewares,
) {
const middlewaresWithStream = middlewares.map(m... |
src/app/components/Pages/GamesList/CallToActionGame.js | allangrds/Pagarme-Front-Jr | import React, { Component } from 'react';
import { Container, Button, Jumbotron } from 'reactstrap';
import styles from './GamesList.styl';
import { actions, store } from './../../../flux';
import { Link } from 'react-router-dom';
export default class CallToActionGame extends Component {
constructor() {
super();... |
client/modules/App/__tests__/Components/Header.spec.js | mraq1234/mod11 | 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... |
packages/material-ui-icons/src/TabletMacRounded.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M18.5 0h-14C3.12 0 2 1.12 2 2.5v19C2 22.88 3.12 24 4.5 24h14c1.38 0 2.5-1.12 2.5-2.5v-19C21 1.12 19.88 0 18.5 0zm-7 23c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5... |
boxroom/archive/js-scenery-2008-09-21/src/main/js-scenery.react.js | js-works/js-scenery | import Platform from './internal/platform/Platform'
import defineComponent from './api/defineComponent'
import defineContext from './api/defineContext'
import fromChildren from './api/fromChildren'
import withChildren from './api/withChildren'
import isElementOfType from './api/isElementOfType'
import isNode from './ap... |
packages/material-ui-icons/src/LocalPlaySharp.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M20 12c0-1.1.9-2 2-2V4H2.01v6c1.1 0 1.99.9 1.99 2s-.89 2-2 2v6h20v-6c-1.1 0-2-.9-2-2zm-4.42 4.8L12 14.5l-3.58 2.3 1.08-4.12-3.29-2.69 4.24-.25L1... |
src/routes/users.js | JavoByte/react-boilerplate | import React from 'react';
import ConnectedRoute from './ConnectedRoute';
import UsersContainer from '../components/users/UsersContainer';
import UsersIndex from '../components/users/UsersIndex';
// eslint-disable-next-line react/prop-types
export default ({ match }) => (
<UsersContainer>
<ConnectedRoute path={`... |
assets/js/containers/reply_container.js | arineto/twitter_monitor | import _ from 'lodash';
import React from 'react';
import { connect } from 'react-redux';
import { fetchTweet, fetchReplies } from '../actions';
import TitleRow from '../components/title_row';
import TweetBox from '../components/tweet_box';
import ReplyForm from '../containers/reply_form_container';
class ReplyCont... |
src/svg-icons/notification/do-not-disturb-on.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDoNotDisturbOn = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z"/>
</SvgIcon>
);
NotificationDoNotDisturbOn = pure(No... |
Maven_Accounting/src/main/webapp/lib/wtf-all.js | mobilipia/Deskera-Accounting | /*
* Copyright (C) 2012 Krawler Information Systems Pvt Ltd
* All rights reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your optio... |
node_modules/semantic-ui-react/src/collections/Grid/Grid.js | mowbell/clickdelivery-fed-test | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
SUI,
useKeyOnly,
useKeyOrValueAndKey,
useTextAlignProp,
useValueAndKey,
useVerticalAlignProp,
useWidthProp,
} from '../../lib'
import GridCol... |
src/components/Progress/ProgressIndicatorItem.js | propertybase/react-lds | import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import { Button, IconButton, ButtonIcon } from '../Button';
// TODO: Support for step tooltip is still missing.
const ProgressIndicatorItem = ({
assistiveText,
className,
isActive,
isError,
isCompleted,
isSuccess,
... |
ajax/libs/material-ui/4.9.2/es/Radio/RadioButtonIcon.min.js | cdnjs/cdnjs | import React from"react";import PropTypes from"prop-types";import clsx from"clsx";import RadioButtonUncheckedIcon from"../internal/svg-icons/RadioButtonUnchecked";import RadioButtonCheckedIcon from"../internal/svg-icons/RadioButtonChecked";import withStyles from"../styles/withStyles";export const styles=t=>({root:{posi... |
app/javascript/mastodon/features/ui/components/column.js | kagucho/mastodon | import React from 'react';
import ColumnHeader from './column_header';
import PropTypes from 'prop-types';
import { debounce } from 'lodash';
import scrollTop from '../../../scroll';
export default class Column extends React.PureComponent {
static propTypes = {
heading: PropTypes.string,
icon: PropTypes.str... |
app/components/ListItem/index.js | ParkarDev/react-resume | import React from 'react';
import styles from './styles.css';
class ListItem extends React.Component {
render() {
return (
<li className={ this.props.className || styles.item }>
<div className={ styles.itemContent }>
{ this.props.content }
</div>
</li>
);
}
}
... |
app/routes.js | migueloop/1streaction | import React from 'react';
import {Route} from 'react-router';
import App from './components/App';
import Home from './components/Home';
import ShapesList from './components/ShapesList';
export default (
<Route component={App}>
<Route path='/' component={Home} />
<Route path='/filter/:filterName' component=... |
src/svg-icons/image/view-compact.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageViewCompact = (props) => (
<SvgIcon {...props}>
<path d="M3 19h6v-7H3v7zm7 0h12v-7H10v7zM3 5v6h19V5H3z"/>
</SvgIcon>
);
ImageViewCompact = pure(ImageViewCompact);
ImageViewCompact.displayName = 'ImageVie... |
ajax/libs/raven.js/2.0.2/raven.js | pvnr0082t/cdnjs | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Raven = f()}})... |
public/js/components/DetailsDisabilities.js | Vabrins/CadernetaDoIdoso | import React from 'react';
import $ from 'jquery';
import { Link } from 'react-router-dom';
class DetailsDisabilities extends React.Component {
constructor (props) {
super(props);
this.state = {stopped_shopping_2_6_a:'', stop_tracking_your_money_2_6_a:'', stopped_walking_in_the_house_2_6_a:'', stopped_doi... |
ux/ListView.js | rameshvk/j0 | 'use strict';
import BaseComponent from './BaseComponent';
import React from 'react';
import ReactDOM from 'react-dom';
function getScrollContainer(node) {
let parent = node;
while (parent !== document.body) {
if (window.getComputedStyle(parent).overflowY !== 'visible') {
return parent;
}
paren... |
templates/containers/delete-me/delete-me.js | garney/slush-react-redux-boilerplate | import React, { Component } from 'react';
import styleable from 'react-styleable';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import PropTypes from 'prop-types';
import '../../styles/core.scss';
import css from './delete-me.scss';
import { deleteNow } from './delete-me-actions';
... |
scripts/index.js | neerajdotname/react-counter | import React from 'react';
import App from './App';
React.render(<App />, document.getElementById('root'));
|
src/v2/components/MyCreditCard/components/DefaultCreditCard/index.js | aredotna/ervell | import React from 'react'
import { propType } from 'v2/util/inlinedGraphqlAnywhere'
import defaultCreditCardFragment from 'v2/components/MyCreditCard/components/DefaultCreditCard/fragments/defaultCreditCard'
import Box from 'v2/components/UI/Box'
import Text from 'v2/components/UI/Text'
const DefaultCreditCard = ({ ... |
client/views/omnichannel/realTimeMonitoring/overviews/ConversationOverview.js | VoiSmart/Rocket.Chat | import React from 'react';
import { useEndpointData } from '../../../../hooks/useEndpointData';
import CounterContainer from '../counter/CounterContainer';
const overviewInitalValue = {
title: '',
value: 0,
};
const initialData = [
overviewInitalValue,
overviewInitalValue,
overviewInitalValue,
overviewInitalVa... |
node_modules/react-native/local-cli/templates/HelloNavigation/views/chat/ChatListScreen.js | aksharora/ReactNativeDemoBasic | 'use strict';
import React, { Component } from 'react';
import {
ActivityIndicator,
Image,
ListView,
Platform,
StyleSheet,
View,
} from 'react-native';
import ListItem from '../../components/ListItem';
import Backend from '../../lib/Backend';
export default class ChatListScreen extends Component {
stat... |
Js/Ui/Components/Alert/index.js | Webiny/Webiny | import React from 'react';
import _ from 'lodash';
import Webiny from 'webiny';
import AlertContainer from './Container';
import styles from './styles.css';
class Alert extends Webiny.Ui.Component {
}
Alert.defaultProps = {
type: 'info',
icon: null,
title: null,
close: false,
onClose: _.noop,
... |
ajax/libs/yui/3.1.0pr2/loader/loader-debug.js | WebReflection/cdnjs | YUI.add('loader', function(Y) {
(function() {
var VERSION = Y.version,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN = 'http://yui.yahooapis.com/',
GALLERY_VERSION = Y.config.gallery || 'gallery-2010.03.02-18',
GALLERY_ROOT = GALLERY_VERSION + BUILD,
... |
electron/app/components/Home.js | structuresound/bbt | // @flow
import React, { Component } from 'react';
import { Link } from 'react-router';
import styles from './Home.css';
export default class Home extends Component {
render() {
return (
<div>
<div className={styles.container}>
<h2>Home</h2>
<Link to="/counter">to Counter</Link... |
packages/forms/src/UIForm/fields/FieldTemplate/FieldTemplate.component.js | Talend/ui | import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';
import { useTranslation } from 'react-i18next';
import { Button } from 'react-bootstrap';
import OverlayTrigger from '@talend/react-components/lib/OverlayTrigger';
import Icon from '@talend/react-components/lib/Icon';
im... |
frontend/src/components/player/ButtonMenu.js | OwenRay/Remote-MediaServer | import React, { Component } from 'react';
import { Button } from 'react-materialize';
class ButtonMenu extends Component {
shouldComponentUpdate() {
return false;
}
onSelect(item) {
this.props.onSelect(this.props.type, item.value);
}
render() {
const { items, type } = this.props;
if (!items... |
static/src/components/islands/IslandTent.js | Termnator/mikebot | // @flow
// jscs:disable maximumLineLength
import React from 'react';
import ResizableSVG from '../ResizableSVG';
export default React.createClass({
mixins: [ResizableSVG],
render(): React.Element {
let viewBox: string = this.getViewBox(259, 228);
let {paused} = this.props;
return (
<svg cla... |
src/parser/paladin/holy/modules/talents/HolyAvenger.js | fyruna/WoWAnalyzer | import React from 'react';
import { Trans } from '@lingui/macro';
import SPELLS from 'common/SPELLS';
import { formatNumber } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import calculateEffectiveHealing from 'parser/core/calculateEffectiveHealing';
import Statistic from 'interface/statistics/Sta... |
Skins/VetoccitanT3/ReactSrc/node_modules/react-awesome-slider/src/hoc/captioned-images/hoc.js | ENG-SYSTEMS/Kob-Eye | import React, { Component } from 'react';
import PropTypes from 'prop-types';
export default function CaptionedHoc(WrappedComponent) {
return class extends Component {
static propTypes = {
screens: PropTypes.array.isRequired,
};
renderScreens() {
return this.props.screens.map((screen, index)... |
src/routes/register/index.js | fkn/ndo | import React from 'react';
import Layout from '../../components/Layout';
import Register from './Register';
const title = 'Sign up to NDO';
function action({ store }) {
const { user } = store.getState();
if (user) {
return { redirect: '/login' };
}
return {
chunks: ['register'],
title,
compone... |
src/containers/auth/require_auth.js | steelx/ReduxWeatherApp | import React, { Component } from 'react';
import { connect } from 'react-redux';
export default function(ComposedComponent) {
class Authentication extends Component {
static contextTypes = {
router: React.PropTypes.object
}
componentWillMount() {
if (!this.props.authenticated) {
this... |
src/GridList/GridList.spec.js | hwo411/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import GridList from './GridList';
import getMuiTheme from '../styles/getMuiTheme';
describe('<GridList />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (node) => shallow(node, {co... |
__tests__/collection.js | arjunkomath/mjuzik | import 'react-native';
import React from 'react';
import Collection from '../app/components/collection';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Collection />
);
});
|
src/components/Features/Features.js | jhabdas/lumpenradio-com | import React from 'react';
import styles from './Features.css';
import withStyles from '../../decorators/withStyles';
import Link from '../Link';
import FeatureList from '../FeatureList';
let data = [
{banner: 'Friday at 2PM - Shows', heroHref: 'http://placehold.it/350x350', headline: 'Catie Olson / Jabberwocky', ex... |
src/parser/warlock/affliction/modules/features/AlwaysBeCasting.js | FaideWW/WoWAnalyzer | import React from 'react';
import CoreAlwaysBeCasting from 'parser/shared/modules/AlwaysBeCasting';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import SpellLink from 'common/SpellLink';
class AlwaysBeCasting extends CoreAlwaysBeCasting {
get suggestionThresholds() {
re... |
app/src/Frontend/modules/weui/pages/article/index.js | ptphp/ptphp | /**
* Created by jf on 15/12/10.
*/
"use strict";
import React from 'react';
import {Article} from '../../../../index';
import Page from '../../component/page';
export default class ArticleDemo extends React.Component {
render() {
return (
<Page className="article" title="Article" spacing>... |
src/Parser/Shaman/Elemental/Modules/Talents/Ascendance.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import StatisticBox, { STA... |
sites/all/modules/jquery_update/replace/jquery/1.8/jquery.min.js | zivtech/drops-7-bear | /*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===... |
src/components/TodoPage.js | pekkis/dr-kobros-2016 | import React from 'react';
const TodoPage = props => {
const { todos, params } = props;
const currentTodo = todos.find(todo => todo.id === params.uuid);
if (!currentTodo) {
return (
<div>Not found</div>
);
}
return (
<div>
{currentTodo.text}
... |
examples/03 Nesting/Drop Targets/index.js | tomulin1/react-dnd | import React from 'react';
import Container from './Container';
export default class NestingDropTargets {
render() {
return (
<div>
<p>
<b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/03%20Nesting/Drop%20Targets'>Browse the Source</a></b>
</p>
<p>
... |
src/components/Post/CommentContainer.js | thinq4yourself/simply-social-in | import CommentInput from './CommentInput';
import CommentList from './CommentList';
import React from 'react';
import { Header, Segment, Container, Comment, Divider } from 'semantic-ui-react'
const CommentContainer = props => {
if (props.currentUser) {
return (
<Segment vertical>
<Container>
... |
node_modules/react-hot-loader/RootInstanceProvider.js | zlyi/react-components | 'use strict';
var getRootInstancesFromReactMount = require('./getRootInstancesFromReactMount');
var injectedProvider = null,
didWarn = false;
function warnOnce() {
if (!didWarn) {
console.warn(
'It appears that React Hot Loader isn\'t configured correctly. ' +
'If you\'re using NPM, make sure y... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.