path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
codes/chapter05/react-router-v4/advanced/demo01/app/components/NoMatch.js | atlantis1024/react-step-by-step | import React from 'react';
class NoMatch extends React.PureComponent {
render() {
return (
<div>
<h2>无法匹配 <code>{this.props.location.pathname}</code></h2>
</div>
)
}
}
export default NoMatch;
|
src/svg-icons/image/center-focus-weak.js | mtsandeep/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/starter-scripts/fixtures/kitchensink/template/src/features/webpack/SassInclusion.js | chungchiehlun/create-starter-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 from 'react';
import './assets/sass-styles.sass';
export default () => <p id="feature-sass-inclusion">We love useless text... |
react/TextLink/TextLink.js | seekinternational/seek-asia-style-guide | import styles from './TextLink.less';
import React from 'react';
import PropTypes from 'prop-types';
import ChevronIcon from '../ChevronIcon/ChevronIcon';
import classnames from 'classnames';
const renderChevron = chevron => {
if (!chevron) {
return null;
}
return (
<ChevronIcon
className={style... |
ajax/libs/yui/3.14.1/event-custom-base/event-custom-base.js | dmsanchez86/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @mo... |
test/specs/views/Feed/FeedDate-test.js | jamiehill/stardust | import faker from 'faker'
import React from 'react'
import * as common from 'test/specs/commonTests'
import FeedDate from 'src/views/Feed/FeedDate'
describe('FeedDate', () => {
common.isConformant(FeedDate)
common.rendersChildren(FeedDate)
it('renders text with date prop', () => {
const text = faker.hacker... |
src/containers/Teacher/TeacherEvents.js | llukasxx/school-organizer-front | import React from 'react'
import { connect } from 'react-redux'
import * as actions from '../../redux/modules/EventsReducer'
import { allEventsArraySelector } from '../../selectors/EventsSelector'
import EventsPanel from '../../components/Events/EventsPanel'
import EventCreator from '../../components/Events/EventCre... |
YMHuPu/src/pages/Community/LeftListView.js | Whg8908/HuPu |
import React, { PureComponent } from 'react'
import { View, Text, StyleSheet, ScrollView, TouchableOpacity,InteractionManager, ListView,Image } from 'react-native'
import ScrollableTabView ,{ScrollableTabBar} from 'react-native-scrollable-tab-view'
import color from '../../widget/color'
import { screen, system, tool ... |
__tests__/components/CheckBox-test.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import CheckBox from '../../src/js/components/CheckBox';
import renderer from 'react-test-renderer';
describe('CheckBox', () => {
it('has correct default options', () => {
const component = renderer.create(
<Ch... |
ajax/libs/react-router-bootstrap/0.15.0/ReactRouterBootstrap.js | maruilian11/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-bootstrap/lib/Button"), require("react-bootstrap/lib/ListGroupItem"), require("react-bootstrap/lib/MenuItem"), require("react-bootstrap/l... |
src/js/components/input/grid_form/input_grid_form_fields.js | rafaelfbs/realizejs | import React, { Component } from 'react';
import _ from 'lodash';
import PropTypes from '../../../prop_types';
import { autobind, mixin } from '../../../utils/decorators';
import {
Button,
InputGroup,
} from '../../../components';
import { CssClassMixin } from '../../../mixins';
@mixin(CssClassMixin)
export defa... |
packages/test-studio/src/components/PertEstimateInput.js | VegaPublish/vega-studio | import React from 'react'
import PropTypes from 'prop-types'
import {
PatchEvent,
set,
unset,
setIfMissing
} from 'part:@lyra/form-builder/patch-event'
import './PertEstimate.css?raw' // eslint-disable-line
const calculateEstimate = estimates => {
const {optimistic, nominal, pessimistic} = estimates || {}
... |
src/containers/Home/BookingColumn.js | sslash/bookr | import React, { Component } from 'react';
const moment = require('moment');
import _range from 'lodash/utility/range';
export default class BookingColumn extends Component {
constructor(props) {
super(props);
this.onBookClicked = this.onBookClicked.bind(this);
}
onBookClicked() ... |
packages/@lyra/form-builder/src/inputs/ObjectInput/Field.js | VegaPublish/vega-studio | import FormBuilderPropTypes from '../../FormBuilderPropTypes'
import PropTypes from 'prop-types'
import React from 'react'
import Fieldset from 'part:@lyra/components/fieldsets/default'
import {FormBuilderInput} from '../../FormBuilderInput'
import InvalidValue from '../InvalidValueInput'
import {resolveTypeName} from ... |
examples/real-world/index.js | okmttdhr/redux-with-comment | import 'babel-core/polyfill'
import React from 'react'
import { render } from 'react-dom'
import Root from './containers/Root'
import configureStore from './store/configureStore'
const store = configureStore()
render(
<Root store={store} />,
document.getElementById('root')
)
|
packages/material-ui-icons/src/BrightnessMedium.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6 6z" /></g>
, 'BrightnessMedium');
|
examples/js/remote/remote-filtering.js | AllenFang/react-bootstrap-table | import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
export default class RemoteFiltering extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<BootstrapTable data={ this.props.data }
remote={ true... |
src/SafeAnchor.js | glenjamin/react-bootstrap | import React from 'react';
import PropTypes from 'prop-types';
import { elementType } from 'prop-types-extra';
import createChainedFunction from './utils/createChainedFunction';
const propTypes = {
href: PropTypes.string,
onClick: PropTypes.func,
onKeyDown: PropTypes.func,
disabled: PropTypes.bool,
role: Pr... |
src/svg-icons/communication/stay-primary-landscape.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationStayPrimaryLandscape = (props) => (
<SvgIcon {...props}>
<path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/>
</SvgIcon>
);
Communicat... |
src/img/icon_dash.js | mikah1337/null-terminator | import React from 'react';
export default class Icon_Dash extends React.Component {
constructor(props) {
super(props);
this.state = {
height: this.props.height || "70%",
color: this.props.color || "#7f8086"
}
}
render() {
return (
<svg xm... |
packages/mui-icons-material/lib/StayPrimaryPortraitSharp.js | oliviertassinari/material-ui | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
app/containers/Posts/instances/2017-04-26_write-something/index.js | brainsandspace/ship | /*
*
* Write Something
*
*/
import React from 'react';
import Helmet from 'react-helmet';
import Post from 'components/Post';
import PostHeading from 'components/PostHeading';
import PostTitle from 'components/PostTitle';
import PostDate from 'components/PostDate';
import Chunk from 'components/Chunk';
import po... |
src/svg-icons/image/filter-4.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter4 = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14... |
tests/components/RowGroupRowTest.js | flexiform/flexiform-fill-ui | /**
* Copyright 2016 ReSys OÜ
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... |
ajax/libs/react-dom/16.5.1/cjs/react-dom.profiling.min.js | seogi1004/cdnjs | /** @license React v16.5.1
* react-dom.profiling.min.js
*
* 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.
*/
/*
Modernizr 3.0.0pre (Custom Build) | MIT
*/
'use strict';var aa=require... |
app/javascript/mastodon/features/ui/components/drawer_loading.js | lindwurm/mastodon | import React from 'react';
const DrawerLoading = () => (
<div className='drawer'>
<div className='drawer__pager'>
<div className='drawer__inner' />
</div>
</div>
);
export default DrawerLoading;
|
docs/src/app/components/pages/components/Tabs/Page.js | pradel/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import tabsReadmeText from './README';
import tabsExampleSimpleCode from '!raw!.... |
src/svg-icons/device/bluetooth-searching.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBluetoothSearching = (props) => (
<SvgIcon {...props}>
<path d="M14.24 12.01l2.32 2.32c.28-.72.44-1.51.44-2.33 0-.82-.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-.9... |
front/src/Views/Pages/Events/Native.js | enow-dev/enow | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import Typography from 'material-ui/Typography';
import Grid from 'material-ui/Grid';
import Button from 'material-ui/Button';
import { grey, blue } from 'material-ui/colors';
import GithubIcon from '../../... |
imports/ui/components/MultipleStepReviewEntry/MultipleStepReviewEntry.js | jamiebones/Journal_Publication | /* eslint-disable */
import React from 'react';
import PropTypes from 'prop-types';
import { Row, Col, FormGroup, HelpBlock ,
ControlLabel, Button , Well , FormControl ,
Panel , Label , ButtonToolbar , ButtonGroup} from 'react-bootstrap';
import renderHTML from 'react-render-html';
import { Meteor } from 'mete... |
ajax/libs/es6-shim/0.33.10/es6-shim.js | pombredanne/cdnjs | /*!
* https://github.com/paulmillr/es6-shim
* @license es6-shim Copyright 2013-2015 by Paul Miller (http://paulmillr.com)
* and contributors, MIT License
* es6-shim: v0.33.10
* see https://github.com/paulmillr/es6-shim/blob/0.33.10/LICENSE
* Details and documentation:
* https://github.com/paulmillr/es... |
docs/src/app/components/pages/components/GridList/ExampleSimple.js | xmityaz/material-ui | import React from 'react';
import {GridList, GridTile} from 'material-ui/GridList';
import IconButton from 'material-ui/IconButton';
import Subheader from 'material-ui/Subheader';
import StarBorder from 'material-ui/svg-icons/toggle/star-border';
const styles = {
root: {
display: 'flex',
flexWrap: 'wrap',
... |
src/components/FooterBar/Responses/Favorite.js | u-wave/web | import React from 'react';
import PropTypes from 'prop-types';
import { useTranslator } from '@u-wave/react-translate';
import FavoritedIcon from '@mui/icons-material/Favorite';
import FavoriteIcon from '@mui/icons-material/FavoriteBorder';
import Button from './Button';
function Favorite({
onFavorite,
count,
di... |
antd-mobile-custom/antd-mobile/lib/checkbox/PropsType.js | forwk1990/wechart-checkin | // import React from 'react';
"use strict"; |
app/index.js | sdlfj/eq-roll-tracker | import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import Root from './containers/Root';
import { configureStore, history } from './store/configureStore';
import './app.global.css';
import * as settingsActions from './actions/settings';
const store = configu... |
ajax/libs/F2/1.4.0/f2.no-bootstrap.js | viskin/cdnjs | ;(function(exports) {
if (exports.F2 && !exports.F2_TESTING_MODE) {
return;
}
/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d... |
docs/ronin-sql/js/jquery.js | ronin-ruby/ronin-ruby.github.io | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
src/js/components/icons/base/PlatformAmazon.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
ajax/libs/forerunnerdb/1.3.562/fdb-core.min.js | ahocevar/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... |
ui/src/containers/BasicQueryBuilder/ExpandedSection.js | LearningLocker/learninglocker | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { compose, withProps } from 'recompose';
import { List, Map } from 'immutable';
import { map, maxBy, merge, size } from 'lodash';
import decodeDot from 'lib/helpers/decodeDot';
import { getAvailab... |
src/SplitButton.js | gianpaj/react-bootstrap | import React from 'react';
import BootstrapMixin from './BootstrapMixin';
import Button from './Button';
import Dropdown from './Dropdown';
import SplitToggle from './SplitToggle';
class SplitButton extends React.Component {
render() {
let {
children,
title,
onClick,
target,
href,
... |
extensions/amp-date-picker/0.1/dates-list.js | widespace-os/amphtml | /**
* Copyright 2017 The AMP HTML 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 require... |
client/src/components/Admin/Pages/PageList.js | hutchgrant/react-boilerplate | import React, { Component } from 'react';
import { connect } from 'react-redux';
import * as actions from '../../../actions/admin';
class PageList extends Component {
render() {
return (
<div>
<h2 className="text-center">Page List</h2>
</div>
);
}
};
fun... |
ajax/libs/forerunnerdb/1.3.833/fdb-core+persist.min.js | joeyparrish/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... |
webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js | pmoravec/katello | import React from 'react';
import PropTypes from 'prop-types';
import { Row, Col } from 'patternfly-react';
import { translate as __ } from 'foremanReact/common/I18n';
const SubscriptionDetailProduct = ({ content }) => (
<Row key={content.id}>
<Col sm={12}>
<Row>
<u>{content.name}</u>
</Row>
... |
src/post/BodyShort.js | Sekhmet/busy | import React from 'react';
import ellipsis from 'text-ellipsis';
import striptags from 'striptags';
import Remarkable from 'remarkable';
const remarkable = new Remarkable({ html: true });
function decodeEntities(body) {
return body.replace(/</g, '<').replace(/>/g, '>');
}
const BodyShort = (props) => {
let... |
examples/async/index.js | bkniffler/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
</Provider>,
document.getElementByI... |
components/TodoForm.js | bobbyangelov/3things | import React from 'react';
import ReactDOM from 'react-dom';
class TodoForm extends React.Component {
constructor() {
super();
this.state = {
text: ''
};
}
handleSubmit(e) {
e.preventDefault();
this.props.addItem(this.refs.todoField.value);
this.setState({text: ''});
this.refs.... |
video-player/src/components/VideoList.js | HeroSizy/Modern-react-with-redux | import React from 'react'
import VideoListItem from './VideoListItem'
const VideoList = ({videos, onVideoSelect}) => {
const videoItems = videos.map(video => {
return (
<VideoListItem
key={video.etag}
video={video}
onVideoSelect={onVideoSelect}
... |
src/components/HeaderBar/AppTitle.js | u-wave/web | import cx from 'clsx';
import React from 'react';
import PropTypes from 'prop-types';
import IconButton from '@mui/material/IconButton';
import AboutIcon from '@mui/icons-material/ArrowDropDown';
const logo = new URL('../../../assets/img/logo-white.png', import.meta.url);
// We use `logo.pathname` to ensure that the ... |
frontend/js/components/ecosystems/LoginForm.js | Code4HR/okcandidate-platform | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class LoginForm extends Component {
render() {
return (
<form
action="/login"
method="POST">
{
this.props.error &&
<label>{this.props.error}</label>
}
<fieldset... |
docs/media/flex-video/index.js | valzav/react-foundation-components | import React from 'react';
import { FlexVideo } from '../../../src/flex-video';
const FlexVideoPage = () => (
<div>
<h1>Flex Video</h1>
<p>
Wrap embedded videos from YouTube, Vimeo, and others in a flex video container to ensure
they maintain the correct aspect ratio regardless of screen size.
... |
src/svg-icons/action/flight-takeoff.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFlightTakeoff = (props) => (
<SvgIcon {...props}>
<path d="M2.5 19h19v2h-19zm19.57-9.36c-.21-.8-1.04-1.28-1.84-1.06L14.92 10l-6.9-6.43-1.93.51 4.14 7.17-4.97 1.33-1.97-1.54-1.45.39 1.82 3.16.77 1.33 1.6-.... |
sdn/floodlight-0.90/src/main/resources/web/lib/jquery.min.js | smartenit-eu/smartenit | /*! jQuery v1.7.2 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde... |
ajax/libs/yui/3.12.0/event-focus/event-focus-coverage.js | sahat/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/event-focus/event-focus.js']) {
__coverage__['build/event-focus/event-focus.js'] = {"path":"build/event-focus/event-focus.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"... |
ajax/libs/angular.js/1.1.5/angular-scenario.js | kentaromiura/cdnjs | /*!
* jQuery JavaScript Library v1.8.2
* 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 Sep 20 2012 21:13:05 GMT-0400 (Eastern Daylight Time)
*/
(function(... |
src/routes/Suppliers/SupplierCard.js | medevelopment/updatemeadmin | import React, { Component } from 'react';
import s from './Suppliers.css';
import Link from '../../components/Link';
class SupplierCard extends Component {
constructor(props) {
super(props);
this.state = {
};
}
render() {
//let imgUrl = 'http://ec2-52-32-92-71.us-west-2.compute.amazonaws.com/u... |
app/javascript/mastodon/containers/timeline_container.js | honpya/taketodon | import React from 'react';
import { Provider } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from '../store/configureStore';
import { hydrateStore } from '../actions/store';
import { IntlProvider, addLocaleData } from 'react-intl';
import { getLocale } from '../locales';
import PublicTim... |
src/components/_archive/_archive/Stub.js | mgoodenough/estimator | 'use strict';
/*
* Module Definition
*
*/
import React from 'react';
/*
* Class Definition
*
*/
class Stub extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div>
I am stub.
</div>
)
}
}
/*
* Module Export
*
*/
export defa... |
js/jqwidgets/demos/react/app/grid/fullrowedit/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
class App extends React.Component {
componentDidMount() {
let rowValues = '';
this.refs.myGrid.on('cellbeginedit', (event) => {
let args = event.args;
... |
fields/types/markdown/MarkdownColumn.js | cermati/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var MarkdownColumn = React.createClass({
displayName: 'MarkdownColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue... |
mobile/app/config/router.js | serban-petrescu/candidate-management | import React from 'react';
import {StackNavigator as stackNavigator} from "react-navigation";
import HomeScreen from '../components/HomeScreen';
import DetailScreen from "../components/DetailScreen";
export const root = stackNavigator(
{
Home:{screen: HomeScreen },
Detail:{screen:DetailScreen} },
{
... |
plugins/PostManager/containers/PostManager.js | synthesis-js/react-synthesis | // Post.js
import React from 'react';
import md5 from 'md5';
import { Link } from 'react-router';
class Post extends React.Component {
constructor(props) {
super(props);
this.state = {
}
this.createPost = this.createPost.bind(this);
this.gatherPostData = this.gatherPostData.bind(this);
}
co... |
wail-ui/components/collections/viewCollection/addSeedFab.js | N0taN3rd/wail | import React from 'react'
import PropTypes from 'prop-types'
import { Link } from 'react-router-dom'
import Add from 'material-ui/svg-icons/content/add'
import FloatingActionButton from 'material-ui/FloatingActionButton'
const AddSeedFab = ({viewingCol, fabStyle}) => (
<Link to={`/addSeed/${viewingCol}`}>
<Float... |
src/Dialog/DialogTitle.spec.js | und3fined/material-ui | // @flow weak
/* eslint-env mocha */
import React from 'react';
import { assert } from 'chai';
import { createShallowWithContext } from 'test/utils';
import DialogTitle, { styleSheet } from './DialogTitle';
describe('<DialogTitle />', () => {
let shallow;
let classes;
before(() => {
shallow = createShallow... |
ajax/libs/backbone.js/1.2.1/backbone.js | kartikrao31/cdnjs | // Backbone.js 1.2.1
// (c) 2010-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
(function(factory) {
// Establish the root object, `window` (`se... |
src/components/Shell.js | sievins/sarahs-footsteps | import React from 'react'
import PropTypes from 'prop-types'
import NavBar from 'containers/NavBar'
import grid from 'styles/grid.scss'
import Title from './Title'
const Shell = ({ children, location }) => (
<div>
<Title />
<NavBar location={location} />
<div className={grid.container}>
{children}
... |
ajax/libs/analytics.js/2.3.15/analytics.js | maruilian11/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... |
frontend/src/App.js | 4devs/symfony-react | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'react-router-redux';
import Root from './components/Root';
import store from './redux';
import history from './history';
import './config';
class App extends Component {
render() {
return (
<... |
server/server.js | dominiktilp/congestion-charge-app | import express from 'express';
import React from 'react';
import { renderToString } from 'react-dom/server';
import { RouterContext, match } from 'react-router';
import routes from '../routes/routing';
import { Provider } from 'react-redux';
import configureStore from '../utils/configureStore';
import fetchCompone... |
eBayAPI/eBayAPI/Scripts/jquery-1.10.2.js | dylansturg/ebaysearch | /* NUGET: BEGIN LICENSE TEXT
*
* Microsoft grants you the right to use these script files for the sole
* purpose of either: (i) interacting through your browser with the Microsoft
* website or online service, subject to the applicable licensing or use
* terms; or (ii) using the files as included with a Microsoft p... |
ajax/libs/6to5/2.4.5/browser.js | quba/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... |
Examples/UIExplorer/UIExplorerList.android.js | sixtomay/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,
... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | RobinSoubry/hack-against-violence | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
src/svg-icons/image/nature.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageNature = (props) => (
<SvgIcon {...props}>
<path d="M13 16.12c3.47-.41 6.17-3.36 6.17-6.95 0-3.87-3.13-7-7-7s-7 3.13-7 7c0 3.47 2.52 6.34 5.83 6.89V20H5v2h14v-2h-6v-3.88z"/>
</SvgIcon>
);
ImageNature = p... |
ajax/libs/video.js/4.12.12/video.dev.js | Olical/cdnjs | /**
* @fileoverview Main function src.
*/
// HTML5 Shiv. Must be in <head> to support older browsers.
document.createElement('video');
document.createElement('audio');
document.createElement('track');
/**
* Doubles as the main function for users to create a player instance and also
* the main library object.
*
... |
Gruntfile.js | thebinarium/reactable | var markdownlint = require('markdownlint');
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
grunt.registerMultiTask('markdownlint', function task() {
var done = this.async();
markdownlint(
{ "files": this.filesSrc },
function callback(err, result)... |
files/rxjs/2.2.20/rx.lite.js | petkaantonov/jsdelivr | // 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
};
v... |
app/containers/NotFoundPage/index.js | ethanve/bakesale | /**
* 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 neccessity for you then you can refactor i... |
node_modules/_rc-calendar@9.0.4@rc-calendar/es/calendar/CalendarHeader.js | ligangwolai/blog | import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import MonthPanel from '../month/MonthPanel';
import YearPanel from '../year/YearPanel';
import toFragment from 'rc-util/es/Children/mapSelf';
function goMonth(direction) {
var next = this.props.value.cl... |
packages/material-ui-icons/src/BuildOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M22.61 18.99l-9.08-9.08c.93-2.34.45-5.1-1.44-7C9.79.61 6.21.4 3.66 2.26L7.5 6.11 6.08 7.52 2.25 3.69C.39 6.23.6 9.82 2.9 12.11c1.86 1.86 4.57 2.35 6.89 1.48l9.11 9.11c.39.39 1.02.39 1.41 0l2.3-2.3c.4-... |
client/src/javascript/components/general/Duration.js | stephdewit/flood | import {FormattedMessage} from 'react-intl';
import React from 'react';
export default class Duration extends React.Component {
render() {
let {suffix = null} = this.props;
const {value: duration} = this.props;
if (duration == null) {
return null;
}
let content = null;
if (suffix) {
... |
packages/wix-style-react/src/FillPreview/utils.js | wix/wix-style-react | import React from 'react';
import { isUrl } from '../utils/UrlUtils';
import gradient from 'gradient-parser';
import resolveColor from 'color';
export const parseColor = fill => {
if (typeof fill !== 'string') {
return;
}
try {
return resolveColor(fill);
} catch {
return;
}
};
export const parse... |
template-ui/lib/components/layout/Toolbar.js | binocarlos/templatestack | import React, { Component, PropTypes } from 'react'
import { Layout, Panel, NavDrawer } from 'react-toolbox/lib/layout'
const STYLES = {
panel: {
height: 'calc(100% - 128px)',
maxHeight: 'calc(100% - 128px)',
top: '64px',
left: '0px'
}
}
class ToolbarLayout extends Component {
render() {
re... |
ajax/libs/primereact/7.0.0/editor/editor.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import { DomHandler, classNames } from 'primereact/utils';
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
function _defineProperties(target, props) {
for (var ... |
ajax/libs/yasqe/2.0.1/yasqe.bundled.min.js | quba/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,r,i)... |
src/__tests__/MapLayer.js | TaiwanStat/react-leaflet | import Leaflet from 'leaflet';
import React from 'react';
import { render } from 'react-dom';
jest.dontMock('../MapComponent');
jest.dontMock('../MapLayer');
jest.dontMock('../Map');
const MapLayer = require('../MapLayer');
const Map = require('../Map');
describe('MapLayer', () => {
it('passes its `map` prop to it... |
packages/material-ui-icons/src/TrafficSharp.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M20 10h-3V8.86c1.72-.45 3-2 3-3.86h-3V3H7v2H4c0 1.86 1.28 3.41 3 3.86V10H4c0 1.86 1.28 3.41 3 3.86V15H4c0 1.86 1.28 3.41 3 3.86V21h10v-2.14c1.72... |
web/lib/@angular/forms/src/directives.js | ice3x2/Clreball | /**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { NgModule } from '@angular/core';
import { CheckboxControlValueAccessor } from './directives/checkbox_value_a... |
modules/__tests__/IndexRoute-test.js | skevy/react-router | /*eslint-env mocha */
/*eslint react/prop-types: 0*/
import expect from 'expect'
import React from 'react'
import createHistory from 'history/lib/createMemoryHistory'
import IndexRoute from '../IndexRoute'
import Router from '../Router'
import Route from '../Route'
describe('an <IndexRoute/>', function () {
var nod... |
es6react/components/SearchableTable.js | sillygod/my-travel-in-learning-javascript | /*
* Searchable Table
* Author: Jean-Pierre Sierens
* ===========================================================================
*/
import React from 'react';
export default class SearchableTable extends React.Component {
constructor() {
super();
// Initial state of the component
th... |
src/routes/NotFound/NotFound.js | taforyou/testtesttest-yo | import React from 'react'
export const NotFound = () => (
<div className='container'>
<h1>Whoops! 404!</h1>
<p>This page was not found.</p>
</div>
)
export default NotFound
|
ajax/libs/styled-components/4.0.0-beta.0-2/styled-components.cjs.js | sufuf3/cdnjs | 'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var Stylis = _interopDefault(require('stylis'));
var _insertRulePlugin = _interopDefault(require('stylis-rule-sheet'));
var R... |
src/components/organizations/show/index.js | getguesstimate/guesstimate-app | import React, {Component} from 'react'
import PropTypes from 'prop-types'
import {connect} from 'react-redux'
import ReactDOM from 'react-dom'
import Icon from 'react-fa'
import {SpaceCard, NewSpaceCard} from 'gComponents/spaces/cards'
import Container from 'gComponents/utility/container/Container'
import {MembersTa... |
src/components/NavBar.js | kkotelczuk/weekendTour | import React from 'react';
import Logo from './Logo.js';
import Logout from './Logout.js';
import Avatar from './Avatar.js';
import Search from '../containers/Search.js';
import '../style/NavBar.css';
const NavBar = () => {
return (
<nav>
<Logo/>
<div className="floater">
<Search/>
... |
2-alpha/src/components/Header.js | saturninoharris/primer-design | import React from 'react'
import { connect } from 'react-redux'
import { withRouter } from 'react-router-dom'
import { updateCurrentStudentID, nextExercise } from '../actions'
import { getCurrentStudentID, getCurrentStudentProfile, getAvailableExercisesList } from '../selectors'
import { P } from './Text'
import { Hi... |
packages/react/src/components/organisms/PageHeaderAddons/PageHeaderAddons.stories.js | massgov/mayflower | import React from 'react';
import { StoryPage } from 'StorybookConfig/preview';
import PageHeaderAddons from './index';
import PageHeaderAddonsDocs from './PageHeaderAddons.md';
import PageHeaderAddonsData from './PageHeaderAddons.knobs.options';
export const PageHeaderAddonsExample = (args) => <PageHeaderAddons {...... |
src/pages/configurator/CreatePackageSupplementPage.js | belaczek/BeerCheese-client | import React, { Component } from 'react';
import {
Row,
Col,
Button,
Nav,
NavItem,
NavLink,
NavbarBrand
} from 'reactstrap';
import ProductList from '../../components/product/ProductList';
import localizedTexts from '../../text_localization/LocalizedStrings';
const mockSupplementsCategories = ['glass', '... |
web/demo/client/src/layout/components/footer/index.js | yinweiwen/study | /**
* Created by liu.xinyi
* on 2016/3/31.
*/
'use strict';
import React from 'react';
import {footer} from './style.css';
export default class Footer extends React.Component {
render() {
const {footerProps} = this.props;
return (
<div className={footer} {...footerProps}>
... |
src/templates/tags-list-template.js | bapti/blog | // @flow strict
import React from 'react';
import { Link } from 'gatsby';
import kebabCase from 'lodash/kebabCase';
import Layout from '../components/Layout';
import Sidebar from '../components/Sidebar';
import Page from '../components/Page';
import { useSiteMetadata, useTagsList } from '../hooks';
const TagsListTempl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.