path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
ajax/libs/material-ui/4.9.12/es/Hidden/HiddenCss.min.js | cdnjs/cdnjs | import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";import*as React from"react";import PropTypes from"prop-types";import capitalize from"../utils/capitalize";import withStyles from"../styles/withStyles";import useTheme from"../styles/useTheme";const styles=e=>{const o={dis... |
ajax/libs/react-bootstrap/0.24.0-alpha.0/react-bootstrap.min.js | vetruvet/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactBootstrap=t(require("react")):e.ReactBootstrap=t(e.React)}(this,function(e){return function(e){function t(n){if(r[n])return ... |
ajax/libs/react-bootstrap/0.22.2/react-bootstrap.js | dhenson02/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReactBootstrap"] = ... |
ajax/libs/ember-data.js/1.0.0-beta.6/ember-data.js | bragma/cdnjs | /*!
* @overview Ember Data
* @copyright Copyright 2011-2014 Tilde Inc. and contributors.
* Portions Copyright 2011 LivingSocial Inc.
* @license Licensed under MIT license (see license.js)
* @version 1.0.0-beta.6
*/
(function() {
var define, requireModule;
(function() {
var registry = {}, seen... |
lib/ButtonGroup/stories/ButtonGroup.stories.js | folio-org/stripes-components | import React from 'react';
import { storiesOf } from '@storybook/react';
import withReadme from 'storybook-readme/with-readme';
import Readme from '../readme.md';
import BasicUsage from './BasicUsage';
storiesOf('ButtonGroup', module)
.addDecorator(withReadme(Readme))
.add('Basic Usage', () => <BasicUsage />);
|
ajax/libs/react/0.13.0/react-with-addons.min.js | ColinEberhardt/cdnjs | /**
* React (with addons) v0.13.0
*
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same... |
src-client/scripts/truckinfo.js | iLuggit/iLuggit | import Backbone from 'backbone'
import React from 'react'
import ReactDOM from 'react-dom'
import ACTIONS from './ACTiONS.js'
import STORE from './STORE.js'
import AppController from './lugg-view-controller.js'
const showTruckInfo = React.createClass({
render: function (){
return (
<div className=... |
app/javascript/mastodon/features/standalone/public_timeline/index.js | rutan/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../../ui/containers/status_list_container';
import { expandCommunityTimeline } from '../../../actions/timelines';
import Column from '../../../components/column';
import ColumnHeader fr... |
frontend/app/components/hoc/authentication-hoc.js | LINKIWI/linkr | import React from 'react';
import authentication from '../../util/authentication';
/**
* Higher-order component used for getting details about the currently logged in user. This HOC
* exposes a `user` prop to each wrapped component, which is an object of user details, and an
* `isLoggedIn` prop. `user` is populate... |
ajax/libs/backbone-react-component/0.4.1/backbone-react-component.js | willdady/cdnjs | /**
* Backbone.React.Component
* @version 0.4.1
* @author "Magalhas" José Magalhães <magalhas@gmail.com>
* @license MIT <http://opensource.org/licenses/MIT>
*/
(function (factory) {
if (typeof define === 'function' && define.amd)
define(['react', 'backbone', 'underscore'], factory);
else if (typeof module ... |
src/routes.js | hnikupet/dddhackaton | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... |
ajax/libs/forerunnerdb/1.3.597/fdb-core+persist.js | iwdmb/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... |
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch04/04_08/start/src/index.js | yevheniyc/C | import React from 'react'
import { render } from 'react-dom'
import './stylesheets/ui.scss'
import { App } from './components/App'
window.React = React
render(
<App />,
document.getElementById('react-container')
) |
ajax/libs/cellx/1.7.11/cellx.js | extend1994/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.cellx = factory());
}(this, (function () { 'use strict';
var ErrorLogger = {
_handler: null,
/**
* @typesign (handler:... |
docs/src/pages/demos/tabs/TabsWrappedLabel.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import AppBar from 'material-ui/AppBar';
import Tabs, { Tab } from 'material-ui/Tabs';
import Typography from 'material-ui/Typography';
function TabContainer(props) {
return (
<Typography component="di... |
node_modules/grunt-svgmin/node_modules/svgo/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/vendor/jquery.js | Royedc4/caYca | /*!
* 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.
... |
index.ios.js | oksimple/jianshuReactNative | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class jianshu extends Component {
render() {
return (
<View style={styles.container}>... |
react实现todolist增删改查/todoList/app/components/App.js | lernalot/lernalot.github.io | 'use strict'
import React from 'react';
import ReactDOM from 'react-dom';
import LocalDb from 'LocalDb';
import { Input } from 'antd';
import { Card } from 'antd';
import { Modal } from 'antd';
//引入各个操作的组件
import TodoHeader from './TodoHeader.js';
import TodoMain from './TodoMain.js';//渲染增加的元素
import TodoFooter from ... |
src/svg-icons/av/mic.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMic = (props) => (
<SvgIcon {...props}>
<path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-... |
node_modules/rx/dist/rx.js | bretth18/torrentPi | // 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
};
... |
App/Mixins/KeyboardListener.js | taskrabbit/ReactNativeSampleApp | import React from 'react';
import {
Keyboard,
} from 'react-native';
var KeyboardListener = {
getInitialState: function() {
return {
keyboardSpace: 0
};
},
isKeyboardVisible: function() {
return this.state.keyboardSpace > 0;
},
updateKeyboardSpace: function(e) {
if (this.isMounted... |
src/Svg/QuestionMarkLogo.js | numieco/patriot-trading | import React from 'react'
const QuestionMarkLogo = () => {
return (
<div>
<svg width="60px" height="60px" viewBox="0 0 60 60" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink">
<title>question-mark copy</title>
<desc>Created with Sketch.</desc>
... |
src/components/Button.js | nunoblue/ts-react | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Tooltip } from 'antd';
class Button extends Component {
static propTypes = {
content: PropTypes.string,
iconClassName: PropTypes.string,
}
static defaultProps = {
content: '',
iconClassN... |
src/components/modal/AddPost.js | TimothyBom/react-redux-instagram | import React from 'react'
import request from 'superagent'
class AddPost extends React.Component {
constructor(props) {
super(props)
this.state = {
public_id: '',
image_url: '',
caption: '',
token: localStorage.jwtToken ? localStorage.jwtToken : ''
... |
test/Panel_spec.js | mvader/react-categorized-tag-input | import expect from 'expect';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import jsdomReact from './jsdomReact';
import Panel from '../src/Panel.jsx';
function panel(props) {
return TestUtils.renderIntoDocument(React.createElement(Panel, props));
}
function findCategories(p) {
ret... |
packages/material-ui-icons/src/PanTool.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.... |
Example/__tests__/index.android.js | smiletime/react-native-twilio-video-webrtc | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/PageHeader.js | deerawan/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const PageHeader = React.createClass({
render() {
return (
<div {...this.props} className={classNames(this.props.className, 'page-header')}>
<h1>{this.props.children}</h1>
</div>
);
}
});
export default PageHeader;
|
src/Game/UI/Panel/Save.js | digijin/space-station-sim | // @flow
import * as engine from 'Game/engine';
import { connect } from 'react-redux';
import React from 'react';
import Draggable from 'react-draggable'
import Header from './Component/Header'
import listSaves from 'Game/State/listSaves'
import save from 'Game/State/save'
import load from 'Game/State/load'
class S... |
src/components/Sigmet/Sections/IssueSection.spec.js | maartenplieger/GeoWeb-FrontEnd | import React from 'react';
import IssueSection from './IssueSection';
import { mount } from 'enzyme';
describe('(Component) Sigmet/IssueSection', () => {
it('renders a IssueSection', () => {
const _component = mount(<IssueSection><div /><div /></IssueSection>);
expect(_component.type()).to.eql(IssueSection);... |
ajax/libs/vue/2.5.7/vue.js | jdh8/cdnjs | /*!
* Vue.js v2.5.7
* (c) 2014-2017 Evan You
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Vue = factory());
}(this, (function ()... |
app/containers/NotFoundPage/index.js | castlemilk/nutry-web | /**
* 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... |
addons/medium/index.js | vigetlabs/colonel-kurtz | /**
* This component adds a medium.com-like rich text editor block type.
*
* Source for this component can be found here:
* https://github.com/daviferreira/medium-editor
*/
import React from 'react'
import MediumEditor from './vendor/medium-editor'
const defaultProps = {
content: { html: '', text: '' },
opti... |
local-cli/cliEntry.js | wenpkpk/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict... |
src/views/Feed/FeedUser.js | Semantic-Org/Semantic-UI-React | import cx from 'clsx'
import PropTypes from 'prop-types'
import React from 'react'
import { childrenUtils, customPropTypes, getElementType, getUnhandledProps } from '../../lib'
/**
* A feed can contain a user element.
*/
function FeedUser(props) {
const { children, className, content } = props
const classes = c... |
fields/types/file/FileColumn.js | xyzteam2016/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var LocalFileColumn = React.createClass({
renderValue: function () {
var value = this.props.data.fields[this.props.col.path];
if (!value || !value.filename) ret... |
src/index.js | hannes-hochreiner/more-podcasts | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import ChannelListView from './ChannelListView';
import ChannelView from './ChannelView';
import registerServiceWorker from './registerServiceWorker';
import injectTapEventPlugin from 'react-tap-event-plugin';
im... |
packages/react/src/internal/FloatingMenu.js | carbon-design-system/carbon-components | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import PropTypes from 'prop-types';
import React from 'react';
import ReactDOM from 'react-dom';
import window from 'window-or-global';
impor... |
ajax/libs/yasqe/2.3.5/yasqe.bundled.min.js | JimBobSquarePants/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASQE=e()}}(function(){var e;return function t(e,i,r)... |
src/svg-icons/maps/restaurant.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsRestaurant = (props) => (
<SvgIcon {...props}>
<path d="M11 9H9V2H7v7H5V2H3v7c0 2.12 1.66 3.84 3.75 3.97V22h2.5v-9.03C11.34 12.84 13 11.12 13 9V2h-2v7zm5-3v8h2.5v8H21V2c-2.76 0-5 2.24-5 4z"/>
</SvgIcon>
)... |
node_modules/react-icons/fa/file-text.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaFileText = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m35.8 10.6q0.3 0.3 0.6 0.8h-10.5v-10.5q0.4 0.3 0.8 0.6z m-10.7 3.7h12.2v23.6q0 0.9-0.6 1.5t-1.6 0.6h-30q-0.8 0-1.5-0.6t-0.6-1.5v-35.8q0-0.8 0.6-1.5t1.5-0.6h17.9v12.1... |
frontend/src/Settings/Notifications/Notifications/AddNotificationItem.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Button from 'Components/Link/Button';
import Link from 'Components/Link/Link';
import Menu from 'Components/Menu/Menu';
import MenuContent from 'Components/Menu/MenuContent';
import { sizes } from 'Helpers/Props';
import AddNotificatio... |
ajax/libs/rxjs/2.2.15/rx.compat.js | callumacrae/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'u... |
Example/src/page/ImgRollView/styles.js | rnxteam/rnx-ui | import { StyleSheet } from 'react-native';
export default StyleSheet.create({
iconStyle: {
color: '#fff',
fontSize: 14,
},
imgRollViewStyle: {
flex: 1,
},
bottomBar: {
height: 70,
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'center',
backgroundColor: '#2F3549',... |
src/_app/js/entry.js | hhumphrey84/harleystphysio | // import React, { Component } from 'react';
// import {render} from 'react-dom';
// import Hello from './components/Hello';
//
// class App extends Component {
// render() {
// return (
// <Hello />
// )
// }
// }
//
// render(<App />, document.getElementById('root'));
const menuBtn = document.getEl... |
example/src/screens/types/TopTabs.js | yusufyildirim/react-native-navigation | import React from 'react';
import {PixelRatio} from 'react-native';
class TopTabs extends React.Component {
static navigatorStyle = {
topTabTextColor: '#ffffff',
topTabTextFontFamily: 'BioRhyme-Bold',
selectedTopTabTextColor: '#ff505c',
// Icons
topTabIconColor: '#ffffff',
selectedTopTabIcon... |
packages/reactor-kitchensink/src/examples/Charts/3DColumn/3DGrouped/3DGrouped.js | dbuhrman/extjs-reactor | import React, { Component } from 'react';
import { Container } from '@extjs/ext-react';
import { Cartesian } from '@extjs/ext-react-charts';
import ChartToolbar from '../../ChartToolbar';
export default class Grouped extends Component {
store = Ext.create('Ext.data.Store', {
fields: ['quarter', '2013', '2... |
src/client/react/admin/views/LogsView/Filters.js | bwyap/ptc-amazing-g-race | import React from 'react';
import PropTypes from 'prop-types';
import autobind from 'core-decorators/es/autobind';
import { Button, Intent } from '@blueprintjs/core';
import FormInput from '../../../../../../lib/react/components/forms/FormInput';
@autobind
class Filters extends React.Component {
static propTypes = {... |
src/svg-icons/av/fast-rewind.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFastRewind = (props) => (
<SvgIcon {...props}>
<path d="M11 18V6l-8.5 6 8.5 6zm.5-6l8.5 6V6l-8.5 6z"/>
</SvgIcon>
);
AvFastRewind = pure(AvFastRewind);
AvFastRewind.displayName = 'AvFastRewind';
AvFastRewin... |
tests/routes/Home/components/HomeView.spec.js | michaellyons/michaellyons.github.io | import React from 'react'
import { HomeView } from 'routes/Home/components/HomeView'
import { render } from 'enzyme'
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'
import getMuiTheme from 'material-ui/styles/getMuiTheme'
describe('(View) Home', () => {
let _component
beforeEach(() => {
_com... |
examples/with-react-ga/pages/_app.js | BlancheXu/test | import React from 'react'
import App from 'next/app'
import Router from 'next/router'
import { initGA, logPageView } from '../utils/analytics'
export default class MyApp extends App {
static async getInitialProps ({ Component, router, ctx }) {
let pageProps = {}
if (Component.getInitialProps) {
pagePr... |
packages/react-scripts/fixtures/kitchensink/src/features/env/NodePath.js | IamJoseph/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.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import load from 'absoluteLoad';
export default class ext... |
src/routes.js | IanBarkerDev/pinterest | import React from 'react';
import { Route } from 'react-router';
import { GenerateRoute } from './utils';
export default (
<Route component={ require('./pages/root') }>
{ GenerateRoute({
paths: ['/', '/home'],
component: require('./pages/home')
}) }
{ GenerateRoute({
paths: ['/account'],
component: ... |
modules/Link.js | leeric92/react-router | import React from 'react';
var { object, string, func } = React.PropTypes;
function isLeftClickEvent(event) {
return event.button === 0;
}
function isModifiedEvent(event) {
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
}
/**
* <Link> components are used to create an <a> element t... |
src/issue/screens/edit-issue-comment.screen.js | gitpoint/git-point | // @flow
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import {
ScrollView,
StyleSheet,
TextInput,
View,
Dimensions,
} from 'react-native';
import { ListItem } from 'react-native-elements';
import { ViewContainer, SectionList, Loa... |
Examples/UIExplorer/AdSupportIOSExample.js | michaelchucoder/react-native | /**
* The examples provided by Facebook are 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,
... |
src/Input.js | AlexKVal/react-bootstrap | import React from 'react';
import InputBase from './InputBase';
import * as FormControls from './FormControls';
import deprecationWarning from './utils/deprecationWarning';
class Input extends InputBase {
render() {
if (this.props.type === 'static') {
deprecationWarning('Input type=static', 'StaticText');
... |
fields/types/color/ColorField.js | linhanyang/keystone | import { SketchPicker } from 'react-color';
import { css, StyleSheet } from 'aphrodite/no-important';
import Field from '../Field';
import React from 'react';
import {
Button,
FormInput,
InlineGroup as Group,
InlineGroupSection as Section,
} from '../../../admin/client/App/elemental';
import transparentSwatch from ... |
styleguide/screens/Patterns/Tether/Tether.js | NGMarmaduke/bloom | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import cx from 'classnames';
import dedent from 'dedent';
import Specimen from '../../../components/Specimen/Specimen';
import { D, H, T, C, Note } from '../../../components/Scaffold/Scaffold';
import Tether, {
VERTICAL_ATTACHMENTS,
... |
addons/storyshots/storyshots-core/stories/required_with_context/Async.stories.js | kadirahq/react-storybook | import React from 'react';
export const EXPECTED_VALUE = 'THIS IS SO DONE';
export const TIMEOUT = 5;
class AsyncTestComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
value: '',
};
}
componentDidMount() {
setTimeout(() => {
this.setState({
... |
app/javascript/flavours/glitch/features/compose/components/compose_form.js | glitch-soc/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ReplyIndicatorContainer from '../containers/reply_indicator_container';
import AutosuggestTextarea from '../../../components/autosuggest_textarea';
import AutosuggestInput from '../../../com... |
test/integration/basic/pages/link.js | arunoda/next.js | import React from 'react'
import Link from 'next/link'
export default () => (
<div>Hello World. <Link href='/about'><a>About</a></Link></div>
)
|
docs/app/Examples/views/Item/Content/ItemExampleLink.js | shengnian/shengnian-ui-react | import React from 'react'
import { Image as ImageComponent, Item } from 'shengnian-ui-react'
const paragraph = <ImageComponent src='/assets/images/wireframe/short-paragraph.png' />
const ItemExampleLink = () => (
<Item.Group>
<Item>
<Item.Image size='tiny' src='/assets/images/wireframe/image.png' />
... |
src/components/Footer.js | salsita/supercomments | import React from 'react';
const styles = {
wrapper: {
borderTop: '2px solid',
padding: '24px 0px 10px',
fontSize: '12px',
color: 'rgba(0, 39, 59, 0.2)'
},
webAppDevLink: {
paddingLeft: '0px',
textDecoration: 'underline',
color: 'inherit'
},
reactDevelopers: {
paddingLeft: '0p... |
ajax/libs/rxjs/2.3.17/rx.lite.extras.js | neveldo/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,
... |
ajax/libs/redux-form/6.0.0-rc.4/redux-form.min.js | rlugojr/cdnjs | !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("react-redux"),require("redux")):"function"==typeof define&&define.amd?define(["react","react-redux","redux"],r):"object"==typeof exports?exports.ReduxForm=r(require("react"),require("react-redux"),require("redux"... |
server/server.js | b3j0f/lechangement | import Express from 'express';
import compression from 'compression';
import mongoose from 'mongoose';
import bodyParser from 'body-parser';
import path from 'path';
// Webpack Requirements
import webpack from 'webpack';
import config from '../webpack.config.dev';
import webpackDevMiddleware from 'webpack-dev-middlewa... |
src/components/native/PageTitle.js | Manuelandro/Universal-Commerce | import React from 'react'
import styled from 'styled-components/native'
const { View, Text } = {
View: styled.View`
flex: 1;
flexDirection: row;
alignSelf: stretch;
justifyContent: center;
marginTop: 20;
marginBottom: 5;
`,
Text: styled.Text`
alignSel... |
ajax/libs/mediaelement/2.8.0/jquery.js | nareshs435/cdnjs | /*!
* 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 Licenses.
*... |
src/svg-icons/file/cloud-queue.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudQueue = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.9... |
test/module/ReadingAdd.spec.js | NUS-Workload-Predictor/front-end | import React from 'react';
import { mount, shallow } from 'enzyme';
import { expect } from 'chai';
import configureStore from 'redux-mock-store';
const fetch = require('isomorphic-fetch');
import App from '../containers/App';
const middlewares = [];
const mockStore = configureStore(middlewares);
function setup() {... |
app/javascript/mastodon/features/compose/components/privacy_dropdown.js | KnzkDev/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, defineMessages } from 'react-intl';
import IconButton from '../../../components/icon_button';
import Overlay from 'react-overlays/lib/Overlay';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spr... |
desktop/containers/Signup.js | goominc/react-boilerplate | import { connect } from 'react-redux';
import { signup } from 'actions';
import SignupForm from 'components/SignupForm';
export default connect(
undefined,
dispatch => ({ doSignup: body => dispatch(signup(body)) }),
)(SignupForm);
|
src/Api/MoiraApiProvider.js | sashasushko/moira-front | // @flow
import React from 'react';
import PropTypes from 'prop-types';
type Props = {
children: React.Element<*>;
[apiKey: string]: string;
};
export default function createApiProvider(apiKey: string): Class<React.Component<void, { children: any }, void>> {
return class ApiProvider extends React.Componen... |
docs/pages/_app.js | kybarg/material-ui | /* eslint-disable no-underscore-dangle */
import 'docs/src/modules/components/bootstrap';
// --- Post bootstrap -----
import React from 'react';
import App, { Container } from 'next/app';
import find from 'lodash/find';
import { Provider as ReduxProvider, useDispatch, useSelector } from 'react-redux';
import { loadCSS ... |
packages/react-scripts/fixtures/kitchensink/src/features/env/NodePath.js | scyankai/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import Rea... |
newnodejs/node_modules/reactify/node_modules/react-tools/src/modern/class/__tests__/ReactClassEquivalence-test.js | saivarunr/zemoso-training | /**
* 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
*... |
src/components/counter/CounterValueDisplay.js | jiv-e/preact-widget-boilerplate | import React from 'react'
import PropTypes from 'prop-types'
const CounterValueDisplay = ({ value }) => {
return (
<span>Counter value: { value }</span>
)
}
CounterValueDisplay.propTypes = {
value: PropTypes.number.isRequired
}
export default CounterValueDisplay |
packages/react-devtools-shared/src/devtools/views/Icon.js | rricard/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.
*
* @flow
*/
import React from 'react';
import styles from './Icon.css';
export type IconType =
| 'arrow'
| 'components'
| '... |
frontend/src/Components/Modal/ModalHeader.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import styles from './ModalHeader.css';
class ModalHeader extends Component {
//
// Render
render() {
const {
children,
...otherProps
} = this.props;
return (
<div
className={styles.modalHeader}... |
ajax/libs/x-editable/1.5.0/jquery-editable/js/jquery-editable-poshytip.js | wormful/cdnjs | /*! X-editable - v1.5.0
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
* http://github.com/vitalets/x-editable
* Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */
/**
Form with single input element, two buttons and two states: normal/loading.
Applied as jQuery method to DIV tag (not to form ... |
public/js/jquery.min.js | kiruphp/zendapplication | /*! jQuery v1.9.0 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license */(function(e,t){"use strict";function n(e){var t=e.length,n=st.type(e);return st.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Tt[e]={};return st.each(e.matc... |
js/pages/logframe/components/main.js | mercycorps/TolaActivity | import React from 'react';
import { inject } from 'mobx-react';
import SubTitleRow from './subtitle';
import LogframeTable from './table';
const LogframeApp = () => {
return (
<React.Fragment>
<SubTitleRow />
<table className="logframe__table table table-sm table-bordered bg-white ... |
ajax/libs/legojs/0.0.1/lego.min.js | MisatoTremor/cdnjs | /*
* __ _
* / /__ ____ ____ (_)____
* / / _ \/ __ `/ __ \ / / ___/
* / / __/ /_/ / /_/ / / (__ )
* /_/\___/\__, /\____(_)_/ /____/
* /____/ /___/
*
*
* https://github.com/tybenz/legojs
*
* made in 2013
* by
* Tyler Benziger
* -... |
src/routes/register/index.js | dervos/react-starter-kit | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Register from './Registe... |
docs/app/Examples/collections/Message/Variations/MessageExamplePositive.js | koenvg/Semantic-UI-React | import React from 'react'
import { Message } from 'semantic-ui-react'
const MessageExamplePositive = () => (
<Message positive>
<Message.Header>You are eligible for a reward</Message.Header>
<p>Go to your <b>special offers</b> page to see now.</p>
</Message>
)
export default MessageExamplePositive
|
assets/js/jquery-1.11.2.min.js | objenious-community/objenious-community.github.io | /*! jQuery v1.11.2 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
app/javascript/mastodon/features/report/comment.js | MitarashiDango/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, defineMessages, FormattedMessage } from 'react-intl';
import Button from 'mastodon/components/button';
import Toggle from 'react-toggle';
const messages = defineMessages({
placeholder: { id: 'report.placeholder', defaultMessage: 'Typ... |
node_modules/react-icons/go/split.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const GoSplit = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m17.5 10l-10-10-7.5 7.5 12.1 11.7c0.6-3.1 1.7-5.3 5.2-9l0.2-0.2z m5-10l5.2 5.2-7.7 7.7c-3.9 3.9-5 6.3-5 12.1v15h10v-15c0-2.1 0.7-3.7 2.1-5l7.7-7.7 5.2 5.2v-17.5h-17.5z"... |
actor-apps/app-web/src/app/components/common/AvatarItem.react.js | mxw0417/actor-platform | import React from 'react';
import classNames from 'classnames';
class AvatarItem extends React.Component {
static propTypes = {
image: React.PropTypes.string,
placeholder: React.PropTypes.string.isRequired,
size: React.PropTypes.string,
title: React.PropTypes.string.isRequired
};
constructor(pro... |
src/routes/CustomHome.js | YutHelloWorld/vortex-react | import React from 'react';
import { func } from 'prop-types';
import { Switch, Route } from 'react-router-dom';
import { Container } from 'reactstrap';
import { connect } from 'react-redux';
import Navbar from '../components/Navbar';
import AsyncLoad from '../components/AsyncLoad';
import { signOutWithCb } from '../st... |
ajax/libs/antd-mobile/1.0.2/antd-mobile.min.js | cdnjs/cdnjs | /*!
* antd-mobile v1.0.2
*
* Copyright 2015-present, Alipay, Inc.
* All rights reserved.
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?export... |
app/components/IssueIcon/index.js | samanshahmohamadi/react-boilerplate-ballyhoo | import React from 'react';
function IssueIcon(props) {
return (
<svg
height="1em"
width="0.875em"
className={props.className}
>
<path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v... |
blueocean-material-icons/src/js/components/svg-icons/notification/folder-special.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const NotificationFolderSpecial = (props) => (
<SvgIcon {...props}>
<path d="M20 6h-8l-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-2.06 11L15 15.28 12.06 17l.78-3.33-2.59-2.24 3.41-.29L15 8l1.34 3.14 3.41.29-2.59 2.24... |
components/Layout/Provider.js | southern-ground/stack-shellybrown.com | /**
* Created by fst on 8/17/16.
*/
import React from 'react';
import store from '../../core/store';
class Provider extends React.Component {
constructor(props){
super(props);
}
componentWillMount(){
store.subscribe(this.render);
}
};
export default Provider; |
poc/src/js/components/Home.js | clplain/poc | import React from 'react';
class Home extends React.Component {
render() {
return (
<div className='login-form'>
<div className='login-content'>
<div className='form-login-error'>
<h3>DashBoard Login</h3>
<p>Enter <strong>Test</strong>/<strong>Test</strong>... |
js/ShowCard.js | jamnab/vidflix | import React, { Component } from 'react';
import { string } from 'prop-types';
import styled from 'styled-components';
const Wrapper = styled.div`
width: 32%;
border: 2px solid #333;
border-radius: 4px;
margin-bottom: 25px;
padding-right: 10px;
overflow: hidden;
`;
const Image = styled.img`
width: 46%;
... |
client/app/components/ContentEditor/customPlugins/latex-plugin/index.js | bryanph/Geist | import React from 'react';
import _ from 'lodash'
import { EditorState, RichUtils, Entity, KeyBindingUtil, AtomicBlockUtils, SelectionState, Modifier, BlockMapBuilder, ContentBlock } from 'draft-js'
import DraftPasteProcessor from 'draft-js/lib/DraftPasteProcessor'
import getFragmentFromSelection from 'draft-js/lib/ge... |
src/views/pages/main-page/index.js | zerubeus/future-layout | import React from 'react';
import { connect } from 'react-redux';
import HomeIcon from '../../components/home-icons';
import AcquisitionSvg from '../../../assets/img/acquisition.svg';
import positioningSvg from '../../../assets/img/positioning.svg';
import applicationsSvg from '../../../assets/img/applications.svg';
im... |
src/helpers/__tests__/getDataDependencies-test.js | ptim/react-redux-universal-hot-example | import { expect } from 'chai';
import React from 'react';
import { div } from 'react-dom';
import getDataDependencies from '../getDataDependencies';
describe('getDataDependencies', () => {
let getState;
let dispatch;
let location;
let params;
let CompWithFetchData;
let CompWithNoData;
let CompWithFetchDa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.