path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
utility/ssr_manifest_es6.js | typesettin/periodicjs.ext.reactadmin | 'use strict';
// const PathRegExp = require('path-to-regexp');
// const ssr_manifest = require('ssr_manifest');
//babel utility/ssr_manifest_es6.js > utility/ssr_manifest.js
//babel adminclient/src -d adminclient/_src --ignore adminclient/src/components/RACodeMirror/
require('isomorphic-fetch');
import React from 'rea... |
ajax/libs/analytics.js/1.3.5/analytics.min.js | bryantrobbins/cdnjs | (function(){function require(path,parent,orig){var resolved=require.resolve(path);if(null==resolved){orig=orig||path;parent=parent||"root";var err=new Error('Failed to require "'+orig+'" from "'+parent+'"');err.path=orig;err.parent=parent;err.require=true;throw err}var module=require.modules[resolved];if(!module._resol... |
packages/wix-style-react/src/BaseModalLayout/BaseModalLayout.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import { st, classes } from './BaseModalLayout.st.css';
import { dataHooks } from './constants';
import CloseButton from '../CloseButton';
import Help from 'wix-ui-icons-common/system/Help24';
import { ThemeProviderConsumerBackwardCompatible } from '../The... |
client/src/containers/TradesCont.js | jondcoleman/book-trader | import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import * as actionCreators from '../actions/actionCreators'
import Trades from '../components/Trades'
const mapStateToProps = state => ({
myTrades: state.trades.filter(trade => trade.bookOffered.userId === state.users._id),
oth... |
app/javascript/mastodon/containers/status_container.js | dunn/mastodon | import React from 'react';
import { connect } from 'react-redux';
import Status from '../components/status';
import { makeGetStatus } from '../selectors';
import {
replyCompose,
mentionCompose,
directCompose,
} from '../actions/compose';
import {
reblog,
favourite,
bookmark,
unreblog,
unfavourite,
unb... |
lib/select.js | zeeskhan1990/react-native-option-select | const Option = require('./option');
import React, { Component } from 'react';
import {
Dimensions,
StyleSheet,
TouchableWithoutFeedback,
View,
NativeModules,
findNodeHandle
} from 'react-native';
const window = Dimensions.get('window');
const SELECT = 'SELECT';
const styles = StyleSheet.create({
conta... |
app/components/Settings/SettingsPage.js | TheCbac/MICA-Desktop | // @flow
/* **********************************************************
* File: sensorSettingsComponent.js
*
* Brief: React component for changing settings on sensors.
* this is a poor name - consider renaming as this component
* also includes generators.
*
* Authors: Craig Cheney
*
* 2017.09.25 CC - Changed name to... |
node_modules/react-bootstrap/es/NavbarHeader.js | soniacq/LearningReact | 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 ... |
docs/assets/js/jquery.min.js | fhchina/bootstrap-table | /*! 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/Divider/Divider.spec.js | owencm/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import Divider from './Divider';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Divider />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (node) => shallow(node, {contex... |
pages/_document.js | zapier/formatic | import React from 'react';
import Document, { Head as NextHead, Main, NextScript } from 'next/document';
const STYLES_CHUNK_HREF = '/_next/static/css/styles.chunk.css';
// This is weird, but Next.js doesn't seem to be adding styles.chunk.css to the
// static build. So we'll just sneak it in by extending Head and over... |
src/pages/editEvent.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import EditEvent from '../components/EditEvent';
import ErrorPage from '../components/ErrorPage';
import { addEventCollectiveData } from '../graphql/queries';
import withData from '../lib/withData';
import withIntl from '../lib/withIntl';
import withLogg... |
ajax/libs/qooxdoo/2.1.1/q.js | victor-istomin/cdnjs | /** qooxdoo v.2.1.1 | (c) 2012 1&1 Internet AG 1und1.de | qooxdoo.org/license */
(function(){
if (!window.qx) window.qx = {};
var qx = window.qx;
if (!qx.$$environment) qx.$$environment = {};
var envinfo = {"json":true,"qx.application":"library.Application","qx.debug":false,"qx.debug.databinding":false,"qx.debug.dispo... |
ajax/libs/yui/3.13.0/event-focus/event-focus-min.js | dmsanchez86/cdnjs | YUI.add("event-focus",function(e,t){function u(t,r,u){var a="_"+t+"Notifiers";e.Event.define(t,{_useActivate:o,_attach:function(i,s,o){return e.DOM.isWindow(i)?n._attach([t,function(e){s.fire(e)},i]):n._attach([r,this._proxy,i,this,s,o],{capture:!0})},_proxy:function(t,r,i){var s=t.target,f=t.currentTarget,l=s.getData(... |
src/svg-icons/maps/zoom-out-map.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsZoomOutMap = (props) => (
<SvgIcon {...props}>
<path d="M15 3l2.3 2.3-2.89 2.87 1.42 1.42L18.7 6.7 21 9V3zM3 9l2.3-2.3 2.87 2.89 1.42-1.42L6.7 5.3 9 3H3zm6 12l-2.3-2.3 2.89-2.87-1.42-1.42L5.3 17.3 3 15v6zm1... |
packages/material-ui-icons/src/KeyboardBackspace.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let KeyboardBackspace = props =>
<SvgIcon {...props}>
<path d="M21 11H6.83l3.58-3.59L9 6l-6 6 6 6 1.41-1.41L6.83 13H21z" />
</SvgIcon>;
KeyboardBackspace = pure(KeyboardBackspace);
KeyboardBackspace.muiNam... |
ajax/libs/webshim/1.14.2/dev/shims/moxie/js/moxie.js | Rich-Harris/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 ... |
src/components/SimpleDropdown.js | wiki1024/sam-bs | import React from 'react'
import ReactDOM from 'react-dom';
import uncontrollable from 'uncontrollable';
const propTypes = {
value: React.PropTypes.string,
onChange: React.PropTypes.func,
open: React.PropTypes.bool,
onToggle: React.PropTypes.func,
}
class SimpleDropdown extends React.Component {
... |
src/components/App/NoMatch.js | mattwelson/gzclp | import React from 'react'
const NoMatch = ({ location }) =>
<div className="error--404 has-text-centered">
<h1 className="title is-1">404</h1>
<h2 className="subtitle is-2">Page not found</h2>
<p>The page you were looking for does not exist!</p>
</div>
export default NoMatch
|
src/main.js | prescottprue/devshare-site | import React from 'react'
import ReactDOM from 'react-dom'
import { initScripts } from 'utils'
import createStore from './store/createStore'
import AppContainer from './containers/App/App'
import { version } from '../package.json'
import config, { env } from './config'
// ==============================================... |
frontend/src/components/welcome/body/Intro.js | dimkarakostas/unimeet | import React, { Component } from 'react';
import SignupForm from './SignupForm';
import LoginForm from '../common/LoginForm';
class Intro extends Component {
constructor(props) {
super(props);
this.forgot = this.forgot.bind(this);
}
forgot() {
this.props.onforgot();
}
rend... |
client/src/reducers/_reducers.js | opensupports/opensupports | import { combineReducers } from 'redux';
import { routerReducer } from 'react-router-redux';
import sessionReducer from 'reducers/session-reducer';
import configReducer from 'reducers/config-reducer';
import modalReducer from 'reducers/modal-reducer';
import articlesReducer from 'reducers/articles-reducer';
import adm... |
actor-apps/app-web/src/app/components/sidebar/RecentSectionItem.react.js | WangCrystal/actor-platform | import React from 'react';
import classNames from 'classnames';
import PeerUtils from 'utils/PeerUtils';
import DialogActionCreators from 'actions/DialogActionCreators';
import DialogStore from 'stores/DialogStore';
import AvatarItem from 'components/common/AvatarItem.react';
class RecentSectionItem extends React... |
ajax/libs/material-ui/4.12.1/ClickAwayListener/ClickAwayListener.min.js | cdnjs/cdnjs | "use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault"),_interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var React=_interopRequireWildcard(require("react")),ReactDOM=_int... |
src/components/common/svg-icons/content/undo.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentUndo = (props) => (
<SvgIcon {...props}>
<path d="M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/>
</Svg... |
ajax/libs/react/0.4.2/react.min.js | ahocevar/cdnjs | /**
* React v0.4.2
*
* 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 applicabl... |
node_modules/react-icons/md/hdr-on.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdHdrOn = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m21.6 22.5v-5h-3.2v5h3.2z m0-7.5c1.4 0 2.5 1.2 2.5 2.5v5c0 1.3-1.1 2.5-2.5 2.5h-5.7v-10h5.7z m-10.7 3.4v-3.4h2.5v10h-2.5v-4.1h-3.4v4.1h-2.5v-10h2.5v3.4h3.4z m21.6 0.7v-... |
ajax/libs/6to5/2.11.3/browser.js | mzdani/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/AverageFootprintComparison/index.js | DuckyTeam/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon from '../Icon';
import Spacer from '../Spacer';
import Typography from '../Typography';
import Wrapper from '../Wrapper';
import styles from './styles.css';
function AverageFootprintComparison(props) {
con... |
docs/app/Examples/elements/Image/Usage/ImageExampleChildren.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Image, Label } from 'semantic-ui-react'
const ImageExampleChildren = () => (
<div>
<Image size='small'>
<Label content='Image not found!' icon='warning' />
</Image>
<span>Some other content</span>
</div>
)
export default ImageExampleChildren
|
tests/containers/AllVotedPage.spec.js | eugenrein/voteshirt | import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import { Link } from 'react-router';
import { AllVotedPage } from '../../src/containers/AllVotedPage.js';
import NavigationPage from '../../src/components/NavigationPage.js';
import SearchButton from '../../src/components/Search... |
app/javascript/mastodon/features/domain_blocks/index.js | dwango/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debou... |
src/components/notifications/NotificationList.js | GHImplementationTeam/FrontEnd | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { ACTIONS } from '../../Setup';
import IconMenu from 'material-ui/IconMenu';
import MenuItem from 'material-ui/MenuItem';
import { white } from 'material-ui/styles/col... |
packages/material-ui-icons/src/FlightLandSharp.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="M2.5 19h19v2h-19v-2zm16.84-3.15c.8.21 1.62-.26 1.84-1.06.21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8.95l-.93-2.32-1.45-... |
app/imports/ui/Loading.js | raiden-network/raiden-token | import React, { Component } from 'react';
function Loading(props) {
return React.createElement('span', {}, 'loading...');
}
export default Loading; |
node_modules/react-icons/io/ios-locatoutline.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const IoIosLocatoutline = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m19.8 3.8c-2.7 0-5.3 1-7.2 2.8s-2.8 4.5-2.8 7.2c0 3.3 1.8 8.3 5.4 14.5 1.7 3 3.5 5.6 4.6 7.1 1-1.5 2.8-4.1 4.5-7.1 3.6-6.2 5.5-11.2 5.5-14.5 0-2.7-1.1-5.3-2.9... |
docs/data/material/components/text-fields/StateTextFields.js | oliviertassinari/material-ui | import * as React from 'react';
import Box from '@mui/material/Box';
import TextField from '@mui/material/TextField';
export default function StateTextFields() {
const [name, setName] = React.useState('Cat in the Hat');
const handleChange = (event) => {
setName(event.target.value);
};
return (
<Box
... |
packages/mineral-ui-icons/src/IconReplay10.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 IconReplay10(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps... |
src/server/views/index-handler.js | aarmour/my-denver | import React from 'react';
import { renderToString } from 'react-dom/server';
import { Provider } from 'react-redux';
import { match, RouterContext } from 'react-router';
import styles from './styles';
import configureStore from '../../common/store/configureStore';
import routes from '../../common/routes';
module.expo... |
ajax/libs/shariff/1.3.4/shariff.min.js | magoni/cdnjs |
/*
* shariff - v1.3.2 - 25.11.2014
* https://github.com/heiseonline/shariff
* Copyright (c) 2014 Ines Pauer, Philipp Busse, Sebastian Hilbig, Erich Kramer, Deniz Sesli
* Licensed under the MIT <http://www.opensource.org/licenses/mit-license.php> license
*/
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){... |
front-src/js/main.js | QQorp/QQat | import React from 'react';
import Global from './Global';
React.render(<Global />, document.getElementById('Main'));
|
src/app/Topics.js | cityofasheville/simplicity2 | import React from 'react';
import PropTypes from 'prop-types';
import TopicCard from '../shared/TopicCard';
import { withLanguage } from '../utilities/lang/LanguageContext';
import {
IM_TREE
} from '../shared/iconConstants';
import Icon from '../shared/Icon';
const Topics = props => (
<div className="card-containe... |
packages/components/src/ResourceList/Toolbar/NameFilter/NameFilter.component.js | Talend/ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import DebounceInput from 'react-debounce-input';
import { useTranslation } from 'react-i18next';
import useKey from 'react-use/lib/useKey';
import { Action } from '../../../Actions';
import I18N_DOMAIN_COMPONENTS from ... |
src/shared/components/BgJulySix/BgJulySix.js | dannegm/danielgarcia | import React from 'react';
import jungle from '@/assets/images/backgrounds/jungle-mini.png';
import { Background } from './BgJulySix.styled';
const BgJulySix = () => <Background src={jungle} />;
export default BgJulySix;
|
src/svg-icons/editor/multiline-chart.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorMultilineChart = (props) => (
<SvgIcon {...props}>
<path d="M22 6.92l-1.41-1.41-2.85 3.21C15.68 6.4 12.83 5 9.61 5 6.72 5 4.07 6.16 2 8l1.42 1.42C5.12 7.93 7.27 7 9.61 7c2.74 0 5.09 1.26 6.77 3.24l-2.88 3... |
eslint-rules/__tests__/warning-and-invariant-args-test.js | tzq668766/react | /**
* Copyright 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-core
*... |
app/components/shared/pagination.js | nypl-registry/browse | import React from 'react'
import { Link } from 'react-router'
import { stringify } from 'qs'
const Pagination = React.createClass({
propTypes () {
return {
total: React.PropTypes.int.isRequired,
query: React.PropTypes.object.isRequired,
basePath: React.PropTypes.string.isRequired,
result... |
es/mobile/components/DrawerMenu/index.js | welovekpop/uwave-web-welovekpop.club | import _jsx from "@babel/runtime/helpers/builtin/jsx";
import React from 'react';
import PropTypes from 'prop-types';
import { translate } from 'react-i18next';
import compose from 'recompose/compose';
import withHandlers from 'recompose/withHandlers';
import Drawer from "@material-ui/core/es/Drawer";
import MenuList f... |
ajax/libs/forerunnerdb/1.3.24/fdb-legacy.min.js | nolsherry/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... |
src/pages/person/Party.js | zzelune/neam | import React, { Component } from 'react';
import { View, StyleSheet, StatusBar, Image, TouchableOpacity, ScrollView, RefreshControl, Dimensions, ActivityIndicator } from 'react-native';
import { Content, Icon, Left, Body, Right, List, ListItem, Separator, Text, Button, Thumbnail } from 'native-base';
import common from... |
examples/todomvc/index.js | yang-wei/redux | import 'babel-core/polyfill';
import React from 'react';
import Root from './containers/Root';
import 'todomvc-app-css/index.css';
React.render(
<Root />,
document.getElementById('root')
);
|
sites/all/modules/jquery_update/replace/jquery/1.7/jquery.js | gerrit1978/Poli-VUB | /*!
* 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.
... |
src/components/ui/Avatar.js | Charly2k12/social-post | import React, {Component} from 'react';
import md5 from "md5";
import {
isNumber,
isFunction
} from "../../lib/utils/Lodash";
// ------------------- //
// AVATAR ------------------- //
// ------------------- //
let classes = {
wrapper : "sp-avatar"
};
class Avatar extends Component {
constructor(props) ... |
src/components/common/svg-icons/action/flight-land.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFlightLand = (props) => (
<SvgIcon {...props}>
<path d="M2.5 19h19v2h-19zm7.18-5.73l4.35 1.16 5.31 1.42c.8.21 1.62-.26 1.84-1.06.21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8.95l-.93-2... |
src/svg-icons/device/signal-wifi-4-bar-lock.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi4BarLock = (props) => (
<SvgIcon {...props}>
<path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5... |
ajax/libs/webshim/1.14.4/dev/shims/combos/26.js | arasmussen/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 ... |
src/components/Landing/Video.js | letsroundup/landing-page | import React from 'react';
const Video = ({ src, alt, className, slate }) => (
<video autoPlay loop muted className={className} alt={alt} poster={slate}>
<source src={src} type="video/mp4" />
Sorry, your browser doesn't support embedded videos,
but don't worry, you can <a href={src}>download it</a>
a... |
src/styleable.js | splodingsocks/react-styleable | import assign from 'lodash/object/assign'
import getDisplayName from './utils/get-display-name'
import invariant from 'invariant'
import React from 'react'
function getSelectorsNotInStylesheet(cssProps, stylesheet) {
const propKeys = Object.keys(cssProps)
const cssKeys = Object.keys(stylesheet)
return propKeys.f... |
pootle/static/js/admin/components/Search.js | evernote/zing | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import cx from 'classnames';
import React from 'react';
i... |
ajax/libs/react-native-web/0.13.8/cjs/exports/LayoutAnimation/index.js | cdnjs/cdnjs | "use strict";
exports.__esModule = true;
exports.default = void 0;
var _LayoutAnimation = _interopRequireDefault(require("../../vendor/react-native/LayoutAnimation"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* Copyright (c) Nicolas Gallagher.
* Copyright... |
src/containers/SignUp/index.js | allyrippley/7ds | import React from 'react'
import {connect} from 'react-redux'
import {bindActionCreators} from 'redux'
import * as actions from '../../actions/heroActions'
const Contact = (props) => {
window.console.log('MainContactProps: ', props)
return (
<div style={{width: '100%', paddingTop: 55}}>
<div>
<f... |
src/components/detail.js | yihan940211/WTFSIGTP | /*
* @Author: guangled
* @Date: 2017-03-25 17:59:37
* @Last Modified by: guangled
* @Last Modified time: 2017-03-26 03:45:48
*/
import React, { Component } from 'react';
class Detail extends Component {
render() {
return (
<h4 className="title">{this.props.msg}</h4>
);
}... |
StudyNotes/ReactNative_/tg/component/shop/shop.js | coderZsq/coderZsq.target.swift | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Image,
WebView
} from 'react-native';
import CommonNavBar from '../main/commonnavbar'
let RequestURL = 'https://coderzsq.github.io/';
var Shop = React.createClass({
render(){
return (
<View>
... |
examples/with-immutable-redux-wrapper/pages/index.js | BlancheXu/test | import React from 'react'
import { bindActionCreators } from 'redux'
import { startClock, addCount, serverRenderClock } from '../store'
import Page from '../components/Page'
import { connect } from 'react-redux'
class Counter extends React.Component {
static getInitialProps ({ store, isServer }) {
store.dispatch... |
Harddisk Browser/Flat-UI-master/ReactJS Browser/src/client/app/js/components/common/Gap.js | tomjose92/Fun-Projects | import React from 'react';
const Gap = (props) =>{
let {padding} = props;
return (
<div style={styles[padding]}></div >
);
}
const styles = {
padding15:{
paddingTop: '15px'
},
padding20:{
paddingTop: '20px'
},
padding40 :{
paddingTop: '40px'
},
padding60 :{
paddingTop: '60px'
... |
app/templates/demo/index.js | milk-ui/generator-milk | /**
* <%= ComponentName %> of milkui-component
* @author <%- author %>
*
* Copyright 2017-2019, All rights reserved.
*/
import React from 'react';
import ReactDOM from 'react-dom';
import Demo from './Demo';
ReactDOM.render(
<Demo />,
document.querySelector('#app')
);
|
dapp/src/shared/dao/acl/components/action.js | airalab/DAO-IPCI | import React from 'react'
import { translate } from 'react-i18next'
import { Layout } from '../../main/components'
import Form from '../containers/form'
const Action = (props) => {
const { title, address, action, t } = props
return (<Layout title={t(title)} address={address} hideBack={false}>
<Form address={ad... |
src/svg-icons/editor/format-strikethrough.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatStrikethrough = (props) => (
<SvgIcon {...props}>
<path d="M10 19h4v-3h-4v3zM5 4v3h5v3h4V7h5V4H5zM3 14h18v-2H3v2z"/>
</SvgIcon>
);
EditorFormatStrikethrough = pure(EditorFormatStrikethrough);
Edit... |
node_modules/jquery/src/event.js | HavenSeedsForSuccess/HavenSeedsForSuccess.github.io | define([
"./core",
"./var/strundefined",
"./var/rnotwhite",
"./var/hasOwn",
"./var/slice",
"./event/support",
"./core/init",
"./data/accepts",
"./selector"
], function( jQuery, strundefined, rnotwhite, hasOwn, slice, support ) {
var rformElems = /^(?:input|select|textarea)$/i,
rkeyEvent = /^key/,
rmouseEve... |
src/app/layout/App.js | markerikson/project-minimek | import React, { Component } from 'react';
import {
Header,
Container,
} from "semantic-ui-react";
import TabBarContainer from "features/tabs/TabBarContainer";
import UnitInfo from "features/unitInfo/UnitInfo";
import Pilots from "features/pilots/Pilots";
import Mechs from "features/mechs/Mechs";
import Tools f... |
src/App.js | proiectus/bus-stop | import React, { Component } from 'react';
import './App.css';
import logo from '../public/favicon.svg';
import Header from './components/Header';
import Selector from './components/Selector';
import SelectedBusStop from './components/SelectedBusStop';
class App extends Component {
render() {
return (
<div ... |
src/docs/examples/Label/ExampleRequiredLabel.js | Mikhail2k15/ps-react-michael | import React from 'react';
import Label from 'ps-react/Label';
export default function ExamplRequired(){
return <Label htmlFor="test" required label="test label optional"/>;
} |
src/svg-icons/action/track-changes.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTrackChanges = (props) => (
<SvgIcon {...props}>
<path d="M19.07 4.93l-1.41 1.41C19.1 7.79 20 9.79 20 12c0 4.42-3.58 8-8 8s-8-3.58-8-8c0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12c0 3.31 2.69 6 6 6s... |
ajax/libs/react/0.5.1/react.min.js | tomalec/cdnjs | /**
* React v0.5.1
*
* 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 applicabl... |
src/components/SidebarUnread/SidebarUnread.js | dialogs/dialog-web-components | /*
* Copyright 2019 dialog LLC <info@dlg.im>
* @flow
*/
import React, { PureComponent } from 'react';
import classNames from 'classnames';
import Icon from '../Icon/Icon';
import styles from './SidebarUnread.css';
export type Props = {
className?: string,
position: 'top' | 'bottom',
onClick: () => mixed,
};
... |
tests/react_native_tests/test_data/native_code/Scrollview/storybook/stories/UserConnect_1/index.js | ibhubs/sketch-components | import React from 'react'
import { storiesOf } from '@storybook/react-native'
import { action } from '@storybook/addon-actions'
import { linkTo } from '@storybook/addon-links'
import UserConnect_1 from 'app/components/UserConnect_1'
storiesOf('UserConnect_1', module)
.add('default', () => (
<UserConnect_1
butt... |
client/modules/core/components/postlist.js | hacksong2016/angel | import React from 'react';
const PostList = ({ posts }) => (
<div className='postlist ui container'>
{posts.map(post => (
<div className="ui divided items" key={post._id}>
<a className="item" href={`/post/${post._id}`}>
<div className="image">
<img src={post.img} />
</div>
... |
webapp/src/containers/layout/searchBar/index.js | nathandunn/agr | /*eslint-disable react/no-set-state */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import Autosuggest from 'react-autosuggest';
import { push } from 'react-router-redux';
import { DropdownButton, MenuItem } from 'react-bootstrap';
import style from './style.css';
import CategoryLab... |
examples/forms-bootstrap/src/components/dialogs-destroy-wizard-generic/Layout.js | lore/lore-forms | import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import Hook from './Hook';
import hookCode from '!raw-loader!./Hook';
export default lore.connect(function(getState, props) {
const { tweetId } = props.params;
return {
tweet: getState('tweet.byId... |
src/components/forecastdetail.js | jstowers/ReduxWeatherApp | import React, { Component } from 'react';
import { Button, Modal } from 'react-bootstrap';
import ForecastHourly from 'ForecastHourly';
// How to open/close a React Bootstrap Modal
// http://stackoverflow.com/questions/29471368/how-to-open-close-react-bootstrap-modal-programmatically
export default class ForecastDet... |
src/jsx/components/__tests__/toolbar-test.js | CBIConsulting/ProperToolbar | import Toolbar from "../toolbar";
import React from 'react';
import ReactDOM from 'react-dom';
import $ from 'jquery';
import TestUtils from "react-addons-test-utils";
describe('toolbar react component', function() {
it('the module exists', function() {
expect(Toolbar).toBeTruthy();
});
it('and it works!', func... |
ajax/libs/material-ui/5.0.0-alpha.27/TablePagination/TablePagination.min.js | cdnjs/cdnjs | import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";import*as React from"react";import PropTypes from"prop-types";import{chainPropTypes}from"@material-ui/utils";import clsx from"clsx";import withStyles from"../styles... |
stories/Slider.js | ecmadao/light-ui | import React from 'react';
import { storiesOf } from '@storybook/react';
import SliderWrapper from '../examples/SliderWrapper';
storiesOf('Slider', module)
.add('basical', () => (
<SliderWrapper />
));
|
example/demo.card.js | glenjamin/devboard | import devboard from '../';
import React from 'react';
import Color from 'color-js';
import { combine } from '../lib/utils';
var definecard = devboard.ns('4. Thermometer demo');
definecard(`
This demo is of a component which was built iteratively using devboard.
Unfortunately, because you're looking at a static page... |
components/radio/Radio.js | rubenmoya/react-toolbox | import React from 'react';
import PropTypes from 'prop-types';
const factory = (ripple) => {
const Radio = ({ checked, onMouseDown, theme, ...other }) => (
<div
data-react-toolbox="radio"
className={theme[checked ? 'radioChecked' : 'radio']}
onMouseDown={onMouseDown}
{...other}
/>
)... |
app/javascript/mastodon/features/compose/components/search.js | res-ac/mstdn.res.ac | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Overlay from 'react-overlays/lib/Overlay';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import { searchEnabled } from '../... |
src/svg-icons/action/flip-to-front.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFlipToFront = (props) => (
<SvgIcon {...props}>
<path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm2 4v-2H3c0 1.1.89 2 2 2zM3 9h2V7H3v2zm12 12h2v-2h-2v2zm4-18H9c-1.11 0-2 .9-2 2v10c0 1.1.89 2 2 2h10c1.1 0 2-.9 2-2V5c... |
docs/app/Examples/collections/Grid/ResponsiveVariations/GridExampleReversedTablet.js | shengnian/shengnian-ui-react | import React from 'react'
import { Grid } from 'shengnian-ui-react'
const GridExampleReversedTablet = () => (
<Grid reversed='tablet' columns='equal'>
<Grid.Column>Tablet Fourth</Grid.Column>
<Grid.Column>Tablet Third</Grid.Column>
<Grid.Column>Tablet Second</Grid.Column>
<Grid.Column>Tablet First</G... |
ajax/libs/react-virtualized/9.3.0/react-virtualized.min.js | wout/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],t):"object"==typeof exports?exports.ReactVirtualized=t(require("React"),require("ReactDOM")):e.ReactVirtualized=t(e.React,e.ReactDOM)}... |
node_modules/react-select/examples/src/components/Virtualized.js | darklilium/Factigis_2 | import React from 'react';
import VirtualizedSelect from 'react-virtualized-select';
const DATA = require('../data/cities');
var CitiesField = React.createClass({
displayName: 'CitiesField',
getInitialState () {
return {};
},
updateValue (newValue) {
this.setState({
selectValue: newValue
});
},
render ... |
public/client/routes/logs/containers/logs.js | Concorda/concorda-dashboard | 'use strict'
import React from 'react'
import {connect} from 'react-redux'
import { pushPath } from 'redux-simple-router'
import _ from 'lodash'
// actions
import {getLogs} from '../../../modules/logs/actions/index'
import Panel from '../../components/panel'
export const Logs = React.createClass({
componentDidMou... |
data-browser-ui/public/app/components/tableComponents/td/idTdComponent.js | CloudBoost/cloudboost | import React from 'react';
class IdTdComponent extends React.PureComponent {
state = {
expandBtnIsDisplayed: false,
}
displayExpandBtn = () => this.setState({ expandBtnIsDisplayed: true });
hideExpandBtn = () => this.setState({ expandBtnIsDisplayed: false });
render() {
const expandBtnClass = `expa... |
ajax/libs/react-slick/0.3.7/react-slick.min.js | menuka94/cdnjs | !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.Slider=n(require("react")):t.Slider=n(t.React)}(this,function(t){return function(t){function n(r){if(e[r])return e[r].exports;var... |
app/components/models/model.react.js | Chaos-Zero/GoemonInternational | import * as THREE from 'three';
import React from 'react';
import ParsedModel from 'components/modelImporter/parsed_model';
import CreateMaterial from 'components/modelImporter/create_material';
class Model3D extends React.Component {
static displayName = 'Model3D';
constructor(props) {
super(props);
}
... |
src/modules/Background.js | RRutsche/react-parallax | import PropTypes from 'prop-types';
import React from 'react';
class Background extends React.Component {
static isParallaxBackground() {
return true;
}
render() {
return (
<div className={`react-parallax-background ${this.props.className}`}>
{this.props.childre... |
examples/pinterest/app.js | chunwei/react-router | import React from 'react';
import { Router, Route, IndexRoute, Link } from 'react-router';
var PICTURES = [
{ id: 0, src: 'http://placekitten.com/601/601' },
{ id: 1, src: 'http://placekitten.com/610/610' },
{ id: 2, src: 'http://placekitten.com/620/620' }
];
var Modal = React.createClass({
styles: {
posi... |
storybook/stories/index.js | linonetwo/bluetooth-reader-app | import React from 'react';
import { Text, View } from 'react-native';
import { storiesOf, action, linkTo } from '@kadira/react-native-storybook';
import { withKnobs, text, boolean, number } from '@kadira/storybook-addon-knobs';
import Button from './Button';
import CenterView from './CenterView';
import Welcome from '... |
ajax/libs/mobx-react/0.1.7/index.min.js | ahocevar/cdnjs | !function(){function e(e,t){function n(e){var n=t.findDOMNode(e);n&&p.set(n,e),c.emit({event:"render",renderTime:e.__renderEnd-e.__renderStart,totalTime:Date.now()-e.__renderStart,component:e,node:n})}function o(e,t){var n=e[t],o=d[t];e[t]=function(){n&&n.apply(this,arguments),o.apply(this,arguments)}}function r(e){if(... |
test/ButtonGroupSpec.js | wjb12/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ButtonGroup from '../src/ButtonGroup';
import Button from '../src/Button';
import { shouldWarn } from './helpers';
describe('ButtonGroup', () => {
it('Should output a button group', () => {
let instance = ReactTestUtils.rend... |
public/js/components/trends/trendactivityListComp.react.js | IsuruDilhan/Coupley | import React from 'react';
import Card from 'material-ui/lib/card/card';
import CardMedia from 'material-ui/lib/card/card-media';
import CardText from 'material-ui/lib/card/card-text';
import ListItem from 'material-ui/lib/lists/list-item';
import Divider from 'material-ui/lib/divider';
import Avatar from 'material-ui/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.