path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
docs-ui/components/seenByList.stories.js | beeftornado/sentry | import React from 'react';
import {number, string} from '@storybook/addon-knobs';
import {withInfo} from '@storybook/addon-info';
import SeenByList from 'app/components/seenByList';
const USER = {
id: 1,
name: 'Jane Bloggs',
email: 'janebloggs@example.com',
};
export default {
title: 'UI/SeenByList',
};
exp... |
src/views/posterVideos.js | planigan/resource-center | import _ from 'lodash'
import React from 'react'
import { posterVideos } from '../data/posterVideosData'
import '../styles/video.css'
const PosterVideos = () => {
return (
<div className='container'>
<div className='row'>
<div className='col s12 flow-text'>
<h2>Poster Video Tutorials</h2>... |
src/routes/setting/Setting.js | ducthuan-2712/To-Do | /*
* @flow
*/
import React, { Component } from 'react';
import { Helmet } from "react-helmet";
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
// container
import Invite from './container/invite';
import './Setting.css';
// test data
import graphQL from '../../local_databas... |
resources/assets/js/Pages/Home.js | jung3o/VacStatus | 'use strict';
import React from 'react';
import { Link } from 'react-router';
import BasicComp from '../BasicComp';
export default class Home extends BasicComp {
componentDidMount() {
this.fetchMain();
}
fetchMain() {
this.request.fetchMain = $.ajax({
url: '/api/v1/',
dataType: 'json',
success: (data... |
src/index.js | gronda-team/react-searchable-select | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/scripts/views/form/index.js | JanKuukkanen/Oauth-client-react | import page from 'page';
import React from 'react';
import Broadcaster from '../../components/broadcaster';
import FormData from '../../views/form/form-map';
import BroadcastAction from '../../actions/broadcast';
/**
*
*/
export default React.createClass({
mixins: [ React.addons.LinkedStateMixin ],
p... |
src/styles/style.js | SiverDX/siverdx.github.io | import React from 'react';
import PropTypes from 'prop-types';
const link = {
normal: {
borderBottom: '1px dotted rgb(0, 168, 0)',
},
hover: {
borderBottom: '1px solid rgb(0, 168, 0)',
color: 'black',
},
active: 'hover',
touchActive: {
borderBottom: '1px dashed rgb(0, 168, 0)',
color: '... |
src/com/header/whatsup/whatsup.js | local-minimum/ludumdare | import {h, Component} from 'preact/preact';
import UIIcon from 'com/ui/icon/icon';
import UILink from 'com/ui/link/link';
export default class HeaderWhatsup extends Component {
constructor( props ) {
super(props);
}
render( props ) {
let {node, user, path, extra, featured} = props;
if ( featu... |
spec/react/tooltip/tooltip_trigger.spec.js | pivotal-cf/pivotal-ui | import React from 'react';
import ReactDOM from 'react-dom';
import $ from 'jquery';
import {TooltipTrigger} from '../../../src/react/tooltip';
jest.useFakeTimers();
describe('TooltipTrigger Component', () => {
const renderComponent = (props, triggerContent) => ReactDOM.render(
<TooltipTrigger {...props}>
... |
actor-apps/app-web/src/app/utils/require-auth.js | Jeremy-Meng/actor-platform | import React from 'react';
import LoginStore from 'stores/LoginStore';
export default (Component) => {
return class Authenticated extends React.Component {
static willTransitionTo(transition) {
if (!LoginStore.isLoggedIn()) {
transition.redirect('/auth', {}, {'nextPath': transition.path});
}... |
ajax/libs/forerunnerdb/1.3.532/fdb-core+views.min.js | pvnr0082t/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
src/frontend/components/__tests__/Input.tests.js | jsonnull/aleamancer | // @flow
import React from 'react'
import renderer from 'react-test-renderer'
import Input from 'frontend/components/Input'
describe('Input component', () => {
it('renders correctly', () => {
const tree = renderer.create(<Input />).toJSON()
expect(tree).toMatchSnapshot()
})
})
|
src/js/components/icons/base/Services.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... |
packages/ringcentral-widgets-docs/src/app/pages/Components/MeetingPanel/Demo.js | u9520107/ringcentral-js-widget | import React from 'react';
// eslint-disable-next-line
import MeetingPanel from 'ringcentral-widgets/components/MeetingPanel';
import MeetingScheduleButton from 'ringcentral-widgets/components/MeetingScheduleButton';
const props = {};
props.update = () => null;
props.invite = () => null;
props.init = () => null;
props... |
examples/todo/js/app.js | SBUtltmedia/relay | /**
* This file provided by Facebook is 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,
* FITNES... |
ajax/libs/forerunnerdb/1.3.773/fdb-legacy.js | pvnr0082t/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... |
src/components/CompetitionPage.js | ChromeQ/lms | import React, { Component } from 'react';
import Moment from 'react-moment';
import moment from 'moment';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import { getCompetitionDetails } from '../actions/actionCreators';
import '../css/CompetitionPage.css';
import Card from './Card';
im... |
client/views/omnichannel/directory/chats/contextualBar/PriorityField.js | VoiSmart/Rocket.Chat | import { Box } from '@rocket.chat/fuselage';
import React from 'react';
import { useTranslation } from '../../../../../contexts/TranslationContext';
import { useEndpointData } from '../../../../../hooks/useEndpointData';
import { AsyncStatePhase } from '../../../../../lib/asyncState';
import Field from '../../../compo... |
Emotion/Emotion.React-Native/End/AzureEmotions/index.js | mkmann/techdays-hackathon | import React, { Component } from 'react';
import {AppRegistry, View, Text, Image, ActivityIndicator, StyleSheet } from 'react-native';
import Camera from 'react-native-camera'; //Camera component
import RNFetchBlob from 'react-native-fetch-blob'; //Library for fetching local files and sending bianry data
const API_KE... |
admin/client/App/index.js | jstockwin/keystone | /**
* This is the main entry file, which we compile the main JS bundle from. It
* only contains the client side routing setup.
*/
// Needed for ES6 generators (redux-saga) to work
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, browserHistory, IndexRoute... |
ajax/libs/angular-google-maps/1.1.4/angular-google-maps.js | BenjaminVanRyseghem/cdnjs | /*! angular-google-maps 1.1.4 2014-06-19
* AngularJS directives for Google Maps
* git: https://github.com/nlaplante/angular-google-maps.git
*/
/*
!
The MIT License
Copyright (c) 2010-2013 Google, Inc. http://angularjs.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softwa... |
redux-demo/real-world/src/containers/DevTools.js | zhangjunhd/react-examples | import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
export default createDevTools(
<DockMonitor toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-w">
<LogMonitor />
... |
examples/js/column-filter/date-filter-with-default-value.js | AllenFang/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-unused-vars: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
const startDate = new Date(2015, 0, 1);
const endDate = new Date();
... |
src/client/layout.js | retrixe/Area51 | import React from 'react'
import PropTypes from 'prop-types'
import { AppBar, Toolbar, Typography } from '@material-ui/core'
const Layout = ({ children }) => (
<>
<AppBar>
<Toolbar>
<Typography variant='h6'>Area51</Typography>
</Toolbar>
</AppBar>
<div style={{ padding: 8, marginTop: ... |
Mr.Mining/MikeTheMiner/Santas_helpers/Sia_wallet/resources/app/plugins/Wallet/js/components/lockbutton.js | patel344/Mr.Miner | import React from 'react'
const LockButton = ({actions}) => {
const handleLockButtonClick = () => actions.lockWallet()
return (
<div className="lock-button" onClick={handleLockButtonClick}>
<i className="fa fa-lock fa-2x" />
<span>Lock Wallet</span>
</div>
)
}
export default LockButton
|
src/components/icons/RainShowerIcon.js | maximgatilin/weathernow | import React from 'react';
export default function RainShowerIcon() {
return (
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 129.97 128.29"><title>rain-shower</title><path d="M1019.64,208.61h0c0-.25,0-0.5,0-0.75a36.25,36.25,0,1,0-72.51,0s0,0,0,.07a29.59,29.59,0,0,0,1.39,59.1... |
node_modules/react-native/Libraries/ReactNative/AppRegistry.js | jasonlarue/react-native-flashcards | /**
* 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.
*
* @provides... |
web/css/external/jquery/jquery.js | rgies/agile-dashboard | /*!
* jQuery JavaScript Library v1.10.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-03T13:48Z
*/
(function( window, undefined ) {
// ... |
src/index.js | dimaka77/ReduxSimpleStarter | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware()(createStore);
ReactDOM.render(
<Provi... |
client/www/lib/auth0-lock/src/ui/box/multisize_slide.js | pymelibre/age-of-companies | import React from 'react';
import ReactDOM from 'react-dom';
import CSSCore from 'fbjs/lib/CSSCore';
export default class Slider extends React.Component {
constructor(props) {
super(props);
this.state = {children: {current: props.children}};
}
componentWillReceiveProps(nextProps) {
// TODO: take a p... |
ajax/libs/preact/5.0.1-beta.14/preact.js | dakshshah96/cdnjs | !function(global, factory) {
'object' == typeof exports && 'undefined' != typeof module ? factory(exports) : 'function' == typeof define && define.amd ? define([ 'exports' ], factory) : factory(global.preact = global.preact || {});
}(this, function(exports) {
function VNode(nodeName, attributes, children) {
... |
src/components/panel-feature.js | maxmalynowsky/situational-awareness-map | import React, { Component } from 'react';
import Radium from 'radium';
import ScrollArea from 'react-scrollbar';
import types from '../constants/action-types.js';
import store from '../store.js';
import styles from '../styles.js';
import PanelFeatureItem from './panel-feature-item.js';
@Radium
export default class Fea... |
Component/Mine/Setting.js | outman1992/Taoertao | /**
* Created by 58484 on 2016/10/9.
*/
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity
} from 'react-native';
var Common = require('../Common/Common')... |
src/components/Notification.js | hannupekka/cocheck | // @flow
import styles from 'styles/components/Notification.less';
import React from 'react';
import { pure } from 'recompose';
import type { Component } from 'recompose';
import CSSModules from 'react-css-modules';
type Props = {
data: NotificationData,
onDismiss: (notificationId: string) => ThunkAction,
};
cons... |
test/utils/CustomPropTypesSpec.js | mcraiganthony/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import CustomPropTypes from '../../src/utils/CustomPropTypes';
describe('CustomPropTypes', function() {
describe('mountable', function () {
function validate(prop) {
return CustomPropTypes.mountable({p: prop}, 'p', 'Componen... |
examples/redirect-using-index/app.js | CivBase/react-router | import React from 'react';
import { Router, Route, IndexRoute, Link } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
{this.props.children}
</div>
);
}
});
var Index = React.createClass({
render () {
return (
<div>
<h1>You should not se... |
packages/strapi-admin/files/public/app/components/LeftMenuHeader/index.js | evian42/starpies | /**
*
* LeftMenuHeader
*
*/
import React from 'react';
import { Link } from 'react-router';
import styles from './styles.scss';
class LeftMenuHeader extends React.Component { // eslint-disable-line react/prefer-stateless-function
render() {
return (
<div className={styles.leftMenuHeader}>
<Link t... |
app/javascript/mastodon/features/list_adder/components/list.js | Kirishima21/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import IconButton from '../../../components/icon_button';
import { defineMessages, inject... |
ajax/libs/material-ui/4.9.2/esm/Tooltip/Tooltip.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import React from 'react';... |
packages/react-devtools-shared/src/devtools/views/ErrorBoundary/githubAPI.js | facebook/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
*/
export type GitHubIssue = {|
title: string,
url: string,
|};
const GITHUB_ISSUES_API = 'https://api.github.com/se... |
packages/ringcentral-widgets-docs/src/app/pages/Components/CallAvatar/Demo.js | ringcentral/ringcentral-js-widget | import React from 'react';
// eslint-disable-next-line
import CallAvatar from 'ringcentral-widgets/components/CallAvatar';
import styles from './styles.scss';
const props = {};
// props.isOnConferenceCall = true;
// props.extraNum = 2;
props.avatarUrl = null;
// 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9Gc... |
src/scenes/App/index.js | jsza/tempus-website | import React from 'react'
import ReactModal from 'react-modal'
import {withRouter, Route} from 'react-router-dom'
import Home from './scenes/Home'
import Maps from './scenes/Maps'
import MapOverview from './scenes/MapOverview'
import PlayerOverview from './scenes/PlayerOverview'
import PlayerLeaderboards from './sce... |
app/components/__tests__/BookAuthorInput.spec.js | w1nston/bookshelf | /* global define, it, describe, expect, jest */
import React from 'react';
import { shallow } from 'enzyme';
import BookAuthorInput from '../BookAuthorInput';
import TextInput from '../TextInput';
describe('BookAuthorInput', () => {
it('renders a TextInput component', () => {
const component = shallow(<BookAutho... |
node_modules/antd/lib/validation/index.js | rekyyang/ArtificalLiverCloud | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
src/js/membership/components/signin.js | akornatskyy/sample-blog-react-redux | import React from 'react';
import PropTypes from 'prop-types';
import {Link} from 'react-router-dom';
import {Card, FormGroup, FormControl, Button} from 'react-bootstrap';
import Errors from '../../shared/components/errors';
import Layout from '../../shared/components/layout';
import SignUpWell from '../../shared/comp... |
packages/bonde-admin/src/components/editor-wysihtml/wysihtml-toolbar-insert-html.spec.js | ourcities/rebu-client | /* eslint-disable no-unused-expressions */
import React from 'react'
import { shallow } from 'enzyme'
import { expect } from 'chai'
import { WYSIHTMLToolbarInsertHTML } from '@/components/editor-wysihtml'
describe('client/components/editor-wysihtml/wysihtml-toolbar-insert-html', () => {
let wrapper
const props = ... |
app/components/Button.js | yneves/atom-orbital-command | 'use babel';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import autoBind from 'class-autobind';
export default class Button extends Component {
static propTypes = {
icon: PropTypes.string,
octicon: PropTypes.string,
spin: PropTypes.b... |
app/javascript/mastodon/features/list_editor/components/edit_list_form.js | ashfurrow/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { changeListEditorTitle, submitListEditor } from '../../../actions/lists';
import IconButton from '../../../components/icon_button';
import { defineMessages, injectIntl } from 'react-intl';
const messages = def... |
ajax/libs/phaser/2.0.1/custom/p2.js | RoryStolzenberg/cdnjs | /**
* The MIT License (MIT)
*
* Copyright (c) 2013 p2.js authors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to ... |
src/routes/User/container.js | Peturman/resume-app | import { connect } from 'react-redux'
import React from 'react'
import * as actions from './actions'
const mapDispatchToProps = {
...actions
}
const mapStateToProps = (state) => ({
user: state.user
})
const Container = (props) => {
const { children, ...others } = props
return React.cloneElement(children, othe... |
src/pages/User/components/PullRequests/UserShare.js | jenkoian/hacktoberfest-checker | import React from 'react';
const UserShare = () => {
Tw();
Fb();
return <div id="fb-root"></div>;
};
function Tw() {
window.twttr = (function (d, s, id) {
var js,
fjs = d.getElementsByTagName(s)[0],
t = window.twttr || {};
if (d.getElementById(id)) return t;
js = d.createElement(s);
... |
tests/boilerplate_test.js | efegurkan/interval-picker | // import React from 'react';
// import {
// renderIntoDocument,
// findRenderedDOMComponentWithClass,
// findRenderedDOMComponentWithTag,
// Simulate
//} from 'react-addons-test-utils';
describe('Boilerplate', function() {
it('should do boilerplate things', function() {
// TODO: test something now
e... |
App/node_modules/react-navigation/src/views/Drawer/DrawerNavigatorItems.js | Dagers/React-Native-Differential-Updater | /* @flow */
import React from 'react';
import { View, Text, Platform, StyleSheet } from 'react-native';
import TouchableItem from '../TouchableItem';
import type {
NavigationScreenProp,
NavigationState,
NavigationAction,
NavigationRoute,
Style,
} from '../../TypeDefinition';
import type { DrawerScene, Draw... |
graduate01/WebRoot/media/js/jquery-1.10.1.min.js | music60/graduate01 | /*! jQuery v1.10.1 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.1.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.1",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnPropert... |
examples/with-stencil/packages/web-app/pages/_app.js | zeit/next.js | import React from 'react'
import App from 'next/app'
import { applyPolyfills, defineCustomElements } from 'test-component/loader'
export default class MyApp extends App {
componentDidMount() {
applyPolyfills().then(() => {
defineCustomElements(window)
})
}
render() {
const { Component, pagePr... |
packages/mineral-ui-icons/src/IconLineStyle.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconLineStyle(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProp... |
src/routes/Builder/components/RapSheetTrait.js | DaveSpringer/bmg-rap-sheets | import React from 'react'
import './style/RapSheetTrait.scss'
class RapSheet extends React.Component {
render () {
return (
<div className='rapSheetTrait'>
<div className='traitHeader'>
<div className='traitName'>
{this.props.trait.name} {this.props.trait.cost}
</div... |
Guellcom/calculadora/www/js/jquery-latest.min.js | sergiolucas/Projects | /*! 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... |
Oncoscape/inst/scripts/gbmPathways/curatedGBMVizmap.js | LisaMc/Oncoscape | curatedGBMVizmap = [ {
"format_version" : "1.0",
"generated_by" : "cytoscape-3.1.0",
"target_cytoscapejs_version" : "~2.1",
"title" : "GBMcurated",
"style" : [ {
"selector" : "node",
"css" : {
"text-valign" : "center",
"text-halign" : "center",
"font-size" : 60,
"background-col... |
build/ui/af.ui.jquery.js | nosun/appframework | /*! intel-appframework - v2.1.0 - 2014-12-17 */
/**
* jq.appframework.js
* @copyright Intel 2013
* @author Ian Maffett
* @description A plugin to allow jQuery developers to use App Framework UI
*/
/* jshint eqeqeq:false */
(function($,window){
"use strict";
jQuery.event.props.push("touches");
jQuery.e... |
packages/material-ui-icons/src/CancelScheduleSendSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M16.5 9c-.42 0-.83.04-1.24.11L1.01 3 1 10l9 2-9 2 .01 7 8.07-3.46C9.59 21.19 12.71 24 16.5 24c4.14 0 7.5-3.36 7.5-7.5S20.64 9 16.5 9zm0 13c-3.03 0-5.5-2.47-5.5-5.5s2.47-5.5 5.5-5.5 5.5... |
node_modules/react-router/lib/IndexRoute.js | tacrow/tacrow | 'use strict';
exports.__esModule = true;
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _routerWarning = require('./routerWarning');
var _routerWarning2 = _interopRequireDefault(_routerWarning);
var _invariant = require('invariant');
var _invariant2 = _interopRequireDefault(_inv... |
app/javascript/mastodon/features/getting_started/index.js | sylph-sin-tyaku/mastodon | import React from 'react';
import Column from '../ui/components/column';
import ColumnLink from '../ui/components/column_link';
import ColumnSubheading from '../ui/components/column_subheading';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import Prop... |
packages/lightning-core/common/NavFooterAccount.js | DaReaper/lightning-app | import React from 'react'
import { hover as h } from 'reactcss'
import { Link } from 'react-router-dom'
import { SidebarItem } from 'lightning-components'
export const NavFooterAccount = ({ identity, hover }) => {
return (
<Link to={ '/accounts' } style={{ textDecoration: 'none' }}>
<SidebarItem
i... |
src/svg-icons/av/album.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvAlbum = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 14.5c-2.49 0-4.5-2.01-4.5-4.5S9.51 7.5 12 7.5s4.5 2.01 4.5 4.5-2.01 4.5-4.5 4.5zm0-5.5c-... |
jsx/modules/routes.js | NickTaporuk/webpack_starterkit_project | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './App';
import About from './About';
import Repos from './Repos';
import Repo from './Repo';
import Home from './Home';
module.exports = (
<Route path="/" component={App}>
<IndexRoute component={Home}/>
<R... |
src/package/plugins/slate-strikethrough-plugin/StrikethroughButton.js | abobwhite/slate-editor | import React from 'react'
import FontAwesome from 'react-fontawesome'
import classnames from 'classnames'
import { Button} from '../../components/button'
import { strikethroughMarkStrategy, hasMark } from './StrikethroughUtils'
const StrikethroughButton = ({ state, onChange, changeState, className, style, type }) => ... |
src/svg-icons/action/view-headline.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewHeadline = (props) => (
<SvgIcon {...props}>
<path d="M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"/>
</SvgIcon>
);
ActionViewHeadline = pure(ActionViewHeadline);
ActionViewHeadline.d... |
basic/node_modules/react/lib/ServerReactRootIndex.js | jintoppy/react-training | /**
* 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 directory.
*
* @providesModule ... |
modules/Router.js | pjuke/react-router | import React from 'react'
import warning from 'warning'
import createHashHistory from 'history/lib/createHashHistory'
import { createRoutes } from './RouteUtils'
import RoutingContext from './RoutingContext'
import useRoutes from './useRoutes'
import { routes } from './PropTypes'
const { func, object } = React.PropTyp... |
react/react-redux/src/index.js | fishjar/gabe-study-notes | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
ajax/libs/rxjs-dom/5.0.0/rx.dom.js | ColinEberhardt/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,
'undefined': false
};
var ... |
src/Tab.js | mattBlackDesign/react-materialize | import React from 'react';
import PropTypes from 'prop-types';
// This is just a holder for the props and children for tab, thus
// there is no logic here.
class Tab extends React.Component {
render () {
return null;
}
}
Tab.propTypes = {
/**
* The title shown in the tabs list
*/
title: PropTypes.node... |
server/priv/js/components/Graph.react.js | alinpopa/mzbench | import React from 'react';
import moment from 'moment';
import ImageLoader from 'react-imageloader';
import LoadingSpinner from './LoadingSpinner.react';
class Graph extends React.Component {
constructor(props) {
super(props);
this.state = {
loaded: false,
timestamp: Math.ra... |
js/jqwidgets/demos/react/app/datetimeinput/dropdownhorizontalalignment/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxDateTimeInput from '../../../jqwidgets-react/react_jqxdatetimeinput.js';
import JqxRadioButton from '../../../jqwidgets-react/react_jqxradiobutton.js';
class App extends React.Component {
componentDidMount() {
this.refs.rightAlign.on('... |
ajax/libs/yasr/2.4.5/yasr.bundled.min.js | CosmicWebServices/cdnjs | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){... |
client/src/app/__tests__/EmptyTabSpec.js | camunda/bpmn-io-modeler | /**
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership.
*
* Camunda licenses this file to you under the MIT; you may not use this ... |
docs/src/app/components/pages/components/Toggle/ExampleSimple.js | barakmitz/material-ui | import React from 'react';
import Toggle from 'material-ui/Toggle';
const styles = {
block: {
maxWidth: 250,
},
toggle: {
marginBottom: 16,
},
};
const ToggleExampleSimple = () => (
<div style={styles.block}>
<Toggle
label="Simple"
style={styles.toggle}
/>
<Toggle
label... |
src/svg-icons/device/access-alarm.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceAccessAlarm = (props) => (
<SvgIcon {...props}>
<path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-... |
src/__tests__/helper-intl.js | stefandressler/react-intl-rns | import React from 'react';
import { shallow, mount } from 'enzyme';
import {
IntlProvider,
intlShape,
addLocaleData
} from 'react-intl';
import en from 'react-intl/locale-data/en';
import sv from 'react-intl/locale-data/sv';
const supportedLocales = [...en, ...sv];
addLocaleData(supportedLocales);
export const w... |
ajax/libs/react-router/0.11.0/react-router.js | peteygao/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.ReactRouter=e()}}(function(){var define,module,export... |
src/home/CaseCount.js | zhangxin840/mobile-env | import React, { Component } from 'react';
import _ from 'lodash';
var CaseCount = React.createClass({
getInitialState: function() {
return {};
},
componentDidMount: function() {
},
onClick: function() {
var evt = new CustomEvent('onCaseClick', {
detail: {
device: this.props.device,
... |
SignalR.Reactive/SignalR.Reactive.Demo/Scripts/jquery-1.8.1.min.js | dff-solutions/SignalR.Reactive | /*! jQuery v@1.8.1 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d=... |
src/js/components/deployments/deployment-wizard/phasesettings.js | michaelatmender/gui | import React from 'react';
import pluralize from 'pluralize';
import { Add as AddIcon, Cancel as CancelIcon } from '@mui/icons-material';
import { Chip, Table, TableBody, TableCell, TableHead, TableRow, Select, MenuItem, Input, InputAdornment, IconButton } from '@mui/material';
import { useTheme } from '@mui/material/... |
src/components/Main.js | liyangda/gallery-by-react | require('normalize.css/normalize.css');
require('styles/App.scss');
import React from 'react';
import GalleryApp from '../sources/GalleryApp';
class AppComponent extends React.Component {
render() {
return (
<div className="stage">
<GalleryApp></GalleryApp>
</div>
);
}
}
AppComponent.... |
ajax/libs/forerunnerdb/1.3.869/fdb-all.js | joeyparrish/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... |
packages/material-ui-icons/src/PhonelinkOff.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0zm0 0h24v24H0z" /><path d="M22 6V4H6.82l2 2H22zM1.92 1.65L.65 2.92l1.82 1.82C2.18 5.08 2 5.52 2 6v11H0v3h17.73l2.35 2.35 1.27-1.27L3.89 3.62 1.92 1.65zM4 6.27L1... |
src/components/nav.js | kapz/anapaula.art | import React from 'react'
import styled from 'styled-components'
import Link from 'gatsby-link'
const Wrapper = styled.nav`
padding-left: 35px;
margin-top: 20px;
@media screen and (max-width: 768px) {
display: none;
position: fixed;
top: 0;
right: 0;
left: 0;
... |
node_modules/localtunnel/node_modules/debug/src/browser.js | pherodine/slate | /**
* This is the web browser implementation of `debug()`.
*
* Expose `debug()` as the module.
*/
exports = module.exports = require('./debug');
exports.log = log;
exports.formatArgs = formatArgs;
exports.save = save;
exports.load = load;
exports.useColors = useColors;
exports.storage = 'undefined' != typeof chrom... |
templates/rubix/node-seed/src/common/sidebar.js | jeffthemaximum/Teachers-Dont-Pay-Jeff | import React from 'react';
import {
Sidebar, SidebarNav, SidebarNavItem,
SidebarControls, SidebarControlBtn,
LoremIpsum, Grid, Row, Col, FormControl,
Label, Progress, Icon,
SidebarDivider
} from '@sketchpixy/rubix';
import { Link, withRouter } from 'react-router';
@withRouter
class ApplicationSidebar exten... |
src/apps/tabs/components/Post.react.js | producthunt/producthunt-chrome-extension | /**
* Dependencies.
*/
import React from 'react';
import analytics from '../../../common/analytics';
import sliceWithRest from '../util/sliceWithRest';
/**
* Post Component.
*
* Renders a post inside the default tab.
*
* Usage:
*
* ```js
* <Post post={post} />
* ```
*
* Properties:
*
* - `post`: Post f... |
src/components/LinkSpec.js | samlawrencejones/react-starter | import expect from 'expect'
import React from 'react'
import TestUtils from 'react-addons-test-utils'
import Link from './Link'
describe('link componenet', () => {
const linkText = 'foobar'
const setup = (active) => {
let props = {
active: active,
text: linkText,
onClick: expect.createSpy()
... |
app/javascript/mastodon/features/status/index.js | glitch-soc/mastodon | import Immutable from 'immutable';
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { createSelector } from 'reselect';
import { fetchStatus } from '../../actions/... |
admin/client/App/screens/Home/components/ListTile.js | matthewstyers/keystone | import React from 'react';
import { Link } from 'react-router';
/**
* Displays information about a list and lets you create a new one.
*/
var ListTile = React.createClass({
propTypes: {
count: React.PropTypes.string,
hideCreateButton: React.PropTypes.bool,
href: React.PropTypes.string,
label: React.PropType... |
src/Loading/Loading.js | yurizhang/ishow | /* @flow */
import React from 'react';
import PropTypes from 'prop-types';
import {default as Component} from '../Common/plugs/index.js'; //提供style, classname方法
import '../Common/css/Loading.css';
export default class Loading extends Component {
componentWillUnmount() {
this.enableScroll();
}
getStyle(){
... |
ajax/libs/flocks.js/0.17.1/flocks.js | jdh8/cdnjs |
/** @jsx React.DOM */
/* jshint node: true, browser: true, newcap: false */
/* eslint max-statements: 0, no-else-return: 0, brace-style: 0 */
/* eslint-env node,browser */
/**
* The Flocks library module. Load this module and use either the
* flocks <tt>flocks.createClass</tt> wrapper or the <tt>flocks... |
node_modules/reactify/node_modules/react-tools/src/browser/__tests__/ReactBrowserEventEmitter-test.js | 4lejandrito/react-sticky | /**
* 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 applicable law or agree... |
client/src/components/NoMatch.js | fmoliveira/rexql-boilerplate | import React from 'react'
import { FormatMessage } from 'react-easy-intl'
import Hero from './Hero'
export default () => (
<div>
<Hero title='This is embarassing!'/>
<div className='container container-main'>
<p><FormatMessage>We can't find the droid you're looking for.</FormatMessage></p>
<p><F... |
node_modules/react-icons/go/ruby.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const GoRuby = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m30 5h-20l-10 10 20 20 20-20-10-10z m-25 10l7.5-7.5h15l7.5 7.5-15 15-15-15z m22.5-5h-7.5v17.5l12.5-12.5-5-5z"/></g>
</Icon>
)
export default GoRuby
|
src/client/todos/todos.react.js | jirastom/react-learnig | import Component from '../components/component.react';
import React from 'react';
import Todo from './todo.react';
export default class List extends Component {
static propTypes = {
actions: React.PropTypes.object.isRequired,
list: React.PropTypes.object.isRequired,
msg: React.PropTypes.object.isRequire... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.