path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
packages/material-ui-icons/src/GestureOutlined.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="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-... |
src/components/copy/addCopies/AddedCopiesTable.js | katima-g33k/blu-react-desktop | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Button, Glyphicon } from 'react-bootstrap';
import i18n from '../../../lib/i18n';
import { Table } from '../../general';
import { Copy } from '../../../lib/models';
export default class AddedCopiesTable extends Component {
static... |
ajax/libs/react/15.2.0-rc.1/react-with-addons.js | seogi1004/cdnjs | /**
* React (with addons) v15.2.0-rc.1
*/
(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!=="... |
src/components/Util/index.js | fooey/gw2w2w-cra | import React from 'react';
import { Link } from 'react-router-dom';
export const Loading = () => <i className="fa fa-refresh fa-spin fa-fw"></i>;
export const NotFound = ({ location }) => (
<div className="container">
<div className="row">
<div className="col">
<br />
<div className="alert alert-danger"... |
assistant/presentation/index.js | YashdalfTheGray/talks | import React from 'react';
import preloader from 'spectacle/lib/utils/preloader';
import createTheme from 'spectacle/lib/themes/default';
import {
Deck,
Heading,
Image,
Link,
List,
ListItem,
Slide,
Text
} from 'spectacle';
import CodeSlide from 'spectacle-code-slide';
require('normaliz... |
modules/admin/client/components/UserState.component.js | Trustroots/trustroots | // External dependencies
import classnames from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
/**
* Gives information about different profile "states" useful for debugging for support requests:
* - Labels for different un-usual user roles such as "suspended"
* - If user is not "publ... |
resources/assets/bower_components/rxjs/dist/rx.compat.js | docit/core | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'function': true,
'object': true
};
var
freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && expo... |
src/svg-icons/device/add-alarm.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceAddAlarm = (props) => (
<SvgIcon {...props}>
<path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.... |
src/components/registration/RegistrationForm.js | RanjithNair/FeatureTracker | import React from 'react';
import TextInput from '../common/TextInput';
const RegistrationForm = ({user, onSave, onChange, saving}) => {
return (
<div className="test">
<div className="login">
<form>
<h1>Create account</h1>
<TextInput
name="email"
label="Email"
onChang... |
ajax/libs/highmaps/1.0.4/highmaps.src.js | sufuf3/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highmaps JS v1.0.4 (2014-09-02)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clearTi... |
modules/__tests__/serverRendering-test.js | pheadra/react-router | /*eslint-env mocha */
/*eslint react/prop-types: 0*/
import expect from 'expect'
import React from 'react'
import createLocation from 'history/lib/createLocation'
import RoutingContext from '../RoutingContext'
import match from '../match'
import Link from '../Link'
describe('server rendering', function () {
let App... |
src/components/Layout/Layout.js | cineindustria/site | /**
* 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 React from 'react';
import PropTypes from 'prop-... |
ajax/libs/react-instantsearch/5.2.0-beta.0/Connectors.js | sufuf3/cdnjs | /*! React InstantSearch 5.2.0-beta.0 | © 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(['ex... |
src/svg-icons/action/tab.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTab = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h10v4h8v10z"/>
</SvgIcon>
);
ActionTab = pure(ActionTab);
ActionTab.... |
packages/react-codemod/test/pure-render-mixin-test.js | trellowebinars/react | var React = require('react/addons');
var PureRenderMixin = React.addons.PureRenderMixin;
var MyComponent = React.createClass({
mixins: [PureRenderMixin],
render: function() {
return <div />;
}
});
var MyMixedComponent = React.createClass({
mixins: [PureRenderMixin, SomeOtherMixin],
render: function()... |
src/components/Popover/PopoverPack.js | manweill/dna-ebook | import React from 'react'
import PropTypes from 'prop-types'
import { StyleSheet, Dimensions, Animated, TouchableWithoutFeedback, View, Easing } from 'react-native'
import PopverItem from './PopverItem'
var noop = () => {}
var { height: SCREEN_HEIGHT, width: SCREEN_WIDTH } = Dimensions.get('window')
var DEFAULT_ARROW... |
docs/app/Examples/elements/Segment/Groups/SegmentExampleNestedSegments.js | koenvg/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleNestedSegments = () => (
<Segment.Group>
<Segment>Top</Segment>
<Segment.Group>
<Segment>Nested Top</Segment>
<Segment>Nested Middle</Segment>
<Segment>Nested Bottom</Segment>
</Segment.Group>
... |
node_modules/yuidocjs/node_modules/yui/event-custom-base/event-custom-base.js | Badacadabra/Harmoneezer | YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @mod... |
app/js/page/header.js | pengux/electron-react-starter | import React from 'react';
export default React.createClass({
render() {
return (
<header>
Header
</header>
);
}
});
|
node_modules/react-taco-table/site/src/components/Example1.js | together-web-pj/together-web-pj | import React from 'react';
import { TacoTable, DataType, SortDirection, Formatters,
Utils, Summarizers, TdClassNames, Plugins } from 'react-taco-table';
import cellLinesData from '../data/cell_lines.json';
import * as d3 from 'd3-scale';
import './example1.scss';
// add some random values to the data
cellLinesData.... |
gui/src/components/App.js | stellar/gateway-server | import React from 'react';
import {HashRouter as Router, Route, Link} from 'react-router-dom';
import AppBar from './AppBar';
import Navigation from './Navigation';
import ReceivedTransactions from './ReceivedTransactions';
import ReceivedTransactionDetails from './ReceivedTransactionDetails';
import SentTransactions f... |
Demo/__tests__/App-test.js | terrillo/rn-apple-healthkit | /**
* @format
*/
import 'react-native';
import React from 'react';
import App from '../App';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
renderer.create(<App />);
});
|
docs/app/Examples/addons/TextArea/index.js | mohammed88/Semantic-UI-React | import React from 'react'
import Usage from './Usage'
const TextAreaExamples = () => (
<div>
<Usage />
</div>
)
export default TextAreaExamples
|
src/svg-icons/image/brightness-2.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness2 = (props) => (
<SvgIcon {...props}>
<path d="M10 2c-1.82 0-3.53.5-5 1.35C7.99 5.08 10 8.3 10 12s-2.01 6.92-5 8.65C6.47 21.5 8.18 22 10 22c5.52 0 10-4.48 10-10S15.52 2 10 2z"/>
</SvgIcon>
);
I... |
ajax/libs/yui/3.17.0/datatable-body/datatable-body-coverage.js | MisatoTremor/cdnjs | /*
YUI 3.17.0 (build ce55cc9)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/datatable-body/datatable-body.js']) {
__coverage__['build/datatable-body/datatable-... |
lib/ui/components/common/Autocomplete.js | 500tech/mimic | import PropTypes from 'prop-types';
import React from 'react';
import styled from 'styled-components';
import enhanceWithClickOutside from 'react-click-outside';
import { Div } from 'ui/components/common/base';
import InputControl from 'ui/components/common/InputControl';
const OptionsContainer = styled(Div)`
box-sh... |
src/routes.js | AmmarCloudtech/Simple-Blog | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/app';
import PostsIndex from './components/posts_index';
import PostsNew from './components/posts_new';
import PostsShow from './components/posts_show';
export default (
<Route path="/" component={App} >
<... |
app/javascript/mastodon/components/extended_video_player.js | palon7/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class ExtendedVideoPlayer extends React.PureComponent {
static propTypes = {
src: PropTypes.string.isRequired,
width: PropTypes.number,
height: PropTypes.number,
time: PropTypes.number,
controls: PropTypes.bool.isRequi... |
src/components/Navbar/Navbar.js | RetroGameNight/rgn-ui | /*
* Retro Game Night
* Copyright (c) 2015 Sasha Fahrenkopf, Cameron White
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import './Navbar.less'
import React from 'react' // eslint-disable-line no-unused-vars
import { Link } fr... |
node_modules/react-icons/fa/thumbs-down.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaThumbsDown = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m7.7 12.9q0 0.5-0.4 1t-1 0.4q-0.6 0-1-0.4t-0.4-1q0-0.6 0.4-1.1t1-0.4q0.6 0 1 0.4t0.4 1.1z m3.6 11.4v-14.3q0-0.6-0.4-1t-1-0.4h-6.5q-0.6 0-1 0.4t-0.4 1v14.3q0 0.6 0.... |
packages/icons/src/md/action/Visibility.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdVisibility(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M24 9c10.01 0 18.54 6.22 22 15-3.46 8.78-11.99 15-22 15-10 0-18.54-6.22-22-15C5.46 15.22 14 9 24 9zm0 25c5.52 0 10-4.48 10-10s-4.48-10-10-10-10 4.... |
test/ResponsiveEmbedSpec.js | Lucifier129/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ReactDOM from 'react-dom';
import ResponsiveEmbed from '../src/ResponsiveEmbed';
import { shouldWarn } from './helpers';
describe('ResponsiveEmbed', () => {
it('should contain `embed-responsive` class', () => {
let instanc... |
client-src/components/pager/PagerButtonsOnePane.js | minimus/final-task | import React from 'react'
import propTypes from 'prop-types'
import PagerButton from './PagerButton'
export default function PagerButtonsOnePane({ base, category, pages }) {
const pagesArray = []
let i = 1
while (i <= pages) {
pagesArray.push(i)
i += 1
}
return (
<span id="pager-buttons-pane">
... |
react-flux-mui/js/material-ui/src/svg-icons/social/sentiment-very-satisfied.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialSentimentVerySatisfied = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.47 2 12s4.47 10 9.99 10S22 17.53 22 12 17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm1... |
src/components/prompts/ErrorListener.js | knod/cliff-effects-1 | import React from 'react';
/**
* Prompt for latest uncaught error.
* @extends React.Component
*
* @param props {object}
* @param props.callback {onLeaveCallback}
* @param props.askForFeedback {function}
*/
class ErrorListener extends React.Component {
handleError = ({ error }) => {
let promptData = {
... |
ajax/libs/handsontable/0.15.0-beta6/handsontable.full.js | gokuale/cdnjs | /*!
* Handsontable 0.15.0-beta6
* Handsontable is a JavaScript library for editable tables with basic copy-paste compatibility with Excel and Google Docs
*
* Copyright (c) 2012-2014 Marcin Warpechowski
* Copyright 2015 Handsoncode sp. z o.o. <hello@handsontable.com>
* Licensed under the MIT license.
* http://han... |
examples/todomvc/containers/TodoApp.js | TribeMedia/redux | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { Connector } from 'redux/react';
import Header from '../components/Header';
import MainSection from '../components/MainSection';
import * as TodoActions from '../actions/TodoActions';
export default class TodoApp extends Comp... |
techCurriculum/ui/solutions/3.3/src/App.js | jennybkim/engineeringessentials | /**
* Copyright 2017 Goldman Sachs.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writ... |
packages/material-ui-icons/src/ArrowRightAltOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M16.01 11H4v2h12.01v3L20 12l-3.99-4v3z" />
, 'ArrowRightAltOutlined');
|
static/js/jquery.min.js | jonathanchu/pickleback | /*!
* jQuery JavaScript Library v1.6.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.
... |
serene/ui/src/js/containers/header.js | amraks/serene | import React from 'react';
import { Button, Form, FormControl, FormGroup, Navbar, Nav, NavItem, NavDropdown, MenuItem } from 'react-bootstrap';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { doLogout } from '../actions/userActions';
import SignUp from '../containers/signup'... |
definitions/npm/@material-ui/core_v1.x.x/flow_v0.58.x-/core_v1.x.x.js | doberkofler/flow-typed | declare module "@material-ui/core/AppBar/AppBar" {
import type {ComponentType, Node} from "react";
declare type Color = "inherit" | "primary" | "secondary" | "default";
declare type Position = "fixed" | "absolute" | "sticky" | "static" | "relative";
declare module.exports: ComponentType<{
children?: Node,... |
ajax/libs/dio/1.1.5/dio.js | ahocevar/cdnjs | /**
* ___ __ __
* ( ( / \
* ) ) )( () )
* (___(__\__/
*
* DIO.js - a fast and lightweight (~7kb) feature rich Virtual DOM framework.
*
* @author Sultan Tarimo <https://github.com/thysultan>
* @licence MIT
*/
(function (root, factory) {
'use strict';
// amd
if (typeof define === 'function' && d... |
react/app/Story.js | yogeshkhatri1989/hn | import React, { Component } from 'react';
import ReactFire from 'reactfire';
import {
Route,
Link
} from 'react-router-dom';
import StoryComment from './StoryComment';
import UserProfile from './UserProfile';
class Story extends Component {
constructor(props) {
super(props);
this.state = {};
}
c... |
src/SelectableSegmentedDocument.js | arunchaganty/briefly | import React, { Component } from 'react';
import './Document.css';
import { Panel } from 'react-bootstrap';
/***
* Renders a document within a div.
*/
class Document extends Component {
merge(a, b) {
let ret = [];
let ai = 0;
let bi = 0;
while (ai < a.length && bi < b.length) {
if (a[ai] < b[... |
src/components/CVComponents/SectionBlock.js | yahorzhylinski/zhylinski-me-cliend-side | 'use strict';
import React from 'react';
export default class SectionBlock extends React.Component {
render() {
return (
<section className="section summary-section">
<h2 className="section-title">
<i className={this.props.favicon}></i>{this.props.label}
</h2>
{this.props... |
ajax/libs/backbone-react-component/0.5.0/backbone-react-component.js | jaggedsoft/cdnjs | /**
* Backbone.React.Component
* @version 0.5.0
* @author "Magalhas" José Magalhães <magalhas@gmail.com>
* @license MIT <http://opensource.org/licenses/MIT>
*/
'use strict';
(function (root, factory) {
if (typeof define === 'function' && define.amd)
define(['react', 'backbone', 'underscore'], factory);
els... |
webpack/ForemanTasks/Routes/ShowTask/ShowTask.js | adamruzicka/foreman-tasks | import React from 'react';
const ShowTask = () => (
<div>
<h1>Hello Foreman Tasks</h1>
<h2>show-task-page</h2>
</div>
);
export default ShowTask;
|
ajax/libs/ember-data.js/1.0.0-beta.16/ember-data.js | stefanneculai/cdnjs | (function() {
"use strict";
var ember$data$lib$system$adapter$$get = Ember.get;
var ember$data$lib$system$adapter$$errorProps = [
'description',
'fileName',
'lineNumber',
'message',
'name',
'number',
'stack'
];
/**
A `DS.InvalidError` is used by an ... |
ajax/libs/ag-grid/4.1.4/ag-grid.noStyle.js | x112358/cdnjs | // ag-grid v4.1.4
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["agGrid"] = factory();
e... |
client/src/app/App.js | forrana/reactql-app | // App deps
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
// Apollo client deps
import ApolloClient, { createNetworkInterface } from 'apollo-client';
import {
graphql,
ApolloProvider
} from 'react-apollo';
import gql from 'graphql-tag';
// Apollo mock server
import ... |
ajax/libs/forerunnerdb/1.3.847/fdb-all.js | kennynaoh/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/pages/PageNotFound.js | yiweimatou/yibinghoutai | import React from 'react'
import {
Link
} from 'react-router'
const PageNotFound =() => (
<div>
<h1>404 页面找不到</h1>
<p>回到<Link to="/">主页</Link></p>
</div>
)
export default PageNotFound |
packages/material-ui-icons/src/SignalCellularConnectedNoInternet0BarSharp.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path fillOpacity=".3" d="M22 8V2L2 22h16V8h4z" /><path d="M20 22h2v-2h-2v2zm0-12v8h2v-8h-2z" /></g></React.Fragment>
, 'SignalCellularConnectedNoInte... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/TemplateInterpolation.js | scyankai/create-react-app | /**
* 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.
*/
import Rea... |
src/svg-icons/content/reply.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentReply = (props) => (
<SvgIcon {...props}>
<path d="M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"/>
</SvgIcon>
);
ContentReply = pure(ContentReply);
ContentReply.displayName = 'ContentReply'... |
ajax/libs/ag-grid/8.1.0/lib/rendering/renderedCell.js | tonytomov/cdnjs | /**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v8.1.0
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
f... |
Skins/BertrandImmobilier/assets/libraries/bootstrap-datepicker-master/tests/assets/jquery-1.7.1.min.js | MAN-IN-WAN/Kob-Eye | /*! 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... |
node_modules/rx/dist/rx.compat.js | BerniceChua/landr | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
v... |
src/app/component/column/column.js | all3dp/printing-engine-client | import PropTypes from 'prop-types'
import React from 'react'
import propTypes from '../../prop-types'
import buildClassName from '../../lib/class-names'
const Column = ({classNames, children, sm = 12, md, lg, smPush, mdPush, lgPush}) => (
<div
className={buildClassName(
'Column',
{
[`sm-${sm... |
components/static/NotFound.js | reneechar/React-Kanban | import React from 'react';
import styles from '../sass/notFound.scss';
class NotFound extends React.Component {
render() {
return (
<div className={styles.header}>
<h1 className={styles.title}>404 Page Not Found</h1>
</div>
)
}
}
export default NotFound; |
src/components/ChatList/ChatList.storiesHelpers.js | helpscout/blue | import React from 'react'
import AvatarSpec from '../../utilities/specs/avatar.specs'
import ChatSpec from '../../utilities/specs/chat.specs'
import { Avatar, ChatList } from '../index'
const avatars = AvatarSpec.generate(8)
const getItemMarkup = () => {
const fixtures = ChatSpec.generate(8)
const values = Object... |
8.3.0/examples/asyncValidation/dist/bundle.js | erikras/redux-form-docs | !function(t){function n(e){if(r[e])return r[e].exports;var i=r[e]={i:e,l:!1,exports:{}};return t[e].call(i.exports,i,i.exports,n),i.l=!0,i.exports}var r={};n.m=t,n.c=r,n.i=function(t){return t},n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:e})},n.n=function(t){var r=t&&t.__e... |
tests/components/TextField/index.spec.js | vijayasankar/ML2.0 | import React from 'react'
import TextField from 'components/TextField'
import { render, shallow, mount } from 'enzyme'
describe('(Component) TextField, Instantiate', () => {
let component
beforeEach(() => {
component = new TextField()
component.props = {}
})
// TODO call handleClearTextInput then spy... |
test/resolvers/fieldset-test.js | subschema/subschema | "use strict";
import React, {Component} from 'react';
import expect from 'expect';
import {PropTypes, resolvers, ValueManager} from 'Subschema';
import {intoWithContext, byComponent,findNode, change} from 'subschema-test-support';
import injectorFactory from 'subschema-injection/src/injectorFactory';
const injector = ... |
ajax/libs/jquery/1.9.1/jquery.js | js-data/cdnjs | /*!
* 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... |
examples/huge-apps/components/App.js | sprjr/react-router | import React from 'react';
import Dashboard from './Dashboard';
import GlobalNav from './GlobalNav';
class App extends React.Component {
render() {
var courses = COURSES;
return (
<div>
<GlobalNav />
<div style={{ padding: 20 }}>
{this.props.children || <Dashboard courses={co... |
userforms/thirdparty/jquery-validate/lib/jquery-1.7.2.js | scttw/bulli | /*!
* 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/widgets/modals/FinaliseModal.js | sussol/mobile | /**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2020
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { ConfirmForm } from '../modalChildren';
import { modalStrings } from '../../localization';
import { ModalContainer } from './ModalContainer';... |
src/main.js | commute-sh/commute-web | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import AppContainer from './containers/AppContainer'
// Needed for onTouchTap
import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin();
// =================================================... |
examples/Footer.js | jareth/react-materialize | import React from 'react';
import Footer from '../src/Footer';
export default
<Footer copyrights="© 2015 Copyright Text"
moreLinks={
<a className="grey-text text-lighten-4 right" href="#!">More Links</a>
}
links={
<ul>
<li><a className="grey-text text-lighten-3" href="#!">Link 1</a></li>
... |
src/components/starkregen/Help20Karteninhalt.js | cismet/wupp-geoportal3-powerboats | import React from 'react';
import GenericModalMenuSection from '../commons/GenericModalMenuSection';
import { Icon } from 'react-fa';
const Component = ({ uiState, uiStateActions, showModalMenu }) => {
return (
<GenericModalMenuSection
uiState={uiState}
uiStateActions={uiStateActions}
sectionKey="karteninh... |
ajax/libs/angular.js/1.1.1/angular-scenario.js | kostasx/cdnjs | /*!
* jQuery JavaScript Library v1.8.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Thu Sep 20 2012 21:13:05 GMT-0400 (Eastern Daylight Time)
*/
(function(... |
examples/BadgeDropdowns.js | jsbranco/react-materialize | import React from 'react';
import Badge from '../src/Badge';
import Button from '../src/Button';
import Dropdown from '../src/Dropdown';
import Icon from '../src/Icon';
import NavItem from '../src/NavItem';
export default
<Dropdown
trigger={
<Button>Dropdown<Icon right>arrow_drop_down</Icon></Button>
}>
<Nav... |
src/Container.js | stefanfoulis/react-router-relay | import React from 'react';
import StaticContainer from 'react-static-container';
import getParamsForRoute from './getParamsForRoute';
import RootComponent from './RootComponent';
import RouteAggregator from './RouteAggregator';
export default class Container extends React.Component {
static displayName = 'ReactRout... |
ajax/libs/react-native-web/0.13.6/exports/unmountComponentAtNode/index.min.js | cdnjs/cdnjs | import{unmountComponentAtNode}from"react-dom";export default unmountComponentAtNode; |
test/templates/RadioButton.snap.js | sullenor/teatime-test-utils | import Radio from 'teatime-components/component/Radio';
import React from 'react';
export default () => (
<Radio
name='radio-control'
options={[
{label: 'Ducati', value: 'ducati'},
{label: 'Honda', value: 'honda'},
{label: 'Jawa', value: 'jawa'},
]}
theme='button'/>
);
|
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js | bradparks/actor-platform___im_client_cross_platform | import React from 'react';
import { PureRenderMixin } from 'react/addons';
import DialogActionCreators from 'actions/DialogActionCreators';
import AvatarItem from 'components/common/AvatarItem.react';
const ContactsSectionItem = React.createClass({
propTypes: {
contact: React.PropTypes.object
},
mixins: [... |
src/Stepper/StepButton.spec.js | lawrence-yu/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import {spy} from 'sinon';
import StepButton from './StepButton';
import StepLabel from './StepLabel';
import getMuiTheme from '../styles/getMuiTheme';
describe('<StepButton />', () => {
const muiTheme = ge... |
src/components/Footer/Footer.js | vanbujm/react-css-animation-practice | /**
* 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 React from 'react';
import withStyles from 'isom... |
client-src/components/list-item/index.js | jgunnison/react-boilerplate | import React from 'react';
import PropTypes from 'prop-types';
function ListItem({ item }) {
return (
<li className="c-list-item" id={item.id}>{item.name} | {item.surname} | {item.region} </li>
);
}
ListItem.propTypes = {
item: PropTypes.object.isRequired,
};
export default ListItem;
|
admin/src/components/SecondaryNavigation.js | belafontestudio/keystone | import blacklist from 'blacklist';
import classnames from 'classnames';
import React from 'react';
import { Container } from 'elemental';
var SecondaryNavItem = React.createClass({
displayName: 'SecondaryNavItem',
propTypes: {
className: React.PropTypes.string,
children: React.PropTypes.node.isRequired,
href: ... |
mobile/src/App.js | lnmx/goread | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import idbKeyval from 'idb-keyval';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import AppBar from 'material-ui/AppBar';
import Dialog from 'material-ui/Dialog';
import IconButton from 'material-ui/IconButton';
import ... |
client/components/Login.js | Lendr-Codesmith/Lendr | import React, { Component } from 'react';
import { Router, Route, Link, browserHistory } from 'react-router';
class Login extends Component {
verifyUser(event) {
// need this
event.preventDefault();
// access username and password values
const username = event.target.elements[0].value;
const pa... |
ajax/libs/yui/3.10.2/event-focus/event-focus-debug.js | voronianski/cdnjs | YUI.add('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
arrayIndex = Y.Array.indexOf,
useActivate = (function() {
... |
src/page/PanelPage.js | jerryshew/react-uikits | import React, { Component } from 'react';
import {Panel} from '../component';
import {CN, TitleBlock} from '../util/tools';
import CodeView from './CodeView';
export class PanelPage extends Component {
render() {
return (
<section>
{TitleBlock('面板')}
<h4>面板</h4>... |
packages/reactor-kitchensink/src/examples/PivotGrid/DataChanges/DataChanges.js | markbrocato/extjs-reactor | import React, { Component } from 'react';
import { Container, PivotGrid, Toolbar, Button, Menu, MenuItem } from '@extjs/reactor/modern';
import SaleModel from '../SaleModel';
import { generateData, randomItem } from '../generateSaleData';
export default class DataChanges extends Component {
store = Ext.create('Ex... |
assets/jqwidgets/demos/react/app/grid/bindingtojsarray/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
class App extends React.Component {
render() {
let source =
{
localdata: [
['Alfreds Futterkiste', 'Maria Anders', 'Sales Representa... |
client/extensions/woocommerce/store-sidebar/store-ground-control.js | Automattic/woocommerce-connect-client | /** @format */
/**
* External dependencies
*/
import React from 'react';
import PropTypes from 'prop-types';
import { localize } from 'i18n-calypso';
/**
* Internal dependencies
*/
import Button from 'components/button';
import Gridicon from 'gridicons';
import Site from 'blocks/site';
const StoreGroundControl ... |
src/GraphQLQueryResults.js | tmc/graphql-web-client | import React from 'react';
import AceEditor from 'react-ace';
var brace = require('brace');
require('brace/mode/javascript');
require('brace/theme/github');
export default class GraphQLQueryResults extends React.Component {
render() {
return (
<AceEditor
mode="javascript"
theme="github... |
ajax/libs/material-ui/5.0.0-beta.5/modern/MenuItem/MenuItem.min.js | cdnjs/cdnjs | import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";import _extends from"@babel/runtime/helpers/esm/extends";const _excluded=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex"];import*as React from"react";import PropTypes ... |
client/modules/App/components/DevTools.js | openfocus/HTH-MERN | 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 />
... |
src/components/About.js | kpi-ua/ecampus.kpi.ua | import React from 'react';
const About = () => (
<div className="row">
<div className="col-md-12">
<h1>Про систему</h1>
<p>
Інформаційно-телекомунікаційна система «Електронний кампус» – прикладне
програмне забезпечення, яке є елементом інформаційно-телекомунікаційного
середов... |
src/ChipInput.spec.js | TeamWertarbyte/material-ui-chip-input | /* eslint-env jest */
import React from 'react'
import { mount } from 'enzyme'
import Chip from '@material-ui/core/Chip'
import ChipInput from './ChipInput'
/*
Since the tests do use a theme, we want to disable typography warnings
per https://material-ui.com/style/typography/#migration-to-typography-v2.
*/
window... |
src/client/class/Classrooms.js | jmicmoore/merit-badge-university | import React from 'react';
import {connect} from 'react-redux';
import _ from 'lodash';
import TextField from '../common/components/TextField';
import ErrorAlert from '../common/components/ErrorAlert';
import {Table} from 'react-bootstrap';
import FontAwesome from 'react-fontawesome';
import {addClassroom, getClassroom... |
www/gatsby-config.js | react-bootstrap/react-bootstrap | const { cleanDoclets } = require('gatsby-transformer-react-docgen/doclets');
const path = require('path');
const remarkSlug = require('remark-slug');
const defaultDescriptions = require('./src/defaultPropDescriptions');
module.exports = {
siteMetadata: {
title: 'React-Bootstrap',
titleTemplate: '%s · React-... |
node_modules/react-bootstrap/lib/SplitButton.js | caughtclean/but-thats-wrong-blog | 'use strict';
exports.__esModule = true;
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _inter... |
src/pages/ProfilePage.js | ramaya314/UndocuFunds | import React, { Component } from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import MainTheme from '../themes/MainTheme';
import { Grid, Col, Row } from 'react-bootstrap';
const userStore = require('../stores/user');
functio... |
packages/react-reconciler/src/__tests__/ReactIncrementalSideEffects-test.js | brigand/react | /**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails react-core
*/
'use strict';
var React;
var ReactNoop;
describe('ReactIncrementalSideEffects', () => {
beforeEach(() => {
... |
app/components/Store/Order/OrderSummary/index.js | VineRelay/VineRelayStore | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
const Wrapper = styled.div`
`;
const Title = styled.h2`
`;
const Divider = styled.div`
width: 100%;
height: 1px;
background: #EEE;
`;
const CartItem = styled.div`
display: flex;
justify-content: flex-sta... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.