target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
react-navigation-playground/js/ModalStack.js | agrcrobles/react-native-web-workspace | /**
* @flow
*/
import React from 'react';
import { Button, ScrollView, Text } from 'react-native';
import { StackNavigator } from 'react-navigation';
import SampleText from './SampleText';
const MyNavScreen = ({ navigation, banner }) => (
<ScrollView>
<SampleText>{banner}</SampleText>
<Button
onPres... |
web/src/js/__tests__/components/Header/MenuToggleSpec.js | mhils/mitmproxy | import React from 'react'
import renderer from 'react-test-renderer'
import { MenuToggle, SettingsToggle, EventlogToggle } from '../../../components/Header/MenuToggle'
import { Provider } from 'react-redux'
import { REQUEST_UPDATE } from '../../../ducks/settings'
import { TStore } from '../../ducks/tutils'
global.fetc... |
app/containers/NotFoundPage/index.js | kylec296/scalable-react | /**
* 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... |
tests/layouts/CoreLayout.spec.js | nskpaun/group-therapist | import React from 'react'
import TestUtils from 'react-addons-test-utils'
import CoreLayout from 'layouts/CoreLayout/CoreLayout'
function shallowRender (component) {
const renderer = TestUtils.createRenderer()
renderer.render(component)
return renderer.getRenderOutput()
}
function shallowRenderWithProps (props... |
ajax/libs/angular.js/0.9.11/angular-scenario.js | masahirotanaka/cdnjs | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
ajax/libs/react-select/0.5.2/react-select.js | menuka94/cdnjs | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Select = f()}}... |
js/src/dapps/localtx/Application/application.js | jesuscript/parity | // Copyright 2015, 2016 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any la... |
src/svg-icons/communication/voicemail.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationVoicemail = (props) => (
<SvgIcon {...props}>
<path d="M18.5 6C15.46 6 13 8.46 13 11.5c0 1.33.47 2.55 1.26 3.5H9.74c.79-.95 1.26-2.17 1.26-3.5C11 8.46 8.54 6 5.5 6S0 8.46 0 11.5 2.46 17 5.5 17h13c3... |
src/DropdownMenu.js | chrishoage/react-bootstrap | import React from 'react';
import keycode from 'keycode';
import classNames from 'classnames';
import RootCloseWrapper from 'react-overlays/lib/RootCloseWrapper';
import ValidComponentChildren from './utils/ValidComponentChildren';
import createChainedFunction from './utils/createChainedFunction';
class DropdownMenu e... |
MyApp/view/sectionList.js | liwei0505/react-native | /**
* Created by lee on 2017/9/18.
*/
import React, { Component } from 'react';
import {
AppRegistry,
SectionList,
StyleSheet,
Text,
View
} from 'react-native';
export default class SectionListBasics extends Component {
render() {
return (
<View style = {styles.container... |
client/components/services/FacilityCard.js | JSVillage/military-families-backend | import React from 'react';
const FacilityCard = (props) => {
return <div className="col-md-3">
<div className="panel panel-info">
<div className="panel-heading">
<h3>{props.facility.facilityName}</h3>
<p>{props.facility.address}</p>
</div>
<ul className="list-group">
... |
src/components/stat.js | netlify/staticgen | import React from 'react'
import styled from '@emotion/styled'
const OpenSourceStatIcon = styled.span`
display: inline-block;
width: 18px;
height: 18px;
`
const OpenSourceStatChange = styled.div`
color: ${props => (props.increased && '#31bb47') || (props.decreased && '#c91b1b')};
font-size: 14px;
`
const S... |
app/components/Notes/NoteList.js | jchappypig/react-note-taker | import React from 'react';
const NoteList = ({notes}) => (
<ul className="list-group">
{
notes.map((note, index) => (
<li key={index} className="list-group-item">{note}</li>
))
}
</ul>
)
export default NoteList; |
src/artist_search_list_item.js | igorPhelype/Spotigorfy | import React from 'react';
const ArtistSearchListItem = (props) => {
const artist_name = props.current_artist.name;
const artist_image_url = props.artist_image_url;
return(
<li onClick={() => props.onArtistSelect(props.current_artist)} className="artist-search-list-item">
<h3>{artist_na... |
app/javascript/mastodon/features/notifications/components/column_settings.js | pinfort/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage } from 'react-intl';
import ClearColumnButton from './clear_column_button';
import GrantPermissionButton from './grant_permission_button';
import SettingToggle from './set... |
src/assets/scripts/components/Examples/FooSection.js | Eastern-Research-Group/epa-digital-services-rfi-js | import React, { Component } from 'react';
import FacilityStore from '../../stores/FacilityStore';
import EchoServerActionCreators from '../../actions/EchoServerActionCreators';
function getStateFromStores(){
return {
foo: FacilityStore.getList()
};
}
export class FooSection extends Component {
con... |
app/javascript/mastodon/features/notifications/components/notification.js | pfm-eyesightjp/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import StatusContainer from '../../../containers/status_container';
import AccountContainer from '../../../containers/account_container';
import { FormattedMessage } from 'react-intl';
import Perma... |
UI/DropShadow.js | Datasilk/Dedicate | import React from 'react';
import {View, Dimensions} from 'react-native';
import {Svg, Rect, LinearGradient, Defs, Stop} from 'react-native-svg';
export default class DropShadow extends React.Component{
constructor(props){
super(props);
this.state = {
layout: 0,
width: prop... |
assets/js/store/model.js | tdfischer/organizer | import React from 'react'
import { createSelector } from 'reselect'
import { bindActionCreators } from 'redux'
import { point } from '@turf/helpers'
import { getCoord } from '@turf/invariant'
import { connect } from 'react-redux'
import { csrftoken } from '../Django'
import Queue from 'promise-queue'
import Immutable ... |
reactjs/budget/client/components/LoginControl/UserGreeting.js | Kevin-Huang-NZ/notes | import React, { Component } from 'react';
class UserGreeting extends Component {
render() {
return (
<h1>
Welcome back.
</h1>
);
}
}
export default UserGreeting; |
Libraries/NativeModules/specs/NativeLogBox.js | exponentjs/react-native | /**
* 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
* @format
*/
'use strict';
import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport';
import * as T... |
src/components/HomeLink.js | santiagoarriaga/slide_viewer | import React from 'react'
import { connect } from 'react-redux'
/**
* Link to the Home dir.
*/
class HomeLink extends React.Component
{
constructor( props )
{
super( props )
this.showModules = this.showModules.bind( this )
}
showModules()
{
if( this.props.view != 'modules' )
this.props... |
ajax/libs/cignium-hypermedia-client/1.33.0/client.min.js | tholu/cdnjs | var Cignium=function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={exports:{},id:r,loaded:!1};return e[r].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:... |
ui/src/main/js/components/__tests__/UpdateDiff-test.js | thinker0/aurora | import React from 'react';
import { shallow } from 'enzyme';
import Diff from '../Diff';
import UpdateDiff from '../UpdateDiff';
import { TaskConfigBuilder } from 'test-utils/TaskBuilders';
import {
UpdateBuilder,
UpdateDetailsBuilder,
UpdateInstructionsBuilder,
createInstanceTaskGroup
} from 'test-utils/Upda... |
ajax/libs/react-instantsearch/5.0.0-beta.1/Dom.js | seogi1004/cdnjs | /*! ReactInstantSearch 5.0.0-beta.1 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], facto... |
externallib/jquery.min.js | hernancollante/MyRepo | /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
src/components/common/TextInput.js | Vasyl1989/Opus.ua | import React from 'react';
import { PropTypes } from 'prop-types';
const TextInput = ({ name, onChange, placeholder, title, type, value,className ,id,onKeyPress,ref}) => {
return (
<div className="form">
<h5>{title}</h5>
<input
type={type}
placeholder={placeholder}
classNa... |
src/pages/Game/index.js | alimek/scrum-poker-react | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import styles from './styles.css';
import { Loader } from '../../components';
import GameSideMenu from '../../containers/GameSideMenu';
import GameContext from '../../contai... |
packages/material-ui-icons/src/Send.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z" />
, 'Send');
|
src/components/Header/Header.js | tablackmore/viaplay-fullstack-es6 | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
class Header extends Component {
render() {
return (
<div className="block page-header">
<div className="scaffold">
<div className="logo">
<a href="/" data-h... |
src/Main/Timeline/TimelineTab.js | hasseboulen/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import Tab from 'Main/Tab';
import Danger from 'common/Alert/Danger';
import Info from 'common/Alert/Info';
import SpellTimeline from './SpellTimeline';
const isDevelopment = process.env.NODE_ENV === 'development';
class TimelineTab extends React.PureCo... |
ajax/libs/react-native-web/0.11.5/vendor/react-native/VirtualizedList/index.js | cdnjs/cdnjs | function _extends() { _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]; } } } return target; }; return _extends.apply(this, arguments); }
f... |
knowhere-client/src/index.js | GoKnowhere/knowhere | 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();
|
src/index.js | i-July/footballgo | import React from 'react';
import ReactDOM from 'react-dom';
import './themedux/common.css';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
src/svg-icons/places/hot-tub.js | mtsandeep/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... |
src/Game.js | mamendes/3d-tic-tac-toe | import React, { Component } from 'react';
import Board from './Board.js';
import GameInfo from './GameInfo.js';
import { calculateWinners } from './helpers.js';
import './index.css';
const X = 'x';
const O = 'o';
class Game extends Component {
constructor() {
super();
this.state = {
history: [{square... |
ajax/libs/zeroclipboard/2.1.2/ZeroClipboard.Core.js | jemmy655/cdnjs | /*!
* ZeroClipboard
* The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.
* Copyright (c) 2014 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v2.1.2
*/
(function(window, undefined) {
"use strict";... |
packages/insector-react-mvc/src/index.js | insector-ab/insector.js | /* eslint indent: ["error", 2, {"SwitchCase": 1}] */
import React from 'react';
import MVCContainer from './mvccontainer';
import ReactController from './controller';
import ReactView from './view';
import ViewModel from './viewmodel';
// Exports
export { MVCContainer };
export { ReactController };
export { ReactView... |
src/components/signout.js | setoalan/auth-template | import React, { Component } from 'react';
import { connect } from 'react-redux';
import * as actions from '../actions';
class Signout extends Component {
componentWillMount() {
this.props.signoutUser();
}
render() {
return <div>Sorry to see you go...</div>;
}
}
export default connect(null, actions)(S... |
src/components/Icon/Icon-story.js | wfp/ui | import React from 'react';
import { iconAdd, iconAddGlyph, iconAddOutline } from '@wfp/icons';
import { storiesOf } from '@storybook/react';
import { withKnobs, select, text } from '@storybook/addon-knobs';
import Icon from '../Icon';
import IconSkeleton from '../Icon/Icon.Skeleton';
const icons = {
'Add (iconAdd f... |
src/main/frontend/app/routes.js | santhp/trade-away | import React from 'react';
import {Route, IndexRoute} from 'react-router';
import App from './components/app';
import NotFoundPage from './components/pages/not-found-page';
import Login from './components/auth/login';
import Checkout from './components/checkout';
import Dashboard from './components/dashboard';
import ... |
packages/wix-style-react/src/MediaOverlay/DragHandle/DragHandle.js | wix/wix-style-react | import React from 'react';
import MoveLarge from 'wix-ui-icons-common/system/MoveLarge';
import { stVars } from '../../Foundation/stylable/colors.st.css';
const DragHandle = () => <MoveLarge style={{ color: stVars.D80 }} />;
DragHandle.displayName = 'MediaOverlay.DragHandle';
export default DragHandle;
|
test/specs/collections/Menu/Menu-test.js | Semantic-Org/Semantic-UI-React | import _ from 'lodash'
import React from 'react'
import Menu from 'src/collections/Menu/Menu'
import MenuItem from 'src/collections/Menu/MenuItem'
import MenuHeader from 'src/collections/Menu/MenuHeader'
import MenuMenu from 'src/collections/Menu/MenuMenu'
import { SUI } from 'src/lib'
import * as common from 'test/sp... |
examples/00 Chessboard/Tutorial App/index.js | globexdesigns/react-dnd | import React, { Component } from 'react';
import Board from './Board';
import { observe } from './Game';
/**
* Unlike the tutorial, export a component so it can be used on the website.
*/
export default class ChessboardTutorialApp extends Component {
constructor(props) {
super(props);
this.unobserve = obse... |
static/plugins/RichFilemanager-2.5.1/scripts/jquery.splitter/lib/jquery-1.9.1.js | cnddu/cactusblog | /*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-4
*/
(function( window, undefined ) {
// Can't do t... |
docs/src/pages/component-demos/lists/CheckboxListSecondary.js | dsslimshaddy/material-ui | // @flow weak
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import List, { ListItem, ListItemSecondaryAction, ListItemText } from 'material-ui/List';
import Checkbox from 'material-ui/Checkbox';
import Avatar from 'material-ui/Avatar';
im... |
examples/with-graphql-hooks/components/submit.js | BlancheXu/test | import React from 'react'
import { useMutation } from 'graphql-hooks'
const CREATE_POST = `
mutation createPost($title: String!, $url: String!) {
createPost(title: $title, url: $url) {
id
title
votes
url
createdAt
}
}`
export default function Submit ({ onSubmission }) {
const [createPost, st... |
ui/src/components/workflow/executions/WorkflowList.js | soup11/conductor | import React, { Component } from 'react';
import { Link, browserHistory } from 'react-router';
import { Breadcrumb, BreadcrumbItem, Input, Well, Button, Panel, DropdownButton, MenuItem, Popover, OverlayTrigger, ButtonGroup, Grid, Row, Col, Table } from 'react-bootstrap';
import {BootstrapTable, TableHeaderColumn} from... |
user_guide/_static/jquery.js | montolm/BuscaPiezas | /*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==... |
index.js | yinghang/react-native-local-storage | 'use strict';
// wrapper for Asyncstorage
// #1 - reduce code mess for AsyncStorage
// #2 - practice creating react native modules
// features to implement
// #1 - expand the functionalities to support multiGet etc
// #2 - help setState?
// #3 - help with fetch?
import React, { Component } from 'react';
import {
A... |
src/App/components/modals/NameSelection.react.js | Rezmodeus/Multiplikation | import React from 'react';
import immutable from 'immutable';
import Actions from '../../Actions';
import UserNameInput from'./../UserNameInput.react.js';
import {Modal, Button} from 'react-bootstrap';
import { connect } from 'react-redux';
import LocalStorageFilter from '../../LocalStorageFilter';
const NameSelection... |
ajax/libs/react-instantsearch/4.1.0-beta.2/Core.js | cdnjs/cdnjs | /*! ReactInstantSearch 4.1.0-beta.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && ... |
src/scenes/home/codeSchools/approvedSchools/approvedSchools.js | tal87/operationcode_frontend | import _ from 'lodash';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Section from 'shared/components/section/section';
import SchoolCard from 'shared/components/schoolCard/schoolCard';
import styles from './approvedSchools.css';
class ApprovedSchools extends Component {
constr... |
ajax/libs/yasr/2.4.10/yasr.bundled.min.js | narikei/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){... |
app/javascript/mastodon/features/compose/components/upload_button.js | ikuradon/mastodon | import React from 'react';
import IconButton from '../../../components/icon_button';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 're... |
index/components/GoAnnotation.js | JDRomano2/VenomKB | import React from 'react';
import PropTypes from 'prop-types';
class GoAnnotation extends React.Component {
render() {
const {
evidence,
id,
term,
project
} = this.props;
const ecoLink = 'http://www.evidenceontology.org/term/' + evidence;
const goLink = 'http://amigo.geneonto... |
ajax/libs/vuetify/2.0.13/vuetify.min.js | sufuf3/cdnjs | /*!
* Vuetify v2.0.13
* Forged by John Leider
* Released under the MIT License.
*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define(["vue"],e):"object"==typeof exports?exports.Vuetify=e(require("vue")):t.Vuetify=e(t.Vue)}("und... |
src/components/search/SearchPage.js | Marsellus47/parking | import React from 'react';
import { Header, Icon, Form, Dropdown, Button, Popup } from 'semantic-ui-react';
import {
ParkingSizes,
Distances,
Pricings,
ParkingTypes,
Locations,
VehicleTypes,
Inserted,
Durations
} from '../../constants/dropdownItems';
const SearchPage = () => {
return (
<div>
... |
client/node_modules/uu5g03/dist-node/bricks/backdrop.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin} from '../common/common.js';
import './backdrop.less';
export const Backdrop = React.createClass({
//@@viewOn:mixins
mixins: [
BaseMixin,
ElementaryMixin
],
//@@viewOff:mixins
//@@viewOn:statics
statics: {
tagName: 'UU5.Bricks.Back... |
js/jqwidgets/demos/react/app/slider/layout/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxSlider from '../../../jqwidgets-react/react_jqxslider.js';
class App extends React.Component {
render () {
return (
<div>
<div style={{ fontFamily: 'Verdana', fontSize: 12, float: 'left' }}>
... |
docs/src/examples/addons/Radio/Types/RadioExampleSlider.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Radio } from 'semantic-ui-react'
const RadioExampleSlider = () => <Radio slider />
export default RadioExampleSlider
|
components/Footer.js | ScottMaclure/scott-cv | var React = require('react'),
DOM = React.DOM;
module.exports = React.createClass({
propTypes: {
version: React.PropTypes.string,
year: React.PropTypes.number,
author: React.PropTypes.string,
email: React.PropTypes.string,
githubUrl: React.PropTypes.string
},
getDefaultProps: function () {
return {
... |
src/client.js | chaudhryjunaid/chaudhryjunaid.com | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-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 'whatwg-fetch';
import React from 'react';
impor... |
webclient/src/components/TimelineItem.js | jadiego/bloom | import React, { Component } from 'react';
import { Image, Segment } from 'semantic-ui-react';
class TimelineItem extends Component {
handleItemMouseEnter = () => {
}
render() {
return (
<li className="timeline-item" onMouseEnter={this.handleItemMouseEnter}>
<div classNa... |
WebApplication/Scripts/jquery-1.10.2.min.js | XzXzTeam/BookShop | /* 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... |
src/components/Overlay.js | gilbarbara/react-joyride | import React from 'react';
import PropTypes from 'prop-types';
import treeChanges from 'tree-changes';
import {
getClientRect,
getDocumentHeight,
getElement,
getElementPosition,
getScrollParent,
hasCustomScrollParent,
hasPosition,
} from '../modules/dom';
import { getBrowser, isLegacy, log } from '../mod... |
js/Landing.js | epavan/react-videos | import React from 'react'
import {Link} from 'react-router'
const Landing = () => {
return (
<div className='landing'>
<h1>React Videos</h1>
<input type='text' placeholder='Search' />
<Link to='/search'>or Browse All</Link>
</div>
)
}
export default Landing
|
YN/js/jquery.js | kerenTeam/Besting-dev | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.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=f.trim... |
client/modules/core/components/post.js | markoshust/mantra-sample-blog-app | import React from 'react';
import CommentList from '../../comments/containers/comment_list';
const Post = ({post}) => (
<div>
{post.saving ? <p>Saving...</p> : null}
<h2>{post.title}</h2>
<p>
{post.content}
</p>
<div>
<h4>Comments</h4>
<CommentList postId={post._id}/>
</div>... |
app/components/shared/Menu/header.js | fotinakis/buildkite-frontend | import React from 'react';
import PropTypes from 'prop-types';
export default class Header extends React.PureComponent {
static displayName = "Menu.Header";
static propTypes = {
children: PropTypes.node.isRequired
};
render() {
return (
<div className="border border-gray bg-silver py2 px3 semi-... |
src/containers/Airmet/AirmetsContainer.spec.js | KNMI/GeoWeb-FrontEnd | import React from 'react';
import AirmetsContainer from './AirmetsContainer';
import { mount } from 'enzyme';
import moxios from 'moxios';
describe('(Container) Airmet/AirmetsContainer', () => {
beforeEach(() => {
moxios.install();
});
afterEach(() => {
moxios.uninstall();
});
it('renders a AirmetsCo... |
src/calendar.js | mikalai-sauchanka/react-date-time-picker | import React from 'react';
import { render } from 'react-dom';
import InfiniteCalendar from 'react-infinite-calendar';
import 'react-infinite-calendar/styles.css'; // only needs to be imported once
// Render the Calendar
var today = new Date();
var lastWeek = new Date(today.getFullYear(), today.getMonth(), today.getDa... |
src/components/CardFooter/CardFooter.js | Landish/react-spectre-css | import React from 'react';
//import {} from 'prop-types';
import classNames from 'classnames';
const CardFooter = ({ children, ...rest }) => {
return (
<div className={classNames('card-footer')} {...rest}>
{children}
</div>
);
};
/**
* CardFooter property types.
*/
CardFooter.propTypes = {};
/**
... |
packages/react-devtools-shell/src/app/InspectableElements/SimpleValues.js | Simek/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';
export default function SimpleValues() {
return (
<ChildComponent
string="abc"... |
src/components/renderResults.js | Johj/cqdb | import React from 'react';
import ReactList from 'react-list';
import {
Col,
ListGroup,
Panel,
} from 'react-bootstrap';
export function renderResults(title, render) {
return (
<Col lg={12} md={12} sm={12} xs={12}>
<Panel style={{marginTop: 15,}} collapsible defaultExpanded header={`${title} (${rende... |
javascript/Admin/Election/CandidateInfo.js | AppStateESS/election | 'use strict'
import React from 'react'
import PropTypes from 'prop-types'
const CandidateInfo = (props) => {
var title = null
if (props.useTitle) {
title = (
<input
type="text"
className="form-control"
name="title"
value={props.title}
placeholder="Position title"
... |
public/js/src/setgame.js | jharris119/set-game | 'use strict';
import React from 'react';
import SetCard from './setcard';
export default class SetGame extends React.Component {
constructor(props) {
super(props);
}
isSelected(card) {
return this.props.selected.has(card.toString());
}
onClickSetCard(evt, card) {
throw('should be implemented i... |
src/js_src/containers/layout/searchBar/index.js | hitz/python-flask-es-test | /*eslint-disable react/no-set-state */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import Autosuggest from 'react-autosuggest';
import { push } from 'react-router-redux';
import { DropdownButton, MenuItem } from 'react-bootstrap';
import style from './style.css';
import CategoryLab... |
ajax/libs/yui/3.16.0/datatable-core/datatable-core.js | alexmojaki/cdnjs | /*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@sinc... |
src/shared/utils/__tests__/accumulateInto-test.js | 6feetsong/react | /**
* Copyright 2014-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-co... |
ajax/libs/react-three-renderer/3.1.0/descriptors/Material/UniformDescriptor.js | cdnjs/cdnjs | 'use strict';
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope... |
index.js | mvader/react-categorized-tag-input | import React from 'react';
import ReactDOM from 'react-dom';
import Input from './src/index';
const categories = [
{
id: 'animals',
title: 'Animals',
type: 'animal',
items: ['Dog', 'Cat', 'Bird', 'Dolphin', 'Apes']
},
{
id: 'something',
title: 'Something cool',
items: ['Something coo... |
src/containers/Home/Home.js | gregsabo/beanstalk-tractor-trailer | import React, { Component } from 'react';
import Helmet from 'react-helmet';
import { Link } from 'react-router';
export default class Home extends Component {
render() {
return (
<div className="container-fluid">
<Helmet title="Home"/>
<h1>Tractor-Trailer</h1>
<p>Start out with...<... |
src/icons/CardTravelIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class CardTravelIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M40 12h-6V8c0-2.21-1.79-4-4-4H18c-2.21 0-4 1.79-4 4v4H8c-2.21 0-4 1.79-4 4v22c0 2.21 1.79 4 4 4h32c2.21... |
IntegrationTests/AppEventsTest.js | pandiaraj44/react-native | /**
* 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.
*
* @format
* @flow
*/
'use strict';
const React = require('react');
const ReactNative = require('react-native');
const {NativeAp... |
packages/material-ui-icons/src/Room.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" /><path fill="none" d="M0 0h... |
examples/test-cra/src/index.js | jribeiro/storybook | import React from 'react';
import ReactDOM from 'react-dom';
import { document } from 'global';
import App from './App';
import './index.css';
ReactDOM.render(<App />, document.getElementById('root'));
|
src/js/admin/article-edit/choose-photo-dialog/upload-image-div/upload-image-div.js | ucev/blog | import React from 'react'
import { connect } from 'react-redux'
import OperationButton from '$components/buttons/operation-button'
import { photoUpload } from '$actions/article-edit'
import './upload-image-div.style.scss'
class UploadImageDiv extends React.Component {
constructor (props) {
super(props)
th... |
ajax/libs/jquery/1.7.1/jquery.min.js | lobbin/cdnjs | /*! 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... |
ajax/libs/zeroclipboard/2.0.0/ZeroClipboard.Core.js | jacobq/cdnjs | /*!
* ZeroClipboard
* The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.
* Copyright (c) 2014 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v2.0.0
*/
(function(window, undefined) {
"use strict";... |
src/components/metrics/card/token/index.js | getguesstimate/guesstimate-app | import React from 'react'
import Icon from 'react-fa'
import './style.css'
export const MetricReadableId = ({readableId}) => <div className='ui label green tiny'>{readableId}</div>
export const MetricReasoningIcon = () => <span className='hover-hide hover-icon'><Icon name='comment'/></span>
export const MetricSideba... |
examples/transitions/app.js | joeyates/react-router | import React from 'react';
import { Router, Route, Link, History, Lifecycle } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<ul>
<li><Link to="/dashboard">Dashboard</Link></li>
<li><Link to="/form">Form</Link></li>
</ul>
{this.props... |
example/index.ios.js | moschan/react-native-newsticker | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
TouchableOpacity,
View
} from 'react-native';
import Newsticker from 'react-native-newsticker';
// import Newsticker from './index.js';
... |
reports/assets/scripts/vendor/jquery-1.8.3.min.js | pratikshami/CI-GRAVE | /*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===... |
flow-typed/handmade/react-helmet_v5.x.x.js | phenomic/phenomic | declare module "react-helmet" {
declare type Props = {
base?: Object,
bodyAttributes?: Object,
children?: React$Node,
defaultTitle?: string,
defer?: boolean,
encodeSpecialCharacters?: boolean,
htmlAttributes?: Object,
link?: Array<Object>,
meta?: Array<Object>,
noscript?: Array... |
example/react-component-lib/src/i18n.js | i18next/react-i18next | import i18n from 'i18next';
import Backend from 'i18next-http-backend';
import LanguageDetector from 'i18next-browser-languagedetector';
import { initReactI18next } from 'react-i18next';
import { i18n as i18nOtherLib } from './other-lib/component';
i18n
// load translation using http -> see /public/locales
// lear... |
app/components/Right.js | FermORG/FermionJS | // @flow
import React, { Component } from 'react';
import styles from './photon.scss';
import coreStyles from './Core.scss';
import panelStyles from './Panels.scss';
import State from '../containers/StateConfig';
import Props from '../containers/PropsConfig';
import Styles from '../containers/StylesConfig';
import Even... |
PhotoSpace/imports/ui/pages/Index.js | gergi30/elte-ik-szakdolgozat | import React from 'react';
import AppBar from 'material-ui/AppBar';
import {
Card,
CardActions,
CardHeader,
CardMedia,
CardTitle,
CardText
} from 'material-ui/Card';
import FlatButton from 'material-ui/FlatButton';
import {Grid, Row, Col} from 'meteor/lifefilm:react-flexbox-grid';
const Index =... |
assets/node_modules/ui-select/docs-out/dist/select.js | xbnewbie/kaler | /*!
* ui-select
* http://github.com/angular-ui/ui-select
* Version: 0.19.8 - 2017-04-18T05:43:43.673Z
* License: MIT
*/
(function () {
"use strict";
var KEY = {
TAB: 9,
ENTER: 13,
ESC: 27,
SPACE: 32,
LEFT: 37,
UP: 38,
RIGHT: 39,
DOWN: 40,
SHIFT: 16,
CTRL: 17,
ALT: 18,... |
pages/login.js | jebeck/nefelion | import React from 'react';
import PropTypes from 'prop-types';
import { Grid, Icon, Message } from 'semantic-ui-react';
import LoginForm from 'components/forms/LoginForm';
import FadeInOut from 'components/utils/FadeInOut';
import wrapPage, { FirebaseContext } from 'hoc/wrapPage';
const Login = props => {
const { o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.