path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
packages/web/src/components/BudgetItemForm.js | hwaterke/inab | import {
amountToCents,
BudgetItemResource,
getSelectedMonthMoment,
ResourceFormProvider,
} from '@inab/shared'
import PropTypes from 'prop-types'
import React from 'react'
import {Field, Form} from 'react-final-form'
import {connect} from 'react-redux'
import {crudThunks} from '../thunks/crudThunks'
const map... |
src/html/tags/HtmlTagLi.js | saketkumar95/zulip-mobile | import React from 'react';
import { StyleSheet, View } from 'react-native';
import styles from '../HtmlStyles';
import HtmlNodeText from '../HtmlNodeText';
import renderHtmlChildren from '../renderHtmlChildren';
const BULLET = '\u2022';
const customStyles = StyleSheet.create({
text: {
flexWrap: 'wrap',
fle... |
closure/goog/graphics/strokeandfillelement.js | teppeis/closure-library | // Copyright 2007 The Closure Library Authors. All Rights Reserved.
//
// 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 requ... |
src/containers/Authorized.js | bmarshall511/twitscreen | // Import node dependencies
import React, { Component } from 'react';
// Import component dependencies
import Status from './../components/Status/Status';
class Authorized extends Component {
render() {
const { state } = this.props;
return (
<Status state={state} />
);
}
}
export default Auth... |
src/reducers/index.js | neptunejs/larissa-ui | import {combineReducers} from 'redux';
import {routerReducer} from 'react-router-redux';
import drawerReducer from './drawerReducer';
import nodesReducer from './nodesReducer';
import notificationsReducer from './notificationsReducer';
import pipelineUIReducer from './pipelineUIReducer';
import pipelineGridReducer fro... |
examples/real-world/index.js | jonaustin/redux | import 'babel-core/polyfill';
import React from 'react';
import BrowserHistory from 'react-router/lib/BrowserHistory';
import { Provider } from 'react-redux';
import { Router, Route } from 'react-router';
import configureStore from './store/configureStore';
import App from './containers/App';
import UserPage from './co... |
src/svg-icons/image/center-focus-weak.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCenterFocusWeak = (props) => (
<SvgIcon {...props}>
<path d="M5 15H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zM12 8c-... |
packages/mineral-ui-icons/src/IconComment.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconComment(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}... |
react-router-demo/lessons/11-productionish-server/modules/Repos.js | zhangjunhd/react-examples | import React from 'react'
import NavLink from './NavLink'
export default React.createClass({
render() {
return (
<div>
<h2>Repos</h2>
<ul>
<li><NavLink to="/repos/reactjs/react-router">React Router</NavLink></li>
<li><NavLink to="/repos/facebook/react">React</NavLink></l... |
app/javascript/mastodon/features/ui/components/__tests__/column-test.js | dunn/mastodon | import React from 'react';
import { mount } from 'enzyme';
import Column from '../column';
import ColumnHeader from '../column_header';
describe('<Column />', () => {
describe('<ColumnHeader /> click handler', () => {
const originalRaf = global.requestAnimationFrame;
beforeEach(() => {
global.requestA... |
packages/wix-style-react/src/Tag/Tag.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import { st, classes } from './Tag.st.css';
import CloseButton from '../CloseButton';
import Text from '../Text';
import { dataHooks } from './Tag.helpers';
import { FontUpgradeContext } from '../FontUpgrade/context';
import { generateDataAttr } from '../ut... |
dist/vendor.0835815cbf3a7d085573.bundle.js | cherurg/audaily | webpackJsonp([1],[function(e,t,r){"use strict";var n=r(465);r.d(t,"assertPlatform",function(){return n._20}),r.d(t,"destroyPlatform",function(){return n._21}),r.d(t,"getPlatform",function(){return n._22}),r.d(t,"createPlatform",function(){return n._23}),r.d(t,"ApplicationRef",function(){return n.z}),r.d(t,"enableProdMo... |
src/index.js | developit/preact-router | import { cloneElement, createElement, Component, toChildArray } from 'preact';
import { exec, prepareVNodeForRanking, assign, pathRankSort } from './util';
let customHistory = null;
const ROUTERS = [];
const subscribers = [];
const EMPTY = {};
function setUrl(url, type='push') {
if (customHistory && customHistory... |
ajax/libs/analytics.js/2.0.1/analytics.js | eduardo-costa/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... |
examples/npm-webpack/src/components/App.js | damusnet/react-swipe-views | 'use strict';
import React from 'react';
import { Link } from 'react-router';
import SwipeViews from 'react-swipe-views';
import Gist from './Gist.js';
export default class App extends React.Component {
render() {
return (
<SwipeViews>
<div title={<Link to="intro">Intro</Link>}>
<h1>A R... |
src/components/layout/Sidebar.js | Beardles/novelizr | import React from 'react'
import { Link } from 'react-router-dom'
import { Icon, Menu } from 'semantic-ui-react'
const Sidebar = () => (
<Menu vertical fixed='left' icon='labeled' color='teal' inverted widths={8}>
<Menu.Item header className='menu-header'>
<Icon name='idea' />
Novel... |
src/components/betting/moderation/Moderation.js | Spriithy/tmc2017 | import React from 'react';
import WinnerSelect from './WinnerSelect';
import RacerInput from './RacerInput';
import './moderation.css';
export default class Moderation extends React.Component {
render = () => {
return (
<div className="Moderation">
<h1>Outils de Modération</h1>
<RacerInpu... |
src/ScrollableTabBarNode.js | tinper-bee/bee-tabs | /**
* This source code is quoted from rc-tabs.
* homepage: https://github.com/react-component/tabs
*/
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import debounce from 'lodash/debounce';
import ResizeObserver from 'resize-observer-polyfill';
import { setTransform, ... |
build/libs/Adapter/src/lib/components/C3/ScatterPlot.js | as-me/dashboard | import React from 'react';
import C3ScatterPlot from './ScatterPlotUI';
import '../../session/ScatterPlot.js';
import 'weavecore';
//namesapce
if (typeof window === 'undefined') {
this.adapter = this.adapter || {};
} else {
window.adapter = window.adapter || {};
}
if (typeof window === 'undefined') {
this... |
src/parser/warlock/demonology/modules/talents/Doom.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Enemies from 'parser/shared/modules/Enemies';
import Events from 'parser/core/Events';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatPercentage, formatThousands } from 'co... |
src/components/Content.js | njosieb/ecocentrixco | import React from 'react'
import PropTypes from 'prop-types'
export const HTMLContent = ({ content, className }) => (
<div className={className} dangerouslySetInnerHTML={{ __html: content }} />
)
const Content = ({ content, className }) => (
<div className={className}>{content}</div>
)
Content.propTypes = {
co... |
packages/mineral-ui-icons/src/IconVolumeUp.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconVolumeUp(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps... |
src/components/sims/sims.js | FranckCo/Operation-Explorer | import React, { Component } from 'react';
import BackBtn from './back-btn';
import SimsStructure from './sims-structure';
import SimsReport from './sims-report';
import NotFound from '../not-found';
import { sortArrayByKey, addSimsKeySort } from 'utils/sort-array';
import D from 'i18n';
const order = sortArrayByKey('k... |
pkg/arvo/app/soto/js/tile.js | jfranklin9000/urbit | !function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("tile",t):(n=n||self).tile=t()}(this,function(){"use strict";var n="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};n.setTimeout,n.clear... |
src/components/common/SelectInput.js | Vasyl1989/Opus.ua | import React from 'react';
import PropTypes from 'prop-types';
const SelectInput = ({name, title, onChange, options,className,data_placeholder}) => {
return (
<div className="form">
<div className="select">
<h5>{title}</h5>
<select
data-placeh... |
ajax/libs/analytics.js/2.8.21/analytics.min.js | schoren/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){var global=function(){return this}();function require(name,jumped){if(cache[... |
src/containers/AsyncHomePage/HomePage.js | hrasoa/rsk | import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import {
loadHomePage,
leaveHomePage
} from '../../actions/index';
import Home from '../../components/Home';
import { getLatestPosts } from '../../selectors/index';
class HomePage extends Component ... |
wisewit_front_end/node_modules/react-router/modules/IndexRedirect.js | emineKoc/WiseWit | import React from 'react'
import warning from './routerWarning'
import invariant from 'invariant'
import Redirect from './Redirect'
import { falsy } from './PropTypes'
const { string, object } = React.PropTypes
/**
* An <IndexRedirect> is used to redirect from an indexRoute.
*/
const IndexRedirect = React.createCla... |
src/svg-icons/action/eject.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionEject = (props) => (
<SvgIcon {...props}>
<path d="M5 17h14v2H5zm7-12L5.33 15h13.34z"/>
</SvgIcon>
);
ActionEject = pure(ActionEject);
ActionEject.displayName = 'ActionEject';
ActionEject.muiName = 'Svg... |
ajax/libs/react-router/0.10.1/react-router.min.js | NameFILIP/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.ReactRouter=e()}}(function(){var define;return functi... |
app/containers/LanguageProvider/index.js | omniva/react | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
src/components/Dashboard/Exercises/exercise.js | gperl27/liftr-v2 | import React, { Component } from 'react';
class Exercise extends Component {
constructor(props){
super(props);
this.state = {
active: false,
data: {
name: props.exercise.name,
sets: props.exercise.sets,
reps: props.exercise.reps,
weight: props.exercise.weight
... |
src/components/Footer.js | ArturJS/ArturJS.github.io | import React from 'react'
import { Link } from 'gatsby'
import logo from '../img/logo.svg'
import facebook from '../img/social/facebook.svg'
import instagram from '../img/social/instagram.svg'
import twitter from '../img/social/twitter.svg'
import vimeo from '../img/social/vimeo.svg'
const Footer = class extends Reac... |
docs/src/app/components/pages/components/Slider/ExampleSimple.js | ArcanisCz/material-ui | import React from 'react';
import Slider from 'material-ui/Slider';
/**
* The `defaultValue` property sets the initial position of the slider.
* The slider appearance changes when not at the starting position.
*/
const SliderExampleSimple = () => (
<div>
<Slider />
<Slider defaultValue={0.5} />
<Slide... |
src/svg-icons/av/volume-up.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVolumeUp = (props) => (
<SvgIcon {...props}>
<path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91... |
packages/material-ui-icons/lib/esm/ToggleOnOutlined.js | mbrookes/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M17 6H7c-3.31 0-6 2.69-6 6s2.69 6 6 6h10c3.31 0 6-2.69 6-6s-2.69-6-6-6zm0 10H7c-2.21 0-4-1.79-4-4s1.79-4 4-4h10c2.21 0 4 1.79 4 4s-1.79 4-4 4zm0-7c-1.66 0-3... |
src/lib.js | himawan-r/react-essentials | import React from 'react';
import text from './titles.json';
import './css/hello.css';
import './css/goodbye.scss';
export const hello = (
<h1 id='title'
className= 'hello'>
{text.hello}
</h1>
)
export const goodbye = (
<h1 id='title'
className= 'goodbye'>
{text.goodbye}
... |
ajax/libs/analytics.js/1.5.9/analytics.js | LeaYeh/cdnjs | ;(function(){
/**
* Require the given path.
*
* @param {String} path
* @return {Object} exports
* @api public
*/
function require(path, parent, orig) {
var resolved = require.resolve(path);
// lookup failed
if (null == resolved) {
orig = orig || path;
parent = parent || 'root';
... |
examples/huge-apps/routes/Course/routes/Grades/components/Grades.js | tkirda/react-router | /*globals COURSES:true */
import React from 'react'
class Grades extends React.Component {
render() {
let { assignments } = COURSES[this.props.params.courseId]
return (
<div>
<h3>Grades</h3>
<ul>
{assignments.map(assignment => (
<li key={assignment.id}>{assignment... |
modules/dreamview/frontend/src/components/Offlineview.js | ApolloAuto/apollo | import React from 'react';
import { inject, observer } from 'mobx-react';
import MainView from 'components/Layouts/MainView';
import ToolView from 'components/Layouts/ToolView';
import Loader from 'components/common/Loader';
import HOTKEYS_CONFIG from 'store/config/hotkeys.yml';
import WS from 'store/websocket';
@in... |
app/containers/UGMenuBar/index.js | perry-ugroop/ugroop-react-dup2 | import React from 'react';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import { FormattedMessage } from 'react-intl';
import MenuItem from 'components/UGMenuItem';
import messages from './messages';
import { createStructuredSelector } from 'reselect';
export class UGMenuBar extends... |
src/modules/Rooms/components/RoomsLayout.js | prjctrft/mantenuto | /* eslint-disable */
import React, { Component } from 'react';
import { Slide } from 'components';
import PeerStatus from './PeerStatus';
import Chat from './Chat';
import ChatIconButton from './ChatIconButton';
import Controls from './Controls';
import Video from './Video';
import Stats from './Stats';
export defaul... |
node_modules/socket.io-client/dist/socket.io.js | Vas2016/HomeRaspi | (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["io"] = factory();
else
root["io"] = fac... |
debugger/function-tree-debugger/src/components/Debugger/Signals/index.js | FWeinb/cerebral | import './styles.css'
import React from 'react'
import classNames from 'classnames'
import {connect} from 'cerebral/react'
import signalsList from '../../../common/computed/signalsList'
import connector from 'connector'
import List from './List'
import Signal from './Signal'
export default connect({
currentPage: 'd... |
packages/mineral-ui-icons/src/IconDelete.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconDelete(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}>... |
client/src/app-components/password-recovery.js | opensupports/opensupports | import React from 'react';
import classNames from 'classnames';
import i18n from 'lib-app/i18n';
import API from 'lib-app/api-call';
import Form from 'core-components/form';
import FormField from 'core-components/form-field';
import Widget from 'core-components/widget';
imp... |
packages/leaflet/src/basemaps/EsriBasemap.js | wq/wq.app | import React from 'react';
import PropTypes from 'prop-types';
import { LayerGroup, MapLayer, useLeaflet } from 'react-leaflet';
import { basemapLayer } from 'esri-leaflet';
class BasemapLayer extends MapLayer {
createLeafletElement({ layer, ...rest }) {
return basemapLayer(layer, rest);
}
}
export de... |
app/javascript/mastodon/features/notifications/containers/column_settings_container.js | res-ac/mstdn.res.ac | import { connect } from 'react-redux';
import { defineMessages, injectIntl } from 'react-intl';
import ColumnSettings from '../components/column_settings';
import { changeSetting } from '../../../actions/settings';
import { clearNotifications } from '../../../actions/notifications';
import { changeAlerts as changePushN... |
4-Redux-Blog/test/test_helper.js | OscarDeDios/cursoUdemyReact | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
demo4/jquery.js | skyujilong/demo-webpack | /*!
* 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... |
node_modules/rc-animate/es/AnimateChild.js | yhx0634/foodshopfront | import _typeof from 'babel-runtime/helpers/typeof';
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/inh... |
examples/03 - Basic auth/components/Logout.js | Kureev/browserify-react-live | import React from 'react';
import auth from '../vendor/auth';
export default class Logout extends React.Component {
componentDidMount() {
auth.logout();
}
render() {
return <p>You are now logged out</p>;
}
}
|
src/App.js | w01fgang/react-hot-boilerplate | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<h1>Hello, world.</h1>
);
}
}
|
examples/todomvc/components/Header.js | eiriklv/redux | import React, { PropTypes, Component } from 'react';
import TodoTextInput from './TodoTextInput';
class Header extends Component {
handleSave(text) {
if (text.length !== 0) {
this.props.addTodo(text);
}
}
render() {
return (
<header className="header">
<h1>todos</h1>
... |
docs/layoutsExample/demos/SplitContent/LeftComplex.js | Bandwidth/shared-components | import React from 'react';
import {
SplitContentLayout,
H2,
Button,
Link,
} from '@bandwidth/shared-components';
import { Form, SidebarList, ActionBarExpandingContent } from '../widgets';
export default () => (
<SplitContentLayout mainContentLocation="left" gutter>
<SplitContentLayout.SecondaryContent>
... |
src/app/Word.js | enguerran/dicodigital-web | /**
* In this file, we create a React component
* which incorporates components providedby material-ui.
*/
import React from 'react';
import {Card, CardHeader, CardText} from 'material-ui/Card';
class Main extends React.Component {
constructor(props, context) {
super(props, context);
}
render() {
co... |
node_modules/antd/es/anchor/index.js | prodigalyijun/demo-by-antd | import _defineProperty from 'babel-runtime/helpers/defineProperty';
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-run... |
src/svg-icons/action/print.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPrint = (props) => (
<SvgIcon {...props}>
<path d="M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"/>
</... |
internals/templates/containers/NotFoundPage/index.js | gihrig/react-boilerplate | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it... |
src/index.js | chickencyj/gallery-by-react | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import GalleryByReactApp from './components/Main';
// Render the main component into the dom
ReactDOM.render(<GalleryByReactApp/>, document.getElementById('app'));
|
src/svg-icons/editor/format-line-spacing.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatLineSpacing = (props) => (
<SvgIcon {...props}>
<path d="M6 7h2.5L5 3.5 1.5 7H4v10H1.5L5 20.5 8.5 17H6V7zm4-2v2h12V5H10zm0 14h12v-2H10v2zm0-6h12v-2H10v2z"/>
</SvgIcon>
);
EditorFormatLineSpacing =... |
react-ui/src/components/base/MsgForHome.js | MaGuangChen/resume-maguangchen | import React from 'react';
import { connect } from 'react-redux';
import { graphql } from 'react-apollo';
import { compose } from 'react-apollo';
import MessagePending from '../memberCenter/MessagePending';
import fetchUser from '../../queries/fetchUser';
const MsgForHome = (props) => {
const { user, loading } =... |
template/src/components/Hello.js | phonegap/phonegap-template-react-hot-loader | import React from 'react';
import Tappable from 'react-tappable';
import '../css/hello.css';
import Message from './Message';
const Hello = React.createClass({
displayName: 'Hello',
getInitialState() {
return {
message: '',
};
},
sayHello(msg) {
// CSSTransitionGroup will fade this in
... |
app/routes.js | awebfactory/react-starter | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/app';
import Home from './components/content/home';
import About from './components/content/about';
import Path from './containers/path';
import Steps from './components/content/steps/steps';
import IndexStep fro... |
packages/react-test-renderer/src/__tests__/ReactShallowRenderer-test.js | terminatorheart/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';
import * as PropTypes from 'prop-types';
import * as React from ... |
docs/app/Examples/views/Statistic/Content/StatisticExampleProps.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Statistic } from 'semantic-ui-react'
const items = [
{ key: '22', label: 'Saves', value: '22' },
{ key: 'Three Thousand', label: 'Signups', text: true, value: 'Three Thousand' },
{ key: '5', label: 'Flights', value: '5' },
{ key: '42', label: 'Team Members', value: '42' },
]
... |
vendor/golang.org/x/tools/godoc/static/jquery.js | markllama/origin | /*! jQuery v1.8.2 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d===... |
src/Option.js | paulmillr/react-select | import React from 'react';
import classNames from 'classnames';
const Option = React.createClass({
propTypes: {
children: React.PropTypes.node,
className: React.PropTypes.string, // className (based on mouse position)
instancePrefix: React.PropTypes.string.isRequired, // unique prefix for the ids (... |
ajax/libs/jquery/1.11.0/jquery.min.js | tharakauka/cdnjs | /*! 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... |
browser/app/js/components/BrowserDropdown.js | rushenn/minio | /*
* Minio Cloud Storage (C) 2016, 2017 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 applicab... |
src/components/Account/Courses/index.js | ndlib/usurper | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import typy from 'typy'
import getCourses from 'actions/personal/courses'
import * as statuses from 'constants/APIStatuses'
import Link from 'components/Interactiv... |
clients/packages/admin-client/src/components/navigation/navbar/navbar-edition-wrapper.js | nossas/bonde-client | import PropTypes from 'prop-types';
import React from 'react';
import { injectIntl, intlShape } from 'react-intl';
import classnames from 'classnames';
import {
NavbarButton,
NavbarForm,
} from '../../../components/navigation/navbar';
export class NavbarEditionWrapper extends React.Component {
constructor(props... |
packages/mui-codemod/src/v5.0.0/jss-to-styled.test/fifth.expected.js | oliviertassinari/material-ui | import React from 'react';
import { styled } from '@mui/material/styles';
import Typography from '@material-ui/core/Typography';
import Container from 'modules/components/Container';
import Button from 'modules/components/Button';
import Link from 'modules/components/Link';
const PREFIX = 'SellHero';
const classes = ... |
ajax/libs/video.js/6.0.0/alt/video.novtt.js | wout/cdnjs | /**
* @license
* Video.js 6.0.0 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}e... |
src/com/ui/link/link.js | ludumdare/ludumdare | import {h, Component} from 'preact/preact';
import Sanitize from 'internal/sanitize/sanitize';
// TODO: Push the state (arg1 of pushShate/replaceState (MK: what?)
// MK TODO: give this file a serious look. tidy up
export default class UILink extends Component {
constructor( props ) {
super(props);
thi... |
packages/material-ui-icons/src/BluetoothAudioSharp.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M14.24 12.01l2.32 2.32c.28-.72.44-1.51.44-2.33s-.16-1.59-.43-2.31l-2.33 2.32zm5.29-5.3l-1.26 1.26c.63 1.21.98 2.57.98 4.02s-.36 2.82-.98 4.02... |
ajax/libs/analytics.js/2.2.3/analytics.min.js | DeuxHuitHuit/cdnjs | (function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[name])return cache[name].exports;if(modules[name])return call(name,require);throw new Error('cannot find module "'+name+'"')}function call(id,require){var m=cache[id]={exports:{}};var mod=modules[id];var n... |
ajax/libs/cyclejs-core/0.12.0/cycle.js | wil93/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.Cycle=e()}}(function(){var define,module,exports;retu... |
js/src/modals/Shapeshift/ErrorStep/errorStep.spec.js | nipunn1313/parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any lat... |
node_modules/eslint-plugin-react/lib/util/pragma.js | andeemarks/conf-gen-div-react | /**
* @fileoverview Utility functions for React pragma configuration
* @author Yannick Croissant
*/
'use strict';
const JSX_ANNOTATION_REGEX = /^\*\s*@jsx\s+([^\s]+)/;
// Does not check for reserved keywords or unicode characters
const JS_IDENTIFIER_REGEX = /^[_$a-zA-Z][_$a-zA-Z0-9]*$/;
function getCreateClassFro... |
ajax/libs/yui/3.7.2/simpleyui/simpleyui-debug.js | alucard001/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
*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The YUI gl... |
src/components/Player/components/Modal/components/StreamLAN.js | jaruba/PowderPlayer | import React from 'react';
import {
clipboard, shell
} from 'electron';
import {
app
} from 'remote';
import ModalActions from '../actions';
import ModalStore from '../store';
import PlayerStore from '../../../store';
import player from '../../../utils/player';
import QRCode from 'rc-qrcode';
import ip fro... |
assets/js/vendor/jquery-1.9.1.min.js | Delvis/delvis.github.io | /*! 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... |
packages/react-error-overlay/src/containers/StackFrameCodeBlock.js | CodingZeal/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/* @flow */
import React from 'react';
import CodeBlock from '../components/CodeBlock';
import { applyStyles } from '../utils/dom/css';
... |
packages/material-ui-icons/src/FirstPage.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z" /><path fill="none" d="M24 24H0V0h24v24z" /></React.Fragment>
, 'FirstPage');
|
HM2/app/components/Backdrop/Backdrop.spec.js | StefanWallin/hm | import assert from 'assert';
import React from 'react';
import { createRenderer } from 'react-addons-test-utils';
import TabItem from './TabItem';
let shallowRenderer;
describe('TabItem', () => {
beforeEach(() => {
shallowRenderer = createRenderer();
});
it('renders', () => {
shallowRenderer.render(<Ta... |
app/javascript/mastodon/components/loading_indicator.js | abcang/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
const LoadingIndicator = () => (
<div className='loading-indicator'>
<div className='loading-indicator__figure' />
<FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' />
</div>
);
export default LoadingIndicat... |
packages/bonde-admin/src/mobilizations/widgets/components/tag.js | ourcities/rebu-client | import PropTypes from 'prop-types'
import React from 'react'
var styles = require('exenv').canUseDOM ? require('./tag.scss') : {}
const Tag = ({ value, onClick, onRemove }) => {
const clickable = onClick && typeof onClick === 'function'
const removable = onRemove && typeof onRemove === 'function'
return (
... |
client/src/Form.js | panter/mykonote | import React from 'react';
export function TextInput(props) {
return (
<div>
<label
htmlFor={idValue(props)}
className="control-label">{props.label}</label>
<input
type={props.type}
id={idValue(props)}
name={nameValue(props)}
onChange={(e) => props.onC... |
client/modules/App/__tests__/Components/Header.spec.js | pucksME/BetterBackPacking | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import { shallow } from 'enzyme';
import { FormattedMessage } from 'react-intl';
import { Header } from '../../components/Header/Header';
import { intl } from '../../../../util/react-intl-test-helper';
const intlProp = { ...intl, enabledLang... |
ajax/libs/mobx/2.1.2/mobx.umd.js | sreym/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.mobx = f()}})(... |
docs/src/app/components/pages/components/SelectField/ExampleLongMenu.js | rhaedes/material-ui | import React from 'react';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
const items = [];
for (let i = 0; i < 100; i++ ) {
items.push(<MenuItem value={i} key={i} primaryText={`Item ${i}`} />);
}
export default class DropDownMenuLongMenuExample extends React.Compone... |
src/pages/mentorship.js | jefflau/jefflau.net | import React from 'react';
import Link from 'gatsby-link';
const Mentorship = () => (
<div>
<h1>Front-end developer mentorship</h1>
<h2>Why having a mentor is important?</h2>
<p>
Becoming a self-taught developer is never easy. The resources we have
available our limitless and daunting. It's ... |
ui/src/containers/VisualiseForm/StatementsForm/AxesEditor/CountEditor.js | LearningLocker/learninglocker | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Map } from 'immutable';
import AutoComplete from 'ui/components/AutoComplete';
import CacheKeysAutoComplete from 'ui/containers/CacheKeysAutoComplete';
import {
getTypeOpts,
UNIQUENESS_OPS,
VALUE_OPTS,
UNIQUENESS_VALUE_OPTS,
... |
ajax/libs/angular.js/1.0.0rc1/angular-scenario.js | sajochiu/cdnjs | /** @license
* jQuery JavaScript Library v1.7
* 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 Lic... |
ajax/libs/jquery/1.8.0/jquery.js | visualjeff/cdnjs | /*!
* jQuery JavaScript Library v1.8.0
* 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 09 2012 16:24:48 GMT-0400 (Eastern Daylight Time)
*/
(function(... |
packages/react-router-dom/modules/__tests__/Link-test.js | justjavac/react-router-CN | import expect from 'expect'
import React from 'react'
import ReactDOM from 'react-dom'
import MemoryRouter from 'react-router/MemoryRouter'
import HashRouter from '../HashRouter'
import Link from '../Link'
describe('A <Link>', () => {
it('accepts a location "to" prop', () => {
const location = {
pathname: ... |
frontend/modules/header/containers/NavBar.js | rustymyers/OpenEats | "use strict";
import React from 'react'
import PropTypes from 'prop-types'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import Nav from '../components/Nav'
import * as ListActions from '../../list/actions/ListActions'
import * as AuthActions from '../../account/actions/AuthActions'... |
frontend/src/components/siteComponents/FAQ/index.js | webrecorder/webrecorder | import React from 'react';
import { Helmet } from 'react-helmet';
import { Link } from 'react-router-dom';
import { Col, Row } from 'react-bootstrap';
import { product } from 'config';
import './style.scss';
function FAQ() {
return (
<div className="container faq">
<Helmet>
<title>About</title>
... |
ajax/libs/angular-data/0.5.0/angular-data.js | stuartpb/cdnjs | /**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file angular-data.js
* @version 0.5.0 - Homepage <http://jmdobry.github.io/angular-data/>
* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/angular-data>
* @license MIT <https://github.com/jmdobry/angular-data/blob/master/LICENSE>
*
* @overview Dat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.