path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
src/main/scripts/modules/sea-siege/react/views/card/header.js | twuni/sea-siege | import React from 'react';
import Component from '../../components/component';
import ManaCost from './mana-cost';
const {object, string} = React.PropTypes;
class Header extends Component {
static get propTypes() {
return Component.withPropTypes({
title: string.isRequired,
cost: object
});
... |
src/components/Main.js | tenghuiliu/demo-by-react | require('normalize.css/normalize.css');
require('styles/App.scss');
import React from 'react';
import ReactDOM from 'react-dom';
// 获取images数据
var imageDatas = require('../sources/imageData.json');
/**
* 利用只执行函数,将图片名信息转成图片URL路径信息
* @param {[type]} imageDatasArr: images数据数组
* @return {[type]} imageDatasArr: 含有图片... |
classic/src/scenes/wbfa/generated/FARBell.free.js | wavebox/waveboxapp | import React from 'react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faBell } from '@fortawesome/free-regular-svg-icons/faBell'
export default class FARBell extends React.Component {
render () {
return (<FontAwesomeIcon {...this.props} icon={faBell} />)
}
}
|
docs/app/Components/ComponentDoc/ComponentControls/ComponentControlsToolTip.js | shengnian/shengnian-ui-react | import PropTypes from 'prop-types'
import React from 'react'
import { Popup } from 'shengnian-ui-react'
const toolTipStyle = {
padding: '0.5em',
textAlign: 'center',
width: 100,
}
const ComponentControlsToolTip = ({ children, content }) => (
<Popup
content={content}
inverted
mouseEnterDelay={800}
... |
app/javascript/flavours/glitch/features/ui/components/zoomable_image.js | glitch-soc/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import IconButton from 'flavours/glitch/components/icon_button';
import { defineMessages, injectIntl } from 'react-intl';
const messages = defineMessages({
compress: { id: 'lightbox.compress', defaultMessage: 'Compress image view box' },
expand: { id: ... |
ajax/libs/extjs/4.2.1/src/form/Basic.js | SimeonC/cdnjs | /*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as
published by the Free Software Foundation and appearing in the file LICENSE included in... |
ajax/libs/jquery/1.11.3/jquery.min.js | HealthIndicators/cdnjs | /*! jQuery v1.11.3 | (c) 2005, 2015 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... |
example/App.js | bodyflex/react-native-simple-modal | import React from 'react';
import { Text, TouchableOpacity, View } from 'react-native';
import Modal from 'react-native-simple-modal';
export default class App extends React.Component {
state = { open: false };
modalDidOpen = () => console.log('Modal did open.');
modalDidClose = () => {
this.setState({ ope... |
src/Survey/Complex/Plant/Edit/Main/index.js | NERC-CEH/irecord-app | import { observer } from 'mobx-react';
import React from 'react';
import { IonButton, IonLabel, IonList } from '@ionic/react';
import DynamicMenuAttrs from 'Components/DynamicMenuAttrs';
import AppMain from 'Components/Main';
import PropTypes from 'prop-types';
import SpeciesList from './components/SpeciesList';
import... |
src/scripts/components/navigation.js | melonmanchan/teamboard-client-react | import page from 'page';
import React from 'react';
import Action from '../actions';
import UserAction from '../actions/user';
import SettingsAction from '../actions/settings';
import BroadcastAction from '../actions/broadcast';
import UserStore from '../stores/user';
import Avatar from '../com... |
src/containers/Root.js | 199911/experimental-blog | import React from 'react'
import {
BrowserRouter as Router,
Route,
Link
} from 'react-router-dom'
import FrontPage from '../pages/FrontPage';
import ArticlePage from '../pages/ArticlePage';
const Root = () => (
<Router>
<div>
<Route exact path="/react-blog/" component={FrontPage}/>
... |
ajax/libs/shariff/1.4.5/shariff.complete.js | x112358/cdnjs |
/*
* shariff - v1.4.4 - 01.12.2014
* https://github.com/heiseonline/shariff
* Copyright (c) 2014 Ines Pauer, Philipp Busse, Sebastian Hilbig, Erich Kramer, Deniz Sesli
* Licensed under the MIT <http://www.opensource.org/licenses/mit-license.php> license
*/
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){... |
packages/cf-component-table/src/TableHeadCell.js | mdno/mdno.github.io | import React from 'react';
import PropTypes from 'prop-types';
class TableHeadCell extends React.Component {
render() {
const { className, ...props } = this.props;
let _className = 'cf-table__cell cf-table__cell--head';
if (className && className.trim()) {
_className += ' ' + className.trim();
... |
examples/js/remote/remote-store-alternative.js | prajapati-parth/react-bootstrap-table | import React from 'react';
import RemoteAlternative from './remote-alternative';
function getProducts() {
const products = [];
const startId = products.length;
for (let i = 0; i < 12; i++) {
const id = startId + i;
products.push({
id: id,
name: 'Item name ' + id,
price: Math.floor((Math... |
client/src/index.js | egdbear/simple-chat | import ReactDOM from 'react-dom';
import React from 'react';
import Router from './routing';
import injectTapEventPlugin from 'react-tap-event-plugin';
import { Provider } from 'react-redux';
import store from './store';
injectTapEventPlugin();
ReactDOM.render(
<Provider store={store}>
<Router />
</Provider>,... |
node_modules/_antd@2.13.4@antd/es/carousel/index.js | ligangwolai/blog | 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/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/i... |
fields/types/location/LocationField.js | Tangcuyu/keystone | import _ from 'lodash';
import React from 'react';
import Field from '../Field';
import { Button, Checkbox, FormField, FormInput, FormNote, FormRow } from 'elemental';
/**
* TODO:
* - Remove dependency on underscore
* - Custom path support
*/
module.exports = Field.create({
displayName: 'LocationField',
getIn... |
ajax/libs/forerunnerdb/1.3.749/fdb-all.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... |
gh-page/src/index.js | metodiobetsanov/metodiobetsanov.github.io | 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(... |
src/website/app/demos/Text/Text/bestPractices.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Text from '../../../../../library/Text';
import type { BestPractices } from '../../../pages/ComponentDoc/types';
const bestPractices: BestPractices = [
{
type: 'do',
description: `Use a
[logical order](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/... |
ajax/libs/glamorous/3.9.2/glamorous.umd.tiny.min.js | him2him2/cdnjs | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react"),require("glamor")):"function"==typeof define&&define.amd?define(["react","glamor"],t):e.glamorous=t(e.React,e.Glamor)}(this,function(e,t){"use strict";function r(){return(arguments.length>0&&void 0!==arguments[0]?argum... |
app/components/Footer/Footer.js | jmparsons/react-tyro | import React from 'react';
import css from 'react-css-modules';
import styles from './Footer.sss';
const Footer = () => (
<div>
<div styleName="content">© 2016 JMParsons</div>
</div>
);
export default css(Footer, styles);
|
static/js/jquery-ui-1.9.2.custom/js/jquery-1.8.3.js | gareve/pi-libras-del-mal | /*!
* jQuery JavaScript Library v1.8.3
* 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: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time)
*/
(function(... |
consoles/my-joy-instances/src/components/instances/__tests__/list.spec.js | yldio/joyent-portal | import React from 'react';
import renderer from 'react-test-renderer';
import 'jest-styled-components';
import { Table, TableTbody } from 'joyent-ui-toolkit';
import InstanceList, { Item } from '../list';
import Theme from '@mocks/theme';
it('renders <Item /> without throwing', () => {
expect(
renderer
.c... |
examples/with-create-react-app/src/components/Add/Add.js | lwhitlock/grow-tracker | import React, { Component } from 'react';
import fire from '../../fire';
import Button from 'react-md/lib/Buttons/Button';
import Dialog from 'react-md/lib/Dialogs';
import Slider from 'react-md/lib/Sliders';
const today = new Date().toJSON();
class Add extends Component {
constructor(props) {
super(props);
... |
front/js/hooks/use-timestamp-provider.js | giannisp/rails-react-boilerplate | /**
* @file TimestampProvider hook.
*/
import { useState } from 'react';
import axios from 'axios';
import getLogger from '../utils/logger';
const log = getLogger('TimestampProvider');
const useTimestampProvider = () => {
const [timestamp, setTimestamp] = useState(null);
const fetchTimestamp = async () => {
... |
form.js | julianocomg/react-native-form | /**
* @author Juliano Castilho <julianocomg@gmail.com>
*/
import React from 'react'
import {View} from 'react-native'
import serialize from './serialize'
class Form extends React.Component {
/**
* @param {Object} props
*/
constructor(props) {
super(props)
this.fields = {}
this.formFields = {};... |
frontend/src/components/frame/components/Search.js | jf248/scrape-the-plate | import React from 'react';
import * as PowerPlug from 'lib/react-powerplug';
import { RoutePush } from 'controllers/route-push';
import SearchPres from './SearchPres';
Search.defaultProps = {
query: '',
};
function Search(props) {
const { query, ...rest } = props;
const renderFunc = ({ state, setState }, { p... |
server/sonar-web/src/main/js/apps/settings/components/inputs/__tests__/MultiValueInput-test.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... |
src/server.js | cheshire137/hue-steamer | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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 'babel-core/polyfill';
import path from 'path';
imp... |
app/routes.js | anorudes/redux-easy-boilerplate | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import asyncComponent from './utils/asyncComponent'; /* for async page, show loading component */
import Root from './containers/Root';
import Posts from './containers/Posts';
import About from './components/About';
export default (
<Rout... |
site/server.js | pablolmiranda/fluxible | /**
* Copyright 2015, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
import path from 'path';
import express from 'express';
import favicon from 'serve-favicon';
import serialize from 'serialize-javascript';
import { navigateAction } from 'fluxible-route... |
src/svg-icons/image/leak-add.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLeakAdd = (props) => (
<SvgIcon {...props}>
<path d="M6 3H3v3c1.66 0 3-1.34 3-3zm8 0h-2c0 4.97-4.03 9-9 9v2c6.08 0 11-4.93 11-11zm-4 0H8c0 2.76-2.24 5-5 5v2c3.87 0 7-3.13 7-7zm0 18h2c0-4.97 4.03-9 9-9v-2c-... |
extra/AsterickSVG.js | martinjackson/reactjs-meetup-validation | import React from 'react';
import _ from 'lodash';
// <Asterick fill='red' />
class Asterick extends React.Component {
constructor(props) {
super(props);
}
render(){
var sz = { width: '1.68em', height: '1.68em' };
var st = sz; // _.assign(sz, {float: 'right'});
var bor = _.assign(sz, {border... |
src/redux-todo/components/Header.spec.js | SodhanaLibrary/react-examples | import React from 'react'
import TestUtils from 'react-addons-test-utils'
import Header from './Header'
import TodoTextInput from './TodoTextInput'
const setup = () => {
const props = {
addTodo: jest.fn()
}
const renderer = TestUtils.createRenderer()
renderer.render(<Header {...props} />)
const output =... |
src/svg-icons/action/settings-cell.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsCell = (props) => (
<SvgIcon {...props}>
<path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM16 .01L8 0C6.9 0 6 .9 6 2v16c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V2c0-1.1-.9-1.99-2-1.99zM16 16H8V4h8v12z"... |
tests/components/Header/Header.spec.js | chenyang0424/initial-project | import React from 'react'
import { Header } from 'components/Header/Header'
import { IndexLink, Link } from 'react-router'
import { shallow } from 'enzyme'
describe('(Component) Header', () => {
let _wrapper
beforeEach(() => {
_wrapper = shallow(<Header />)
})
it('Renders a welcome message', () => {
... |
pages/catalogs.js | sgmap/inspire | import React from 'react'
import PropTypes from 'prop-types'
import {flowRight} from 'lodash'
import getConfig from 'next/config'
import {_get} from '../lib/fetch'
import {sortByScore} from '../lib/catalog'
import attachI18n from '../components/hoc/attach-i18n'
import withErrors from '../components/hoc/with-errors'
... |
docs/src/pages/components/dialogs/CustomizedDialogs.js | allanalexandre/material-ui | import React from 'react';
import { withStyles } from '@material-ui/core/styles';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import MuiDialogTitle from '@material-ui/core/DialogTitle';
import MuiDialogContent from '@material-ui/core/DialogContent';
import MuiDialogActi... |
ajax/libs/forerunnerdb/1.3.674/fdb-core.js | pombredanne/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... |
node_modules/react-native/local-cli/templates/HelloNavigation/views/chat/ChatScreen.js | joan17cast/Enigma | 'use strict';
import React, { Component } from 'react';
import {
ActivityIndicator,
Button,
ListView,
StyleSheet,
Text,
TextInput,
View,
} from 'react-native';
import KeyboardSpacer from '../../components/KeyboardSpacer';
import Backend from '../../lib/Backend';
export default class ChatScreen extends C... |
packages/react-ui-core/src/Carousel/__tests__/CarouselNavigation-test.js | rentpath/react-ui | import React from 'react'
import renderer from 'react-test-renderer'
import { shallow } from 'enzyme'
import theme from './mocks/theme'
import ThemedCarouselNavigation from '../CarouselNavigation'
const CarouselNavigation = ThemedCarouselNavigation.WrappedComponent
const items = [
<div key="1">Test 1</div>,
<div k... |
node_modules/_antd@2.13.4@antd/es/mention/index.js | ligangwolai/blog | import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possib... |
src/components/userComponents/sampleForm.js | toffee7/ReactStarterComponents | import React, { Component } from 'react';
import GenericInputPicker from '../commonComponents/formComponents/genericInputPicker';
import Toggle from '../commonComponents/formComponents/toggle';
import GenericSelect from '../commonComponents/formComponents/genericSelect';
export default class SampleForm extends Compone... |
app/react/src/client/preview/error_display.js | bigassdragon/storybook | import PropTypes from 'prop-types';
import React from 'react';
const mainStyle = {
position: 'fixed',
top: 0,
bottom: 0,
left: 0,
right: 0,
padding: 20,
backgroundColor: 'rgb(187, 49, 49)',
color: '#FFF',
WebkitFontSmoothing: 'antialiased',
};
const headingStyle = {
fontSize: 20,
fontWeight: 600... |
main.js | zedd45/react-static-todos | /**
* 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 'babel-polyfill';
im... |
src/components/footer.js | paulckennedy/KennedyChemistryRocks | import React from 'react';
export default (props) => {
return (
<div>
<footer className="hg_footer">
<div className="contactus">
<h3>Tracy Kennedy MS.</h3>
<div clasclassNames="address">
<h1 className="bigOne"><... |
src/components/LoginForm.js | cernanb/personal-chef-react-app | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Button, Form, Segment } from 'semantic-ui-react';
class LoginForm extends Component {
state = {
email: '',
password: '',
};
onChange = e => {
this.setState({ [e.target.name]: e.target.value });
};
render() {
... |
server/game/cards/14-FotS/LynCorbray.js | cryogen/throneteki | const DrawCard = require('../../drawcard');
const GameActions = require('../../GameActions');
class LynCorbray extends DrawCard {
setupCardAbilities() {
this.reaction({
when: {
onChallengeInitiated: event => event.challenge.isMatch({ initiatedAgainstPlayer: this.controller, chal... |
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/expected.js | senolakkas/react-native-minesweeper | import _transformLib from 'transform-lib';
const _components = {
Foo: {
displayName: 'Foo'
}
};
const _transformLib2 = _transformLib({
filename: '%FIXTURE_PATH%',
components: _components,
locals: [],
imports: []
});
function _wrapComponent(id) {
return function (Component) {
return _transformLib... |
packages/cf-component-icon/src/reactsvgs/Bolt.js | jroyal/cf-ui | import React from 'react';
import PropTypes from 'prop-types';
const Bolt = ({ className, label }) => (
<svg
className={className}
aria-label={label}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
>
<polygon points="14.345 6.413 10.379 6.413 11.966 0.068 1.655 9.587 5.621 9.587 4.034 15... |
native-base-theme/components/TabContainer.js | auto-flourish/ios | import { Platform } from 'react-native';
import variable from './../variables/platform';
export default (variables = variable) => {
const platformStyle = variables.platformStyle;
const platform = variables.platform;
const tabContainerTheme = {
elevation: 3,
height: 50,
flexDirection: 'row',
sha... |
lib/components/Login.js | mlimberg/Digidex | import React from 'react';
const Login = ({ authorize, setUser, text, id }) => {
return (
<div>
<button className='button'
id={id + '-btn'}
onClick={()=> {
authorize().then((fromFirebase) => setUser(fromFirebase));
}}>
{text}
</button>... |
src/components/decoline_list.js | lizarraldeignacio/personal-website | import React, { Component } from 'react';
import DecolineItem from './decoline_item';
import _ from 'lodash';
import { firebaseConnect } from 'react-redux-firebase';
/**
DecolineList list of Decoline elements
Params:
elements: The elements that the list will contain
path: The path of the firebase database... |
examples/04 Sortable/Simple/Container.js | Reggino/react-dnd | import React, { Component } from 'react';
import update from 'react/lib/update';
import Card from './Card';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd/modules/backends/HTML5';
const style = {
width: 400
};
@DragDropContext(HTML5Backend)
export default class Container extends Co... |
node_modules/react-icons/io/ios-snowy.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const IoIosSnowy = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m29.7 24.8c0.3 0.1 0.4 0.5 0.2 0.8s-0.5 0.4-0.8 0.3l-2.3-1.4c-0.2 0.7-0.2 1.3 0 1.9 0.1 0.3-0.2 0.7-0.5 0.8s-0.7-0.2-0.8-0.5c-0.1-0.9-0.2-1.9 0.1-2.8l-5-2.8v5.7c0.9 ... |
ajax/libs/react-router/0.11.5/react-router.min.js | Olical/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;return functi... |
examples/shared-root/app.js | amsardesai/react-router | import React from 'react';
import HashHistory from 'react-router/lib/HashHistory';
import { Router, Route, Link } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<p>
This illustrates how routes can share UI w/o sharing the url,
when routes have no pa... |
eventkit_cloud/ui/static/ui/app/containers/loginContainer.js | terranodo/eventkit-cloud | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import { withTheme } from '@material-ui/core/styles';
import axios from 'axios';
import Button from '@material-ui/core/Button';
import { login } from '../actions/userActions';
export class Form extends React.Component... |
js/jquery-1.11.0.min.js | kevteg/sistemasoperativosUNET | /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
react/features/base/react/components/native/Link.js | parisjulien/arkadin-jitsimeet | import React, { Component } from 'react';
import { Linking } from 'react-native';
import Text from './Text';
/**
* Implements a (hyper)link to a URL in the fashion of the HTML anchor element
* and its href attribute.
*/
export default class Link extends Component {
/**
* {@code Link} component's property ... |
tiletemplate/tests/js/templates/kissy.js | blademainer/pandao.github.io | /*
Copyright 2012, KISSY UI Library v1.20
MIT Licensed
build time: Feb 8 17:28
*/
/*
* a seed where KISSY grows up from , KISS Yeah !
* @author lifesinger@gmail.com,yiminghe@gmail.com
*/
(function (S, undefined) {
/**
* @namespace KISSY
*/
var host = this,
meta = {
/**
... |
ajax/libs/quasar-framework/0.15.0-beta.12/quasar.ios.umd.js | extend1994/cdnjs | /*!
* Quasar Framework v0.15.0-beta.11
* (c) 2016-present Razvan Stoenescu
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('vue')) :
typeof define === 'function' && define.amd ? define(['vue'], fact... |
src/page/notifications-demo.js | knledg/react-webpack-skeleton | import React from 'react';
import { Page, Panel, Button, eventBus, Alert, Breadcrumbs } from 'react-blur-admin';
import { Link } from 'react-router';
import {Row, Col} from 'react-flex-proto';
export class NotificationsDemo extends React.Component {
renderBreadcrumbs() {
return (
<Breadcrumbs>
<L... |
templates/rubix/redux/redux-seed/src/routes/Home2.js | jeffthemaximum/Teachers-Dont-Pay-Jeff | import React from 'react';
import { connect } from 'react-redux';
import actions from '../redux/actions';
import {
Row,
Col,
Grid,
Panel,
PanelBody,
PanelContainer,
} from '@sketchpixy/rubix';
@connect((state) => state)
export default class Home extends React.Component {
static fetchData(store) {
r... |
components/SocialMediaList.js | turntwogg/esports-aggregator | import React from 'react';
import {
FaFacebook,
FaTwitter,
FaInstagram,
FaYoutube,
FaTwitch,
} from 'react-icons/fa';
import RaisedBox from './RaisedBox';
const SocialMediaListItem = ({ href, label, icon }) => (
<li className="social-media-list-item">
<RaisedBox>
<a
href={href}
t... |
app/components/Notifications/__tests__/Notifications-test.js | TailorDev/franklin | import React from 'react';
import { shallow, mount } from 'enzyme';
import { expect } from 'chai';
import sinon from 'sinon';
// see: https://github.com/mochajs/mocha/issues/1847
const { describe, it } = global;
import Notifications from '../presenter';
import MessageBox from '../MessageBox';
describe('<Notification... |
src/svg-icons/notification/do-not-disturb-alt.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDoNotDisturbAlt = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zM4 12c0-4.4 3.6-8 8-8 1.8 0 3.5.6 4.9 1.7L5.7 16.9C4.6 15.5 4 13.8 4 12zm8 8... |
src/svg-icons/notification/enhanced-encryption.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationEnhancedEncryption = (props) => (
<SvgIcon {...props}>
<path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM8.9 6c0-1.71 1.39-3.... |
frontend/src/components/print/print-react/renderingDependencies.js | usu/ecamp3 | import React from 'react'
import wrap from './minimalHalJsonVuex.js'
import createI18n from './i18n.js'
import documents from './documents/index.js'
import { pdf } from '@react-pdf/renderer'
export default { React, wrap, createI18n, pdf, documents }
|
app/javascript/mastodon/features/notifications/components/notification.js | rainyday/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { injectIntl, FormattedMessage, defineMessages } from 'react-intl';
import { HotKeys } from 'react-hotkeys';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { me ... |
src/containers/DevTools.js | wmaurer/frontend_pizza_react_redux | 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... |
ajax/libs/react-native-web/0.17.5/exports/View/index.js | cdnjs/cdnjs | function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbo... |
source/common/components/HomePage/HomePage.js | shery15/react | import React from 'react';
import { Link } from 'react-router';
import RaisedButton from 'material-ui/RaisedButton';
import TextField from 'material-ui/TextField';
const HomePage = ({
userId,
onSubmitUserId,
onChangeUserId
}) => {
return (
<div>
<TextField
hintText="Please Key in your Github ... |
src/components/Menu.js | tgdn/react-dropdown | import React from 'react'
class DropdownMenu extends React.Component {
render() {
const {children} = this.props
return (
<div className='Dropdown__menu'>
{children}
</div>
)
}
}
export {DropdownMenu}
|
src/test/containersSpec/ChannelData.spec.js | badT/Chatson | import React from 'react';
import { mount } from 'enzyme';
import chai, { expect } from 'chai';
import chaiEnzyme from 'chai-enzyme';
import sinon from 'sinon';
chai.use(chaiEnzyme());
import ConnectedChannelData from '../../containers/ChannelData/index';
import configureStore from '../../store/configureStore';
const... |
app/reactions/client/methods/setReaction.js | inoio/Rocket.Chat | import { Meteor } from 'meteor/meteor';
import _ from 'underscore';
import { Messages, Rooms, Subscriptions, EmojiCustom } from '../../../models';
import { callbacks } from '../../../callbacks';
import { emoji } from '../../../emoji';
Meteor.methods({
setReaction(reaction, messageId) {
if (!Meteor.userId()) {
t... |
src/routes/message/MessageContainer.js | nambawan/g-old | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Message from '../../components/Message';
import Box from '../../components/Box';
import { getMessage, getMessageUpdates } from '../../reducers';
import { createMessage } from '../../actions/message';
import List... |
.storybook/config.js | Sashkan/ft_youtube | import { configure } from '@storybook/react';
function loadStories() {
require('../stories');
}
configure(loadStories, module);
|
ajax/libs/react-native-web/0.14.6/cjs/exports/Switch/index.js | cdnjs/cdnjs | "use strict";
exports.__esModule = true;
exports.default = void 0;
var React = _interopRequireWildcard(require("react"));
var _createElement = _interopRequireDefault(require("../createElement"));
var _multiplyStyleLengthValue = _interopRequireDefault(require("../../modules/multiplyStyleLengthValue"));
var _StyleSh... |
app/scripts/controllers/activate_ctrl.js | Coding/m.coding.net | /**
* Created by wenki on 18/07/2015.
*/
var ACTIVATE_ROUTE = (function(){
function refreshCaptcha(){
$('img.captcha').attr('src', API_DOMAIN + '/api/getCaptcha?code=' + Math.random());
}
function changeStyle(){
var controls = new Array('email','captcha');
if ($("#activate").... |
ajax/libs/plotly.js/1.39.2/plotly-finance.min.js | jonobr1/cdnjs | /**
* plotly.js (finance - minified) v1.39.2
* Copyright 2012-2018, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?... |
src/svg-icons/navigation/fullscreen-exit.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationFullscreenExit = (props) => (
<SvgIcon {...props}>
<path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/>
</SvgIcon>
);
NavigationFullscreenExit = pure(NavigationF... |
packages/wix-style-react/src/CarouselWIP/Slide/Slide.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import { DATA_HOOKS } from '../constants';
const Slide = ({
dataHook,
className,
children,
image,
width,
gutter,
imagePosition,
imageFit,
}) => (
<div
data-hook={dataHook}
className={className}
style={{
flex: '0 0 auto',... |
examples/passing-props-to-children/app.js | MattSPalmer/react-router | import React from 'react';
import { Router, Route, Link, History } from 'react-router';
var App = React.createClass({
mixins: [ History ],
getInitialState() {
return {
tacos: [
{ name: 'duck confit' },
{ name: 'carne asada' },
{ name: 'shrimp' }
]
};
},
addTaco() {... |
modules/gui/src/widget/listItem.js | openforis/sepal | import {Subject, animationFrameScheduler, debounceTime, delay, distinctUntilChanged, filter, fromEvent, interval, map, switchMap, takeUntil, timer} from 'rxjs'
import {compose} from 'compose'
import Hammer from 'hammerjs'
import Portal from 'widget/portal'
import PropTypes from 'prop-types'
import React from 'react'
im... |
client/src/components/GalleryItem/tests/SelectGalleryItemTracker.js | silverstripe/silverstripe-asset-admin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
// eslint-disable-next-line import/no-extraneous-dependencies
import { action } from '@storybook/addon-actions';
const triggerAction = action('selected');
class SelectGalleryItemTracker extends Component {
constructor(props) {
super(pr... |
test/helpers/shallowRenderHelper.js | xunxunyao/gallery-by-react | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
ajax/libs/react-intl/1.1.0/react-intl-with-locales.min.js | tresni/cdnjs | (function(){"use strict";function a(a){var b,c,d,e,f=Array.prototype.slice.call(arguments,1);for(b=0,c=f.length;c>b;b+=1)if(d=f[b])for(e in d)o.call(d,e)&&(a[e]=d[e]);return a}function b(a,b,c){this.locales=a,this.formats=b,this.pluralFn=c}function c(a){this.id=a}function d(a,b,c,d){this.id=a,this.offset=b,this.options... |
packages/reactor-kitchensink/src/examples/PivotGrid/Collapsible/Collapsible.js | markbrocato/extjs-reactor | import React, { Component } from 'react';
import { Container, PivotGrid, Toolbar, Button, Menu, MenuRadioItem } from '@extjs/reactor/modern';
import { generateData, randomDate } from '../generateSaleData';
import SaleModel from '../SaleModel';
// TODO - EXTJS-25191 MenuRadioItem in ExtReact throws error when it tries ... |
ajax/libs/react-textarea-autosize/5.0.4/react-textarea-autosize.js | BenjaminVanRyseghem/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('prop-types')) :
typeof define === 'function' && define.amd ? define(['react', 'prop-types'], factory) :
(global.TextareaAutosize = factory(global.React,global.PropTypes)... |
app/components/confirmModal/index.js | MakersLab/farm-client | import React from 'react';
import style from './style.css';
import modalStyle from '../fileUploadModal/style.css';
import Modal from 'react-modal';
import H1 from '../h1';
import ControllButton from '../controllButton';
import SelectedPrinters from '../selectedPrinters';
const PrinterActionConfirmModal = ({ isOpen, o... |
src/browser/app/App.js | robinpokorny/este | // @flow
import type { State } from '../../common/types';
import type { Theme } from './themes/types';
import * as themes from './themes';
import Footer from './Footer';
import Header from './Header';
import Helmet from 'react-helmet';
import React from 'react';
import favicon from '../../common/app/favicon';
import st... |
src/theme/bootstrap.config.js | sanyamagrawal/royalgeni | /**
* Bootstrap configuration for bootstrap-sass-loader
*
* Scripts are disabled to not load jQuery.
* If you depend on Bootstrap scripts consider react-bootstrap instead.
* https://github.com/react-bootstrap/react-bootstrap
*
* In order to keep the bundle size low in production
* disable components you don't u... |
src/renderers/shared/reconciler/__tests__/ReactMultiChild-test.js | negativetwelve/react | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-co... |
ajax/libs/instantsearch.js/1.8.12/instantsearch-preact.js | kennynaoh/cdnjs | /*! instantsearch.js 1.8.12 | © Algolia Inc. and other contributors; Licensed MIT | github.com/algolia/instantsearch.js */(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && defi... |
files/react/0.13.1/react.js | hubdotcom/jsdelivr | /**
* React v0.13.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!=="undefined"){g=self}els... |
examples/CustomPaging.js | BenjaminNeilDavis/react-slick | import React, { Component } from 'react'
import Slider from '../src/slider'
import {baseUrl} from './config'
export default class CenterMode extends Component {
render() {
const settings = {
customPaging: function(i) {
return <a><img src={`${baseUrl}/abstract0${i+1}.jpg`}/></a>
},
dots:... |
src/plantactionselector/PlantActionSelector.js | BushrootPDX/app | import React, { Component } from 'react';
import styled from 'styled-components';
export default class PlantActionSelector extends Component {
componentWillUnmount() {
this.props.actionReset();
}
render() {
const { addAction, removeAction } = this.props;
const PlantActionDiv = sty... |
frontend/webpack.config.js | auronzhong/pratice-node-project | const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: [
'webpack-dev-server/client?http://0.0.0.0:3000',
'webpack/hot/only-dev-server',
'./entry.js',
],
output: {
path: path.resolve(__dirname, 'build'),
filename: 'bundle.js',
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.