path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
components/ListPage/ListPres/ListPres.js | yodairish/pres-view | 'use strict';
import React from 'react';
import PresListStore from '../../../js/stores/PresListStore.js';
import PresListActions from '../../../js/actions/PresListActions.js';
import ListPresItem from './ListPresItem/ListPresItem.js';
import LoadMore from './LoadMore/LoadMore.js';
export default React.createClass({
... |
src/components/basic/EditButton.js | dzwiedziu-nkg/books-collection-frontend | import React from 'react';
import PropTypes from 'prop-types';
export default class EditButton extends React.Component {
static propTypes = {
visible: PropTypes.bool,
active: PropTypes.bool,
onEditClick: PropTypes.func,
fontSize: PropTypes.string
};
static defaultProps = {
visible: true,
... |
ajax/libs/yui/3.17.1-rc-1/datatable-body/datatable-body.js | yinghunglai/cdnjs | YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = ... |
examples/FacebookTabsExample/index.js | franvera/react-native-scrollable-tab-view | import React from 'react';
import {
StyleSheet,
Text,
View,
ScrollView,
TouchableOpacity,
} from 'react-native';
import { StackNavigator } from 'react-navigation';
import SimpleExample from './SimpleExample';
import ScrollableTabsExample from './ScrollableTabsExample';
import OverlayExample from './OverlayExa... |
client/lib/js/react/components/account_list.js | bigchaindb/bigchaindb-examples | import React from 'react';
import { safeInvoke } from 'js-utility-belt/es6';
import classnames from 'classnames';
import AccountActions from '../actions/account_actions';
import AccountStore from '../stores/account_store';
import Spinner from './spinner';
const AccountList = React.createClass({
propTypes: {
... |
doc/themes/scikit-learn/static/jquery.js | shangwuhencc/scikit-learn | /*! 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... |
components/Tooltip/Tooltip.story.js | rdjpalmer/bloom | import React from 'react';
import { storiesOf } from '@storybook/react';
import Tooltip from './Tooltip';
import { HORIZONTAL_ATTACHMENTS, VERTICAL_ATTACHMENTS } from '../Tether/Tether';
const Target = () => <button>Anchor</button>;
const DropdownContent = () => <div>Dropdown content, like a list of actions, helper t... |
src/webpack-public-path.js | Chewser/chewser_react | // Dynamically set the webpack public path at runtime below
// This magic global is used by webpack to set the public path at runtime.
// The public path is set dynamically to avoid the following issues:
// 1. https://github.com/coryhouse/react-slingshot/issues/205
// 2. https://github.com/coryhouse/react-slingshot/iss... |
src-clean/components/pages/HomePage/index.stories.js | SIB-Colombia/dataportal_v2_frontend | import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { HomePage } from 'components'
storiesOf('HomePage', module)
.add('default', () => (
<HomePage />
))
|
web/static/js/components/tags/tags.js | toxu/txportal | import React from 'react';
import {connect} from 'react-redux';
import {getTags, selectAllSuite, selectOneSuite, searchTags} from '../../actions/tags.js';
import {Button, Row, Col, ProgressBar} from 'react-bootstrap';
import TagsItem from './tagsitem';
import PieChart from '../charts/piechart';
import BarChart from '.... |
frontend/app/components/SongsStories/list-view-alt.js | First-Peoples-Cultural-Council/fv-web-ui | /*
Copyright 2016 First People's Cultural Council
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 w... |
actor-apps/app-web/src/app/components/Main.react.js | liuzwei/actor-platform | import React from 'react';
import requireAuth from 'utils/require-auth';
import VisibilityActionCreators from '../actions/VisibilityActionCreators';
import FaviconActionCreators from 'actions/FaviconActionCreators';
import FaviconStore from 'stores/FaviconStore';
import ActivitySection from 'components/ActivitySecti... |
fields/types/text/TextFilter.js | cermati/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import {
FormField,
FormInput,
FormSelect,
SegmentedControl,
} from '../../../admin/client/App/elemental';
const INVERTED_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true },
];
const MODE_OPTIONS = [
{ la... |
ajax/libs/react-native-web/0.15.1/exports/createElement/index.js | cdnjs/cdnjs | /**
* Copyright (c) Nicolas Gallagher.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
*/
import AccessibilityUtil from '../../modules/AccessibilityUtil';
import createDOMProps from '../../modules/createDOMProps';
import React fro... |
app/components/browserwarning/browserwarning.js | tidepool-org/blip | /**
* Copyright (c) 2016, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program is distributed in the... |
src/components/ErrorBar.js | connectordb/connectordb-android | import React, { Component } from 'react';
import { View, Text } from 'react-native';
const Render = ({error}) => (error === null || error.text === undefined || error.text === "" ? null :
(
<View style={{
backgroundColor: error.color !== undefined ? error.color : '#ef553a',
paddingT... |
ajax/libs/mobx-react/4.0.3-rc/index.min.js | jonobr1/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("mobx"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["mobx","react","react-dom"],t):"object"==typeof exports?exports.mobxReact=t(require("mobx"),require("react"),require("react-dom")):e.mobx... |
webpack/routes/OvalPolicies/OvalPoliciesNew/index.js | theforeman/foreman_openscap | import React from 'react';
import { useDispatch } from 'react-redux';
import { showToast } from '../../../helpers/toastHelper';
import OvalPoliciesNew from './OvalPoliciesNew';
const WrappedOvalPoliciesNew = props => (
<OvalPoliciesNew {...props} showToast={showToast(useDispatch())} />
);
export default WrappedOva... |
web/cashtab/src/components/Tokens/TokenIcon.js | Bitcoin-ABC/bitcoin-abc | import React from 'react';
import PropTypes from 'prop-types';
import makeBlockie from 'ethereum-blockies-base64';
import { Img } from 'react-image';
import { currency } from 'components/Common/Ticker';
const TokenIcon = ({ size, tokenId }) => {
return (
<>
<Img
src={`${currency... |
ajax/libs/analytics.js/1.5.4/analytics.js | arasmussen/cdnjs | ;(function(){
/**
* Require the given path.
*
* @param {String} path
* @return {Object} exports
* @api public
*/
function require(path, parent, orig) {
var resolved = require.resolve(path);
// lookup failed
if (null == resolved) {
orig = orig || path;
parent = parent || 'root';
var err = new ... |
src/svg-icons/communication/message.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationMessage = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/>
</SvgIcon>
);
Commun... |
Tutorial/js/project/1.NewsDemo/Component/YCNewsDetail.js | onezens/react-native-repo | /**
* Created by wangzhen on 17/5/6.
*/
import React, { Component } from 'react';
import {
StyleSheet,
WebView
} from 'react-native';
// http://c.3g.163.com/nc/article/BMU8KHQD00964J4O/full.html
const NewsDetail = React.createClass({
getDefaultProps(){
return {
}
},
getInitialState... |
dev/src/views/Dashboard/Relater.js | chetian/hackthealpha-ui | import React, {Component} from "react";
import {Link} from "react-router-dom"
import * as axios from 'axios';
import {
Badge,
Row,
Col,
Card,
CardHeader,
CardBlock,
Table,
Pagination,
PaginationItem,
PaginationLink
} from "reactstrap";
export const UI = {
detail: "DETAIL",
category: "CATEGO... |
node_modules/react-navigation/lib-rn/navigators/DrawerNavigator.js | RahulDesai92/PHR | import React from 'react';
import { Dimensions, Platform } from 'react-native';
import createNavigator from './createNavigator';
import createNavigationContainer from '../createNavigationContainer';
import TabRouter from '../routers/TabRouter';
import DrawerScreen from '../views/Drawer/DrawerScreen';
import DrawerView... |
packages/material-ui-icons/src/SignalWifi4BarLock.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><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 1.5... |
ajax/libs/material-ui/5.0.0-alpha.3/es/StepLabel/StepLabel.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 clsx from"clsx";import withStyles from"../styles/withStyles";import Typography from"../Typograp... |
src/components/Post/Meta/Meta.js | colmdoyle/colmdoyle.github.io | // @flow strict
import React from 'react';
import styles from './Meta.module.scss';
type Props = {
date: string
};
const Meta = ({ date }: Props) => (
<div className={styles['meta']}>
<p className={styles['meta__date']}>Published {new Date(date).toLocaleDateString('en-US', { year: 'numeric', month: 'short', d... |
app/jsx/new_user_tutorial/trays/SyllabusTray.js | venturehive/canvas-lms | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/modules/components/templates/Modal.js | OCMC-Translation-Projects/ioc-liturgical-db-public-app | import React from 'react';
import {Popover, Tooltip, Button, Modal, OverlayTrigger} from 'react-bootstrap';
/**
* Copy this to create a new component.
*/
export class ModalRow extends React.Component {
constructor(props) {
super(props);
this.state = {showModal: false};
this.close = this.close.bind(th... |
web/src/index.js | miaolz123/samaritan | import routes from './routes';
import configureStore from './store/configureStore';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
const store = conf... |
blueocean-material-icons/src/js/components/svg-icons/device/network-wifi.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const DeviceNetworkWifi = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M3.53 10.95l8.46 10.54.01.01.01-.01 8.46-10.54C20.04 10.62 1... |
node_modules/react-bootstrap/es/MediaListItem.js | vietvd88/developer-crawler | 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 ... |
src/components/Alert.js | xaadim/elemental | var React = require('react/addons');
var classNames = require('classnames');
var ALERT_TYPES = [
'danger',
'info',
'primary',
'success',
'warning'
];
module.exports = React.createClass({
displayName: 'ElementalAlert',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string... |
ajax/libs/6to5/3.0.7/browser-polyfill.js | jozefizso/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... |
components/Footer/Footer.js | southern-ground/stack-shellybrown.com | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-present 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'... |
frontend/app_v2/src/common/categoryIcons/Moon.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
/**
* @summary Moon
* @component
*
* @param {object} props
*
* @returns {node} jsx markup
*/
function Moon({ styling }) {
return (
<svg className={styling} xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 317 317" stroke="currentColor"... |
ajax/libs/oojs-ui/0.15.0/oojs-ui.js | nolsherry/cdnjs | /*!
* OOjs UI v0.15.0
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2016 OOjs UI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2016-01-12T23:06:31Z
*/
( function ( OO ) {
'use strict';
/**
* Namespace for all classes, static methods and s... |
src/components/app/DocumentList/DocumentList.js | metasfresh/metasfresh-webui-frontend | import counterpart from 'counterpart';
import cx from 'classnames';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { PROCESS_NAME } from '../../../constants/Constants';
import {
NO_VIEW,
PANEL_WIDTHS,
GEO_PANEL_STATES,
filtersToMap,
DLpropTypes,
} from '../../../utils/do... |
framework/zii/widgets/assets/gridview/jquery.yiigridview.js | arossokha/abcosting | /**
* jQuery Yii GridView plugin file.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @copyright 2008-2010 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
(function ($) {
var selectCheckedRows, methods,
yiiXHR={},
gridSettings = [];
/**
* 1. Sele... |
src/svg-icons/places/hot-tub.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesHotTub = (props) => (
<SvgIcon {...props}>
<circle cx="7" cy="6" r="2"/><path d="M11.15 12c-.31-.22-.59-.46-.82-.72l-1.4-1.55c-.19-.21-.43-.38-.69-.5-.29-.14-.62-.23-.96-.23h-.03C6.01 9 5 10.01 5 11.25V12... |
ajax/libs/material-ui/5.0.0-alpha.12/es/Stepper/Stepper.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 clsx from"clsx";import withStyles from"../styles/withStyles";import StepConnector from"../StepC... |
packages/create-subscription/src/createSubscription.js | yiminghe/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 invariant from 'shared/invariant';
import warningWithoutStack from 'shared/warningWi... |
packages/material-ui-icons/src/InsertInvitation.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z" />
, 'InsertInvitation');
|
react/src/index.js | dfroger/quickstart | import React from 'react';
import ReactDOM from 'react-dom';
class Foo extends React.Component {
render () {
return (
<div> foo </div>
);
}
}
ReactDOM.render(
<Foo/>,
document.getElementById("root")
);
|
src/components/IconButton/IconButton.js | fkn/ndo | import React from 'react';
import PropTypes from 'prop-types';
import { Button, Glyphicon } from 'react-bootstrap';
const IconButton = ({ onClick, glyph, ...rest }) => (
<Button onClick={onClick} {...rest}>
<Glyphicon glyph={glyph} />
</Button>
);
IconButton.propTypes = {
onClick: PropTypes.func.isRequired,... |
src/pages/index.js | kleneway/replayqa | import React from 'react';
import logo from '../img/webapp.png';
import * as firebase from 'firebase';
import reactGA from 'react-ga';
var config = {
apiKey: 'AIzaSyCYmjmHnpdUXaocVbRTDjID1SIEhn3G-aw',
authDomain: 'replay-qa-landing-page.firebaseapp.com',
databaseURL: 'https://replay-qa-landing-page.firebaseio.co... |
src/loadaction.js | nicocrm/f1-redux-utils | import React from 'react';
// private
export function actionContainer(onLoadAction, onUnloadAction, autoConnect) {
const wrapper = function wrapper(WrappedComponent) {
class LoadActionContainer extends React.Component {
componentWillMount() {
this.invokeAction(onLoadAction)
}
component... |
src/views/pages/Demo/index.js | munza/react-reducks-starter | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { demoOperations } from '../../../state/ducks/demo';
import { Counter } from '../../../components';
import './styles.css';
class DemoPage extends Component {
render() {
return (
... |
src/components/App.js | anjren/UncleChenWebsite | import React from 'react';
import { Route, Switch } from 'react-router-dom';
// Base Component
import Layout from './Layout';
// Page Components
import MainPage from './MainPage';
import ProductsPage from './ProductsPage';
import ProductsGridPage from './ProductsGridPage';
import RecipesPage from './RecipesPage';
imp... |
Paths/React/05.Building Scalable React Apps/9-react-boilerplate-building-scalable-apps-m9-exercise-files/After/app/components/Link/index.js | phiratio/Pluralsight-materials | /**
*
* Link
*
*/
import React from 'react';
import styles from './styles.css';
function Link({ link }) {
return (
<div className={styles.link}>
<div
className={styles.votingContainer}
>
<div
className={styles.votingCount}
>
{link.voteCount}
</di... |
src/components/reported_selector.js | deepdeev/nocrime-frontend | import React from 'react';
const ReportedSelector = (props) => (
<span >
<label>{props.title}</label>
<span >
{props.options.map(option => {
return (
<label key={option}>
<input className="space"
name={props.setName}
onChange={props.controlFunc}
value={option}
checked... |
packages/material-ui-icons/src/LocalCarWashSharp.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="M18.58 7H5.43L3 14v9h3v-2h12v2h3v-9l-2.42-7zM6.5 18c-.83 0-1.5-.67-1.5-1.5S5.67 15 6.5 15s1.5.67 1.5 1.5S7.33 18 6.5 18zm11 0c-.83 0-1.5-.67-1.5... |
docs/app/components/layout/home/index.js | VACO-GitHub/vaco-components-library | import React from 'react';
import { Link } from 'react-router';
import Button from 'react-toolbox/button';
import Logo from '../../logo';
import Navigation from '../../navigation';
import style from './style';
const GithubIcon = () => (
<svg viewBox="0 0 284 277">
<g><path d="M141.888675,0.0234927555 C63.5359948... |
app/src/components/MyComponents/Toast.js | fikrimuhal/animated-potato | import React from 'react'
import Snackbar from 'material-ui/Snackbar';
export default class Toast extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div>
<Snackbar
open={this.props.settings.open}
message={this.props.settings.message}
... |
js/jquery.js | haritha28/myScrap | /*! jQuery v1.11.1 | (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... |
ajax/libs/babel-core/5.0.3/browser.min.js | wout/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;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.babel=e()}}(function(){var e,t,n;return function r(e,t,... |
packages/material-ui-icons/src/PregnantWomanTwoTone.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M9 4c0-1.11.89-2 2-2s2 .89 2 2-.89 2-2 2-2-.89-2-2zm7 9c-.01-1.34-.83-2.51-2-3 0-1.66-1.34-3-3-3s-3 1.34-3 3v7h2v5h3v-5h3v-4z" /></React.Fragment>
, 'PregnantWomanTwoTone');
|
src/components/letter.js | barrierandco/barrierandco | import React from 'react'
import styled from 'styled-components'
import portrait from '../assets/images/jw-portrait.jpg'
import signature from '../assets/images/jw-signature.png'
const Container = styled.div`
margin-top: 56px;
@media ${props => props.theme.breakpoint} {
margin-top: 80px;
}
&::after {
c... |
src/svg-icons/action/thumb-down.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionThumbDown = (props) => (
<SvgIcon {...props}>
<path d="M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.5... |
ajax/libs/yui/3.17.1/datatable-body/datatable-body-debug.js | cnbin/cdnjs | /*
YUI 3.17.1 (build 0eb5a52)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base... |
src/svg-icons/action/view-day.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewDay = (props) => (
<SvgIcon {...props}>
<path d="M2 21h19v-3H2v3zM20 8H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zM2 3v3h19V3H2z"/>
</SvgIcon>
);
ActionViewDay = pure(A... |
app/App.js | uyennguyen87/my-follow-react-pro-ebook | import React, { Component } from 'react';
import {render} from 'react-dom';
import KanbanBoard from './KanbanBoard';
import 'whatwg-fetch';
import 'babel-polyfill';
import update from 'react-addons-update';
/*
const API_URL = 'http://kanbanapi.pro-react.com';
const API_HEADERS = {
'Content-Type': 'application/json',... |
packages/material-ui-icons/src/FontDownloadRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M9.93 13.5h4.14L12 7.98 9.93 13.5zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-4.29 15.88l-.9-2.38H9.17l-.89 2.37c-.14.38-.5.63-.91.63-.68 0-1.15-.69-.9-1.32l4.25-10.8... |
docs/src/pages/premium-themes/instapaper/components/molecules/ListItem.js | Kagami/material-ui | import React from 'react';
import cx from 'classnames';
import MuiListItem from '@material-ui/core/ListItem';
import { LIST_ITEM } from '../../theme/core';
const ListItem = ({
className,
header,
headerLabel,
headerActionable,
category,
subcategory,
active,
...props
}) => (
<MuiListItem
className=... |
__tests__/index.ios.js | githubhaohao/DevNews | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
modules/Route.js | upraised/react-router | import React from 'react'
import warning from 'warning'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { component, components } from './PropTypes'
const { string, bool, func } = React.PropTypes
/**
* A <Route> is used to declare which components are rendered to t... |
src/IconTabMenu/index.js | christianalfoni/ducky-components | import IconAvaWrapper from '../IconAvaWrapper';
import Tooltip from '../Tooltip';
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import styles from './styles.css';
class IconTabMenu extends React.Component {
handleTabClick(index) {
this.props.changeTab(index... |
ajax/libs/react/0.11.1/react.min.js | wallin/cdnjs | /**
* React v0.11.1
*
* Copyright 2013-2014 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 app... |
__tests__/index.ios.js | LetsBuildSomething/vmag_mobile | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
platforms/Microsoft.NET/Samples/Durandal.Samples/Scripts/jquery-1.9.1.min.js | rwhepburn/Durandal | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){retur... |
ajax/libs/yui/3.0.0pr2/loader/loader-debug.js | sympmarc/cdnjs | /**
* Loader dynamically loads script and css files. It includes the dependency
* info for the version of the library in use, and will automatically pull in
* dependencies for the modules requested. It supports rollup files and will
* automatically use these when appropriate in order to minimize the number of
* ... |
site/components/NavBar.js | jowcy/react-dnd | import React from 'react';
import { DOCS_DEFAULT, EXAMPLES_DEFAULT } from '../Constants';
import './NavBar.less';
const GITHUB_URL = 'https://github.com/gaearon/react-dnd';
const DOCS_LOCATION = DOCS_DEFAULT.location;
const EXAMPLES_LOCATION = EXAMPLES_DEFAULT.location;
export default class NavBar {
render() {
... |
examples/_drag-around-naive/index.js | prometheusresearch/react-dnd | 'use strict';
import React from 'react';
import LinkedStateMixin from 'react/lib/LinkedStateMixin';
import Container from './Container';
import { Link } from 'react-router';
const DragAroundNaive = React.createClass({
mixins: [LinkedStateMixin],
getInitialState() {
return {
hideSourceOnDrag: false
... |
src/client/main/action/_WrappedActionBox.js | leagueofcake/Project-Resistance | import React from 'react';
import ActionBox from './ActionBox';
const WrappedActionBox = ({ actionType, data, showButtons }) => (
<div className="container">
<ActionBox actionType={actionType} data={data} showButtons={showButtons} />
</div>
);
export default WrappedActionBox; |
app/components/DhtSkipList.js | lmatteis/peer-tweet | import React, { Component } from 'react';
var bencode = require('bencode')
var JSONB = require('json-buffer')
import { DhtStore, dht, opts} from '../api/DhtStore'
import Tweet from './Tweet'
import SkipList from './SkipList'
import { currentPageStore, tweetsStore } from '../stores'
export default class DhtSkipList ext... |
packages/material-ui-icons/src/LaptopChromebook.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M22 18V3H2v15H0v2h24v-2h-2zm-8 0h-4v-1h4v1zm6-3H4V5h16v10z" /></React.Fragment>
, 'LaptopChromebook');
|
__tests__/index.android.js | m7775223/MyRNProject | 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/Controls.js | SilverNemesis/fcc-pomodoro | import React from 'react'
class Controls extends React.Component {
constructor(props) {
super(props)
this.onPause = this.onPause.bind(this)
this.onReset = this.onReset.bind(this)
}
onPause(event) {
this.props.onPause()
}
onReset(event) {
this.props.onReset... |
ajax/libs/highcharts/3.0.9/highcharts.src.js | dannyxx001/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v3.0.9 (2014-01-15)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout... |
Examples/UIExplorer/UIExplorerApp.ios.js | geoffreyfloyd/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,
... |
react-focus-within/components/Form.js | okonet/slides | import React from 'react';
import styled from 'styled-components'
import Stack from 'stack-styled'
const Form = styled(Stack)`
padding: 2rem;
&:focus-within {
background: yellow;
}
`;
export default Form |
app/javascript/mastodon/features/compose/components/upload_form.js | 8796n/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import IconButton from '../../../components/icon_button';
import { defineMessages, injectIntl } from 'react-intl';
import UploadProgressContainer from '../containers/upload_progress_container';
imp... |
src/utils/cloneChildren.js | react-mdl/react-mdl | import React from 'react';
export default (children, props) =>
React.Children.map(children, child => {
if (!child) return child;
const newProps = typeof props === 'function' ? props(child) : props;
return React.cloneElement(child, newProps);
});
|
ajax/libs/react-redux/4.4.3/react-redux.min.js | nolsherry/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("redux")):"function"==typeof define&&define.amd?define(["react","redux"],e):"object"==typeof exports?exports.ReactRedux=e(require("react"),require("redux")):t.ReactRedux=e(t.React,t.Redux)}(this,function(t,e){retu... |
16/notes/src/pages/notes/NoteList.js | nanohop/hop_into_react | import React, { Component } from 'react';
import { PageHeader, Button, ListGroup } from 'react-bootstrap';
import FontAwesome from 'react-fontawesome';
import NoteItem from './NoteItem';
class NoteList extends Component {
render() {
if(!this.props.loaded) {
return (
<div className="loading">Load... |
ajax/libs/react-native-web/0.15.7/cjs/modules/useHover/index.js | cdnjs/cdnjs | "use strict";
exports.__esModule = true;
exports.default = useHover;
var _modality = require("../modality");
var _useEvent = _interopRequireDefault(require("../useEvent"));
var _useLayoutEffect = _interopRequireDefault(require("../useLayoutEffect"));
function _interopRequireDefault(obj) { return obj && obj.__esMod... |
bbs/static/js/lib/jquery-1.10.2.min.js | puras/moobo | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
src/client/app/createactions.js | Tzitzian/Oppex | import Component from '../components/component.react';
import React from 'react';
import fetch from 'isomorphic-fetch';
import {createValidate} from '../validate';
import * as authActions from '../auth/actions';
import * as todosActions from '../todos/actions';
const actions = [authActions, todosActions];
export def... |
app/routes/method-type/ShowRoute.js | ryrudnev/dss-wm | import React from 'react';
import Helmet from 'react-helmet';
import { Route } from '../../core/router';
import { Model as MethodType } from '../../entities/MethodType';
import { Deferred } from '../../util/utils';
import NavLink from '../../components/NavLink';
import Progress from 'react-progress-2';
import { PageHea... |
src/client/assets/js/features/nodes/components/svg/Wire.js | me-box/platform-sdk | import React, { Component } from 'react';
import {NODE_WIDTH, NODE_HEIGHT, LINE_CURVE_SCALE, OUTPUT_GAP} from 'constants/ViewConstants';
export default class Wire extends Component {
constructor(props){
super(props);
this._path = this._path.bind(this);
}
_simplepath(){
const {x:s... |
src/svg-icons/image/brush.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrush = (props) => (
<SvgIcon {...props}>
<path d="M7 14c-1.66 0-3 1.34-3 3 0 1.31-1.16 2-2 2 .92 1.22 2.49 2 4 2 2.21 0 4-1.79 4-4 0-1.66-1.34-3-3-3zm13.71-9.37l-1.34-1.34c-.39-.39-1.02-.39-1.41 0L9 12.25... |
scripts/SellerRating.js | krulmacius/sdasdasdasfgasdawsdwadawd | import React from 'react';
import StarRatings from 'react-star-ratings';
class SellerRating extends React.Component {
constructor(props){
super(props);
this.state = {
rating: 0
}
this.changeRating = this.changeRating.bind(this);
}
changeRating(newRating)
... |
src/pages/conference/topic/topicDetail/topicDetail.js | sunway-official/acm-admin | import React, { Component } from 'react';
import { RaisedButton } from 'material-ui';
import { Field, reduxForm } from 'redux-form';
import { compose } from 'react-apollo';
import { connect } from 'react-redux';
import { Col, Grid, Row } from 'react-flexbox-grid';
import { renderField } from '../../../../utils';
import... |
test/test-0.10.5.js | wkh237/react-native-fetch-blob-dev | import RNTest from './react-native-testkit/'
import React from 'react'
import _ from 'lodash'
import RNFetchBlob from 'react-native-fetch-blob'
import {
StyleSheet,
Text,
View,
ScrollView,
Linking,
Platform,
Dimensions,
BackAndroid,
AsyncStorage,
Image,
} from 'react-native';
import ImagePicker from... |
packages/material-ui-icons/lib/LocalShippingOutlined.js | mbrookes/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")... |
src/DatePicker/DatePicker.js | Paratron/modoJS | import React from 'react';
import Button from '../Button';
import Card from '../Card';
import TextInput from '../TextInput';
import {dateToString} from '../utils/dateFormatter';
import MonthSelector from '../MonthSelector';
import Calendar from '../Calendar';
const propTypes = {};
const travelUp = (node, classNam... |
YEAR 3/SEM 1/MOBILE/mobile_exam_prep/components/SimpleComments/SimpleComments.js | Zephyrrus/ubb | import React, { Component } from 'react';
import {
RefreshControl,
ScrollView,
StyleSheet,
Platform,
View
} from 'react-native';
import Comment from './Comment';
import Input from './Input';
import PropTypes from 'prop-types'
export default class SimpleComments extends Component {
static propTypes = {
... |
frontend/src/System/Tasks/Scheduled/ScheduledTaskRow.js | lidarr/Lidarr | import moment from 'moment';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import SpinnerIconButton from 'Components/Link/SpinnerIconButton';
import TableRowCell from 'Components/Table/Cells/TableRowCell';
import TableRow from 'Components/Table/TableRow';
import { icons } from 'Helpers/P... |
src/client.js | szhclaye/react-redux-universal-hot-example | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel/polyfill';
import React from 'react';
import BrowserHistory from 'react-router/lib/BrowserHistory';
import Location from 'react-router/lib/Location';
import queryString from 'query-string';
import cre... |
ajax/libs/webshim/1.15.5/dev/shims/es6.js | schoren/cdnjs | // ES6-shim 0.15.0 (c) 2013-2014 Paul Miller (http://paulmillr.com)
// ES6-shim may be freely distributed under the MIT license.
// For more details and documentation:
// https://github.com/paulmillr/es6-shim/
webshim.register('es6', function($, webshim, window, document, undefined){
'use strict';
var isCallableW... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.