path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
frontend/app_v2/src/components/AudioButton/AudioButton.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
// FPCC
import { useAudiobar } from 'context/AudiobarContext'
import useIcon from 'common/useIcon'
function AudioButton({ audioArray, iconStyling }) {
const { setAudioArray } = useAudiobar()
const audioButtons = audioArray.map((audioId, index) => (
... |
app/js/__tests__/chatmessage-bot.js | jaydurant/GetCarrot | jest.unmock('../components/chatmessage-bot');
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import ChatMessageBot from '../components/chatmessage-bot';
const fields = {
text: 'test-text'
};
describe('ChatMessageBot', () => {
const renderer = TestUtils.createRenderer();
renderer.rende... |
src/helpers/__tests__/getDataDependencies-test.js | gregsabo/beanstalk-raining-in-belgrade | import { expect } from 'chai';
import React from 'react';
import { div } from 'react-dom';
import getDataDependencies from '../getDataDependencies';
describe('getDataDependencies', () => {
let getState;
let dispatch;
let location;
let params;
let CompWithFetchData;
let CompWithNoData;
let CompWithFetchDa... |
src/components/score_keeper.js | gabrielmansour/acquainted | import React from 'react';
require('./refills_stats.scss');
export default class ScoreKeeper extends React.Component {
render () {
return <div className="stats">
<ul>
<li dangerouslySetInnerHTML={{__html: this.props.right+'<span>Right</span>'}}></li>
<li dangerouslySetInnerHTML={{__html: t... |
src/components/Scroll.js | limal/wolnik | import smoothscroll from 'smoothscroll-polyfill';
import React from 'react';
import PropTypes from 'prop-types';
const Element = props => {
return props.children;
};
class Scroll extends React.Component {
static propTypes = {
type: PropTypes.string,
element: PropTypes.string,
offset: PropTypes.number,... |
stories/components/form/formSelect/index.js | NestorSegura/operationcode_frontend | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import FormSelect from 'shared/components/form/formSelect/formSelect';
storiesOf('shared/components/form/formSelect', module)
.add(
'Default', () => (
<FormSelect
prompt="Se... |
docs/src/app/components/pages/components/Badge/ExampleContent.js | igorbt/material-ui | import React from 'react';
import Badge from 'material-ui/Badge';
import IconButton from 'material-ui/IconButton';
import UploadIcon from 'material-ui/svg-icons/file/cloud-upload';
import FolderIcon from 'material-ui/svg-icons/file/folder-open';
const BadgeExampleContent = () => (
<div>
<Badge
badgeContent... |
Neos.Media.Browser/packages/neos-media-browser/src/Variants/Original.js | dlubitz/neos-development-collection | import React from 'react';
export default class Original extends React.PureComponent {
render() {
const {persistenceIdentifier, previewUri, width, height} = this.props;
return (
<ul className="neos-thumbnails">
<li className="asset" data-asset-identifier={persistenceIde... |
src/svg-icons/hardware/toys.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareToys = (props) => (
<SvgIcon {...props}>
<path d="M12 12c0-3 2.5-5.5 5.5-5.5S23 9 23 12H12zm0 0c0 3-2.5 5.5-5.5 5.5S1 15 1 12h11zm0 0c-3 0-5.5-2.5-5.5-5.5S9 1 12 1v11zm0 0c3 0 5.5 2.5 5.5 5.5S15 23 12 2... |
01-04-MoveShape-v1/MoveShape/Scripts/jquery-1.6.4.min.js | jongalloway/MVA-SignalR | /*! jQuery v1.6.4 http://jquery.com/ | http://jquery.org/license */
(function(a,b){function cu(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cr(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"... |
server/sonar-web/src/main/js/components/ui/SizeRating.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... |
lib/carbon-fields/vendor/htmlburger/carbon-fields/assets/js/fields/components/complex/index.js | boquiabierto/wherever-content | /**
* The external dependencies.
*/
import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import {
isEmpty,
includes,
filter,
findIndex,
fromPairs,
map,
pickBy,
sortBy,
values,
every
} from 'lodash';
import {
compose,
withHandlers,
withState,
setStatic,
withProps
}... |
examples/websockets/src/components/ShowLoadingScreen.js | lore/lore | /**
* This component shows the loading screen. It does so by removing any classes it
* has, which will revert it back to it's default state, which is visible.
**/
import React from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
export default createReactClass({
di... |
src/client/ui/game/canvasBox.js | tnRaro/FrozenWar | import React from 'react';
export default class CanvasBox extends React.Component {
componentDidMount() {
this.props.onLoad(React.findDOMNode(this));
}
shouldComponentUpdate() {
return false;
}
render() {
return <canvas />;
}
}
|
ajax/libs/react-native-web/0.11.2/exports/Button/index.js | cdnjs/cdnjs | function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
/**
* Copyright (c) Nicolas Gallagher.
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under th... |
src/docs/components/paragraph/ParagraphExamplesDoc.js | karatechops/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Paragraph from 'grommet/components/Paragraph';
import InteractiveExample from '../../../components/InteractiveExample';
Paragraph.displayName = 'Paragraph';
const TEXT = `Raised on hip-hop and foster... |
node_modules/hapi-react-views/test/index.js | fahidRM/aqua-couch-test | 'use strict';
const Code = require('code');
const Hapi = require('hapi');
const HapiReactViews = require('../index');
const Lab = require('lab');
const Path = require('path');
const Vision = require('vision');
require('babel-core/register')({
presets: ['react', 'es2015']
});
const lab = exports.lab = Lab.script... |
src/routes/ui/DropMenu/index.js | liufulin90/react-admin | import React from 'react'
import { connect } from 'dva'
import { Link } from 'dva/router'
import { Menu, Icon, Row, Col, Card, message, Modal } from 'antd'
import DropMenu from '../../../components/DropMenu'
import { DETAIL, UPDATE, DELETE } from '../../../constants/options'
const confirm = Modal.confirm
const handle... |
springboot/GReact/src/main/resources/static/app/components/forms/validation/BootstrapValidator.js | ezsimple/java | import React from 'react'
import {findDOMNode} from 'react-dom'
import 'script-loader!smartadmin-plugins/bower_components/bootstrapvalidator/dist/js/bootstrapValidator.min.js'
export default class BootstrapValidator extends React.Component {
componentDidMount() {
$(findDOMNode(this)).bootstrapValidator(this.p... |
src/levelindex.js | JohnCrash/voxel | import React from 'react';
import ReactDOM from 'react-dom';
import Level from './level';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
function App(){
let route = window.location.hash.substr(1);
console.log(`load level "${route}"`);
return <MuiThemeProvider>
<Level level={rout... |
src/client/components/PlayerBadge/PlayerBadge.js | eliasmeire/hz-pictionary | import React from 'react';
import './PlayerBadge.scss';
const PlayerBadge = ({ player, won }) => (
<div className="player__badge__container">
{ won &&
<svg preserveAspectRatio="xMidYMid meet" className="crown">
<path fill="gold">
<animate
attributeName="d"
dur="144... |
src/svg-icons/maps/local-see.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalSee = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5... |
docs/src/modules/components/AppDrawerNavItem.js | AndriusBil/material-ui | // @flow
import React from 'react';
import PropTypes from 'prop-types';
import Link from 'docs/src/modules/components/Link';
import classNames from 'classnames';
import { withStyles } from 'material-ui/styles';
import { ListItem } from 'material-ui/List';
import Button from 'material-ui/Button';
import Collapse from '... |
packages/website/builder/pages/docs/index.js | garth/cerebral | import React from 'react'
import Nav from './nav'
import Doc from './doc'
function Docs(props) {
const doc = props.docs[props.sectionName][props.docName]
const title = `${props.sectionName} ▸ ${doc.toc[0].title}`
return (
<div id="docs-container">
<div id="nav_mobile-header">
<div id="hamburge... |
lib/editor/components/question_editors/parts/ValueEditorPart.js | jirokun/survey-designer-js | import React, { Component } from 'react';
import { connect } from 'react-redux';
import cuid from 'cuid';
import S from 'string';
import { List } from 'immutable';
import NumericInput from 'react-numeric-input';
import ExSelect from './ExSelect';
/**
* 直接値を入力するか、再掲値を選択するかを選ぶことのできるエディタ
*/
class ValueEditorPart extend... |
webapp/components/widgets/GridWidget.js | marinvvasilev/homeinfotainment | /* eslint-disable import/default */
import React from 'react';
import { render } from 'react-dom';
export default class GridWidget extends React.Component {
constructor(props) {
super(props);
}
componentWillMount() {
this.state = {
items: this.props.items || []
};
... |
CompositeUi/src/views/layout/ContentRightLayout.js | kreta/kreta | /*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <benatespina@gmail.com>
* (c) Gorka Laucirica <gorka.lauzirika@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import CrossIcon from './../../svg/cross.... |
packages/material-ui-icons/src/Kitchen.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Kitchen = props =>
<SvgIcon {...props}>
<path d="M18 2.01L6 2c-1.1 0-2 .89-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.11-.9-1.99-2-1.99zM18 20H6v-9.02h12V20zm0-11H6V4h12v5zM8 5h2v3H8zm0 7h2v5H8z" />
<... |
node_modules/_rc-slider@8.3.1@rc-slider/es/common/Track.js | ligangwolai/blog | import _extends from 'babel-runtime/helpers/extends';
/* eslint-disable react/prop-types */
import React from 'react';
var Track = function Track(props) {
var className = props.className,
included = props.included,
vertical = props.vertical,
offset = props.offset,
length = props.length,
... |
fields/types/relationship/RelationshipField.js | nickhsine/keystone | import async from 'async';
import Lists from '../../../admin/client/stores/Lists';
import Field from '../Field';
import React from 'react';
import Select from 'react-select';
import xhr from 'xhr';
import { Button, InputGroup } from 'elemental';
function compareValues (current, next) {
let currentLength = current ? c... |
extension/jquery-1.11.2.min.js | JanciMertel/pagelist | /*! jQuery v1.11.2 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
node_modules/google-map-react/develop/GMapOptim.js | ClaaziX/foodshare | // Example to test the React Reconciler. This example
// is 100x faster in development mode,
// and 1.5-2x faster with NODE_ENV==='production'
// The idea was to not draw map children on hovers, but subscribe inside children on hover change
// see ./markers/ReactiveMarker source
import React from 'react';
import comp... |
lib/util/propTypes.js | yannickcr/eslint-plugin-react | /**
* @fileoverview Common propTypes detection functionality.
*/
'use strict';
const flatMap = require('array.prototype.flatmap');
const annotations = require('./annotations');
const propsUtil = require('./props');
const variableUtil = require('./variable');
const testFlowVersion = require('./version').testFlowVer... |
index.js | praida/admin | /* eslint-disable no-undef */
import 'es6-promise'; // polyfill for promises for IE11
import 'babel-polyfill'; // polyfill for ES6 features
import React from 'react';
import ReactDOM from 'react-dom';
import { applyMiddleware, compose, createStore } from 'redux';
import Root from './Root';
import { rootReducer } from ... |
examples/huge-apps/routes/Course/components/Dashboard.js | maksad/react-router | import React from 'react';
class Dashboard extends React.Component {
render () {
return (
<div>
<h3>Course Dashboard</h3>
</div>
);
}
}
export default Dashboard;
|
frontend/src/app/components/ExperimentDisableDialog.js | 6a68/testpilot | import React from 'react';
import { buildSurveyURL } from '../lib/utils';
export default class ExperimentDisableDialog extends React.Component {
render() {
const { experiment, installed, clientUUID } = this.props;
const { title, survey_url } = experiment;
const surveyURL = buildSurveyURL('disable', tit... |
app/javascript/mastodon/features/pinned_statuses/index.js | kirakiratter/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchPinnedStatuses } from '../../actions/pin_statuses';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../compon... |
src/scenes/home/informationForm/formComponents/schoolInfo.js | miaket/operationcode_frontend | import React from 'react';
import Form from 'shared/components/form/form';
import { Line } from 'rc-progress';
import PropTypes from 'prop-types';
import FormSelect from 'shared/components/form/formSelect/formSelect';
import { SCHOOLINFO } from 'shared/constants/status';
import styles from './formComponents.css';
cons... |
packages/react-reconciler/src/__tests__/ReactIncrementalErrorHandling-test.internal.js | VioletLife/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails react-core
* @jest-environment node
*/
'use strict';
let PropTypes;
let ReactFeatureFlags;
let React;
let ReactNoop;
... |
app/javascript/mastodon/components/common_counter.js | gol-cha/mastodon | // @ts-check
import React from 'react';
import { FormattedMessage } from 'react-intl';
/**
* Returns custom renderer for one of the common counter types
*
* @param {"statuses" | "following" | "followers"} counterType
* Type of the counter
* @param {boolean} isBold Whether display number must be displayed in bold
... |
newnodejs/node_modules/reactify/node_modules/react-tools/src/browser/ui/dom/__tests__/getNodeForCharacterOffset-test.js | saivarunr/zemoso-training | /**
* Copyright 2013-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.
*
* @emails react-co... |
ajax/libs/F2/1.3.3/f2.no-bootstrap.js | wmkcc/cdnjs | ;(function(exports) {
if (exports.F2 && !exports.F2_TESTING_MODE) {
return;
}
/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d... |
Test_ReactNative_NativeModules/__tests__/index.android.js | ksti/Test_react-native-nativeModules | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/TextBar.js | ornl-sava/vis-react-components | import React from 'react'
import PropTypes from 'prop-types'
// import ReactDom from 'react-dom'
// import Bar from './Bar'
class TextBar extends React.Component {
_onMouseEnter (event) {
this.props.onEnter(event, this.props.data)
}
_onMouseLeave (event) {
this.props.onLeave(event, this.props.data)
}
... |
src/components/Pagination.js | fhelwanger/react-datatable | import React from 'react';
export default class Pagination extends React.Component {
handleClickPage(page, e) {
e.preventDefault();
if (page < 1) page = 1;
if (page > this.totalPages()) page = this.totalPages();
this.props.onChangePage(page - 1);
}
currentPage() {
return this.props.current... |
6.ReactRouter/src/home.js | vishaljadav94/ReactBasic | import React from 'react'
const Home = () => (
<div>
<h1>Welcome to the Tornadoes Website!</h1>
</div>
);
export default Home
|
ajax/libs/yasr/2.4.11/yasr.bundled.min.js | abbychau/cdnjs | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){... |
ajax/libs/primereact/6.0.1/components/datatable/RowRadioButton.js | cdnjs/cdnjs | "use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
node_modules/material-ui/lib/svg-icons/action/subject.js | sparkymat/youhaveto-react | 'use strict';
var React = require('react/addons');
var PureRenderMixin = React.addons.PureRenderMixin;
var SvgIcon = require('../../svg-icon');
var ActionSubject = React.createClass({
displayName: 'ActionSubject',
mixins: [PureRenderMixin],
render: function render() {
return React.createElement(
Svg... |
packages/material-ui-icons/src/OutdoorGrillTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M16.58 10H7.42c.77 1.76 2.54 3 4.58 3s3.81-1.24 4.58-3z" opacity=".3" /><path d="M17 22c1.66 0 3-1.34 3-3s-1.34-3-3-3c-1.3 0-2.4.84-2.82 2H9.14l1.99-3.06c.29.04.58.06.87.06s.58-.02.87-... |
src/browser/intl/SwitchLocale.js | skallet/este | // @flow
import type { State } from '../../common/types';
import React from 'react';
import { compose } from 'ramda';
import { connect } from 'react-redux';
import { setCurrentLocale } from '../../common/intl/actions';
import {
Box,
Button,
} from '../app/components';
type SwitchLocaleProps = {
currentLocale: st... |
client/src/components/settings/Certification.js | pahosler/freecodecamp | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { find, first } from 'lodash';
import {
Table,
Button,
DropdownButton,
MenuItem,
Modal
} from '@freecodecamp/react-bootstrap';
import { Link, navigate } from 'gatsby';
import { createSelector } from 'reselect';
import { proj... |
src/components/Photos/Photos.js | ArchersDeLaBretagneRomantique/ui | import React from 'react'
import PageHeader from '../PageHeader'
import { getI18nLabels } from '../../services/I18nService'
const labels = getI18nLabels({
title: 'PHOTO.TITLE',
})
const Photos = () => {
return (
<div>
<PageHeader title={labels.title} />
<div className="row marketing">
Soo... |
app/components/Faqquestions/index.js | audoralc/pyxis | /**
*
* Faqquestions
*
*/
import React from 'react';
import ReactPlaceholder from 'react-placeholder';
import glamorous from 'glamorous';
import { Accordion, AccordionItem } from 'react-sanfona';
import { FaAngleDown } from 'react-icons/lib/fa/angle-double-down';
const AnswersBlock = glamorous.section ({
marg... |
packages/material-ui-icons/src/ErrorOutline.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let ErrorOutline = props =>
<SvgIcon {...props}>
<path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.5... |
lesson-5/src/components/summaryPage/summaryPage.js | msd-code-academy/lessons | import React from 'react'
import '../../styles/SummaryPage.css'
class SummaryPage extends React.Component {
render() {
return (
<div className="Summary">
Hi! Im a summary page
</div>
)
}
}
export default SummaryPage |
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-bricks-language-selector.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import Environment from '../environment/environment.js';
import {BaseMixin, ElementaryMixin, ScreenSizeMixin, LsiMixin} from '../common/common.js';
import Dropdown from './dropdown.js';
import DropdownItem from './dropdown-item.js';
import Image from './image.js';
import {Div, Button, Modal... |
src/views/HomeView/HomeView.js | oldsaratov/postcards-spa | import _ from 'lodash';
import React from 'react';
import { connect } from 'react-redux';
import postcardsActions from 'redux/modules/postcards/actions';
import PostcardBox from 'components/PostcardBox/PostcardBox';
const mapStateToProps = (state) => ({
postcards: state.postcards
});
export class HomeView extends... |
packages/react-router-dom/modules/__tests__/BrowserRouter-test.js | DelvarWorld/react-router | import React from 'react'
import ReactDOM from 'react-dom'
import PropTypes from 'prop-types'
import BrowserRouter from '../BrowserRouter'
describe('A <BrowserRouter>', () => {
it('puts history on context.router', () => {
let history
const ContextChecker = (props, context) => {
history = context.router... |
node_modules/react-native/Libraries/Image/Image.ios.js | kssujithcj/TestMobileCenter | /**
* 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... |
frontend/src/components/dialog/move-dirent-dialog.js | miurahr/seahub | import React from 'react';
import PropTypes from 'prop-types';
import { Button, Modal, ModalHeader, ModalFooter, ModalBody, Alert } from 'reactstrap';
import { gettext } from '../../utils/constants';
import { Utils } from '../../utils/utils';
import FileChooser from '../file-chooser/file-chooser';
const propTypes = {
... |
src/test/reactComponentExpect.js | bevacqua/react | /**
* Copyright 2013 Facebook, Inc.
*
* 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 ... |
renderer/components/Channels/ChannelHeader.js | LN-Zap/zap-desktop | import React from 'react'
import PropTypes from 'prop-types'
import { injectIntl } from 'react-intl'
import styled from 'styled-components'
import { opacity, height } from 'styled-system'
import { Box as BaseBox, Flex as BaseFlex } from 'rebass/styled-components'
import { intlShape } from '@zap/i18n'
import { Bar, Head... |
ajax/libs/forerunnerdb/1.3.777/fdb-legacy.min.js | boneskull/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... |
dev/web/www/js/components/user/login/login-container.js | zajacmarekcom/letswrite | import React from 'react'
import Login from './login'
import store from '../../../store'
import {SubmissionError} from 'redux-form'
import { browserHistory } from 'react-router'
import * as userActions from '../../../actions/user/user-actions'
import * as commonActions from '../../../actions/common/common-actions'
con... |
src/js/routes.js | Shobhit1/ReactRedux-FrontEnd | import React from 'react'
import { Route, IndexRoute, Redirect } from 'react-router'
import App from './components/App'
import NotFoundView from './views/NotFoundView'
import Login from './components/pages/Login'
export default (
<Route path="/" component={App}>
<IndexRoute component={Login} />
<Route path=... |
src/components/case-study/single/templates/carla-hall/southern-kitchen.js | adrienhobbs/redux-glow | import React from 'react';
import BaseTemplate from '../base-study-template';
import AboutSection from '../../../content-modules/about.js';
import Video from 'components/video/video.js';
import LoopingVideo from 'components/video/looping-video.js';
export class SouthernKitchen extends BaseTemplate {
static propTypes... |
packages/material-ui-icons/src/Looks4TwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M.04 0h24v24h-24V0z" /><path d="M5.04 19h14V5h-14v14zm4-12h2v4h2V7h2v10h-2v-4h-4V7z" opacity=".3" /><path d="M19.04 3h-14c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2... |
react-flux-mui/js/material-ui/src/svg-icons/av/movie.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMovie = (props) => (
<SvgIcon {...props}>
<path d="M18 4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4z"/>
</SvgIcon>
);
AvMovie = pure(AvMovie);
Av... |
node_modules/react-native-swiper/src/index.js | leechuanjun/TLReactNativeProject | /**
* react-native-swiper
* @author leecade<leecade@163.com>
*/
import React from 'react'
import ReactNative, {
StyleSheet,
Text,
View,
ScrollView,
Dimensions,
TouchableOpacity,
ViewPagerAndroid,
Platform
} from 'react-native'
// Using bare setTimeout, setInterval, setImmediate
// and requestAnimati... |
src/containers/Reactions/Reactions.js | redux-saga/redux-saga-devtools | import PropTypes from 'prop-types';
import React from 'react';
import styled from 'styled-components'
import { connect } from 'react-redux'
import EffectView from '../EffectView'
import { getReactions } from '../../store/selectors'
const ReactionsContainer = styled.div`
position: relative;
width: 100%;
height:... |
src/Popup.js | martynasj/react-big-calendar | import PropTypes from 'prop-types';
import React from 'react';
import getOffset from 'dom-helpers/query/offset';
import getScrollTop from 'dom-helpers/query/scrollTop';
import getScrollLeft from 'dom-helpers/query/scrollLeft';
import EventCell from './EventCell';
import { isSelected } from './utils/selection';
import ... |
ajax/libs/engine.io-client/3.0.0/engine.io.js | ahocevar/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["eio"] = factory();
else
root["eio"] = f... |
src/ex7.js | bouzuya/exercise-in-react | import React from 'react';
class Entry extends React.Component {
constructor(props) {
super(props);
}
onClick() {
this.props.onHeaderClick();
}
render() {
var isOpen = this.props.isOpen ? true : false;
return React.createElement(
'div', { className: 'entry' + (isOpen ? ' is-open' : ''... |
ajax/libs/ember-data.js/1.0.0-beta.14.1/ember-data.prod.js | MisatoTremor/cdnjs | (function() {
"use strict";
/**
@module ember-data
*/
var ember$data$lib$system$adapter$$get = Ember.get;
var ember$data$lib$system$adapter$$errorProps = [
'description',
'fileName',
'lineNumber',
'message',
'name',
'number',
'stack'
];
/**
... |
lib/jquery-core/jquery-1.4.2.js | beppenapo/fontiperlastoria | /*!
* jQuery JavaScript Library v1.4.2
* 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.
... |
sites/all/modules/jquery_update/replace/jquery/1.9/jquery.min.js | miketa/iomrepo | /*! 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/Select.js | MattMcFarland/react-select | import React from 'react';
import ReactDOM from 'react-dom';
import Input from 'react-input-autosize';
import classNames from 'classnames';
import stripDiacritics from './utils/stripDiacritics';
import Async from './Async';
import Option from './Option';
import Value from './Value';
const Select = React.createClass(... |
ajax/libs/6to5/2.7.4/browser.js | MenZil/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return... |
src/routes/Projects/modules/factory.js | simonvpe/borrkoll-react | import { PropTypes } from 'react'
let nextId = () => {
// Id is milliseconds since 2016-01-01 00:00:00.000
let now = new Date().getTime()
let epoch = new Date(2016, 1, 1, 0, 0, 0, 0).getTime()
return (now - epoch).toString()
}
const noteShape = PropTypes.shape({
username: PropTypes.string.isRequired,
te... |
src/svg-icons/places/pool.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesPool = (props) => (
<SvgIcon {...props}>
<path d="M22 21c-1.11 0-1.73-.37-2.18-.64-.37-.22-.6-.36-1.15-.36-.56 0-.78.13-1.15.36-.46.27-1.07.64-2.18.64s-1.73-.37-2.18-.64c-.37-.22-.6-.36-1.15-.36-.56 0-.78... |
src/svg-icons/places/beach-access.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesBeachAccess = (props) => (
<SvgIcon {...props}>
<path d="M13.127 14.56l1.43-1.43 6.44 6.443L19.57 21zm4.293-5.73l2.86-2.86c-3.95-3.95-10.35-3.96-14.3-.02 3.93-1.3 8.31-.25 11.44 2.88zM5.95 5.98c-3.94 3.95... |
misc/jquery.js | epicwhale/DrupalConnect-Drupal |
/*!
* jQuery JavaScript Library v1.4.4
* 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.... |
src/svg-icons/device/signal-cellular-4-bar.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellular4Bar = (props) => (
<SvgIcon {...props}>
<path d="M2 22h20V2z"/>
</SvgIcon>
);
DeviceSignalCellular4Bar = pure(DeviceSignalCellular4Bar);
DeviceSignalCellular4Bar.displayName = 'DeviceSign... |
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-forms-radios.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin, Tools} from './../common/common.js';
import InputMixin from './input-mixin.js';
import Checkbox from './checkbox.js';
import './radios.less';
export default React.createClass({
mixins: [
BaseMixin,
ElementaryMixin,
InputMixin
],
static... |
src/components/ProductsByCategoryDetail.js | thrifty-p2p/thrifty-client | import React from 'react';
import {View, Text, Image, StyleSheet} from 'react-native';
import Ionicons from 'react-native-vector-icons/Ionicons';
import {Card, CardSection, Button} from './common';
import ProductLayout from './ProductLayout';
const SingleProductDetail = props => {
const {grid, priceStyle} = styles;
... |
app/components/Footer/index.js | brobey8/toomanynotes | import React from 'react';
import A from 'components/A';
import styles from './styles.css';
function Footer() {
return (
<footer className={styles.footer}>
<section>
<p>This project is licensed under the MIT license.</p>
</section>
<section>
<p>Made with love by <A href="https:... |
app/containers/SearchContainer.js | EleTeam/Shop-React-Native | /**
* Created by ljunb on 16/6/5.
*/
import React from 'react';
import {connect} from 'react-redux';
import Search from '../pages/Search';
class SearchContainer extends React.Component {
render() {
return (
<Search {...this.props} />
)
}
}
export default connect((state) => {
... |
vendor/yiisoft/yii2/assets/yii.gridView.js | xigua5/test | /**
* Yii GridView widget.
*
* This is the JavaScript widget used by the yii\grid\GridView widget.
*
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
(function ($) {
... |
js/jquery-1.11.0.js | hugomarkitt/finalfinal | /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
src/components/Footer.js | arqex/freezer-todomvc | import React from 'react';
import Utils from '../state/utils';
import store from '../state/store';
export default class Footer extends React.Component {
handleClearCompleted(){
store.emit('todo:clearCompleted');
}
handleFilter( filter ){
return function( e ){
e.preventDefault();
store.emit('todo:filter',... |
boilerplate/app/shared/components/rounded-button/rounded-button.js | ruddell/ignite-jhipster | import React from 'react'
import PropTypes from 'prop-types'
import { TouchableOpacity, Text } from 'react-native'
import styles from './rounded-button.styles'
export default class RoundedButton extends React.Component {
static propTypes = {
onPress: PropTypes.func,
text: PropTypes.string,
children: Prop... |
entry_types/scrolled/package/spec/frontend/PlayerContainer-spec.js | tf/pageflow | import React from 'react';
import '@testing-library/jest-dom/extend-expect'
import 'support/mediaElementStub';
import {render} from '@testing-library/react'
import {media} from 'pageflow/frontend';
import PlayerContainer from 'frontend/MediaPlayer/PlayerContainer';
import videojs from 'video.js';
describe('PlayerCont... |
react/features/chat/components/web/MessageRecipient.js | jitsi/jitsi-meet | // @flow
import React from 'react';
import { translate } from '../../../base/i18n';
import { Icon, IconCancelSelection } from '../../../base/icons';
import { connect } from '../../../base/redux';
import AbstractMessageRecipient, {
_mapDispatchToProps,
_mapStateToProps,
type Props
} from '../AbstractMessag... |
ajax/libs/yui/3.9.0pr2/simpleyui/simpleyui-debug.js | peteygao/cdnjs | /**
The YUI module contains the components required for building the YUI seed file.
This includes the script loading mechanism, a simple queue, and the core
utilities for the library.
@module yui
@main yui
@submodule yui-base
**/
/*jshint eqeqeq: false*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The... |
docs/app/Components/ComponentDoc/ComponentProp/ComponentPropDefaultValue.js | shengnian/shengnian-ui-react | import _ from 'lodash'
import PropTypes from 'prop-types'
import React from 'react'
import { pure } from 'docs/app/HOC'
const ComponentPropDefaultValue = ({ value }) => (_.isNil(value) ? null : <code>{value}</code>)
ComponentPropDefaultValue.propTypes = {
value: PropTypes.node,
}
export default pure(ComponentProp... |
src/index.js | domenicosolazzo/react-transform-boilerplate | import React from 'react';
import { App } from './App';
React.render(<App />, document.getElementById('root'));
|
demoui/header-nav.js | buckie/juno | import React from 'react';
export default function HeaderNav(props) {
return (
<section>
<header>
<nav className="rad-navigation">
<div className="rad-logo-container">
<a href="#" className="rad-logo">Payments Ledger</a>
<a href="#" className="rad-toggle-btn pull-right"><i className="fa fa-bars">... |
client/containers/Notifications.spec.js | zhakkarn/Mail-for-Good | import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import { NotificationsComponent } from './Notifications';
const mockProps = ( overrides) => ({ // eslint-disable-line no-unused-vars
notifications: [],
consume: () => {}
});
const wrapper = shallow(<NotificationsComponent... |
src/components/ActionTag.js | ev-ui/ev-ui | import React from 'react'
import {render} from 'react-dom'
import styled from 'styled-components'
const Root=styled.span`
align-self:center;
padding:5px 0;
color:#0099ff;
cursor:pointer;
border-radius:10px;
min-width:60px;
overflow:hidden;
display:flex;
&.disabled{
cursor:no... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.