path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
misc/tabledrag.js | bryanerayner/MTM4053-Assignment-1 | (function ($) {
/**
* Drag and drop table rows with field manipulation.
*
* Using the drupal_add_tabledrag() function, any table with weights or parent
* relationships may be made into draggable tables. Columns containing a field
* may optionally be hidden, providing a better user experience.
*
* Created tableD... |
docs/src/app/components/pages/components/Tabs/ExampleSwipeable.js | ichiohta/material-ui | import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
// From https://github.com/oliviertassinari/react-swipeable-views
import SwipeableViews from 'react-swipeable-views';
const styles = {
headline: {
fontSize: 24,
paddingTop: 16,
marginBottom: 12,
fontWeight: 400,
},
slide: {
... |
src/Parser/Core/Modules/Features/CharacterPanel.js | hasseboulen/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import Gear from 'Main/Gear';
import StatsDisplay from './StatsDisplay';
import TalentsDisplay from './TalentsDisplay';
class CharacterPanel extends Analyzer {
static dependencies = {
... |
node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-computed-properties/node_modules/babel-helper-define-map/node_modules/babel-types/lib/index.js | diztinct-tim/ESL | "use strict";
exports.__esModule = true;
exports.createTypeAnnotationBasedOnTypeof = exports.removeTypeDuplicates = exports.createUnionTypeAnnotation = exports.valueToNode = exports.toBlock = exports.toExpression = exports.toStatement = exports.toBindingIdentifierName = exports.toIdentifier = exports.toKeyAlias = expo... |
docs/pages/api-docs/dialog-actions.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'api/dialog-actions';
const requireRaw = require.context('!raw-loader!./', false, /\/dialog-actions\.md$/);
export default functi... |
demo/src/index.js | asbjornenge/react-datalist | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
ajax/libs/angular-google-maps/2.0.3/angular-google-maps.js | mitsuruog/cdnjs | /*! angular-google-maps 2.0.3 2014-10-22
* AngularJS directives for Google Maps
* git: https://github.com/angular-ui/angular-google-maps.git
*/
(function() {
String.prototype.contains = function(value, fromIndex) {
return this.indexOf(value, fromIndex) !== -1;
};
String.prototype.flare = function(flare)... |
app/containers/NetworkSwitchButton.js | ixje/neon-wallet-react-native | import React from 'react'
import { TouchableOpacity, Text, StyleSheet } from 'react-native'
import FAIcons from 'react-native-vector-icons/FontAwesome'
//redux
import { connect } from 'react-redux'
import { bindActionCreatorsExt } from '../utils/bindActionCreatorsExt'
import { ActionCreators } from '../actions'
class... |
src/components/header/MobileSearch.js | MyronBatiuk/react-shopify-storefront | import React, { Component } from 'react';
export default class MobileSearch extends Component {
render(){
return (
<div className="mobile-search" role="search">
<input className="mobile-search__input" name="q" placeholder="Search"
aria-label="Search"/>
<button classN... |
src/__tests__/Breadcrumb.spec.js | reactstrap/reactstrap | import React from 'react';
import { shallow } from 'enzyme';
import { Breadcrumb } from '../';
describe('Breadcrumb', () => {
it('should render children', () => {
const wrapper = shallow(<Breadcrumb>Yo!</Breadcrumb>);
expect(wrapper.text()).toBe('Yo!');
});
it('should render "nav" by default', () => {
... |
docs/app/Examples/collections/Message/Variations/index.js | koenvg/Semantic-UI-React | import React from 'react'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
const MessageVariationsExamples = () => (
<ExampleSection title='Variations'>
<ComponentExample
title='Floating'
desc... |
examples/official-storybook/stories/addon-events.stories.js | rhalff/storybook | import React from 'react';
import EventEmitter from 'eventemitter3';
import { storiesOf } from '@storybook/react';
import WithEvents from '@storybook/addon-events';
import Logger from './Logger';
const EVENTS = {
TEST_EVENT_1: 'test-event-1',
TEST_EVENT_2: 'test-event-2',
TEST_EVENT_3: 'test-event-3',
TEST_EV... |
demo/src/DialogContent.js | ev-ui/ev-ui | import React from 'react'
import {render} from 'react-dom'
export default class DialogContent extends React.Component{
render(){
return(
<div>123456</div>
)
}
} |
resources/assets/scripts/popup/PdfJS.js | younginnovations/resourcecontracts-rc-subsite | import React from 'react';
import ReactDOM from 'react-dom';
import Event from './Event';
import Contract from "./Contract";
import Config from "./config";
var cachePDF = [];
var PdfJS = React.createClass({
propTypes: {
file: React.PropTypes.string,
page: React.PropTypes.number,
scale: Reac... |
src/svg-icons/navigation/arrow-drop-up.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowDropUp = (props) => (
<SvgIcon {...props}>
<path d="M7 14l5-5 5 5z"/>
</SvgIcon>
);
NavigationArrowDropUp = pure(NavigationArrowDropUp);
NavigationArrowDropUp.displayName = 'NavigationArrowDrop... |
ajax/libs/forerunnerdb/1.3.335/fdb-core+persist.min.js | extend1994/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... |
app/containers/Statistici/components/item-stats.js | code4romania/monitorizare-vot-votanti-client | import React from 'react';
import styled from 'styled-components';
const Wrapper = styled.div`
margin-bottom: 30px;
`;
const RowWrapper = styled.div`
background: #fdda44;
color: #5F288D;
padding: 15px;
height: 100%;
display: flex;
position: relative;
&.primary {
background: #5F288D;
color: #f... |
ajax/libs/onsen/1.2.2-beta/js/onsenui.js | magoni/cdnjs | /*! onsenui - v1.2.2-beta - 2015-02-20 */
/* Simple JavaScript Inheritance
* By John Resig http://ejohn.org/
* MIT Licensed.
*/
// Inspired by base2 and Prototype
(function(){
var initializing = false, fnTest = /xyz/.test(function(){xyz;}) ? /\b_super\b/ : /.*/;
// The base Class implementation (does nothing)
... |
packages/material-ui-icons/src/RecordVoiceOverOutlined.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="M9 13c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zM9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.6... |
packages/material-ui-icons/src/RecordVoiceOverOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M9 13c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm0 8c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4zm-6 4c.22-.72 3.31-2 6-2 2.7 0 5.8 1.29 6 2H... |
spec/javascripts/jsx/gradebook/GradebookSpec.js | djbender/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... |
examples/macOs/advanced/pinDialog.js | gabrielbull/react-desktop | import React, { Component } from 'react';
import { View, Dialog, Pin, Button, Text, ProgressCircle } from 'react-desktop/macOs';
class PinDialog extends Component {
constructor() {
super();
this.state = {
pin: '',
error: null,
loading: false
};
}
submit = () => {
this.setState(... |
src/components/Blog/Header/Header.js | lzm854676408/big-demo | import React, { Component } from 'react';
import Search from './Search';
class Header extends Component {
handelClick(){
this.refs.navbar.handleToggle();
}
getStyles() {
return {
root: {
backgroundColor: '#00bcd4',
height: '200px'
}
}
}
render(){
const st... |
client/vendor/jquery/jquery.js | bertheto/Mockup | /*!
* jQuery JavaScript Library v1.8.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Thu Sep 20 2012 21:13:05 GMT-0400 (Eastern Daylight Time)
*/
(function(... |
app/components/Notes/NotesList.js | vandosant/react-notetaker | import React from 'react';
class NotesList extends React.Component {
render() {
var notes = this.props.notes.map((note, index) => {
return <li className='list-group-item' key={index}> {note} </li>
});
return (
<ul className='list-group'>
{notes}
</ul>
)
}
}
export default... |
html.js | xzin/homepage | import React from 'react'
import PropTypes from 'prop-types'
import Helmet from 'react-helmet'
import { prefixLink } from 'gatsby-helpers'
import { TypographyStyle } from 'react-typography'
import typography from './utils/typography'
const BUILD_TIME = new Date().getTime()
export default class HTML extends React.Com... |
docs/src/app/components/pages/components/RefreshIndicator/ExampleLoading.js | xmityaz/material-ui | import React from 'react';
import RefreshIndicator from 'material-ui/RefreshIndicator';
const style = {
container: {
position: 'relative',
},
refresh: {
display: 'inline-block',
position: 'relative',
},
};
const RefreshIndicatorExampleLoading = () => (
<div style={style.container}>
<RefreshI... |
lib/yuilib/3.17.2/scrollview-base/scrollview-base-debug.js | tuyenhuynh/moodle | /*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
*... |
src/svg-icons/maps/restaurant.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsRestaurant = (props) => (
<SvgIcon {...props}>
<path d="M11 9H9V2H7v7H5V2H3v7c0 2.12 1.66 3.84 3.75 3.97V22h2.5v-9.03C11.34 12.84 13 11.12 13 9V2h-2v7zm5-3v8h2.5v8H21V2c-2.76 0-5 2.24-5 4z"/>
</SvgIcon>
)... |
js/jquery-1.11.1.min.js | joshosbrn/fear-culture-zine | /*! 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... |
Examples/UIExplorer/AnimatedGratuitousApp/AnExScroll.js | zhaoxingyu/rn-for-eclipse | /**
* 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,
... |
ajax/libs/analytics.js/1.3.8/analytics.js | SimeonC/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 ... |
ajax/libs/jssip/0.7.19/jssip.js | pombredanne/cdnjs | /*
* JsSIP v0.7.19
* the Javascript SIP library
* Copyright: 2012-2016 José Luis Millán <jmillan@aliax.net> (https://github.com/jmillan)
* Homepage: http://jssip.net
* License: MIT
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&de... |
modules/field_ui/field_ui.js | glitchgirl909/drupal_blog_ex | /**
* @file
* Attaches the behaviors for the Field UI module.
*/
(function($) {
Drupal.behaviors.fieldUIFieldOverview = {
attach: function (context, settings) {
$('table#field-overview', context).once('field-overview', function () {
Drupal.fieldUIFieldOverview.attachUpdateSelects(this, settings);
... |
lib/graph3d/Slider.js | ericvandever/vis | var util = require('../util');
/**
* @constructor Slider
*
* An html slider control with start/stop/prev/next buttons
* @param {Element} container The element where the slider will be created
* @param {Object} options Available options:
* {boolean} visible If true (default) the
* ... |
src/components/search_bar.js | jeffgietz/ReduxReact | import React, { Component } from 'react';
class SearchBar extends Component {
constructor(props){
super(props);
this.state = { term: '' };
}
render() {
return (
<div className="search-bar">
<input
value={this.state.term}
onChange={event => this.onInputChange(event.... |
src/components/HomePage.js | Raunak1001/FoodyFu | /**
* Created by raunak on 20/6/17.
*/
import React from 'react'
import LocationBar from './LocationBar'
import FoodTypeList from './FoodTypeList'
export default class HomePage extends React.Component{
render(){
return(<div>
<LocationBar/>
<FoodTypeList/>
</div>)
}
... |
src/components/NotFoundPage/index.js | leohahn/TIM-frontend | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*/
import React from 'react'
export function NotFound () {
return (
<h1>Page Not Found</h1>
)
}
export default NotFound
|
ajax/libs/6to5/2.3.1/browser-polyfill.js | sullivanmatt/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... |
UnitTest/Console/phpMyAdmin-4.3.12/doc/html/_static/jquery.js | TheTypoMaster/SPHERE-Framework | /*!
* jQuery JavaScript Library v1.7.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/router.js | markfranco/spirax | /**
* 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';
... |
ajax/libs/core-js/0.9.14/shim.js | steadiest/cdnjs | /**
* core-js 0.9.14
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(undefined){
'use strict';
var __e = null, __g = null;
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/*****... |
src/common/app/components/ThemeProvider.js | VigneshRavichandran02/3io | /* @flow */
import React from 'react';
// github.com/jxnblk/rebass
class ThemeProvider extends React.Component {
static propTypes = {
children: React.PropTypes.node.isRequired,
theme: React.PropTypes.object.isRequired,
};
static childContextTypes = {
rebass: React.PropTypes.object,
// reflexbox... |
powerpiapp/elements/common/Spinner.js | Knapsacks/power-pi-v2 | import React from 'react';
import { View, ActivityIndicator } from 'react-native';
const Spinner = ({ size }) => {
return (
<View style={styles.spinnerStyle}>
<ActivityIndicator size={size || 'large'} />
</View>
);
};
const styles = {
spinnerStyle: {
flex: 1,
ju... |
src/components/Challenges/MarkDownPreview/markDownPreview.js | jonniebigodes/freecodecampreactChallenges | import React from 'react';
import '../../../Assets/stylesheets/base.scss';
import '../../../Assets/stylesheets/markdown.scss';
import Textarea from 'muicss/lib/react/textarea';
import marked from 'marked';
export const MarkDownHeader=()=>{
return (
<div className="MarkdownTitle">SuperCalifragilistic React... |
src/components/input.js | atilafassina/octolist | import React, { Component } from 'react';
class InputUser extends Component {
render(props) {
let input;
return (
<div>
<form className="inputdata-wrap">
<input className="gh-user" />
<button className="btn-submit" type="submit" onClick={this.props.getRepo}>
Send... |
ajax/libs/yui/3.1.1/loader/loader.js | jasonpang/cdnjs | YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
(function() {
var VERSION = Y.version,
CONFIG = Y.config,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLERY_VERSION = ... |
ajax/libs/video.js/5.11.5/alt/video.novtt.js | sashberd/cdnjs | /**
* @license
* Video.js 5.11.5 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}... |
ajax/libs/vue-material/1.0.0-beta-11/components/MdDatepicker/index.js | sufuf3/cdnjs | /*!
* vue-material v1.0.0-beta-10.2
* Made with <3 by marcosmoura 2019
* Released under the MIT License.
*/
!(function(e,t){var n,r;if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"));else if("function"==typeof define&&define.amd)define(["vue"],t);else{n=t("object"==typeof exports?... |
src/js/components/icons/base/ChapterNext.js | odedre/grommet-final | /**
* @description ChapterNext SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
*... |
src/components/TransientTxt/TransientTxt.js | djyaron/react5 | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import $ from 'jquery';
import React from 'react'; // eslint-disable-line no-unused-vars
import './TransientTxt.less';
class TransientTxt extends React.Component{
constructor(props) {
super(props);
this.loadText = this.loadText.bind(th... |
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-bricks-well.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin, ContentMixin, ColorSchemaMixin} from './../common/common.js';
import './well.less';
export const Well = React.createClass({
//@@viewOn:mixins
mixins: [
BaseMixin,
ElementaryMixin,
ContentMixin,
ColorSchemaMixin
],
//@@viewOff:mixi... |
ReactJS/class-2017-12-03/my-app/src/header/Header.js | tahashahid/cloud-computing-2017 | import React from 'react';
class Header extends React.Component {
render() {
return (
<div className="Header">
{ this.props.data }
{ this.props.data1 }
<br/>
{ this.props.data2.a + this.props.data2.b }
</div>
);
}
}
export default Header;
|
jenkins-design-language/src/js/components/material-ui/svg-icons/notification/wifi.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const NotificationWifi = (props) => (
<SvgIcon {...props}>
<path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13z"/>
</SvgIco... |
client/components/Discover.js | forkful/forkful | import React from 'react';
import { connect } from 'react-redux';
import RecipeContainer from '../../client/components/RecipeContainer.js';
import '../scss/_search.scss';
const SearchResults = (props) => (
<div className="search-results">
<RecipeContainer
className="recipes-searched"
type="Search Res... |
RNFormsExample/index.ios.js | michaelhelvey/react-native-forms | /* eslint-disable */
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
NavigatorIOS,
} from 'react-native';
import ExampleForm from './ExampleForm';
class RNFormsExample extends Co... |
ajax/libs/react-data-grid/0.12.15-alpha1/react-data-grid-with-addons.js | holtkamp/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReactDataGrid"] = f... |
node_modules/react-widgets/lib/Listbox.js | yomolify/cc-server | "use strict";
// import React from 'react';
// import cn from 'classnames';
// import TimeoutMixin from './mixins/TimeoutMixin';
// import PureRenderMixin from './mixins/PureRenderMixin';
// import PopupScrollToMixin from './mixins/PopupScrollToMixin';
// import RtlParentContextMixin from './mixins/RtlParentContextMix... |
source/router/render.js | halt-hammerzeit/react-isomorphic-render | import React from 'react'
import createRender from 'found/lib/createRender'
// Seems to be ignored.
const render = createRender({
renderError: ({ error }) => (
<div>
Error
</div>
)
})
export default render |
renderer/components/Channels/ChannelsInfo.js | LN-Zap/zap-desktop | import React from 'react'
import PropTypes from 'prop-types'
import { FormattedMessage } from 'react-intl'
import { Flex } from 'rebass/styled-components'
import { Card } from 'components/UI'
import ChannelsCapacity from './ChannelsCapacity'
import ChannelsSummaryDonut from './ChannelsSummaryDonut'
import messages from... |
src/Containers/PostDetail.js | TaylorRayHoward/ReactReduxMessageBoard | import React, { Component } from 'react';
import { connect } from 'react-redux';
import PostCard from '../Components/PostCard';
import Link from 'react-router-dom/es/Link';
import { deletePost, deleteComment } from '../Actions/PostActions';
import AddComment from './AddComment';
import Comment from '../Components/Comme... |
packages/react-devtools-shared/src/devtools/views/Profiler/SnapshotCommitListItem.js | terminatorheart/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 * as React from 'react';
import {memo} from 'react';
import {areEqual} from 'react-window';
import {getGradient... |
src/js/components/grid.js | mariouhrin/simple-react-redux-starter | import React from 'react'
const Grid = () => (
<article className="component-style">
<header>
<h2>Responsonsive Grid by SCSS</h2>
<p>It has two thresholds</p>
</header>
<section className="grid">
<div className="grid__item col-lg-6 col-xs-2 col-sm-3">First column</div>
<div classN... |
docs/src/app/components/pages/components/Paper/ExampleCircle.js | rscnt/material-ui | import React from 'react';
import Paper from 'material-ui/Paper';
const style = {
height: 100,
width: 100,
margin: 20,
textAlign: 'center',
display: 'inline-block',
};
const PaperExampleCircle = () => (
<div>
<Paper style={style} zDepth={1} circle={true} />
<Paper style={style} zDepth={2} circle={... |
src/Label.js | mmartche/boilerplate-shop | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Label = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'label',
bsStyle: 'default'
};
},
render() {
let classes = this.getBsClassSe... |
frontend/app/components/Form/FormDefinitions.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
import Text from 'components/Form/Common/Text'
import Select from 'components/Form/Common/Select'
import FormMoveButtons from 'components/Form/FormMoveButtons'
import FormRemoveButton from 'components/Form/FormRemoveButton'
import { removeItem, moveItemDown, ... |
chrome/test/data/third_party/kraken/hosted/explanations/jquery-1.4.2.min.js | chromium/chromium | /*!
* 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.
... |
src/components/common/icons/Thumbnails.js | goodjoblife/GoodJobShare | import React from 'react';
/* eslint-disable */
const Thumbnails = (props) => (
<svg {...props} width="24" height="24" viewBox="0 0 24 24">
<g fillRule="evenodd">
<rect width="6" height="6"/>
<rect width="6" height="6" y="9"/>
<rect width="6" height="6" y="18"/>
<rect width="6" height="6"... |
packages/material-ui-icons/src/CloudCircleSharp.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="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.5 14H8c-1.66 0-3-1.34-3-3s1.34-3 3-3h.14c.44-1.73 1.99-3 3.86-3 2.21 0 4 1.... |
example/examples/CustomMarkers.js | pjamrozowicz/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
} from 'react-native';
import MapView from 'react-native-maps';
import flagPinkImg from './assets/flag-pink.png';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE... |
src/app/components/imageableThumbnails.js | benigeri/soapee-ui | import _ from 'lodash';
import React from 'react';
import { imageableThumbUrl } from 'resources/imageable';
export default React.createClass( {
render() {
return (
<div className="imageable-thumbnails clearfix">
{ _.map( this.props.images, this.renderImage ) }
... |
ajax/libs/analytics.js/1.5.6/analytics.min.js | DDMAL/cdnjs | (function(){function require(path,parent,orig){var resolved=require.resolve(path);if(null==resolved){orig=orig||path;parent=parent||"root";var err=new Error('Failed to require "'+orig+'" from "'+parent+'"');err.path=orig;err.parent=parent;err.require=true;throw err}var module=require.modules[resolved];if(!module._resol... |
app/static/src/performer/EquipmentTestForm.js | vsilent/Vision | import React from 'react';
import DateTimeField from 'react-bootstrap-datetimepicker/lib/DateTimeField';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
import Checkbox from 'react-bootstrap/li... |
node_modules/botbuilder/node_modules/chrono-node/test/qunit/jquery-1.7.1.min.js | mrmhk97/IraqiSmartBot | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
src/pages/graph/Bellman/Bellman.js | hyy1115/react-redux-webpack2 | import React from 'react'
class Bellman extends React.Component {
render() {
return (
<div>Bellman</div>
)
}
}
export default Bellman |
admin/client/components/Popout/PopoutFooter.js | andreufirefly/keystone | import React from 'react';
const buttonBaseClassname = 'Popout__footer__button Popout__footer__button--';
var PopoutFooter = React.createClass({
displayName: 'PopoutFooter',
propTypes: {
children: React.PropTypes.node,
primaryButtonAction: React.PropTypes.func,
primaryButtonIsSubmit: React.PropTypes.bool,
p... |
public/potree/libs/plasio/vendor/jquery.js | DURAARK/duraark-pointcloud-viewer | /*!
* 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 ) {
// ... |
examples/CollectionWithHref.js | chris-gooley/react-materialize | import React from 'react';
import Collection from '../src/Collection';
import CollectionItem from '../src/CollectionItem';
export default
<Collection>
<CollectionItem href='#'>Alvin</CollectionItem>
<CollectionItem href='#' active>Alvin</CollectionItem>
<CollectionItem href='#'>Alvin</CollectionItem>
<Collecti... |
ui/js/pages/page/PagesItemEdit.js | ericsoderberg/pbc-web |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import FormField from '../../components/FormField';
// import ImageField from '../../components/ImageField';
import SelectSearch from '../../components/SelectSearch';
import TextHelp from '../../components/TextHelp';
import FormState from '.... |
app/app.js | adoveil/max | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
/* eslint-disable import/no-unresolved */
// Load the favicon, the manifest.json file and the .htaccess file
import 'file?name=[name].[ext]!./... |
src/parser/druid/guardian/modules/azeritetraits/TwistedClaws.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox';
import { calculateAzeriteEffects } from 'common/stats';
import StatTracker from 'parser/shared/modules/StatTracker';
expo... |
app/javascript/mastodon/features/keyboard_shortcuts/index.js | Nyoho/mastodon | import React from 'react';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../components/column_back_button_slim';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-co... |
src/Parser/DeathKnight/Blood/Modules/Traits/Coagulopathy.js | hasseboulen/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import calculateEff... |
src/utils/__tests__/LegacyImmutableObject-test.js | Lonefy/react | /**
* Copyright 2013-2014, 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... |
src/App.js | StepanYurtsiv/kep-e-campus | import React from 'react';
import { Route, Switch } from 'react-router-dom';
import MainLayout from './components/Layouts/main';
import {
SignIn,
Dashboard,
LessonsSchedule,
Teachers,
Settings,
} from './pages';
import {
HOME,
LESSONS_SCHEDULE,
SIGN_IN,
TEACHERS,
SETTINGS,
} from './lib/constants... |
ui/src/components/Loaded.js | brocaar/lora-app-server | import React, { Component } from 'react';
class Loaded extends Component {
constructor() {
super();
this.state = {
loaded: false,
};
this.testLoaded = this.testLoaded.bind(this);
}
componentDidMount() {
this.testLoaded(this.props.loaded);
}
componentWillReceiveProps... |
ajax/libs/material-ui/5.0.0-alpha.21/Select/SelectInput.min.js | cdnjs/cdnjs | import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";import{formatMuiErrorMessage as _formatMuiErrorMessage}from"@material-ui/utils";import*as React from"react";import{isFragment}from"react-is";import PropTypes from"p... |
src/containers/NotFound/NotFound.js | zhongzhi107/marine | import React from 'react';
export default function NotFound() {
return (
<div className="container">
<h1>Doh! 404!</h1>
<p>These are <em>not</em> the droids you are looking for!</p>
</div>
);
}
|
src/components/Page/PageFooter/PageFooter.js | Aquellex/aquellexws | import React from 'react';
import PropTypes from 'prop-types';
import format from 'date-fns/format';
import styles from './PageFooter.module.css';
const PageFooter = ({ updated }) => {
const updateTime = format(new Date(updated), 'DD/MM/YYYY, HH:MM:SS ZZ');
return (
<footer className={styles.pageFooter}>
... |
client/comps/sidebar.js | lisezmoi/alpha-bet | import React from 'react'
import Letters from './letters'
import Users from './users'
const Sidebar = props => (
<div className='Sidebar'>
<h2 className='title-letters'>Press and hold on a letter to bet</h2>
<Letters
onPressLetter={props.onPressLetter}
onStartBet={props.onStartBet}
onEndBet... |
src/components/fluid-card.js | skyborne/skyborne | import React from 'react';
import { Animated } from 'react-native';
import { WIDTH } from '../global';
export const FluidCard = props => (
<Animated.View
style={[styles.cardStyle, props.style, { height: props.height }]}>
{props.children}
</Animated.View>
);
const styles = {
cardStyle: {
width: WIDT... |
src/modules/categories/components/CategoryPlaylists.js | paramsinghvc/harp | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { getSelectedCategoryDetails } from '../CategoriesActions';
import PlaylistItem from '../../../components/playlist-item/PlaylistItem';
require('./CategoryPlaylists.scss');
@connect((sta... |
src/icons/AssignmentIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class AssignmentIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M38 6h-8.37c-.82-2.32-3.02-4-5.63-4s-4.81 1.68-5.63 4H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.2... |
frontend/src/lib/mui-components/ActionsLeft.js | jf248/scrape-the-plate | import React from 'react';
import classNames from 'classnames';
import { withStyles } from '@material-ui/core';
const styles = () => ({
root: {
flex: '1 0 auto',
display: 'flex',
justifyContent: 'flex-start',
},
});
ActionsLeft.defaultProps = {};
function ActionsLeft(props) {
const {
children,
... |
ajax/libs/yui/3.10.1/scrollview-base/scrollview-base.js | LSleutsky/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
// Local vars
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
IE = Y.UA.ie... |
docs/app/Examples/elements/Image/Variations/ImageCircularExample.js | jcarbo/stardust | import React from 'react'
import { Image } from 'stardust'
const src = 'http://semantic-ui.com/images/wireframe/square-image.png'
const ImageCircularExample = () => (
<Image src={src} size='medium' shape='circular' />
)
export default ImageCircularExample
|
examples/src/pages/page/WizardPage.js | nkiateam/polestar-antd | import React from 'react';
import Button from '../../../../src/Button';
import Wizard from '../../../../src/Wizard';
class WizardPage extends React.Component {
constructor(props) {
super(props);
this.state = {
open: false,
};
}
openWizard = () => {
this.setState... |
node_modules/react-bootstrap/es/Row.js | mohammed52/door-quote-automator | 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 ... |
app/components/H3/index.js | josh-butler/react-bp-demo | import React from 'react';
function H3(props) {
return (
<h3 {...props} />
);
}
export default H3;
|
test/JumbotronSpec.js | natlownes/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Jumbotron from '../src/Jumbotron';
describe('Jumbotron', function () {
it('Should output a div with content', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Jumbotron>
<strong>Content</strong>... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.