path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
client/components/label.js | jchai002/acrostix | import React from 'react';
const Label = ({value}) => {
return (
<span className="label">{value}.</span>
);
}
export default Label
|
src/components/icons/CalendarIcon.js | InsideSalesOfficial/insidesales-components | import React from 'react';
import { generateFillFromProps } from '../styles/colors.js';
const CalendarIcon = props => (
<svg {...props.size || { width: '18px', height: '20px' }} {...props} viewBox="0 0 18 20">
{props.title && <title>{props.title}</title>}
<g id="Page-1" stroke="none" strokeWidth="... |
src/pages/something.js | guidiego/nextoids | import React from 'react';
import styles from './something.sass';
const Something = () => (
<div className={styles.something}>
Something
</div>
);
export default Something;
|
src/components/BigCalendarWrapper/components/BigCalendarAgentPicker/BigCalendarAgentPicker.js | TheModevShop/craft-app | import React from 'react';
import FlyOut from 'components/uiElements/FlyOut/FlyOut';
import Select from 'react-select';
import _ from 'lodash';
import 'react-day-picker/lib/style.css';
import './big-calendar-agent-picker.less';
class BigCalendarAgentPicker extends React.Component {
constructor(...args) {
super(.... |
examples/js/column-filter/select-filter-with-sort.js | neelvadgama-hailo/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
const qualityType = {
0: 'good',
1: 'bad',
2: 'unknown'
};
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) ... |
node_modules/react-autosuggest-legacy/examples/src/Examples.js | mannyng/ceap | require('./Examples.less');
require('./Autosuggest.less');
import React, { Component } from 'react';
import BasicExample from './BasicExample/BasicExample';
import CustomRenderer from './CustomRenderer/CustomRenderer';
import MultipleSections from './MultipleSections/MultipleSections';
import ControlledComponent from ... |
src/components/addtask.js | alphanumeric0101/pomodo-it | import React from 'react';
import Add from 'material-ui/lib/svg-icons/content/add';
import AddButton from 'material-ui/lib/floating-action-button';
import Dialog from 'material-ui/lib/dialog';
import FlatButton from 'material-ui/lib/flat-button';
import SelectField from 'material-ui/lib/select-field';
import MenuItem f... |
node_modules/react/lib/ReactCSSTransitionGroup.js | HasanSa/hackathon | /**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
'use strict... |
src/components/activity/screens/ActivityList/containers/ActivityListContainer.js | yasavbrain/yasav | import React from 'react';
import { connect } from 'react-redux';
import { getActivityList } from '../actions';
import { deleteActivity } from '../../ActivityDisplay/actions/index';
import ActivityListView from '../views/ActivityListView';
import { sortListQuery } from 'yasav/src/utils/functions';
class ActivityListCo... |
docs-ui/components/toolbar.stories.js | gencer/sentry | import React from 'react';
import {storiesOf} from '@storybook/react';
import {withInfo} from '@storybook/addon-info';
// import {action} from '@storybook/addon-actions';
import Toolbar from 'sentry-ui/toolbar';
import ToolbarHeader from 'sentry-ui/toolbarHeader';
import SpreadLayout from 'sentry-ui/spreadLayout';
st... |
packages/giu/src/components/progress.js | guigrpa/giu | // @flow
import React from 'react';
import classnames from 'classnames';
import { ThemeContext } from '../gral/themeContext';
import type { Theme } from '../gral/themeContext';
// ==========================================
// Declarations
// ==========================================
/* --
A wrapper for the native HT... |
src/dumb/block_graph/ReadonlyTaskBlock.js | jeckhummer/wf-constructor | import React from 'react';
import {TASK_BLOCK, COLORS} from '../../styles';
export const ReadonlyTaskBlock = ({
name,
statusId,
link
}) => {
const {color, backgroundColor} = COLORS.STATUS[statusId];
return (
<div style={{
width: TASK_BLOCK.WIDTH + 'px',
height: TASK... |
files/rxjs/2.4.0/rx.lite.js | leebyron/jsdelivr | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
v... |
test/client/unit/pages/RiskAssessmentSummary.spec.js | noms-digital-studio/csra-app | import React from 'react';
import { Provider } from 'react-redux';
import { MemoryRouter as Router } from 'react-router-dom';
import { mount } from 'enzyme';
import xhr from 'xhr';
import { fakeStore } from '../test-helpers';
import RiskAssessmentSummary from '../../../../client/javascript/pages/RiskAssessmentSummary... |
src/parser/hunter/survival/modules/features/TraitsAndTalents.js | FaideWW/WoWAnalyzer | import React from 'react';
import StatisticsListBox from 'interface/others/StatisticsListBox';
import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER';
import Analyzer from 'parser/core/Analyzer';
import AMurderOfCrows from 'parser/hunter/shared/modules/talents/AMurderOfCrows';
import SteelTrap from '../talen... |
src/components/blog/CommaSeparatedTags.js | kbariotis/kostasbariotis.com | import React from 'react';
import { Link } from 'gatsby';
import PropTypes from 'prop-types';
const CommaSeparatedTags = ({ tags }) => (
<div
css={{
color: 'rgba(255, 255, 255, 0.5)',
}}
>
{tags && tags.length && (
<span>
Talking about:{' '}
{tags.split(', ').map((tag, index... |
ajax/libs/react-redux/0.4.0/react-redux.min.js | sashberd/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.ReactRedux=t(require("react")):e.ReactRedux=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exp... |
src/applications/appeals/10182/content/issueSummary.js | department-of-veterans-affairs/vets-website | import React from 'react';
import { Link } from 'react-router';
import { contestableIssuesPath } from '../constants';
import { getSelected } from '../utils/helpers';
import { ShowIssuesList } from '../components/ShowIssuesList';
export const SummaryTitle = ({ formData }) => {
const issues = getSelected(formData);
... |
components/UserForm.js | turntwogg/esports-aggregator | import React from 'react';
import { connect } from 'react-redux';
import classNames from 'classnames';
import TextField from './TextField';
import Button from './Button';
import { logIn, postMessage, signUp } from '../store/actions';
import useFormInput from '../hooks/useFormInput';
const mapStateToProps = state => ... |
src/svg-icons/navigation/arrow-forward.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowForward = (props) => (
<SvgIcon {...props}>
<path d="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"/>
</SvgIcon>
);
NavigationArrowForward = pure(NavigationArrowForward);
Navigation... |
react/features/base/media/components/web/Video.js | bgrozev/jitsi-meet | /* @flow */
import React, { Component } from 'react';
/**
* The type of the React {@code Component} props of {@link Video}.
*/
type Props = {
/**
* CSS classes to add to the video element.
*/
className: string,
/**
* The value of the id attribute of the video. Used by the torture tests ... |
plugins/react/frontend/components/controls/advanced/IntegerControl/ConstraintsForm/index.js | pure-ui/styleguide | import React from 'react';
import toNumber from 'lodash/toNumber';
import Input from '../../../../form/Input';
import Row from '../../../../form/Grid/Row';
import LeftColumn from '../../../../form/Grid/LeftColumn';
import RightColumn from '../../../../form/Grid/RightColumn';
const defaultConstraints = {
min: 0,
ma... |
src/controls/moneyfield/index.js | thinktopography/reframe | import React from 'react'
import PropTypes from 'prop-types'
import TextField from '../textfield'
class MoneyField extends React.Component {
static propTypes = {
maxLength: PropTypes.number,
disabled: PropTypes.bool,
placeholder: PropTypes.string,
defaultValue: PropTypes.string,
tabIndex: PropTy... |
src/main/resources/assets/javascripts/app.js | GabeLoins/airpal_preview_tab_fork | /**
* App Bootstrap
*/
import 'es6-shim';
import 'whatwg-fetch';
import AirpalApp from './components/AirpalApp.jsx';
import React from 'react';
// Start the main app
React.render(
<AirpalApp />,
document.querySelector('.js-react-app')
);
|
ajax/libs/react-data-grid/1.0.12/react-data-grid.ui-plugins.js | seogi1004/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... |
packages/wix-style-react/src/Layout/Cell/index.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import { st, classes } from './styles.st.css';
const Cell = ({ span, rows, children, vertical, className, dataHook }) => (
<div
data-hook={dataHook}
style={{
gridColumn: `span ${span}`,
gridRow: `span ${rows}`,
}}
className={s... |
ajax/libs/glamorous/3.16.0/glamorous.umd.tiny.js | seogi1004/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('glamor')) :
typeof define === 'function' && define.amd ? define(['react', 'glamor'], factory) :
(global.glamorous = factory(global.React,global.Glamor));
}(this, (function ... |
node_modules/bs-recipes/recipes/gulp.pug/gulpfile.js | CristianoRC/CristianoRC.Github.io | var gulp = require('gulp');
var browserSync = require('browser-sync');
var sass = require('gulp-sass');
var pug = require('gulp-pug');
var reload = browserSync.reload;
/**
* Compile pug files into HTML
*/
gulp.task('templates', function() {
var YOUR_LOCALS = {
"message": "This... |
jquery-ui-1.11.1/external/jquery/jquery.js | MoneyApp/UI | /*!
* jQuery JavaScript Library v1.10.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-03T13:48Z
*/
(function( window, undefined ) {
// ... |
ajax/libs/foundation/4.1.2/js/vendor/jquery.js | victor-istomin/cdnjs | /*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-4
*/
(function( window, undefined ) {
// Can't do t... |
ajax/libs/forerunnerdb/1.3.219/fdb-legacy.js | dannyxx001/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
ajax/libs/core-js/1.2.4/shim.js | holtkamp/cdnjs | /**
* core-js 1.2.4
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(__e, __g, undefined){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require f... |
src/containers/PrimaryNavigation.js | KingCountySAR/database-frontend | import { connect } from 'react-redux';
import PrimaryNavigation from '../components/PrimaryNavigation';
const mapStateToProps = state => ({
user: state.oidc.user,
isLoadingUser: state.oidc.isLoadingUser
});
export default connect(mapStateToProps)(PrimaryNavigation);
|
logspace-frontend-new/src/main/alerts/components/Page.react.js | Indoqa/logspace | /*
* Logspace
* Copyright (c) 2015 Indoqa Software Design und Beratung GmbH. All rights reserved.
* This program and the accompanying materials are made available under the terms of
* the Eclipse Public License Version 1.0, which accompanies this distribution and
* is available at http://www.eclipse.org/legal/epl-... |
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js | wangkang0627/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
import ActorClient from 'utils/ActorClient';
import { Styles, FlatButton } from 'material-ui';
import { KeyCodes } from 'constants/ActorAppConstant... |
ajax/libs/rollbar.js/2.3.4/rollbar.umd.js | joeyparrish/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["rollbar"] = factory();
else
root["rollb... |
src/components/items_and_income_screen/items_and_income_screen.js | amybingzhao/savings-planner-web | import React, { Component } from 'react';
import Greeting from '../greeting';
import InfoTable from './info_table';
class ItemsAndIncomeScreen extends Component {
constructor(props) {
super(props);
}
render() {
return (
<div>
<Greeting text="Here's your current info:" />
<div class... |
sites/default/files/js/js_wuEkik_MclPH23d5FkKQOPBsmXVKFZeWrhYuPk5JSP4.js | vgardner/d8-content-provider | /*! jQuery v2.1.3 | (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 windo... |
src/app/containers/Nav.js | lmcjt37/kulor-reactify | import React from 'react';
import ColourHelper from '../helper/colourHelper';
import themedGooeyNav from '../theme/themedGooeyNav';
import GooeyNavItem from '../components/gooey-nav/gooeyNavItem';
export default class Nav extends React.Component {
constructor(props) {
super(props);
}
onToggle() {... |
src/components/Main.js | SteveHoggNZ/react-notetaker | import React from 'react';
import { RouteHandler } from 'react-router';
import SearchGithub from './SearchGithub';
class Main extends React.Component {
render() {
return (
<div className="main-container">
<nav className="navbar navbar-default" role="navigation">
... |
docs/src/components/UseButton.js | HsuTing/cat-components | 'use strict';
import React from 'react';
import radium from 'radium';
import Button from 'cat-components/lib/button';
@radium
export default class UseButton extends React.Component {
render() {
return (
<div>
<Button>button</Button>
<Button link='https://github.com/HsuTing/cat-components'... |
src/svg-icons/maps/navigation.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsNavigation = (props) => (
<SvgIcon {...props}>
<path d="M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71z"/>
</SvgIcon>
);
MapsNavigation = pure(MapsNavigation);
MapsNavigation.displayName = 'MapsNavigation';
... |
ajax/libs/angular-google-maps/1.0.5/angular-google-maps.js | jonobr1/cdnjs | /*
Author Nick McCready
Intersection of Objects if the arrays have something in common each intersecting object will be returned
in an new array.
*/
(function() {
_.intersectionObjects = function(array1, array2, comparison) {
var res,
_this = this;
if (comparison == null) {
compariso... |
packages/ringcentral-widgets-docs/src/app/pages/Components/SearchInput/Demo.js | u9520107/ringcentral-js-widget | import React from 'react';
// eslint-disable-next-line
import SearchInput from 'ringcentral-widgets/components/SearchInput';
const props = {};
props.value = 'test string';
props.onChange = () => null;
/**
* A example of `SearchInput`
*/
const SearchInputDemo = () => (
<SearchInput
{...props}
/>
);
export de... |
blueocean-material-icons/src/js/components/svg-icons/action/settings-bluetooth.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionSettingsBluetooth = (props) => (
<SvgIcon {...props}>
<path d="M11 24h2v-2h-2v2zm-4 0h2v-2H7v2zm8 0h2v-2h-2v2zm2.71-18.29L12 0h-1v7.59L6.41 3 5 4.41 10.59 10 5 15.59 6.41 17 11 12.41V20h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 3.83l1.88 1.88L13... |
pages/about.js | mmaarrttyy/next-blog | import React from 'react'
import Layout from '../components/MyLayout.js'
import BasicPage from '../components/BasicPage.js'
import Cosmic from '../models/cosmic'
export default class About extends React.Component {
static async getInitialProps () {
return await Cosmic.getPage('about')
}
render () {
... |
ajax/libs/preact/2.8.1/preact.min.js | cdnjs/cdnjs | !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(e.preact={})}(this,function(e){"use strict";function n(e,n){var t=arguments.length<=2||void 0===arguments[2]?null:arguments[2],o=t&&t._component&&t._componentConstructor===e.nodeN... |
packages/material-ui-icons/src/Assessment.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z" /></g>
, 'Assessment');
|
js/components/expander.js | mercycorps/TolaActivity | import React from 'react'
class Expander extends React.Component {
constructor(props) {
super(props)
this.state = {
expanded: false,
overflowing: false,
}
this.ref = React.createRef()
}
componentDidMount() {
if(this.ref.current.scrollHeight >... |
node_modules/react-router/es6/RoutingContext.js | ottomajik/react-demo | 'use strict';
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; };
function _classCallCheck(instance, Constructor... |
src/components/TextArea/TextArea-test.js | joshblack/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { mount, shallow } from 'enzyme';
import TextArea from '../TextArea';
describe('TextArea', () => {
descr... |
src/main/react/index.js | hhandoko/luwak | /**
* File : index.js
* License :
* Copyright (c) 2017 Herdy Handoko
*
* 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... |
src/components/MenuItem/MenuItem.js | quyetvv/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/App.js | haikyuu/react-canvas-example | import React from 'react'
import './App.css'
import {
Layer, Stage
} from 'react-konva'
import { CanvasStore } from './stores'
import { observer } from 'mobx-react'
import {
Shape
} from './components'
// import DevTools from 'mobx-react-devtools'
import { map, findIndex } from 'lodash/fp'
import uuid from 'uuid/... |
JavaScript/React/Pro React/First App/src/components/Routing/Home.js | batazor/MyExampleAndExperiments | import React, { Component } from 'react';
class Home extends Component {
render() {
return (
<h1>HOME</h1>
);
}
}
export default Home;
|
ajax/libs/rxjs/2.3.10/rx.all.compat.js | AMoo-Miki/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... |
src/svg-icons/image/edit.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageEdit = (props) => (
<SvgIcon {...props}>
<path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/>
... |
src/main/webapp/static/js/club/view/back/blog/ueditor.js | weijiafen/antBlog | import React from 'react';
require('../../../library/ueditor/ueditor.config.js')
require('../../../library/ueditor/ueditor.all.min.js')
require('../../../library/ueditor/lang/zh-cn/zh-cn.js')
var UEditor = React.createClass({
displayName: 'UEditor',
// 设置默认的属性值
getDefaultProps: funct... |
plugins/Hosting/js/components/body.js | NebulousLabs/New-Sia-UI | import React from 'react'
import FilesList from '../containers/fileslist.js'
import SettingsList from '../containers/settingslist.js'
const Body = ({ actions }) => {
const announceHost = () => actions.announceHost()
return (
<div className='hosting'>
<div className='help section'>
<div className... |
app/components/patientBgUnits/patientBgUnits.js | hichameyessou/blip | /*
* == BSD2 LICENSE ==
* Copyright (c) 2017, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program ... |
src/transitions/Grow.spec.js | dsslimshaddy/material-ui | // @flow
import React from 'react';
import { assert } from 'chai';
import { spy } from 'sinon';
import { createShallow } from '../test-utils';
import Grow, { getScale } from './Grow';
describe('<Grow />', () => {
let shallow;
before(() => {
shallow = createShallow({ dive: true });
});
describe('event ca... |
app/components/List/index.js | akash6190/apollo-starter | import React from 'react';
import Ul from './Ul';
import Wrapper from './Wrapper';
function List(props) {
const ComponentToRender = props.component;
let content = (<div></div>);
// If we have items, render them
if (props.items) {
content = props.items.map((item) => (
<ComponentToRender key={`item-$... |
ajax/libs/videomail-client/2.3.0/videomail-client.js | holtkamp/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.VideomailClien... |
src/universalRouter.js | JRF-tw/protest.jrf.org.tw | import React from 'react';
import Router from 'react-router';
import createRoutes from './views/routes';
import {Provider} from 'react-redux';
export default function universalRouter(location, history, store) {
const routes = createRoutes();
return new Promise((resolve, reject) => {
Router.run(routes, location... |
src/components/privateWrapper/index.js | slaweet/lisk-nano | import React from 'react';
import { connect } from 'react-redux';
export const PrivateWrapperComponent = ({ isAuthenticated, children }) => (
isAuthenticated && <span>{ children }</ span>
);
const mapStateToProps = state => ({
isAuthenticated: !!state.account.publicKey,
});
export default connect(mapStateToProps... |
actor-apps/app-web/src/app/components/dialog/MessagesSection.react.js | cnbin/actor-platform | import React from 'react';
import _ from 'lodash';
import VisibilityStore from 'stores/VisibilityStore';
import MessageActionCreators from 'actions/MessageActionCreators';
import MessageItem from 'components/common/MessageItem.react';
let _delayed = [];
let flushDelayed = () => {
_.forEach(_delayed, (p) => {
... |
ajax/libs/analytics.js/2.3.15/analytics.js | samthor/cdnjs | (function outer(modules, cache, entries){
/**
* Global
*/
var global = (function(){ return this; })();
/**
* Require `name`.
*
* @param {String} name
* @param {Boolean} jumped
* @api public
*/
function require(name, jumped){
if (cache[name]) return cache[name].exports;
if (mo... |
node_modules/react-slick/src/initial-state.js | hong1012/FreePay | var initialState = {
animating: false,
dragging: false,
autoPlayTimer: null,
currentDirection: 0,
currentLeft: null,
currentSlide: 0,
direction: 1,
listWidth: null,
listHeight: null,
// loadIndex: 0,
slideCount: null,
slideWidth: null,
slideHeight: null,
// slidin... |
src/containers/search/search.js | SupasitC/Pricetrolley | import React from 'react'
import {Grid, Row, Col} from 'react-bootstrap'
import Topbar from '../../components/top-bar/top-bar'
import Footer from '../../components/footer/footer'
import FilterSearch from '../../components/filter-search/filter-search'
import ShopList from '../../components/shop-list/shop-list'
import B... |
anubis/ui/components/scratchpad/ScratchpadRecordsContainer.js | KawashiroNitori/Anubis | import React from 'react';
import { connect } from 'react-redux';
import Tabs, { TabPane } from 'rc-tabs';
import TabContent from 'rc-tabs/lib/TabContent';
import ScrollableInkTabBar from 'rc-tabs/lib/ScrollableInkTabBar';
import Icon from '../react/IconComponent';
import Panel from './PanelComponent';
import PanelButt... |
templates/frontOffice/modern/components/React/Checkout/CheckoutBtn.js | Lucanis/thelia | import { useAddressQuery, useCheckoutCreate } from '../../../assets/js/api';
import { useDispatch, useSelector } from 'react-redux';
import { useEffect, useRef, useState } from 'react';
import React from 'react';
import { setAcceptedTermsAndConditions } from '@js/redux/modules/checkout';
import { useIntl } from 'react... |
packages/veritone-react-common/src/components/FolderTree/Modals/DeleteFolder/index.js | veritone/veritone-sdk | /* eslint-disable react/jsx-no-bind */
import React from 'react';
import Button from '@material-ui/core/Button';
import { get } from 'lodash';
import { shape, bool, func } from 'prop-types';
import TextField from '@material-ui/core/TextField';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@m... |
ajax/libs/forerunnerdb/1.3.794/fdb-legacy.js | sajochiu/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... |
packages/mui-icons-material/lib/esm/RectangleOutlined.js | oliviertassinari/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M2 4v16h20V4H2zm18 14H4V6h16v12z"
}), 'RectangleOutlined'); |
templates/src/containers/ExpContainer/stuIngExp.js | chenym1992/create-react-frame | import React from 'react'
import {
connect
} from 'react-redux'
import {
Prompt
} from 'react-router'
import {
Layout,
Breadcrumb,
Tabs,
Row,
Col,
Form,
Button,
message
} from 'antd'
// 富文本编辑器
import CKEDITOR from 'ckeditor'
import store from 'store'
import ExpForm from 'components/ExpForm'
import E... |
src/svg-icons/notification/airline-seat-flat.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatFlat = (props) => (
<SvgIcon {...props}>
<path d="M22 11v2H9V7h9c2.21 0 4 1.79 4 4zM2 14v2h6v2h8v-2h6v-2H2zm5.14-1.9c1.16-1.19 1.14-3.08-.04-4.24-1.19-1.16-3.08-1.14-4.24.04-1.16 1.19-1.1... |
app/src/containers/interactive-tutorial/index.js | supernova-at/media-bias | import React from 'react';
import tutorialImage from '../../images/tutorial.gif';
import { InteractiveTutorial as Copy } from '../../data/news-copy';
export default () => (
<div className="newspaper-copy">
<h1 className="newspaper-heading">
{ Copy.heading }
</h1>
<h3 className="newspaper-subheading... |
app/components/About/index.js | mhoffman/CatAppBrowser | /**
*
* About
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import Paper from 'material-ui/Paper';
import Grid from 'material-ui/Grid';
import slacLogo from 'components/Header/SLAC_Logo.png';
import doeLogo from 'components/Header/DOE_Logo.gif'... |
sites/default/files/js/js_-O64vC1buMJUdVNI2gcKYvxCk3VraPQyB10YsDPSiEM.js | mouna16/Drupal8 | /*! jQuery v2.2.3 | (c) jQuery Foundation | 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 window?window:this,fun... |
react/features/settings/components/web/audio/AudioSettingsPopup.js | jitsi/jitsi-meet | // @flow
import InlineDialog from '@atlaskit/inline-dialog';
import React from 'react';
import { areAudioLevelsEnabled } from '../../../../base/config/functions';
import {
getAudioInputDeviceData,
getAudioOutputDeviceData,
setAudioInputDeviceAndUpdateSettings,
setAudioOutputDevice as setAudioOutputDev... |
app/javascript/mastodon/components/column_back_button_slim.js | NS-Kazuki/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import ColumnBackButton from './column_back_button';
export default class ColumnBackButtonSlim extends ColumnBackButton {
render () {
return (
<div className='column-back-button--slim'>
<div role='button' tabIndex='0' onClic... |
src/components/App.js | atomic-coders/react-boilerplate | import React from 'react';
import {Navbar, Nav, NavItem} from 'react-bootstrap';
import {LinkContainer} from 'react-router-bootstrap';
import appActions from '../actions/AppActions';
import {connect} from 'react-redux';
import Notification from './Notification';
export class App extends React.Component {
componen... |
node_modules/semantic-ui-react/dist/es/addons/TextArea/TextArea.js | mowbell/clickdelivery-fed-test | 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... |
site/components/NavBar.js | andreypopp/sitegen | import React from 'react';
import MenuIcon from 'react-icons/lib/ti/th-menu';
import CloseIcon from 'react-icons/lib/ti/times';
import {Link} from '../../';
import {Sticky} from './Sticky';
import {
NavBar as NavBarBase,
NavLink as NavLinkBase,
NavBarWrapper,
NavBarToC,
NavBarToCShim,
TocToggle
} from './Na... |
components/workflow-mgt/org.wso2.carbon.identity.workflow.impl.ui/src/main/resources/web/workflow-impl/js/jquery-1.11.3.js | godwinamila/carbon-identity | /*!
* jQuery JavaScript Library v1.11.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2015-04-28T16:19Z
*/
(function( global, factory ) {
if ... |
node_modules/gulp-jest/node_modules/react-tools/src/browser/ReactBrowserEventEmitter.js | chi-sea-lions-2015/house-rules-frontend2 | /**
* Copyright 2013-2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule ... |
docs/server.js | sheep902/react-bootstrap | /* eslint no-console: 0 */
import 'colors';
import React from 'react';
import express from 'express';
import path from 'path';
import Router from 'react-router';
import routes from './src/Routes';
import httpProxy from 'http-proxy';
import metadata from './generate-metadata';
import ip from 'ip';
const development =... |
app/components/ad-custom.js | 7kfpun/TWAQIReactNative | import React, { Component } from 'react';
import { number, string } from 'prop-types';
import { Image, TouchableWithoutFeedback, View } from 'react-native';
import { getAd } from '../utils/firebase-config';
import { openURL } from '../utils/helpers';
import tracker from '../utils/tracker';
export default class AdCust... |
packages/material-ui-icons/src/Delete.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Delete = props =>
<SvgIcon {...props}>
<path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z" />
</SvgIcon>;
Delete = pure(Delete);
Delete.muiName = 'SvgIcon';
export ... |
ajax/libs/backbone.js/1.3.3/backbone.js | dhenson02/cdnjs | // Backbone.js 1.3.3
// (c) 2010-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
(function(factory) {
// Establish the root object, `window` (`se... |
docs/app/Examples/collections/Menu/Types/MenuExampleAttached.js | clemensw/stardust | import React from 'react'
import { Dropdown, Icon, Menu, Segment } from 'semantic-ui-react'
// TODO: Update <Search> usage after its will be implemented
const MenuExampleAttached = () => {
return (
<div>
<Menu attached='top'>
<Dropdown as={Menu.Item} icon='wrench' simple>
<Dropdown.Menu>... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | cratia-devel/angular2-tour-of-heroes | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
test/BreadcrumbItemSpec.js | Terminux/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ReactDOM from 'react-dom';
import BreadcrumbItem from '../src/BreadcrumbItem';
describe('BreadcrumbItem', () => {
it('Should render `a` as inner element when is not active', () => {
const instance = ReactTestUtils.renderInt... |
src/Backoffice/ButtonLayout/ButtonLayout.driver.js | skyiea/wix-style-react | import React from 'react';
import ReactDOM from 'react-dom';
import {isClassExists} from '../../../test/utils';
const buttonLayoutDriverFactory = ({element, wrapper, component}) => {
const getAttribute = (element, attribute) => element.getAttribute(attribute);
return {
exists: () => !!element,
doesCompone... |
src/docs/Navigation.js | eliaslopezgt/ps-react-eli | import React from 'react';
import PropTypes from 'prop-types';
const Navigation = ({components}) => {
return (
<ul className="navigation">
{
components.map( name => {
return (
<li key={name}>
<a href={`#${name}`}>{name}</a>
</li>
);
... |
src/svg-icons/image/view-compact.js | ArcanisCz/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... |
docs/src/pages/components/tabs/ScrollableTabsButtonForce.js | kybarg/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { makeStyles } from '@material-ui/core/styles';
import AppBar from '@material-ui/core/AppBar';
import Tabs from '@material-ui/core/Tabs';
import Tab from '@material-ui/core/Tab';
import PhoneIcon from '@material-ui/icons/Phone';
import FavoriteIcon f... |
app/components/default-settings/Background.js | opensprints/opensprints-electron | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { remote } from 'electron';
const store = remote.getGlobal('wallpaperStore');
const defaultBackground = '../images/open-sprints-bg.jpg';
const wallpaperTemplatePreviews = {
raceScreen: '../images/open-sprints-background.png',
race... |
docs/app/Examples/elements/List/ContentVariations/ListExampleVerticallyAligned.js | shengnian/shengnian-ui-react | import React from 'react'
import { Image, List } from 'shengnian-ui-react'
const ListExampleVerticallyAligned = () => (
<List horizontal>
<List.Item>
<Image avatar src='/assets/images/wireframe/square-image.png' />
<List.Content verticalAlign='top'>
Top Aligned
</List.Content>
</Lis... |
test/regressions/tests/Menu/SimpleMenuList.js | Kagami/material-ui | import React from 'react';
import Paper from '@material-ui/core/Paper';
import MenuList from '@material-ui/core/MenuList';
import MenuItem from '@material-ui/core/MenuItem';
export default function SimpleMenuList() {
return (
<Paper elevation={8}>
<MenuList>
<MenuItem>Profile</MenuItem>
<Me... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.