path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
017 - React Native Testing/rn_cli_example/index.ios.js | StephenGrider/RallyCodingWeekly | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class rn_cli_example extends Component {
render() {
return (
<View style={styles.cont... |
ajax/libs/cleave.js/0.6.11/cleave-react.min.js | holtkamp/cdnjs | /*!
* cleave.js - 0.6.11
* https://github.com/nosir/cleave.js
* Apache License Version 2.0
*
* Copyright (C) 2012-2016 Max Huang https://github.com/nosir/
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t... |
src/components/Header/Header.js | noomorph/quizzard2 | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './Header.less';
import withStyles from '../../decorators/withStyles';
import Link from '../../utils/Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header {
render() {
... |
lib/article-list/index.js | andyfen/react-native-UIKit | import React from 'react';
import {
StyleSheet,
Text,
View,
Image,
TouchableOpacity,
ListView,
Dimensions,
} from 'react-native';
import { truncate } from 'lodash';
import { primary, gutter } from '../variables';
import { DateItem } from '../';
const { width } = Dimensions.get('window');
const ds = new ... |
examples/slackbutton_bot.js | michaesw/botkit | /* Uses the slack button feature to offer a real time bot to multiple teams */
var Botkit = require('../lib/Botkit.js');
if (!process.env.clientId || !process.env.clientSecret || !process.env.port) {
console.log('Error: Specify clientId clientSecret and port in environment');
process.exit(1);
}
var controller = ... |
src/components/Header/Header.js | mark4carter/react-hrtbus | require('./app-header.css');
import React from 'react'
import Radium from 'radium'
import Colors from '../common/Colors'
import Icon from '../common/Icon'
import { Router, Route, Link } from 'react-router'
let style = {
header: {
background: Colors.blue.dark
},
activeLink: {
background: Colors.blue.ba... |
src/applications/disability-benefits/all-claims/pages/terminallyIll.js | department-of-veterans-affairs/vets-website | import React from 'react';
import fullSchema from 'vets-json-schema/dist/21-526EZ-ALLCLAIMS-schema.json';
const { isTerminallyIll } = fullSchema.properties;
const TerminallyIllInfo = (
<va-additional-info trigger="Why does this matter?">
We’ll help to get your claim processed faster if the evidence to support
... |
src/components/TalentStats.js | dfilipidisz/overfwolf-hots-talents | import React from 'react';
import { connect } from 'react-redux';
import AppPopup from './AppPopup';
const lvls = ['1', '4', '7', '10', '13', '16', '20'];
const GraphIcon = ({lvl, openStatDetails}) => {
const open = () => {
openStatDetails(lvl);
};
return (
<i className='fa fa-line-chart' onClick={open... |
ajax/libs/react-router/0.6.1/react-router.js | hanssens/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.ReactRouter=e()}}(function(){var define,module,export... |
doc/js/output/Ext.draw.Component.js | tonybaloney/Cloud-auto-scaling | Ext.data.JsonP.Ext_draw_Component({"subclasses":["Ext.chart.Chart"],"files":[{"filename":"Component.js","href":"Component4.html#Ext-draw-Component"}],"mixins":[],"code_type":"ext_define","inheritable":false,"uses":[],"meta":{},"members":{"method":[{"meta":{},"tagname":"method","owner":"Ext.Component","name":"constructo... |
src/components/sidebar/Sidebar.js | EyEder/TM-Shop | import React from 'react';
import ReactDOM from 'react-dom'
import SortFilter from './SortFilter'
import CheckboxList from './CheckboxList'
class Sidebar extends React.Component {
constructor(props) {
super(props);
}
render(){
const { sortFilter, checkedList, handleChange } = this.props;
return (
<d... |
files/rxjs/2.3.11/rx.lite.compat.js | sancospi/jsdelivr | // 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... |
nativeExample/reactRedux/__tests__/index.android.js | zhanglizhao/react-native-knowledge | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
app/containers/App.js | rpmjoaquin/ghui | // @flow
import React, { Component } from 'react';
import type { Children } from 'react';
export default class App extends Component {
props: {
children: Children
};
render() {
return (
<div>
{this.props.children}
</div>
);
}
}
|
node_modules/react-router/es/Switch.js | chenjic215/search-doctor | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
src/components/Grid/index.js | iris-dni/iris-frontend | import React from 'react';
import styles from './grid.scss';
const Grid = ({ children, modifier }) => (
<div className={modifier ? styles[modifier] : styles.root}>
{children}
</div>
);
export default Grid;
|
src/client/components/meeting/meeting-drag-target.js | pgryko/meeting | /*
* Copyright (C) 2015-2016 InSeven Limited.
*
* This program 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 2
* of the License, or (at your option) any later version.
*
* This program... |
src/app/ui/CenterLoader/CenterLoader.js | arikanmstf/mylibrary | /**
* Web Component Template By => create-module script
* @version 1.0.1
*
*/
// @flow
import React from 'react';
import type { Node } from 'react';
import { connect } from 'react-redux';
import { Image } from 'ui';
import Loading from 'assets/images/loading.gif';
import { mapStateToProps } from './actions';
impo... |
packager/transformer.js | jaggs6/react-native | /**
* 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.
*
* Note: Thi... |
frontend/src/Settings/Indexers/Indexers/EditIndexerModalConnector.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { clearPendingChanges } from 'Store/Actions/baseActions';
import { cancelSaveIndexer, cancelTestIndexer } from 'Store/Actions/settingsActions';
import EditIndexerModal from './EditIndexerModal';
... |
src/client/components/exposerouter.react.js | masterfung/react-immutable-flux-login | import React from 'react';
// Higher order component exposing router.
// https://medium.com/@dan_abramov/mixins-are-dead-long-live-higher-order-components-94a0d2f9e750
export default function exposeRouter(Component) {
class ExposeRouter extends React.Component {
render() {
return <Component {...this.props... |
ajax/libs/forerunnerdb/1.3.10/fdb-legacy.js | jdh8/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/MovieMain.js | z9310329650/react-movie | require('normalize.css/normalize.css');
require('styles/App.css');
import React from 'react';
import Choice from './Choice';
var MovieMain = React.createClass({
render:function(){
/*使用Choice方法来构建电影列表*/
var movies = Choice('hot');
return (
<div>
<h3 className='mainTitle'>正在热映... |
docs/app/Examples/collections/Message/Variations/MessageExampleCompact.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Message } from 'semantic-ui-react'
const MessageExampleCompact = () => (
<Message compact>
Get all the best inventions in your e-mail every day. Sign up now!
</Message>
)
export default MessageExampleCompact
|
rest-ui-scripts/template/src/resources/Comment/crud/list/Pagination.js | RestUI/create-rest-ui-app | import React from 'react';
import { translate } from 'rest-ui';
import FlatButton from 'material-ui/FlatButton';
import { Toolbar, ToolbarGroup } from 'material-ui/Toolbar';
import ChevronLeft from 'material-ui/svg-icons/navigation/chevron-left';
import ChevronRight from 'material-ui/svg-icons/navigation/chevron-right'... |
src/esm/components/graphics/icons-next/filter-icon-next/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["color", "title"];
import React from 'react';
import PropTypes from 'prop-types';
export var FilterIconNext = function FilterIconNext(_ref) {
var col... |
src/app.js | navio/zocdoc-challenge | import React from 'react';
import Layout from './layout';
import reactdom from 'react-dom'
function run(){
reactdom.render(<Layout />,document.querySelector('#app'));
}
new Promise((resolve) => {
if (window.addEventListener) {
window.addEventListener('DOMContentLoaded', resolve);
} else {
windo... |
pages/demos/progress.js | AndriusBil/material-ui | // @flow
import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from 'docs/src/pages/demos/progress/progress.md';
function Page() {
return (
<MarkdownDocs
markdown={markdown}
demos={... |
lib/runtime/components/parts/CommonQuestionParts.js | jirokun/survey-designer-js | import React from 'react';
import S from 'string';
export function title(question, replacer) {
const html = question.getTitle();
if (S(html).isEmpty()) return null;
return (
<h2
className="question-title"
data-dev-id-label={question.getDevId()}
dangerouslySetInnerHTML={{ __html: replacer.id... |
modules/__tests__/RouterContext-test.js | nvartolomei/react-router | import expect from 'expect'
import React from 'react'
import { render, unmountComponentAtNode } from 'react-dom'
import match from '../match'
import { routerShape } from '../PropTypes'
import RouterContext from '../RouterContext'
import { createRouterObject } from '../RouterUtils'
describe('RouterContext', () => {
... |
hackupc/node_modules/react-router/es/Link.js | IKholopov/HackUPC2017 | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
src/client.js | jackygrahamez/react-starter-kit | /**
* 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 ReactDOM from 'react-... |
src/includes/Theme/ThemeBlog.js | rendact/rendact | import React from 'react';
import AdminConfig from '../../admin/AdminConfig';
import LostConnection from '../../admin/LostConnection';
import Query from '../../admin/query';
import {riques, errorCallback, getValue, setValue, loadConfig} from '../../utils';
import {saveConfig} from '../../utils/saveConfig'
import {getT... |
ajax/libs/angular-ui-select/0.16.0/select.js | menuka94/cdnjs | /*!
* ui-select
* http://github.com/angular-ui/ui-select
* Version: 0.15.0 - 2016-03-15T17:20:10.014Z
* 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,... |
lens-ui/app/components/LoginComponent.js | sriksun/incubator-lens | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... |
assets/jqwidgets/demos/react/app/grid/columntemplate/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 =
{
datatype: 'xml',
datafields: [
{ name: 'title', type: ... |
packages/javascript/reactjs/react-getstart/react-contact-manager/src/pages/contact-list-page.js | sharkspeed/dororis | // src/pages/contact-list-page.js
import React, { Component } from 'react'
import { connect } from 'react-redux'
import ContactList from '../components/contact-list'
import { fetchContacts, deleteContact } from '../actions/contact-actions'
class ContactListPage extends Component {
componentDidMount() {
... |
components/UI/Table/Table.js | gabrielseco/potterapi | import React from 'react';
import Button from '../Forms/Buttons/Button';
function Table({data, browserHistory}){
function goTo(id) {
console.log('id',id, browserHistory);
browserHistory.push(`/character/${id}`);
}
const rows = data.map((item,i) => {
return (
<tr key={i}>
<td onClick={g... |
src/applications/hca/config/chapters/veteranInformation/veteranAddress.js | department-of-veterans-affairs/vets-website | import React from 'react';
import merge from 'lodash/merge';
import fullSchemaHca from 'vets-json-schema/dist/10-10EZ-schema.json';
import PrefillMessage from 'platform/forms/save-in-progress/PrefillMessage';
import { AddressDescription } from '../../../components/ContentComponents';
import {
schema as addressSchema... |
assets/js/components/Lessons.js | laravelista/Laranotti | import React from 'react';
import Lesson from './Lesson.js';
class Lessons extends React.Component {
render() {
var that = this;
var lessonNodes = this.props.lessons.map((lesson, key) => {
return (
<Lesson key={key} item={lesson} watchLesson={that.props.watchLesson.b... |
ajax/libs/forerunnerdb/1.3.725/fdb-core+views.min.js | dada0423/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... |
jenkins-design-language/src/js/components/material-ui/svg-icons/notification/more.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const NotificationMore = (props) => (
<SvgIcon {...props}>
<path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.97.89 1.66.89H22c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 13.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm... |
src/Element/inner/View.js | dht/lpm | import React from 'react';
import Base from './Base';
const View = (props) => {
const {content} = props,
containerStyle = {...styleView, backgroundImage: `url(${content})`}
return <Base {...props} containerStyle={containerStyle}>
</Base>
}
export default View;
const styleView = {
position: '... |
src/components/_Common/Footer.js | hoppispace/hoppi-space-web-app | import React from 'react';
import {URL_FACEBOOK, URL_INSTAGRAM, URL_TWITTER} from "../../constants";
const Footer = () => {
return (
<footer id="footer">
<div className="container-fluid">
<div className="row">
<div className="col-xs-12 col-sm-12 col-md-4 col... |
app/components/CheckOutComponent.js | cdillon85/the-art-store | import React from 'react'
import RaisedButton from 'material-ui/RaisedButton'
import Paper from 'material-ui/Paper'
import {Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table'
export default function CheckOutComponent (props) {
const style = {
width: '100%',
... |
src/components/TopicEntry/index.js | Perspicere/PerspicereMagazine | import React from 'react'
import imgSrc from '../../docs/卷首语/1.jpg'
import styles from './styles'
function TopicEntry() {
return (
<div style={styles.container}>
<img src={imgSrc} style={styles.image} />
</div>
)
}
export default TopicEntry
|
node_modules/engine.io/node_modules/debug/browser.js | lenknerd/HomePage1 |
/**
* This is the web browser implementation of `debug()`.
*
* Expose `debug()` as the module.
*/
exports = module.exports = require('./debug');
exports.log = log;
exports.formatArgs = formatArgs;
exports.save = save;
exports.load = load;
exports.useColors = useColors;
exports.storage = 'undefined' != typeof chro... |
blueocean-dashboard/src/main/js/components/stories/logDisplay.js | tfennelly/blueocean-plugin | /* eslint-disable */
import React from 'react';
import { storiesOf } from '@kadira/storybook';
import Node from '../Step';
import Nodes from '../Steps';
import { getNodesInformation } from '../../util/logDisplayHelper';
import { runNodesRunning, runNodesFail, runNodesSuccess } from '../../../../test/js/runNodes';
imp... |
201601react/李兰兰/3/app/components/Button/Button.js | zhufengreact/homework | import React, { Component } from 'react';
class Button extends Component {
handleClick(){
alert('戳我干嘛!');
}
render(){
const style = require('./Button.less');
return (
<button className="my-button" onClick={this.handleClick.bind(this)}>
快戳我
</button>
);
}
}
export default B... |
packages/linter-ui-default/node_modules/prop-types/factoryWithTypeCheckers.js | luizpicolo/.atom | /**
* 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.
*/
'use strict';
var emptyFunction = require('fbjs/lib/emptyFunction');
var invariant = require('fbjs/lib/invariant');
var warning = requi... |
src/App.js | Lynx-Productions/OPeM | /***
* Copyright 2017 - present Lynx Productions
*
* 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 applicabl... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/rc-upload/es/IframeUploader.js | bhathiya/test | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possib... |
ajax/libs/forerunnerdb/1.3.324/fdb-core.js | x112358/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... |
webpack/components/TemplateSyncResult/components/SyncedTemplate/StringInfoItem.js | mmoll/foreman_templates | import React from 'react';
import EllipsisWithTooltip from 'react-ellipsis-with-tooltip';
import PropTypes from 'prop-types';
import InfoItem from './InfoItem';
import { itemIteratorId } from './helpers';
const StringInfoItem = ({
template,
attr,
tooltipText,
translate,
mapAttr,
elipsed,
}) => {
const i... |
ajax/libs/rxjs/2.3.23/rx.lite.compat.js | JohnKim/cdnjs | // 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... |
src/components/Auth/index.js | galsen0/hair-dv-front | /**
* Created by diop on 07/05/2017.
*/
import React from 'react';
import LoginFormComponent from './LoginForm';
import SignUpFormComponent from './SignUpForm';
import { Divider, Grid } from 'semantic-ui-react';
class Auth extends React.Component{
render(){
return(
<Grid columns="equal" centered>... |
examples/huge-apps/routes/Course/routes/Announcements/routes/Announcement/components/Announcement.js | zenlambda/react-router | /*globals COURSES:true */
import React from 'react'
class Announcement extends React.Component {
render() {
let { courseId, announcementId } = this.props.params
let { title, body } = COURSES[courseId].announcements[announcementId]
return (
<div>
<h4>{title}</h4>
<p>{body}</p>
... |
lib/client.js | mysterycommand/rx-uncontext | import React from 'react';
import App from './components/App';
let element = React.createElement(App);
let container = document.getElementById('app-container');
React.render(element, container);
|
src/svg-icons/device/battery-charging-80.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging80 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V9h4.93L13 7v2h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9L11... |
src/svg-icons/device/signal-cellular-connected-no-internet-4-bar.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularConnectedNoInternet4Bar = (props) => (
<SvgIcon {...props}>
<path d="M20 18h2v-8h-2v8zm0 4h2v-2h-2v2zM2 22h16V8h4V2L2 22z"/>
</SvgIcon>
);
DeviceSignalCellularConnectedNoInternet4Bar = pur... |
src/components/box.js | fpyang/Macaroon | import React, { Component } from 'react';
class Box extends Component {
renderNumBox() {
let theStyle = {};
const boxStyle = {
color: 'black',
fontSize: '100%',
width: '100px',
height: '100px',
textAlign: 'center',
verticalAlign: 'middle',
lineHeight: ... |
src/components/Guess.js | georgezee/cabango | import React from 'react';
const Guess = (props) => {
return (
<div id={props.guessID} className="guess" onClick={props.onClick}>{props.guess}</div>
);
}
export default Guess; |
frontend/tests/framework.spec.js | qurben/mopidy-jukebox | import assert from 'assert'
import React from 'react'
import {mount, render, shallow} from 'enzyme'
class Fixture extends React.Component {
render () {
return (
<div>
<input id='checked' defaultChecked />
<input id='not' defaultChecked={false} />
</div>
)
}
}
describe('(Framewo... |
server/sonar-web/src/main/js/apps/quality-profiles/components/App.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
test/CarouselCaptionSpec.js | mmarcant/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ReactDOM from 'react-dom';
import Carousel from '../src/Carousel';
describe('<Carousel.Caption>', () => {
it('uses "div" by default', () => {
let instance = ReactTestUtils.renderIntoDocument(
<Carousel.Caption />
... |
src/SettingsItemLocation/index.js | DuckyTeam/ducky-components | import SettingsItem from '../SettingsItem';
import Typography from '../Typography';
import PopoverMenuAnchor4 from '../PopoverMenuAnchor4';
import PopoverMenu from '../PopoverMenu';
import Popup from '../Popup';
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import s... |
src/components/D3Bars.js | guzmonne/gux-d3-react | import React from 'react'
import T from 'prop-types'
import {DELAY} from '../variables.js'
const d3 = Object.assign({},
require('d3-selection'),
require('d3-transition')
)
class D3Bars extends React.Component {
componentDidMount() {
this.draw()
}
componentDidUpdate() {
this.draw()
}
draw = ()... |
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/actual.js | TarikHuber/react-redux-material-starter-kit | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
js/components/zhn-moleculs/MenuPart.js | ZhnZhn/webgl-topics | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _OpenClose = _interopRequireDefault(require("../zhn-atoms/OpenClose"));
... |
node_modules/eslint-config-airbnb/test/test-react-order.js | truststamp/S3 | import test from 'tape';
import { CLIEngine } from 'eslint';
import eslintrc from '../';
import reactRules from '../rules/react';
const cli = new CLIEngine({
useEslintrc: false,
baseConfig: eslintrc,
// This rule fails when executing on text.
rules: { indent: 0 },
});
function lint(text) {
// @see http://e... |
packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/ObjectSpread.js | jdcrensh/create-react-app | /**
* Copyright (c) 2015-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.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function load(baseUser) {
return [
{ id: 1, name: '... |
app/javascript/mastodon/features/compose/components/search.js | danhunsaker/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Overlay from 'react-overlays/lib/Overlay';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import { searchEnabled } from '../... |
app.js | kevinsproles/react-static-test | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
import Location from '.... |
src/routes/config/tvbrand/channels/index.js | china2008qyj/DVA-DEMO | import React from 'react'
import PropTypes from 'prop-types'
import { routerRedux } from 'dva/router'
import { connect } from 'dva'
import { Row, Col, Button, Popconfirm } from 'antd'
import List from './List'
import Filter from './Filter'
import Modal from './Modal'
const channels = ({ location, dispatch, channels, l... |
backend/modules/content/src/main/browser/containers/Loading.js | savantly-net/sprout-platform | import React from 'react';
export default () => (
<div>Loading...</div>
) |
src/svg-icons/social/person.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPerson = (props) => (
<SvgIcon {...props}>
<path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
</SvgIcon>
);
SocialPerson = pure(Soc... |
results/scripts/ui-lib/table.js | kouryuu/react-questionnaire | import React from 'react'
import Answers from './answers.js'
import $ from 'jquery'
export default class Table extends React.Component{
constructor(){
super();
this.state = {
questions: [],
responses: []
};
}
_getQuestions(callback){
$.getJSON('/configs/sampleQuestions.json')
.done... |
jample_react/src/index.js | famulus/jample | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
// If you want your app to work offline and load faster, you can change
// unregister() to register()... |
frontend/js/components/pages/profile.js | skeswa/equitize | import React from 'react';
import {Navigation, Link} from 'react-router';
import PrivatePageMixin from '../../mixins/privatepage';
const Profile = React.createClass({
mixins: [
PrivatePageMixin
],
render: () => {
return (
<div>
<h1>profile</h1>
</div>... |
src/packages/@ncigdc/modern_components/ImageViewer/ImageViewerTab.js | NCI-GDC/portal-ui | import React from 'react';
import { compose, mapProps, branch, renderComponent } from 'recompose';
import { head } from 'lodash';
import withRouter from '@ncigdc/utils/withRouter';
import styled from '@ncigdc/theme/styled';
import { SLIDE_IMAGE_ENDPOINT } from '@ncigdc/utils/constants';
import { Row, Column } from '... |
app/javascript/mastodon/features/ui/components/column.js | dwango/mastodon | import React from 'react';
import ColumnHeader from './column_header';
import PropTypes from 'prop-types';
import { debounce } from 'lodash';
import { scrollTop } from '../../../scroll';
import { isMobile } from '../../../is_mobile';
export default class Column extends React.PureComponent {
static propTypes = {
... |
src/static/js/modules/loan-comparison.js | Scotchester/owning-a-home | var $ = jQuery = require('jquery');
require('jquery-easing');
require('cf-expandables');
var React = require('react');
var App = require('./loan-comparison/components/app');
React.render(
<App/>, document.getElementById('app-container')
); |
ajax/libs/analytics.js/1.5.6/analytics.js | ruslanas/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 ... |
packages/mcs-lite-ui/src/P/P.example.js | MCS-Lite/mcs-lite | import React from 'react';
import { storiesOf } from '@storybook/react';
import { withInfo } from '@storybook/addon-info';
import { theme } from 'mcs-lite-theme';
import P from '.';
storiesOf('P', module)
.add(
'API',
withInfo({
text: `段落使用。 (${theme.fontSize.p}) & color: currentColor`,
inline: t... |
ajax/libs/react-autosuggest/3.7.4/autosuggest.js | redmunds/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["Autosuggest"] = fac... |
TUSec/vendor/jquery/jquery.js | jakelawrence24/jakelawrence24.github.io | /*!
* jQuery JavaScript Library v1.12.4
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-05-20T17:17Z
*/
(function( global, factory ) {
if ( typeof module =... |
docs/app/Examples/views/Feed/Content/FeedExampleExtraImages.js | clemensw/stardust | import React from 'react'
import { Feed } from 'semantic-ui-react'
const FeedExampleAdditionalInformation = () => (
<Feed>
<Feed.Event>
<Feed.Label image='http://semantic-ui.com/images/avatar/small/helen.jpg' />
<Feed.Content>
<Feed.Date>3 days ago</Feed.Date>
<Feed.Summary>
... |
client/components/dev-tools/index.js | danshankspark/go-react | import React from 'react';
// Exported from redux-devtools
import { createDevTools } from 'redux-devtools';
// Monitors are separate packages, and you can make a custom one
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
// createDevTools takes a monitor an... |
src/components/ContentPage/ContentPage.js | LukevdPalen/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { PropTypes, Component } from 'react';
import styles from './ContentPage.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class ContentPage extends Component {
static propTypes = {
path: PropTy... |
src/utils/grid_helper.js | jonathanweiss/pixelboard | import React from 'react';
import Column from '../components/column.jsx';
import Row from '../components/row.jsx';
import Led from '../components/led.jsx';
import { characters, missingno } from './configuration.js';
const getBits = (character, gridConfiguration) => {
const grid = [];
const source = characters[ch... |
news/sources/app.js | pintimes/lifeix-football-app-react | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
StyleSheet,
Navigator
} from 'react-native';
import {Router, routerReducer, Route, Container, Animations, Schema} from 'react-native-redux-router';
import { createStore, comb... |
fields/types/date/DateColumn.js | danielmahon/keystone | import React from 'react';
import moment from 'moment';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var DateColumn = React.createClass({
displayName: 'DateColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.obj... |
ajax/libs/react-leaflet/2.0.0-rc.3/react-leaflet.js | cdnjs/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('leaflet'), require('react-dom')) :
typeof define === 'function' && define.amd ? define(['exports', 'react', 'leaflet', 'react-dom'], factory) :
(factory((global.ReactLeafl... |
ReactJS_NoteApp/node_modules/react-router/es/StaticRouter.js | canhphong/canhphong.github.io | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
ajax/libs/yui/3.5.1/event-focus/event-focus-debug.js | JohnKim/cdnjs | YUI.add('event-focus', function(Y) {
/**
* 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 = YLang.isFunction(
Y... |
src/svg-icons/action/accessible.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAccessible = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="4" r="2"/><path d="M19 13v-2c-1.54.02-3.09-.75-4.07-1.83l-1.29-1.43c-.17-.19-.38-.34-.61-.45-.01 0-.01-.01-.02-.01H13c-.35-.2-.75-.3-1.19... |
lib/components/Button.js | devinmarieb/budget-app | import React, { Component } from 'react'
export default class Input extends Component {
render() {
const { text, handleClick, className, disabled } = this.props;
return (
<button className={className}
onClick={ handleClick }
disabled={ disabled }> { text } </button>
);
... |
loveFish/pages/index.js | fangzhou37/WebExperiment | import React from 'react'
// Styles for highlighted code blocks.
import 'css/zenburn.css'
export default class Sass extends React.Component {
render () {
return (
<div>
<img src='./images/homePage.jpg'/>
</div>
)
}
}
|
client/src/routes.js | RajivLinkites/Starter-Skeleton | import React from 'react';
import { Route, IndexRoute } from 'react-router';
// Import miscellaneous routes and other requirements
import App from './components/app';
import NotFoundPage from './components/pages/not-found-page';
// Import static pages
import HomePage from './components/pages/home-page';
import Contac... |
classic/src/scenes/mailboxes/src/Scenes/AppScene/Sidelist/SidelistControls/SidelistControlDownloads/SidelistControlDownloads.js | wavebox/waveboxapp | import React from 'react'
import SidelistControl from '../SidelistControl'
import { settingsStore } from 'stores/settings'
import { localHistoryStore } from 'stores/localHistory'
import shallowCompare from 'react-addons-shallow-compare'
import { UISettings } from 'shared/Models/Settings'
import { withStyles } from '@ma... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.