path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArrayDestructuring.js | matart15/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';
function load() {
return [[1, '1'], [2, '2'], [3, '3'],... |
web/src/js/components/Search/SearchResultsQueryCodefuel.js | gladly-team/tab | import React from 'react'
import PropTypes from 'prop-types'
import logger from 'js/utils/logger'
import SearchResultsCodefuel from 'js/components/Search/SearchResultsCodefuel'
import fetchCodefuelSearchResults from 'js/components/Search/fetchCodefuelSearchResults'
import { isReactSnapClient } from 'js/utils/search-uti... |
src/js/App.js | alansouzati/csu-demo | import React from 'react';
import { IntlProvider, addLocaleData } from 'react-intl';
import en from 'react-intl/locale-data/en';
import { getCurrentLocale, getLocaleData } from 'grommet/utils/Locale';
import { Provider } from 'react-redux';
import { initialize } from './actions/session';
import store from './store';
im... |
app/jsx/assignments_2/teacher/components/Overrides/SubmissionTypes/OperatorType.js | djbender/canvas-lms | /*
* Copyright (C) 2018 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/components/SponsorsPage/SponsorsPage.js | hack-duke/hackduke-code-for-good-website | import React from 'react'
import classes from './SponsorsPage.scss'
import SponsorsItem from 'components/SponsorsItem'
import { Row, Col } from 'react-bootstrap'
import coinbase from 'static/sponsors/coinbase.png'
import fb from 'static/sponsors/fb.png'
import appian from 'static/sponsors/appian.png'
import cs from 'st... |
src/Form/FormLabel.js | dsslimshaddy/material-ui | // @flow
import React from 'react';
import type { Element } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
export const styles = (theme: Object) => {
const focusColor = theme.palette.primary[theme.palette.type === 'light' ? 'A700... |
app/javascript/mastodon/features/compose/components/navigation_bar.js | rutan/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ActionBar from './action_bar';
import Avatar from '../../../components/avatar';
import Permalink from '../../../components/permalink';
import IconButton from '../../../components/icon_button... |
client/src/components/error-collector.js | euqen/spreadsheet-core | import React from 'react';
import dispatcher from './../infrastructure/dispatcher';
export default class ErrorCollector extends React.Component {
constructor() {
super();
this.state = {
errors: []
};
dispatcher.on('api:validation', this.onValidationError.bind(this));
... |
examples/SimpleMenu.js | danbovey/react-contextmenu | import React, { Component } from 'react';
import ContextMenuTrigger from 'src/ContextMenuTrigger';
import ContextMenu from 'src/ContextMenu';
import MenuItem from 'src/MenuItem';
const MENU_TYPE = 'SIMPLE';
export default class SimpleMenu extends Component {
constructor(props) {
super(props);
th... |
ajax/libs/yui/3.13.0/scrollview-base/scrollview-base-debug.js | hikaMaeng/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... |
packages/mui-icons-material/lib/esm/BrokenImageTwoTone.js | oliviertassinari/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "m13.99 15.41-4-4-4 4-.99-.99V19h14v-6.57l-1.01-1.01zM5 11.59l.99 1 4-4 4 4 4-4.01L19 9.59V5H5z",
opacity: ".3"
}, "0"), /*#__PURE__*/_jsx("path", {
d: "... |
public/root_theme_files/app/lib/font-awesome/src/assets/js/jquery-1.7.1.min.js | abiquo/abiquo-theme-generator | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
containers/App.js | praveenith31/react-boilerplate- | import React, { Component } from 'react';
import SomeApp from './SomeApp';
import { createStore, combineReducers } from 'redux';
import { Provider } from 'react-redux';
import * as reducers from '../reducers';
const reducer = combineReducers(reducers);
const store = createStore(reducer);
export default class App exte... |
modules/Link.js | leeric92/react-router | import React from 'react';
var { object, string, func } = React.PropTypes;
function isLeftClickEvent(event) {
return event.button === 0;
}
function isModifiedEvent(event) {
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
}
/**
* <Link> components are used to create an <a> element t... |
ajax/libs/forerunnerdb/1.3.532/fdb-core+persist.min.js | wout/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... |
ajax/libs/forerunnerdb/1.3.335/fdb-core+persist.js | Amomo/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/view/EmployeeLink.js | quinnnned/presenters-example | import React from 'react'
export default function EmployeeLink(props) {
const {employee} = props
return (
<a onClick={employee.navigate} >
{employee.name}
</a>
)
} |
finalProject651/static/public/codemirror/mode/jsx/test.js | o0baozi0o/Collaborative-Editor | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function() {
var mode = CodeMirror.getMode({indentUnit: 2}, "jsx")
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)) }
MT("selfclose",
"[keyword ... |
resources/assets/js/components/stats/ProgressPieChartComponent.js | jrm2k6/i-heart-reading | import React from 'react';
import rd3 from 'rd3';
const PieChart = rd3.PieChart;
const NO_REMAINING_PAGES = 1;
const NO_REMAINING_BOOKS = 5;
const NO_READ_PAGES = 10;
const NO_FINISHED_BOOKS = 18;
class ProgressPieChartComponent extends React.Component {
getPercentageValue(valueToCheck, goal, max = 100) {
let ... |
files/rxjs/2.5.3/rx.lite.extras.compat.js | PeterDaveHello/jsdelivr | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'unde... |
ui/src/components/template/TemplateRow.js | yahoo/athenz | /*
* Copyright 2020 Verizon Media
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
src/esm/components/graphics/icons/clock-circle-icon/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["color", "bgColor", "circleColor", "clockColor", "title", "className"];
import React from 'react';
import deprecated from 'prop-types-extra/lib/depreca... |
src/components/Header/Header.js | dontexpectanythingsensible/password-checker | import React from 'react';
import { IndexLink, Link } from 'react-router';
export const Header = () => (
<nav className='nav'>
<IndexLink to='/' activeClassName='route--active'>
Password Strength Checker
</IndexLink>
<Link to='/generate' activeClassName='route--active'>
Generate password
... |
Libraries/Image/Image.ios.js | naoufal/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
ajax/libs/datatables/1.10.5/js/jquery.js | andyinabox/cdnjs | /*! 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... |
O3652/O3652-7 Deep Dive into Security and OAuth/Completed Projects/Exercise02/OfficeOAuth/OfficeOAuth/Scripts/jquery-1.10.2.min.js | William-Wen/TrainingContent | /* NUGET: BEGIN LICENSE TEXT
*
* Microsoft grants you the right to use these script files for the sole
* purpose of either: (i) interacting through your browser with the Microsoft
* website or online service, subject to the applicable licensing or use
* terms; or (ii) using the files as included with a Microsoft p... |
ajax/libs/yui/3.1.2/event-custom/event-custom-base.js | iwdmb/cdnjs | YUI.add('event-custom-base', function(Y) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module e... |
src/entypo/ArrowLongUp.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--ArrowLongUp';
let EntypoArrowLongUp = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M10,0.75L15.5,6H12v13H8V6H4.5L10,0.75z"/>
</EntypoIcon>
);
export default EntypoArrowL... |
app/addons/activetasks/layout.js | garrensmith/couchdb-fauxton | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... |
index.web.js | typesettin/manuscript | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
Platform,
} from 'react-native';
import Main from './app/components/Main';
AppRegistry.registerComponent('Main', () => Main);
if (Platform.OS == 'web') {
requir... |
app/jsx/media_recorder/renderRecorder.js | djbender/canvas-lms | /*
* Copyright (C) 2016 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/renderers/shared/reconciler/ReactUpdateQueue.js | DigitalCoder/react | /**
* Copyright 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule React... |
docs/src/PageFooter.js | yuche/react-bootstrap | import React from 'react';
import packageJSON from '../../package.json';
let version = packageJSON.version;
if (/docs/.test(version)) {
version = version.split('-')[0];
}
const PageHeader = React.createClass({
render() {
return (
<footer className='bs-docs-footer' role='contentinfo'>
<div c... |
client/vehicle-finder-spa/src/containers/messages/all-message-threads.js | Del7a/vehicle-finder | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { requestAllMessageThreads, changeCurrentMessageThread } from '../../actions/messages/';
import { getUserProfile } from '../../actions/user/';
import MessageThreadListComponent from '../..... |
docs/pages/blog/august-2019-update.js | kybarg/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './august-2019-update.md';
export default function Page() {
return <MarkdownDocs markdown={markdown} blog disableAd disableToc disableEdit />;
}
|
tools/render.js | t-kelly/react-static-boilerplate | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import { join, dirname } from 'path';
import glob from 'glob';
import React from 'react';
import createTemplate from 'lodash/string/template';
import fs from './lib/fs'... |
src/client/assets/javascripts/app/index.js | richbai90/CS2810 | import React from 'react';
import {render} from 'react-dom';
import {browserHistory} from 'react-router';
import {syncHistoryWithStore} from 'react-router-redux';
import { Provider } from 'react-redux';
import { Router } from 'react-router';
import routes from './routes';
import Root from './Root';
import store from ... |
ajax/libs/leaflet.freedraw/2.0.0/leaflet.freedraw.cjs.js | menuka94/cdnjs | module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ ret... |
src/components/WalletTransactionForm/__tests__/WalletTransactionForm-test.js | hourliert/lifework-wallet | import chai, { expect } from 'chai';
import dirtyChai from 'dirty-chai';
chai.use(dirtyChai);
import { shallow } from 'enzyme';
import React from 'react';
import validate from '../validationRules';
describe('WalletTransactionForm', () => {
it('should exists', () => {
const WalletTransactionForm = require('../... |
renderer-react/src/components/blog-component.js | kiranml1/blog-framework | import React, { PropTypes } from 'react';
/**
* Blog renderer
* @param props
* @returns {XML}
* @constructor
*/
export default function BlogWrapper(props) {
return (
<header>
<h1>{`${props.title} @ ${props.author}`}</h1>
</header>
);
}
BlogWrapper.propTypes = {
title: PropTypes.string,
auth... |
app/javascript/flavours/glitch/components/attachment_list.js | Kirishima21/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { FormattedMessage } from 'react-intl';
import classNames from 'classnames';
import Icon from 'flavours/glitch/components... |
docs/redux/static/js/6.99c383ce.chunk.js | oneut/async-react-router | (window.webpackJsonp=window.webpackJsonp||[]).push([[6],[function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",function(){return i}),n.d(e,"__assign",function(){return o}),n.d(e,"__rest",function(){return u}),n.d(e,"__decorate",function(){return a}),n.d(e,"__param",function(){return s}),n.d(e,"__metadata",function(){re... |
examples/wms/addwmslayer.js | jjmulenex/sdk | import React from 'react';
import PropTypes from 'prop-types';
/**
* Render a list of layers available on the WMS, and a button to add them to the map.
* @param {Object} props The properties config.
*
* @returns {ReactElement} Markup for the AddWMSLayer component.
*/
const AddWMSLayer = (props) => {
const child... |
src/parser/demonhunter/vengeance/CONFIG.js | sMteX/WoWAnalyzer | import React from 'react';
import { Mamtooth, Yajinni } from 'CONTRIBUTORS';
import SPECS from 'game/SPECS';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import retryingPromise from 'common/retryingPromise';
import CHANGELOG from './CHANGELOG';
const textAlignStyle = {
textAlign: '... |
app/components/LoadingIndicator/tests/Circle.test..js | jdm85kor/sentbe | import React from 'react';
import expect from 'expect';
import { mount } from 'enzyme';
import Circle from '../Circle';
describe('<Circle />', () => {
it('should render an <div> tag', () => {
const renderedComponent = mount(<Circle />);
expect(renderedComponent.find('div').length).toEqual(1);
});
it('s... |
packages/material-ui-icons/src/TranslateRounded.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="M12.65 15.67c.14-.36.05-.77-.23-1.05l-2.09-2.06.03-.03c1.74-1.94 2.98-4.17 3.71-6.53h1.94c.54 0 .99-.45.99-.99v-.02c0-.54-.45-.99-.99-.99H10V... |
client/views/admin/import/NewImportPage.stories.js | VoiSmart/Rocket.Chat | import React from 'react';
import NewImportPage from './NewImportPage';
export default {
title: 'admin/import/NewImportPage',
component: NewImportPage,
};
export const _default = () => <NewImportPage />;
|
node_modules/antd/es/checkbox/Group.js | prodigalyijun/demo-by-antd | import _toConsumableArray from 'babel-runtime/helpers/toConsumableArray';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'bab... |
app/components/Feed/FeedEntryPlaceholder.js | yenbekbay/filmstrip-web | /* @flow */
import {css, keyframes} from 'glamor';
import React from 'react';
import {breakpoints, t} from '../../styles';
const loaderAnimation = keyframes({
'0%': {backgroundPosition: '-700px 0'},
'100%': {backgroundPosition: '800px 0'},
});
const styles = {
container: css({
...t.br2,
...t.mt2,
... |
src/svg-icons/action/input.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionInput = (props) => (
<SvgIcon {...props}>
<path d="M21 3.01H3c-1.1 0-2 .9-2 2V9h2V4.99h18v14.03H3V15H1v4.01c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98v-14c0-1.11-.9-2-2-2zM11 16l4-4-4-4v3H1v2h10v3z"/>
</... |
src/encoded/static/components/item-pages/components/WorkflowNodeElement.js | hms-dbmi/fourfront | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import { console, object, valueTransforms } from '@hms-dbmi-bgm/shared-portal-components/es/components/util';
import { expFxn } from './../../util';
import { ViewMetricButton } from './WorkflowDetailPane/FileDetail... |
docs/src/app/components/pages/components/GridList/ExampleComplex.js | hwo411/material-ui | import React from 'react';
import {GridList, GridTile} from 'material-ui/GridList';
import IconButton from 'material-ui/IconButton';
import StarBorder from 'material-ui/svg-icons/toggle/star-border';
const styles = {
root: {
display: 'flex',
flexWrap: 'wrap',
justifyContent: 'space-around',
},
gridLi... |
src/layouts/CoreLayout/CoreLayout.js | gauravnagar1981/ecommerce | import React from 'react'
import Header from '../../components/Header'
import './CoreLayout.scss'
import '../../styles/core.scss'
export const CoreLayout = ({ children }) => (
<div className='container text-center'>
<Header />
<div className='core-layout__viewport'>
{children}
</div>
</div>
)
Co... |
ajax/libs/video.js/4.7.0/video.dev.js | AlicanC/cdnjs | /**
* @fileoverview Main function src.
*/
// HTML5 Shiv. Must be in <head> to support older browsers.
document.createElement('video');
document.createElement('audio');
document.createElement('track');
/**
* Doubles as the main function for users to create a player instance and also
* the main library object.
*
... |
src/app/views/SouthOf45/Stationary.js | nhardy/web-scaffold | import React, { Component } from 'react';
import { connect } from 'react-redux';
import GeoMap from 'app/components/GeoMap';
import styles from './styles.styl';
type Props = {
index: number,
dunedinGeoJson: {},
};
@connect(state => ({
dunedinGeoJson: state.govhack.dunedinGeoJson.data,
}))
export default class... |
client/app/containers/Session/components/LoginForm/index.js | sosaucily/r3-go | import React from 'react';
import { Field, reduxForm } from 'redux-form/immutable';
import Button from 'react-toolbox/lib/button/Button';
import { createFormAction } from 'redux-form-saga';
import styled from 'styled-components';
import ReduxFormInput from 'components/ReduxFormInput';
import ErrorField from './ErrorFi... |
packages/bonde-styleguide/src/content/IconColorful/svg/Video.js | ourcities/rebu-client | import React from 'react'
const Icon = () => (
<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'>
<g fill='none' fillRule='evenodd'>
<circle cx='20' cy='20' r='20' fill='#E09' opacity='.297' />
<circle cx='20' cy='20' r='16' fill='#E09' opacity='.3' />
<circle c... |
packages/material-ui-icons/src/CallMissedRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M18.89 7.7L12 14.59 6.41 9H10c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1s1-.45 1-1v-3.59l6.29 6.29c.39.39 1.02.39 1.41 0l7.59-7.59c.39-.39.39-1.02 0-1.41-.38-.38-1.02-.38-1.4 0z" /... |
docs/src/app/components/pages/discover-more/Contributing.js | andrejunges/material-ui | import React from 'react';
import Title from 'react-title-component';
import MarkdownElement from '../../MarkdownElement';
import contributingText from '../../../../../../CONTRIBUTING.md';
const Contributing = () => (
<div>
<Title render={(previousTitle) => `Contributing - ${previousTitle}`} />
<MarkdownEle... |
src/pages/contagie.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Contagie' />
)
|
webpack/JobWizard/steps/form/FormHelpers.js | adamruzicka/foreman_remote_execution | import React from 'react';
import { Popover } from '@patternfly/react-core';
import { HelpIcon } from '@patternfly/react-icons';
import { translate as __ } from 'foremanReact/common/I18n';
export const helpLabel = (text, id) => {
if (!text) return null;
return (
<Popover id={`${id}-help`} bodyContent={text} ar... |
src/js/icon/test/test.js | HBM/md-components | /* global describe, it */
import assert from 'assert'
import React from 'react'
import {AlarmOff, Button} from '../'
import {shallow} from 'enzyme'
describe('Icon', () => {
it('should render AlarmOff', () => {
const wrapper = shallow(<AlarmOff />)
assert(wrapper.find('svg'))
})
it('should render icon b... |
containers/App.js | nickaugust/dwmjs | import React from 'react'
import {bindActionCreators} from 'redux'
import {connect} from 'react-redux'
import * as WindowActions from '../actions/windows'
import Window from '../components/Window'
import Layout from '../components/Layout'
import Header from '../components/Header'
class App extends React.Component {
... |
src/encoded/static/components/app.js | T2DREAM/t2dream-portal | import React from 'react';
import PropTypes from 'prop-types';
import serialize from 'form-serialize';
import ga from 'google-analytics';
import _ from 'underscore';
import url from 'url';
import jsonScriptEscape from '../libs/jsonScriptEscape';
import origin from '../libs/origin';
import * as globals from './globals';... |
pages/dashboardb.js | turntwogg/esports-aggregator | import React, { Component } from 'react';
import { connect } from 'react-redux';
import shallowequal from 'shallowequal';
import { withTheme, Row, Col, Visibility } from '@turntwo/react-ui';
import Link from 'next/link';
import Page from '../components/Page';
import PageHeader from '../components/PageHeader';
import P... |
storybook/createStory/CenterView/index.js | Fineighbor/ui-kit | import React from 'react'
import PropTypes from 'prop-types'
import style from './style'
export default function CenterView (props) {
return (
<div style={style.main}>
{props.children}
</div>
)
}
CenterView.defaultProps = {
children: null
}
CenterView.propTypes = {
children: PropTypes.node
}
|
src/main.js | yanglinz/reddio | import 'whatwg-fetch';
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import 'services/analytics/segment';
import 'services/analytics/sentry';
import AppRoutes from './screens/routes';
export function initialize(mountId) {
const mountNode = document.getElementById(mountId);
... |
src/views/ProjectStoriesView/StatesFilter/index.js | asidiali/pivotal.press | import {
DropDownMenu,
MenuItem,
} from 'material-ui';
import React from 'react';
import radium from 'radium';
const StatesFilter = props => (
<DropDownMenu
underlineStyle={{
margin: 0,
borderTop: '2px solid rgba(0,0,0,0.15)',
display: 'none',
}}
labelStyle={{
paddingLeft: 10... |
docs/app/Examples/modules/Embed/Usage/EmbedExampleSettings.js | shengnian/shengnian-ui-react | import React from 'react'
import { Embed } from 'shengnian-ui-react'
const EmbedExampleSettings = () => (
<Embed
autoplay={false}
brandedUI
color='white'
hd={false}
id='D0WnZyxp_Wo'
placeholder='/assets/images/image-16by9.png'
source='youtube'
/>
)
export default EmbedExampleSettings
|
src/parser/deathknight/frost/modules/runicpower/RunicPowerDetails.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import Panel from 'interface/others/Panel';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import { formatPercentage } from 'common/format';
import Icon from 'common/Icon';
import ResourceBreakdown from 'parser/shar... |
src/PaginationComponent.js | gkaran/react-bootstrap-tabular | import React from 'react';
import { calcPaginationTiles } from './utils/pagination';
import PaginationTile from './PaginationTile';
class PaginationComponent extends React.Component {
constructor(props) {
super(props);
this.changeToPreviousPage = this.changeToPreviousPage.bind(this);
this.changeToFirst... |
pkg/interface/publish/src/js/components/lib/sidebar-invite.js | ngzax/urbit | import React, { Component } from 'react';
import classnames from 'classnames';
import _ from 'lodash';
export class SidebarInvite extends Component {
onAccept() {
let action = {
accept: {
path: '/publish',
uid: this.props.uid,
}
}
window.api.action("invite-store", "invite-act... |
playground/src/screens/TopTabOptionsScreen.js | ceyhuno/react-native-navigation | const React = require('react');
const { PureComponent } = require('react');
const testIDs = require('../testIDs');
const { View, Text, Button } = require('react-native');
const { Navigation } = require('react-native-navigation');
class TopTabOptionsScreen extends PureComponent {
static options() {
return {
... |
src/svg-icons/editor/attach-money.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorAttachMoney = (props) => (
<SvgIcon {...props}>
<path d="M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.... |
app/app.js | jamesgordo/bookmarker | import React from 'react'
import { render } from 'react-dom'
import { Router, Route, IndexRoute, Link, IndexLink } from 'react-router'
import { createHistory, useBasename } from 'history'
import $ from 'jquery'
import request from 'superagent'
//import components
import AddLink from './assets/components/addlink'
cons... |
app/javascript/mastodon/features/compose/components/search.js | h-izumi/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
const messages = defineMessages({
placeholder: { id: 'search.placeholder', defaultMessage: 'Search' },
});
class Search extends React.PureComponent {
static propTypes = {
value: PropTypes.s... |
src/app.js | syholloway/jsplate |
import React from 'react';
import Todo from './todo';
var workItems = [
{id : 0, text : 'Plan sprint 4 of SDM', complete : false},
{id : 1, text : 'Refactor SDM\\Service\\Search', complete : true},
{id : 2, text : 'Present new thing to John', complete : false},
];
var personalItems = [
{id : 3, text : 'Take the ... |
app/javascript/mastodon/features/compose/components/warning.js | cybrespace/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
export default class Warning extends React.PureComponent {
static propTypes = {
message: PropTypes.node.isRequired,
};
render () {
const { mes... |
packages/mcs-lite-ui/src/Table/Table.example.js | MCS-Lite/mcs-lite | import React from 'react';
import { storiesOf } from '@storybook/react';
import { withInfo } from '@storybook/addon-info';
import Table from '.';
storiesOf('Table', module).add(
'API',
withInfo({
text: '',
inline: true,
})(() => (
<Table style={{ backgroundColor: 'white' }}>
<thead>
<tr... |
src/components/CartPreview.js | zeachco/rockplusinc.com | import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import cx from 'classnames';
import CartIcon from 'react-icons/lib/md/shopping-cart';
import {toggleModal} from '../store/actions/cart';
const CartPreview = ({
count,
isLoading
}) => (
<a
disabled={... |
oa-client/ext/packages/core/src/drag/Item.js | zuesgooogle/oa | /**
* A base class for draggable and droppable items that wrap a DOM element.
*
* @abstract
*/
Ext.define('Ext.drag.Item', {
mixins: [
'Ext.mixin.Observable',
'Ext.mixin.Identifiable'
],
config: {
/**
* @cfg {Boolean} autoDestroy
* `true` to destroy the {@link ... |
src/parser/hunter/shared/modules/features/CancelledCasts.js | fyruna/WoWAnalyzer | import React from 'react';
import CoreCancelledCasts from 'parser/shared/modules/CancelledCasts';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import Icon from 'common/Icon';
/**
* Tracks the amou... |
StatusBar.js | ganmor/react-native-webbrowser | 'use strict';
import React from 'react';
import {
TextInput,
View,
} from 'react-native';
import BaseComponent from './BaseComponent'
import styles from './styles'
class StatusBar extends BaseComponent {
constructor(props) {
super(props);
this.inputText = '';
this.state = {
... |
public/js/components/placeholder.js | MelanistOnca/bookList | import React from 'react';
import { render } from 'react-dom';
export default class Placeholder extends React.Component {
render(){
//i should probably revisit why i needed this
return(
<div id="placeholder">
</div>
)
}
}
|
src/Components/Select/Select.js | apiaryio/attributes-kit | import React from 'react';
import PropTypes from 'prop-types';
import Radium from 'radium';
import merge from 'lodash/merge';
import isEmpty from 'lodash/isEmpty';
import Row from '../Row/Row';
import Column from '../Column/Column';
import SelectOption from '../SelectOption/SelectOption';
@Radium
class Select extend... |
Examples/UIExplorer/StatusBarIOSExample.js | woshili1/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
src/components/common/SelectInput.js | ashutosh-singh-rawat/react-redux-starter | import React from 'react';
import PropTypes from 'prop-types';
const SelectInput = ({ name, label, onChange, defaultOption, value, error, options }) => {
let wrapperClass = 'form-group';
if (error && error.length > 0) {
wrapperClass += " " + 'has-error';
}
return (
<div className={wrapperClass}>
... |
sites/all/modules/jquery_update/replace/jquery/1.9/jquery.min.js | ph3l1x/clay | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
src/svg-icons/editor/format-shapes.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatShapes = (props) => (
<SvgIcon {...props}>
<path d="M23 7V1h-6v2H7V1H1v6h2v10H1v6h6v-2h10v2h6v-6h-2V7h2zM3 3h2v2H3V3zm2 18H3v-2h2v2zm12-2H7v-2H5V7h2V5h10v2h2v10h-2v2zm4 2h-2v-2h2v2zM19 5V3h2v2h-2zm-... |
app/components/factories/serverProvider.js | amcsi/szeremi | import PropTypes from 'prop-types';
import React from 'react';
import configureStore from '../../core/configureStore';
import Contexts from '../contexts/Contexts';
/**
* Returns the root context to use on the server-side.
*
* @param initialState
*/
function serverProvider(initialState) {
const store = configureS... |
examples/async/containers/Root.js | yyx990803/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import configureStore from '../store/configureStore';
import AsyncApp from './AsyncApp';
const store = configureStore();
export default class Root extends Component {
render() {
return (
<Provider store={store}>
{() ... |
src/components/Breadcrumbs.js | fahmifachreza/fahmifachreza-portofolio | import React from 'react';
import PropTypes from 'prop-types';
import { Route, Link } from 'react-router-dom';
import Interactive from 'react-interactive';
const breadCrumbTitles = {
'': 'Home',
example: 'Example',
'two-deep': 'Two Deep',
};
function BreadcrumbsItem({ match }) {
const title = breadCrumbTitles... |
ajax/libs/6to5/3.5.0/browser-polyfill.js | cluo/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... |
client/js/components/Loading.js | bmacheski/tech-connect | 'use strict';
import React from 'react';
class Loading extends React.Component {
render() {
return (
<div className="ui segment">
<p></p>
<div className="ui active inverted dimmer">
<div className="ui text loader loading">Loading</div>
</div>
</div>
)
}
}
ex... |
src/js/components/timepicker.js | frig-js/frigging-bootstrap | import React from 'react'
import cx from 'classnames'
import { HigherOrderComponents } from 'frig'
import TimeFormatter from './time/time_formatter'
import TimepickerPopup from './time/timepicker_popup'
import InputErrorList from './input_error_list'
import Saved from './saved'
import Label from './label'
import { si... |
wp-content/themes/madico.com-Dealer/js/jquery.min.1.4.js | marketingincolor/naviga | /*!
* jQuery JavaScript Library v1.4.3
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
examples/custom-server-hapi/pages/b.js | kevmannn/next.js | import React from 'react'
export default () => <div>b</div>
|
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/NavDropdown.js | JamieMason/npm-cache-benchmark | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from... |
packages/material-ui-icons/src/SatelliteSharp.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M21 3H3v18h18V3zM5 4.99h3C8 6.65 6.66 8 5 8V4.99zM5 12v-2c2.76 0 5-2.25 5-5.01h2C12 8.86 8.87 12 5 12zm0 6l3.5-4.5 2.5 3.01L14.5 12l4.5 6H5z" />... |
site/src/components/ExtensionSelection.js | LastCallMedia/Mannequin | import React from 'react'
import Link from 'gatsby-link'
import DrupalLogo from '../img/drupal.png'
import TwigLogo from '../img/twig.png'
import HtmlLogo from '../img/html.png'
import './ExtensionSelection.scss'
export default function ExtensionSelection({ className }) {
return (
<ul className={`ExtensionSelect... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.