path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
src/lib/GuitarChord/components/Strings.js | evan-007/react-guitar-chords | import React from 'react';
import CONSTANTS from '../constants';
const Strings = ({ stringCount, lineStyles }) => {
// draws the vertical lines on the SVG that represent strings
return Array.from(new Array(stringCount)).map((_elem, index) => {
// -1 because we draw 6 lines, but the first one does not have an ... |
src/components/Footer/Footer.js | jtiscione/redux-chess | import React from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Footer.css';
import Link from '../Link';
class Footer extends React.Component {
render() {
return (
<div className={s.root}>
<div className={s.container}>
<span className={s.text}>... |
__tests__/checkbox/checkbox.js | ricsv/react-leonardo-ui | import React from 'react';
import renderer from 'react-test-renderer';
import Checkbox from '../../src/checkbox';
test('Normal checkbox renders correctly', () => {
const tree = renderer.create(
<Checkbox checked />
).toJSON();
expect(tree).toMatchSnapshot();
});
test('Checkbox with states renders correctly... |
examples/huge-apps/routes/Course/routes/Announcements/components/Announcements.js | zhijiansha123/react-router | import React from 'react';
class Announcements extends React.Component {
render () {
return (
<div>
<h3>Announcements</h3>
{this.props.children || <p>Choose an announcement from the sidebar.</p>}
</div>
);
}
}
export default Announcements;
|
web/src/js/__tests__/components/Header/MainMenuSpec.js | ujjwal96/mitmproxy | jest.mock('../../../ducks/settings')
import React from 'react'
import renderer from 'react-test-renderer'
import MainMenu, { setIntercept } from '../../../components/Header/MainMenu'
import { Provider } from 'react-redux'
import { update as updateSettings } from '../../../ducks/settings'
import { TStore } from '../..... |
docs-ui/components/issueSyncListElement.stories.js | mvaled/sentry | import React from 'react';
import styled from 'react-emotion';
import {storiesOf} from '@storybook/react';
import {withInfo} from '@storybook/addon-info';
import space from 'app/styles/space';
import IssueSyncListElement from 'app/components/issueSyncListElement';
storiesOf('Other|IssueSyncListElement', module)
.ad... |
lib/svg-icons/social/person-outline.js | checkraiser/material-ui2 | 'use strict';
var React = require('react');
var SvgIcon = require('../../svg-icon');
var SocialPersonOutline = React.createClass({
displayName: 'SocialPersonOutline',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('path', { d: 'M12 5.9c1.16 ... |
packages/material-ui-icons/src/DiscFull.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M20 16h2v-2h-2v2zm0-9v5h2V7h-2zM10 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 10c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z" />
, 'DiscFull');
|
ajax/libs/jquery/1.8.1/jquery.js | perfect-pixell/cdnjs | /*!
* jQuery JavaScript Library v1.8.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Thu Aug 30 2012 17:17:22 GMT-0400 (Eastern Daylight Time)
*/
(function(... |
fields/types/password/PasswordFilter.js | tanbo800/keystone | import React from 'react';
import { SegmentedControl } from 'elemental';
const OPTIONS = [
{ label: 'Is Set', value: true },
{ label: 'Is NOT Set', value: false }
];
var PasswordFilter = React.createClass({
getInitialState () {
return {
checked: this.props.value || true
};
},
toggleChecked (checked) {
... |
test/fixtures/proton/index.js | mastergberry/electron-builder | import React, { Component } from 'react';
import { render, Window, App, Button } from 'proton-native';
class Example extends Component {
render() {
return (
<App>
<Window title="Example" size={{w: 300, h: 300}} menuBar={false}>
<Button stretchy={false} onClick={() => console.log('Hello')... |
ui/src/js/profile/UserDetails.js | Dica-Developer/weplantaforest | import Accounting from 'accounting';
import axios from 'axios';
import counterpart from 'counterpart';
import moment from 'dayjs';
import he from 'he';
import React, { Component } from 'react';
import NotificationSystem from 'react-notification-system';
import { browserHistory } from 'react-router';
import IconButton f... |
pages/index.js | Outfitio/outfit-help | import React from 'react'
import { Link } from 'react-router'
import { prefixLink } from 'gatsby-helpers'
import Helmet from "react-helmet"
import { config } from 'config'
export default class Index extends React.Component {
render () {
return (
<div className="pb2">
<Helmet
title={config... |
js/bggutilities/src/MainView.js | PeterThorsen/bggUtilities | import React, {Component} from 'react';
import {GridList, GridTile} from 'material-ui/GridList';
import Snackbar from 'material-ui/Snackbar';
import './Main.css';
import {withRouter} from "react-router-dom";
class MainView extends Component {
render() {
let titlePosition = "top";
let titleBackground... |
gulpfile.js | alchapone/alchapone.github.io | 'use strict';
var gulp = require('gulp');
var del = require('del');
var spawn = require('child_process').spawn;
var path = require('path');
// Load plugins
var $ = require('gulp-load-plugins')();
var browserify = require('browserify');
var watchify = require('watchify');
var source = require('vinyl-source-stream')... |
ajax/libs/react-widgets/3.4.0/react-widgets-simple-number.js | seogi1004/cdnjs | /*! (c) 2016 Jason Quense | https://github.com/jquense/react-widgets/blob/master/License.txt */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("ReactWidgets"));
else if(typeof define === 'function' && define.... |
examples/counter/containers/Root.js | kolodny/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import CounterApp from './CounterApp';
import configureStore from '../store/configureStore';
const store = configureStore();
export default class Root extends Component {
render() {
return (
<Provider store={store}>
... |
profiles/bear/modules/contrib/jquery_update/replace/jquery/1.7/jquery.js | sk33lz/bearinstalltest | /*!
* jQuery JavaScript Library v1.7.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
booklet.ios.js | cccstc/cccstc-app | /**
* @flow
*/
import React, { Component } from 'react';
import {
TabBarIOS,
NavigatorIOS,
StyleSheet,
} from "react-native";
import { BookletListView } from "./components/BookletListView";
const tabIcon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAMAAAANIilAAAABqlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAA... |
src/routes.js | AlbertFazullin/redux-form-demo | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import MainContainer from './containers/Main';
import StepOne from './containers/StepOne';
import StepTwo from './containers/StepTwo';
import StepThree from './containers/StepThree';
export default (
<Route path="/">
<IndexRoute co... |
src/containers/home/index.js | btoo/btoo.github.io | import React from 'react'
import { push } from 'react-router-redux'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import {
increment,
incrementAsync,
decrement,
decrementAsync
} from '../../modules/counter'
const Home = props => (
<div>
<h1>Home</h1>
<p>Count: {prop... |
src/components/google_map.js | jstowers/ReduxWeatherApp | // February 26, 2017
// Google Maps JavaScript API
// Already wired in ton index.html
// google.maps = { } => an object used to display maps.
import React, { Component } from 'react';
class GoogleMap extends Component {
// a lifecycle method called automatically after
// component renders on screen
componentDi... |
node_modules/rx/dist/rx.all.compat.js | ddiaz914/easynoms | // 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
};
... |
react-timer-app/src/components/App.js | mauriciojunior/react-playground | 'use strict'
import React from 'react'
import Navigation from './Navigation'
const App = ({ children }) => (
<div>
<Navigation />
<div className="row">
<div className="column small-centered medium-6 large-4">
{children}
</div>
</div>
</div>
)
export default App
|
ui/src/main/js/pages/Updates.js | rdelval/aurora | import React from 'react';
import Breadcrumb from 'components/Breadcrumb';
import PanelGroup, { Container, StandardPanelTitle } from 'components/Layout';
import UpdateList from 'components/UpdateList';
import { getInProgressStates, getTerminalStates } from 'utils/Update';
export const MAX_QUERY_SIZE = 100;
export c... |
test/integration/css-fixtures/bad-custom-configuration-arr-3/pages/_app.js | JeromeFitz/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global.css'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
ajax/libs/forerunnerdb/1.3.760/fdb-core.js | Piicksarn/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/svg-icons/image/photo.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePhoto = (props) => (
<SvgIcon {...props}>
<path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/>
</SvgIcon>
);
ImagePhoto = p... |
ajax/libs/rxjs/2.5.0/rx.lite.extras.compat.js | rileyjshaw/cdnjs | // 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,
'und... |
src/svg-icons/action/help.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHelp = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83... |
app/initializer/scripts/header-initializer.js | Hartorn/character-builder-dd5 | import React from 'react';
import dispatcher from 'focus-core/dispatcher';
import { translate } from 'focus-core/translation';
// import NotificationCenter from 'focus-notifications';
export default () => {
console.info('|--- HEADER');
//initialize account/notification
dispatcher.handleViewAction({
... |
src/server/html.js | tajo/devstack | import React from 'react';
import path from 'path';
import fs from 'fs';
const isProduction = process.env.NODE_ENV === 'production';
const buildDir = isProduction ? fs.readdirSync(path.resolve(__dirname, '../../build')) : '';
const appJS = isProduction ? buildDir.find(file => /^app\-\w+\.js$/.test(file)) : '';
const a... |
ajax/libs/yui/3.17.2/scrollview-base/scrollview-base.js | mitsuruog/cdnjs | /*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
*... |
ui/src/components/VisualiseIcon/index.js | LearningLocker/learninglocker | /* eslint-disable react/jsx-indent */
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import {
LEADERBOARD,
XVSY,
STATEMENTS,
FREQUENCY,
COUNTER,
PIE,
TEMPLATE_ACTIVITY_OVER_TIME,
TEMPLATE_LAST_7_DAYS_STATEMENTS,
TEMPLATE_MOST_ACTIVE_PEOPLE,
TEM... |
src-rx/src/components/JsonConfigComponent/ConfigCRON.js | ioBroker/ioBroker.admin | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import InputLabel from '@material-ui/core/InputLabel';
import FormControl from '@material-ui/core/FormControl';
import { Button, TextField } from '@material-ui/core';
import DialogCron from '@iobroker... |
Web/scripts/js/jquery-1.7.1.min.js | beavis28/booked | /*! 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... |
docs/app/components/editor/index.js | KerenChandran/react-toolbox | import React from 'react';
import style from './style';
import CodeMirror from 'codemirror';
import 'codemirror/mode/javascript/javascript';
class Editor extends React.Component {
static propTypes = {
className: React.PropTypes.string,
codeText: React.PropTypes.string,
lineNumbers: React.PropTypes.bool,
... |
src/svg-icons/image/brush.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrush = (props) => (
<SvgIcon {...props}>
<path d="M7 14c-1.66 0-3 1.34-3 3 0 1.31-1.16 2-2 2 .92 1.22 2.49 2 4 2 2.21 0 4-1.79 4-4 0-1.66-1.34-3-3-3zm13.71-9.37l-1.34-1.34c-.39-.39-1.02-.39-1.41 0L9 12.25... |
src/containers/App.js | u-wave/web | import React from 'react';
import PropTypes from 'prop-types';
import { useSelector, useDispatch } from 'react-redux';
import useMediaQuery from '@mui/material/useMediaQuery';
import { ThemeProvider } from '@mui/material/styles';
import { Provider as BusProvider } from 'react-bus';
import { TranslateProvider } from '@u... |
Skins/VetoccitanT3/ReactSrc/node_modules/nanoid/index.dev.js | MAN-IN-WAN/Kob-Eye | // This file replaces `index.js` in bundlers like webpack or Rollup,
// according to `browser` config in `package.json`.
import { urlAlphabet } from './url-alphabet/index.js'
if (true) {
// All bundlers will remove this block in the production bundle.
if (
typeof navigator !== 'undefined' &&
navigator.pro... |
src/svg-icons/maps/local-mall.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalMall = (props) => (
<SvgIcon {...props}>
<path d="M19 6h-2c0-2.76-2.24-5-5-5S7 3.24 7 6H5c-1.1 0-1.99.9-1.99 2L3 20c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-7-3c1.66 0 3 1.34 3 3H9c0-1.66 1.3... |
ajax/libs/redux-form/2.0.0/redux-form.min.js | boneskull/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReduxForm=e(require("react")):t.ReduxForm=e(t.React)}(this,function(t){return function(t){function e(n){if(r[n])return r[n].expor... |
static/src/containers/LoginCheck.js | eltrufas/cosmico | import React from 'react';
import { connect } from 'react-redux';
import Login from './Login'
import CircularProgress from 'material-ui/CircularProgress';
import Paper from 'material-ui/Paper';
const LoginCheck = ({ isLoading, token, error, children }) => {
if (token) {
return (
<div>
{ children }... |
App/Containers/ListviewExample.js | okmttdhr/YoutuVote | // @flow
import React from 'react';
import { View, Text, ListView } from 'react-native';
import { connect } from 'react-redux';
// For empty lists
import AlertMessage from '../Components/AlertMessage';
// Styles
import styles from './Styles/ListviewExampleStyle';
class ListviewExample extends React.Component {
st... |
src/shared/components/form/formTextArea/formTextArea.js | hollomancer/operationcode_frontend | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from './formTextArea.css';
class FormTextArea extends Component {
state = {
value: ''
};
handleChange = (event) => {
this.setState({ value: event.target.value }, () => {
if (this.props.onChange) {
t... |
src/Alert.js | sxyseo/amazeui-react | 'use strict';
var React = require('react');
var classNames = require('classnames');
var ClassNameMixin = require('./mixins/ClassNameMixin');
var Alert = React.createClass({
mixins: [ClassNameMixin],
propTypes: {
classPrefix: React.PropTypes.string.isRequired,
amStyle: React.PropTypes.oneOf(['secondary', ... |
force_dir/node_modules/react-bootstrap/es/Row.js | wolfiex/VisACC | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
packages/material-ui-icons/src/Filter2TwoTone.js | allanalexandre/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="M7 17h14V3H7v14zm4-6c0-1.11.9-2 2-2h2V7h-4V5h4c1.1 0 2 .89 2 2v2c0 1.11-.9 2-2 2h-2v2h4v2h-6v-4z" opacity=".3" /><path d="M17 13h-4v-2h2c1.1 ... |
challenge6/start/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima-six/test/3rdparty/jquery-1.7.1.js | themoor88/node-practice | /*!
* jQuery JavaScript Library v1.7.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL... |
websites/svef.is/src/app/components/TestGrid/TestGrid.js | svef/www | import React from 'react'
import PropTypes from 'prop-types'
import './TestGrid.scss'
const TestGrid = ({ vertical, horizontal, ...props }) => {
return process.env.NODE_ENV === 'development' ? (
<div
className={`test-grid-wrap row ${horizontal && 'horizontal'} ${vertical &&
'vertical'}`}
>
... |
ajax/libs/webshim/1.15.10/dev/shims/moxie/js/moxie-swf.js | hanbyul-here/cdnjs | /**
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
* v1.2.1
*
* Copyright 2013, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*
* Date: 2014-05-14
*/
/**
* Compiled inline version. (Library ... |
example/stories/withProps.js | Kilix/storybook-addon-jsx | import React from 'react';
import { storiesOf } from '@storybook/react';
import Simple from '../components/simple';
storiesOf('With Props', module)
.addWithJSX('No children - No options', () => <Simple />)
.addWithJSX(
'No children - Rename',
() => <Simple test="test" value={true} />,
{
displayN... |
src/svg-icons/content/unarchive.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentUnarchive = (props) => (
<SvgIcon {...props}>
<path d="M20.55 5.22l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.15.55L3.46 5.22C3.17 5.57 3 6.01 3 6.5V19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.4... |
src/login.js | ihfazhillah/asilah | import React from 'react';
const Login = (props) => (
<section className="hero is-fullheight is-medium is-primary is-bold">
<div className="hero-body">
<div className="container">
<div className="columns is-centered">
<article className="card is-rounded">
... |
samples/JavaScript/jquery-1.7.2.js | MahmoudFayed/linguist | /*!
* jQuery JavaScript Library v1.7.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/pages/index.js | azoff/wedding | import React from 'react'
import Section from 'components/Section'
class IndexPage extends React.Component {
render() {
return (
<main>
{this.renderSections()}
</main>
)
}
renderSections() {
return this.props.data.allSectionJson.edges.map(({ node }, i) =>
this.renderSection(... |
src/client/spinner.js | itxd/hacker-menu | import React from 'react'
export default class Spinner extends React.Component {
render () {
return (
<div className='spinner'>
Loading...
</div>
)
}
}
|
examples/official-storybook/stories/addon-options.stories.js | kadirahq/react-storybook | import React from 'react';
export default {
title: 'Addons/Options',
};
export const SettingName = () => (
<div>This story should have changed the name of the storybook</div>
);
SettingName.storyName = 'setting name';
SettingName.parameters = {
options: {
name: 'Custom Storybook',
},
};
export const Hi... |
src/app/components/task/MultiSelectTask.js | meedan/check-web | import React, { Component } from 'react';
import FormGroup from '@material-ui/core/FormGroup';
import Box from '@material-ui/core/Box';
import FormControlLabel from '@material-ui/core/FormControlLabel';
import Button from '@material-ui/core/Button';
import { FormattedMessage } from 'react-intl';
import ParsedText from ... |
components/connected/media/image/index.js | marrus-sh/mastodon-go | // <ConnectedMediaImage>
// =====================
//
// `targetWidth` is used to create `srcSet` and `sizes` attributes,
// which mean that the correct image size for your environment can
// (hopefully) always be selected. The image is wrapped in a link
// to its original source, which doubles as a button to ope... |
node_modules/bookshelf/node_modules/backbone/backbone.js | kidush/blog-ghost-milcalins | // Backbone.js 1.1.2
// (c) 2010-2014 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(root, factory) {
// Set up Backbone appropriately for ... |
ajax/libs/analytics.js/2.8.21/analytics.js | sashberd/cdnjs | (function umd(require){
if ('object' == typeof exports) {
module.exports = require('1');
} else if ('function' == typeof define && define.amd) {
define(function(){ return require('1'); });
} else {
this['analytics'] = require('1');
}
})((function outer(modules, cache, entries){
/**
* Global
... |
src/components/SupportInformationDialog.js | DOIS/ecampus.kpi.ua | import React from 'react';
import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
class SupportInformationDialog extends React.Component {
state = {
modal: false,
};
toggle = () => this.setState({ modal: !this.state.modal });
render = () => (
<div>
<span className="lin... |
src/components/FormButton.js | MakeSchool-17/ios-app-DennisAleynikov | /**
* # FormButton.js
*
* Display a button that responds to onPress and is colored appropriately
*/
'use strict';
/**
* ## Imports
*
* React
*/
const React = require('react-native');
const
{
StyleSheet,
View
} = React;
/**
* The platform neutral button
*/
const Button = require('apsl-react-native-button');... |
app/javascript/mastodon/features/ui/components/bundle.js | anon5r/mastonon | import React from 'react';
import PropTypes from 'prop-types';
const emptyComponent = () => null;
const noop = () => { };
class Bundle extends React.PureComponent {
static propTypes = {
fetchComponent: PropTypes.func.isRequired,
loading: PropTypes.func,
error: PropTypes.func,
children: PropTypes.fu... |
ajax/libs/forerunnerdb/1.3.454/fdb-all.js | honestree/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/js/components/Select/__tests__/Select-test.js | HewlettPackard/grommet | import React from 'react';
import { render, fireEvent, act } from '@testing-library/react';
import { axe } from 'jest-axe';
import 'jest-axe/extend-expect';
import 'jest-styled-components';
import 'regenerator-runtime/runtime';
import { CaretDown, CaretUp, FormDown } from 'grommet-icons';
import { createPortal, expect... |
src/client.js | HeartRunner/danmu | /* global __DEVTOOLS__ */
import React from 'react';
import BrowserHistory from 'react-router/lib/BrowserHistory';
import Location from 'react-router/lib/Location';
import createStore from './redux/create';
import ApiClient from './ApiClient';
import universalRouter from './universalRouter';
import injectTapEvent from ... |
packages/wix-style-react/src/CustomModalLayout/CustomModalLayout.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import { st, classes } from './CustomModalLayout.st.css';
import BaseModalLayout from '../BaseModalLayout';
import Button from '../Button';
import deprecationLog from '../utils/deprecationLog';
/** CustomModalLayout */
const CustomModalLayout = ({
childr... |
js/vendor/jquery-ui-1.9.2/tests/jquery-1.8.3.js | andydude/drosera-boilerplate | /*!
* jQuery JavaScript Library v1.8.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time)
*/
(function(... |
src/ButtonBase.story.js | prometheusresearch/react-ui | /**
* @flow
*/
import React from 'react';
import {storiesOf} from '@kadira/storybook';
import ButtonBase from './ButtonBase';
storiesOf('<ButtonBase />', module).add('Default state', () => (
<ButtonBase>Click me</ButtonBase>
));
|
src/shared/Article/Article.js | kashisau/enroute | /**
* Home.js
*
*/
import React from 'react';
import ArticleHero from '../ArticleHero/ArticleHero';
import classnames from 'classnames';
import './Home.scss';
class Article extends React.Component {
constructor(props) {
super(props);
this.state = {
active: false,
act... |
app/containers/ctrtransfer/setup/index.js | SomeoneWeird/aergia | import os from 'os'
import path from 'path'
import React from 'react'
import { browserHistory } from 'react-router'
import RaisedButton from 'material-ui/RaisedButton'
import CircularProgress from 'material-ui/CircularProgress'
import Webtorrent from 'webtorrent'
import StreamZip from 'node-stream-zip'
import config... |
lib/components/Sound.js | madison-kerndt/avant-garde-synesthesia | import React from 'react';
import Octavian from 'octavian';
import Button from './Button';
import SoundControls from './SoundControls';
if (!AudioContext) window.AudioContext = window.webkitAudioContext;
let context = new AudioContext();
let osc = context.createOscillator();
let gain = context.createGain();
const des... |
web-app/src/components/ResetPassword/index.js | oSoc17/code9000 | import React, { Component } from 'react';
import Title from '../Title';
import GuestMode, { GoBack } from '../GuestMode';
import { Form, Input, Button } from '../Form';
import { Success, Errors } from '../Alerts';
import api from '../../utils/api';
import './ResetPassword.css';
class RequestResetPassword extends Co... |
frontend/js/components/environments/SurveySelector.js | wbprice/okcandidate-platform | 'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { gotoRoute } from './../../redux/actions/router-actions';
import { connect } from 'react-redux';
import Card from './../atoms/Card';
import LocationForm from './../ecosystems/LocationForm';
import LoadingIndicator fro... |
app/components/recipes/Recipe.spec.js | ilonade/OpenCookbook | import React from 'react'
import { shallow } from 'enzyme'
import configureMockStore from 'redux-mock-store'
import { Provider } from 'react-redux'
import { Recipe } from './Recipe'
const mockStore = configureMockStore()
describe('Recipe - rendering', () => {
it('renders name', () => {
const store = mockStore(... |
examples/exoskeleton/node_modules/exoskeleton/exoskeleton.js | wangjun/todomvc | /*!
* Exoskeleton.js 0.7.0
* (c) 2013 Paul Miller <http://paulmillr.com>
* Based on Backbone.js
* (c) 2010-2013 Jeremy Ashkenas, DocumentCloud
* Exoskeleton may be freely distributed under the MIT license.
* For all details and documentation: <http://exosjs.com>
*/
(function(root, factory) {
// Set up Backbon... |
test/regressions/tests/Paper/SimplePaper.js | kybarg/material-ui | import React from 'react';
import Paper from '@material-ui/core/Paper';
const style = {
margin: 15,
padding: 30,
};
export default function SimplePaper() {
return (
<div>
<Paper style={style} />
<Paper style={style} square />
<Paper style={style} elevation={6} />
</div>
);
}
|
node_modules/material-ui/svg-icons/file/attachment.js | soniacq/LearningReact | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
browser/app/js/components/Browse.js | luomeiqin/minio | /*
* Minio Cloud Storage (C) 2016 Minio, 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... |
src/containers/DevTools/DevTools.js | mozilla/mozlando-frontend-demo | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor toggleVisibilityKey="ctrl-shift-h"
defaultIsVisible={false}
... |
springboot/GReact/src/main/resources/static/app/routes/forms/jcrop/containers/ApiPanelControls.js | ezsimple/java | import React from 'react'
import OptionToggle from './../components/OptionToggle'
import OptionRadio from './../components/OptionRadio'
export default () =>(
<div className="row" style={{
padding: '0 .75rem .5rem'
}}>
<fieldset className="col-md-4">
<legend>Selection properties</l... |
openex-front/src/private/components/settings/tags/TagPopover.js | Luatix/OpenEx | import React, { Component } from 'react';
import * as PropTypes from 'prop-types';
import { connect } from 'react-redux';
import * as R from 'ramda';
import Dialog from '@mui/material/Dialog';
import DialogTitle from '@mui/material/DialogTitle';
import DialogContent from '@mui/material/DialogContent';
import DialogCont... |
examples/src/components/NumericSelect.js | cmpis/react-select | import React from 'react';
import Select from 'react-select';
var ValuesAsNumbersField = React.createClass({
displayName: 'ValuesAsNumbersField',
propTypes: {
label: React.PropTypes.string
},
getInitialState () {
return {
options: [
{ value: 10, label: 'Ten' },
{ value: 11, label: 'Eleven' },
{ ... |
demos/demo/src/components/Project/index.js | FWeinb/cerebral | import React from 'react'
import {connect} from 'cerebral/react'
import {state} from 'cerebral/tags'
import ProjectCard from './card'
import ProjectForm from './form'
/** Note: we use a separate 'card' component so that we do
* not compute the 'projectWithDetails' computed when the project
* is new (isSelected but no... |
ajax/libs/angular.js/1.0.0rc7/angular-scenario.js | davidbau/cdnjs | /*!
* jQuery JavaScript Library v1.7.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
jssource/src_files/include/javascript/yui3/build/event/event-focus.js | blackstark/sugar | /*
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 3.3.0
build: 3167
*/
YUI.add('event-focus', function(Y) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-... |
old/__tests__/index.android.js | Jenny-L/lumohacks2017 | 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 />
);
});
|
ajax/libs/rxjs/2.3.12/rx.lite.extras.js | danielnaranjo/cdnjs | // 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,
... |
src/components/MarkdownPreview/MarkdownPreview.spec.js | Corilla/corilla-components | import React from 'react';
import test from 'ava';
import { shallow } from 'enzyme';
import MarkdownPreview from './MarkdownPreview';
test('render with null text', (t) => {
const wrapper = shallow(<MarkdownPreview />);
t.truthy(wrapper.find(MarkdownPreview));
});
test('render with correct value', (t) => {
cons... |
ajax/libs/angular-google-maps/2.1.0-X.5/angular-google-maps_dev_mapped.js | bspaulding/cdnjs | /*! angular-google-maps 2.1.0-X.5 2015-03-10
* AngularJS directives for Google Maps
* git: https://github.com/angular-ui/angular-google-maps.git
*/
;
(function( window, angular, undefined ){
'use strict';
/*
!
The MIT License
Copyright (c) 2010-2013 Google, Inc. http://angularjs.org
Permission is hereby grante... |
springboot/GReact/src/main/resources/static/app/routes/outlook/containers/OutlookDetail.js | ezsimple/java | import React from 'react'
import {OverlayTrigger, Tooltip, Dropdown, MenuItem} from 'react-bootstrap'
import {Link} from 'react-router'
import _ from 'lodash'
import {connect} from 'react-redux'
import {outlookFetchMeesage} from '../OutlookActions'
import Moment from '../../../components/utils/Moment'
import HtmlRend... |
src/PlantSpot.js | tadahmen/Greenwalls-front | import React from 'react';
import jQuery from 'jquery';
class PlantSpot extends React.Component {
constructor() {
super()
this.state = {
plantPicture: "https://www.onlinepakhuis.nl/data/Bloempotten/bloempot-julia-oranje-d55-h50.jpg"
}
}
loadPlantPicture(plantId) {
let component = this;
... |
ajax/libs/yui/3.10.1/datatable-body/datatable-body-debug.js | ekeneijeoma/cdnjs | YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = Lang.isA... |
examples/todo/src/components/Todo.js | denvned/isomorphic-relay-router | /**
* This file provided by Facebook is 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,
* FITNES... |
react/src/index.js | museumary/Museumary | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
import { BrowserRouter } from 'react-router-dom';
import './index.css';
ReactDOM.render((
<BrowserRouter>
<App />
</BrowserRouter>
), document.getElementById('root'));
|
node_modules/react-icons/fa/circle-o-notch.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaCircleONotch = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m39.3 20q0 3.9-1.5 7.5t-4.2 6.1-6.1 4.2-7.5 1.5-7.5-1.5-6.2-4.2-4.1-6.1-1.5-7.5q0-4.8 2.2-8.9t5.9-6.8 8.3-3.4v5.1q-4.9 1-8.1 4.9t-3.3 9.1q0 2.9 1.1 5.5t3.1 4.6 4... |
src/components/Footer/Footer.js | Hellenic/universal-marketcloud-storefront | import React from 'react';
import Subheader from 'material-ui/Subheader';
import styles from './Footer.scss';
import theme from '../../theme/mui-theme';
const Footer = () => {
const { palette } = theme;
return (
<div className={styles.container} style={{ backgroundColor: palette.accent3Color }}>
<Subhead... |
stories/components/profile/index.js | sethbergman/operationcode_frontend | import React from 'react';
import { storiesOf } from '@storybook/react';
import Profile from 'scenes/home/profile/profile';
// import blocJpg from '../../asset/bloc.jpg';
storiesOf('scenes/home/profile', module)
.add('Not Verified', () => <Profile />)
.add('Verified', () => <Profile verified />);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.