path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
hello world/1.4 - stateProps/src/components/main.js | wumouren/react-demo | import React from 'react';
export default class Main extends React.Component {
render() {
return (
<div>
</div>
)
}
} |
tests/components/Header/Header.spec.js | BigBlueDot/SMT4AEncyclopedia | 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', () =>... |
src/store.js | adriffaud/workout-manager | // @flow
import { createStore, applyMiddleware, compose } from 'redux';
import { reactReduxFirebase } from 'react-redux-firebase';
import createSagaMiddleware from 'redux-saga';
import firebase from 'firebase';
import rootReducer from './reducers';
import saga from './sagas';
const firebaseConfig = {
apiK... |
src/parser/shared/modules/items/bfa/dungeons/HarlansLoadedDice.js | FaideWW/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS/index';
import ITEMS from 'common/ITEMS/index';
import Analyzer from 'parser/core/Analyzer';
import { formatPercentage, formatNumber } from 'common/format';
import { calculateSecondaryStatDefault } from 'common/stats';
/**
* Harlan's Loaded Dice
* Your at... |
packages/material-ui-icons/src/Looks3.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Looks3 = props =>
<SvgIcon {...props}>
<path d="M19.01 3h-14c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 7.5c0 .83-.67 1.5-1.5 1.5.83 0 1.5.67 1.5 1.5V15c0 1.11-.9 2-2 2h-4v-2h... |
packages/mineral-ui-icons/src/IconPhotoLibrary.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconPhotoLibrary(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconP... |
frontend/src/components/Pagination/index.js | XiaocongDong/mongodb-backup-manager | import React, { Component } from 'react';
import Select from 'react-select';
export default class Pagination extends Component {
defaultLimits = [1, 10, 20, 50, 100];
constructor(props) {
super(props);
this.limits = props.limits || this.defaultLimits;
this.limitOpts = this.limits.map... |
boilerplate/app/modules/account/password-reset/forgot-password-screen.js | ruddell/ignite-jhipster | import React from 'react'
import { Alert, ScrollView, Text, TouchableHighlight } from 'react-native'
import { connect } from 'react-redux'
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view'
import { Navigation } from 'react-native-navigation'
import t from 'tcomb-form-native'
import Forg... |
stories/decorators/GlobalStyle.js | suranartnc/react-universal-starter-kit | import React from 'react'
import style from 'shared/theme/styles/app.scss'
export default (story) => (
<div style={style}>
{story()}
</div>
)
|
src/components/DataTable/__tests__/TableBody-test.js | carbon-design-system/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { mount } from 'enzyme';
import { Table, TableBody } from '../';
describe('DataTable.TableBody', () => {
... |
examples/dynamic-segments/app.js | chunwei/react-router | import React from 'react';
import { Router, Route, Link, Redirect } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<ul>
<li><Link to="/user/123">Bob</Link></li>
<li><Link to="/user/abc">Sally</Link></li>
</ul>
{this.props.children}
... |
test/specs/addons/Confirm/Confirm-test.js | Semantic-Org/Semantic-UI-React | import keyboardKey from 'keyboard-key'
import _ from 'lodash'
import React from 'react'
import Confirm from 'src/addons/Confirm/Confirm'
import Modal from 'src/modules/Modal/Modal'
import { assertBodyContains, domEvent, sandbox } from 'test/utils'
import * as common from 'test/specs/commonTests'
// ------------------... |
renderer/components/UI/Sidebar.js | LN-Zap/zap-desktop | import React from 'react'
import PropTypes from 'prop-types'
import { Flex } from 'rebass/styled-components'
const Sidebar = ({ hasShadow, ...rest }) => (
<Flex
as="aside"
color="primaryText"
flexDirection="column"
width={4 / 12}
{...rest}
sx={{
overflow: 'hidden',
boxShadow: hasS... |
sam-front/src/pages/NewApplication.js | atgse/sam | import React from 'react';
import { connect } from 'react-redux';
import NewApplication from '../components/NewApplication';
import * as applicationActions from '../actions/applicationActions';
import { fromGroup } from '../reducers';
const NewApplicationContainer = ({ groupIds = [], handleCreate }) => (
<div>
... |
react-frontend/src/index.js | RotateIT/RotateIT | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
hello-world/src/index.js | lite-apps/apps | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/components/Provider/Modal/modalFactory.js | orionsoft/parts | import PropTypes from 'prop-types'
import autobind from 'autobind-decorator'
import React from 'react'
import transitionEvents from 'domkit/transitionEvents'
import appendVendorPrefix from 'domkit/appendVendorPrefix'
module.exports = function(animation) {
return class Modal extends React.Component {
static propT... |
src/components/heroes/HeroesPage.js | platejan/HeroCamp | import React from 'react';
import HeroesList from '../../containers/heroes/HeroesList';
import checkAuth from '../requireAuth';
const HeoresPage = () => {
return (
<HeroesList/>
);
};
export default checkAuth(HeoresPage);
|
packages/react-jsx-highstock/src/components/HighchartsStockChart/HighchartsStockChart.js | AlexMayants/react-jsx-highcharts | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Highcharts from 'highstock-release';
import BaseChart from 'react-jsx-highcharts/src/components/BaseChart';
class HighchartsStockChart extends Component {
static childContextTypes = {
chartType: PropTypes.string.isRequired
};
... |
fields/types/embedly/EmbedlyField.js | Redmart/keystone | import React from 'react';
import Field from '../Field';
import { FormField, FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'EmbedlyField',
// always defers to renderValue; there is no form UI for this field
renderField () {
return this.renderValue();
},
renderValue (path, label, ... |
test/ButtonToolbarSpec.js | deerawan/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ButtonToolbar from '../src/ButtonToolbar';
import ButtonGroup from '../src/ButtonGroup';
import Button from '../src/Button';
describe('ButtonToolbar', function () {
it('Should output a button toolbar', function () {
let inst... |
ajax/libs/yui/3.15.0/datatable-core/datatable-core.js | shobhitmittal/cdnjs | /*
YUI 3.15.0 (build 834026e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@sinc... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArrayDestructuring.js | sThig/jabbascrypt | /**
* 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... |
components/Who/Who.js | falconi1812/falconi | import React, { Component } from 'react';
import { LINKS } from 'config';
export default class Who extends Component {
onClickJoinUs = (e) => analytics.track("talk with us link", { platform: "www"});
render () {
return (
<section className="gc-section text-center aligner">
<div className="conta... |
polygonEditor/snapshots/snapshot06/js/lib/backbone.js | device82/curran_kelleher_web_screencast | // Backbone.js 1.0.0
// (c) 2010-2013 Jeremy Ashkenas, DocumentCloud Inc.
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
(function(){
// Initial Setup
// -------------
// Save a reference to the global object (`wi... |
src/components/ListBox/ListBoxMenuItem.js | jzhang300/carbon-components-react | import cx from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
/**
* `ListBoxMenuItem` is a helper component for managing the container class
* name, alongside any classes for any corresponding states, for a generic list
* box menu item.
*/
const ListBoxMenuItem = ({ children, isActive... |
javascript/frameworks-libraries/react-redux-stack/src-5-reselect-styled/components/ButtonFunctional.js | arturparkhisenko/til | import React from 'react';
const ButtonFunctional = ({text, onClick}) => (
<button onClick={onClick}>
{text}
</button>
);
export default ButtonFunctional;
|
misc/jquery.js | micahcourey/PortfolioWebsite |
/*!
* jQuery JavaScript Library v1.4.4
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.... |
test/vendor/jquery.js | 1998763/backbone | /*!
* 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(... |
node_modules/griddle-react/modules/gridTitle.jsx.js | Zach417/churchetto-web | /*
See License / Disclaimer https://raw.githubusercontent.com/DynamicTyped/Griddle/master/LICENSE
*/
'use strict';
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... |
Skins/VetoccitanT3/Js/React/react-tooltip-master/example/src/index.js | MAN-IN-WAN/Kob-Eye | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
components/__tests__/ContentImage-test.js | marquee/static-sdk | const React = require('react')
const ContentImage = require('../ContentImage')
const renderer = require('react-test-renderer')
const SAMPLE_BLOCK = require('../../entry/__tests__/SAMPLE_ENTRY.json').content.find( block => 'image' === block.type)
describe('ContentImage', () => {
it('renders', () => {
const... |
react/features/overlay/components/web/ReloadButton.js | gpolitis/jitsi-meet | // @flow
import React, { Component } from 'react';
import { reloadNow } from '../../../app/actions';
import { translate } from '../../../base/i18n';
import { connect } from '../../../base/redux';
/**
* The type of the React {@code Component} props of {@link ReloadButton}.
*/
type Props = {
/**
* Reloads ... |
src/svg-icons/editor/format-italic.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatItalic = (props) => (
<SvgIcon {...props}>
<path d="M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"/>
</SvgIcon>
);
EditorFormatItalic = pure(EditorFormatItalic);
EditorFormatItalic.displayName ... |
lib/jquery-1.7.2.min.js | bittner/openrouteservice | /*! jQuery v1.7.2 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 cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde... |
docs/src/pages/premium-themes/onepirate/modules/views/AppForm.js | Kagami/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import LayoutBody from '../components/LayoutBody';
import Paper from '../components/Paper';
const styles = theme => ({
root: {
display: 'flex',
backgroundImage: 'url(/static/onepirate/appCurv... |
docs/src/components/Footer.js | n6g7/redux-saga-firebase | import React from 'react'
import { Button, Container } from 'semantic-ui-react'
import styled from 'styled-components'
const StyledContainer = styled(Container)`
margin: 3rem 0;
`
const Footer = ({ path, site }) => {
return (
<StyledContainer as="footer" textAlign="center">
<Button basic as="a" href={`$... |
src-web/js/view/util.js | kwangkim/pigment | import React from 'react';
import { Styles } from 'material-ui';
const ThemeManager = new Styles.ThemeManager();
export function getChildren(children) {
let arr = [];
React.Children.forEach(children, child => arr.push(child));
return arr;
}
export function reactJoin(arr, glue) {
let ret = [];
arr.forEach(i... |
src/app/components/icons/RawgitIcon.js | skratchdot/web-audio-api-archive | /*eslint max-len:0 */
import React from 'react';
import SvgIcon from 'material-ui/SvgIcon';
const RawgitIcon = (props) => (
<SvgIcon {...props} viewBox="0 0 1024 1024">
<path d="M350 212.1c-57 6.1-103.6 19.2-147.8 41.3-31.2 15.6-62.2 36.9-85.5 58.8-17.6 16.4-25 24-39.6 40.4-12 13.5-35.9 47.4-46.8 66.4-13.6 23.5-... |
examples/async-example/index.js | theadam/react-inform | import './index.css';
import '../foundation.css';
import React, { Component } from 'react';
import { render } from 'react-dom';
import alertify from 'alertify.js';
import {
form,
from,
FeedbackFormSubmit,
} from 'react-inform';
alertify.logPosition('top right');
function LabeledInput({ text, error, id, props ... |
src/views/home.spec.js | frodereinertsen/react-redux-starter-kit | import React from 'react';
import HomeView from './home';
describe('(View) Home', function () {
it('Should have a test that works with Chai expectations.', function () {
expect(true).to.be.true;
});
});
|
ajax/libs/forerunnerdb/1.3.439/fdb-all.min.js | dannyxx001/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... |
packages/material-ui-icons/src/WifiTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13z" />
, 'WifiTwoTone');
|
src/components/pages/user/Add.js | yiweimatou/yishenghoutai | import React from 'react'
import {
Field
} from 'redux-form'
class Add extends React.Component {
render(){
return (
)
}
}
export default Add |
app/components/Guess.js | jaytrepka/kryci-jmena | // @flow
import React, { Component } from 'react';
import Board from './Board';
class Guess extends Component {
render() {
return (
<div>
<Board guess />
</div>
);
}
}
export default Guess;
|
src/molecules/archive/pagination/component.js | dsmjs/components | import React from 'react';
import {number} from 'prop-types';
import InternalLink from '../../../atoms/links/internal';
const listStyles = {
listStyleType: 'none',
padding: 0,
display: 'flex',
flexWrap: 'nowrap',
justifyContent: 'space-evenly',
li: {display: 'inline-block', ':hover': {backgroundColor: '#ee... |
dashboard-ui/app/components/queue/aclRows.js | CloudBoost/cloudboost | import React from 'react';
import PropTypes from 'prop-types';
import AutoComplete from 'material-ui/AutoComplete';
import { Checkbox as RBCheckbox } from 'react-bootstrap';
class ACLRows extends React.Component {
static propTypes = {
aclList: PropTypes.any,
addAcl: PropTypes.any,
removeAcl: PropTypes.an... |
vendor/fortawesome/font-awesome/src/assets/js/jquery-1.10.2.min.js | khonyuen/locker_muk | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
app/containers/NotFoundPage/index.js | monkeyzealer/Webstore-FrontEnd | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
*/
import React from 'react';
export default class NotFound extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function
render() {
return (
<h1>
404: Not Found
... |
frontend/component/TopicDetail.js | sijia-c/practice-node-project | import React from 'react';
import {Link} from 'react-router';
import 'highlight.js/styles/github-gist.css';
import {getTopicDetail, addComment, deleteComment,deleteTopic} from '../lib/client';
import {renderMarkdown,redirectURL} from '../lib/utils';
import CommentEditor from './CommentEditor';
export default class Top... |
ajax/libs/angular.js/0.10.5/angular.js | oivoodoo/cdnjs | /**
* @license AngularJS v0.10.5
* (c) 2010-2011 AngularJS http://angularjs.org
* License: MIT
*/
'use strict';
(function(window, document, undefined){
////////////////////////////////////
if (typeof document.getAttribute == $undefined)
document.getAttribute = function() {};
/**
* @ngdoc function
* @name ang... |
misc/tabledrag.js | bunnywong/isnatura.com.hk | (function ($) {
/**
* Drag and drop table rows with field manipulation.
*
* Using the drupal_add_tabledrag() function, any table with weights or parent
* relationships may be made into draggable tables. Columns containing a field
* may optionally be hidden, providing a better user experience.
*
* Created tableD... |
app/components/audit_log/Section.js | buildkite/frontend | // @flow
import React from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import DocumentTitle from 'react-document-title';
import Icon from 'app/components/shared/Icon';
import PageHeader from 'app/components/shared/PageHeader';
import TabControl from 'app/components/shared/Tab... |
ajax/libs/jquery/1.8.3/jquery.min.js | LeaYeh/cdnjs | /*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===... |
node_modules/recharts/demo/component/ComposedChart.js | SerendpityZOEY/Solr-Search-React-UI | import React from 'react';
import { ResponsiveContainer, ComposedChart, Line, Bar, Area, XAxis, YAxis,
ReferenceLine, ReferenceDot, Tooltip, Legend, CartesianGrid, Brush } from 'recharts';
const data = [
{ name: 'Page A', uv: 590, pv: 800, amt: 1400 },
{ name: 'Page B', uv: 868, pv: 967, amt: 1506 },
{ name: '... |
src/projects/TicTacToe/components/GameTile.js | terakilobyte/terakilobyte.github.io | import React from 'react';
import '../TicTacToe.scss';
import { connect } from 'react-redux';
import ticTacToeActions from 'actions/tictactoe';
const columns = {
0: 'Left',
1: 'Middle',
2: 'Right'
};
const classes = {
'O': 'nought',
'X': 'cross'
};
const tileMap = {
'topLeft': 0,
'topMiddle'... |
example/src/example.js | Ggayane/react-input-validation | import React from 'react'
import ReactDOM from 'react-dom'
import FormInput from 'react-input-validation'
export default class App extends React.Component {
constructor () {
super()
this.state = {
email: '',
name: '',
age: '',
password: '',
re_password: '',
error: false,
btn_text: 'Check'
}
... |
docs/src/app/components/pages/components/Checkbox/Page.js | pradel/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import checkboxReadmeText from './README';
import checkboxCode from '!raw!materi... |
packages/reactor-kitchensink/src/examples/TabPanel/TabPanel.js | sencha/extjs-reactor | import React from 'react';
import { TabPanel, Component, Container } from '@extjs/ext-react';
export default function TabPanelExample() {
return (
<Container layout={{type: 'vbox', align: 'stretch'}} padding={10}>
<TabPanel
flex={1}
shadow
plain... |
examples/src/components/CustomSingleValue.js | vomchik/react-select | import React from 'react';
import Gravatar from 'react-gravatar';
var SingleValue = React.createClass({
propTypes: {
placeholder: React.PropTypes.string,
value: React.PropTypes.object
},
render () {
var obj = this.props.value;
var size = 15;
var gravatarStyle = {
borderRadius: 3,
display: 'inline-bl... |
app/javascript/mastodon/features/status/components/action_bar.js | haleyashleypraesent/ProjectPrionosuchus | import React from 'react';
import PropTypes from 'prop-types';
import IconButton from '../../../components/icon_button';
import ImmutablePropTypes from 'react-immutable-proptypes';
import DropdownMenu from '../../../components/dropdown_menu';
import { defineMessages, injectIntl } from 'react-intl';
const messages = de... |
src/ui/elements/svg/Mailing.js | gouxlord/dev-insight | import React from 'react'
var Mailing = React.createClass({
render: function () {
return (
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 161.736 150" preserveAspectRatio="xMinYMin meet">
<polygon fill="#ED574E" points="81.093,103.13 21.421,145.185 152.247,146.088 "/>
<polyg... |
src/svg-icons/image/filter-2.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter2 = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-4-4h-4v-2h2c1.1 0 2-.89 ... |
client/src/app/admin/panel/settings/admin-panel-custom-tags.js | ivandiazwm/opensupports | import React from 'react';
import {connect} from 'react-redux';
import AdminPanelCustomTagsModal from 'app/admin/panel/tickets/admin-panel-custom-tags-modal';
import i18n from 'lib-app/i18n';
import API from 'lib-app/api-call';
import ConfigActions from 'actions/config-actions';
import AreYouSure from 'app-componen... |
16-react-todos-redux/src/app/components/command-toolbar.js | iproduct/course-node-express-react | import React from 'react';
const CommandToolbar = ({ deleteAllCompleted, deleteAllCanceled }) => (
<div className="commands">
<button className="btn btn-warning" onClick={deleteAllCompleted}>Delete All Completed</button>
<button className="btn btn-danger" onClick={deleteAllCanceled}>Delete All Canceled</butto... |
app/javascript/mastodon/features/keyboard_shortcuts/index.js | WitchesTown/mastodon | import React from 'react';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../components/column_back_button_slim';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-co... |
pages/getting-started/usage.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/getting-started/usage.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default withR... |
app/javascript/mastodon/features/home_timeline/components/column_settings.js | alarky/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import SettingToggle from '../../notifications/components/setting_toggle';
import SettingText from '../../../components/se... |
ajax/libs/reactive-coffee/0.0.1/reactive-coffee.min.js | jdh8/cdnjs | !function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L={}.hasOwnProperty,M=function(a,b){function c(){this.constructor=a}for(var d in b)L.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},N=[].slice,O=[].indexOf||function(a){for(var b... |
public/js/components/search/Search.react.js | IsuruDilhan/Coupley | import React from 'react';
import SearchItem from './SearchItem.react';
import SearchStore from '../../stores/SearchStore';
import Paper from 'material-ui/lib/paper';
import Snackbar from 'material-ui/lib/snackbar';
const style = {
marginLeft: "40"
}
const loadMoreStyle = {
marginTop: 500,
position: 'fixed'
}
con... |
track/translate/js/lib/jquery-1.7.1.min.js | nishartm/simpl | /*! 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... |
ajax/libs/fixed-data-table/0.1.2/fixed-data-table.min.js | wout/cdnjs | /**
* FixedDataTable v0.1.2
*
* Copyright (c) 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 direc... |
src/assets/js/app.js | aprilorange/bmagic | import React from 'react'
import _ from './utils'
_.init()
class Header extends React.Component {
render() {
let conditionList = null
if(session) {
conditionList = <ul></ul>
} else {
conditionList = <ul>
<li>
<a href="/" className={_.topPath() == '' ? 'active' : ''}>首页</a>... |
app/javascript/mastodon/components/button.js | kibousoft/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class Button extends React.PureComponent {
static propTypes = {
text: PropTypes.node,
onClick: PropTypes.func,
disabled: PropTypes.bool,
block: PropTypes.bool,
secondary: PropTypes.... |
packages/@vega/issues-tool/src/index.js | VegaPublish/vega-studio | import React from 'react'
import {omitBy, isNil} from 'lodash'
import {route} from 'part:@vega/core/router'
import routerParams from '@vega/utils/routerParams'
import lyraClient from 'part:@lyra/base/client'
import IssuesToolProvider from './components/providers/IssuesTool'
import UUID from '@lyra/uuid'
const icon = (... |
ajax/libs/react/0.8.0/react-with-addons.min.js | rigdern/cdnjs | /**
* React (with addons) v0.8.0
*
* Copyright 2013 Facebook, Inc.
*
* 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 require... |
node_modules/react-redux/lib/components/connect.js | Crisa221/Lista-Giocatori | 'use strict';
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; };
exports.__esModule = true;
exports["default"] ... |
app/share/containers/ShareAppPage/HongbaoDesc.js | Princess310/antd-demo | /**
*
* HongbaoDesc
*
*/
import React from 'react';
import styled from 'styled-components';
import FlexColumnCenter from 'components/FlexColumnCenter';
import descImg from 'assets/images/share-hongbao-des.png';
const DescItem = styled.div`
position: relative;
z-index: 0;
width: 5.2rem;
font-size: 0.37rem;
f... |
ajax/libs/rxjs/2.3.4/rx.lite.js | wallin/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... |
ajax/libs/vue-material/1.0.0-beta-5/components/MdRadio/index.js | jonobr1/cdnjs | !(function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"));else if("function"==typeof define&&define.amd)define(["vue"],t);else{var n=t("object"==typeof exports?require("vue"):e.Vue);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}})(this,(function(e){return (funct... |
source/components/_STATELESS.react.js | elliotk/thinkreact-kleiman | import React from 'react';
const <NAME> = (parameters) => (
<div>{parameters}</div>
)
export default <NAME>;
|
src/javascript/index.js | testxin/BaseFramework | //import 'babel-core/polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from '../containers/App'
import configureStore from '../store/configureStore'
//import 'todomvc-app-css/index.css'
const store = configureStore()
render(
<Provider store={sto... |
src/svg-icons/content/weekend.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentWeekend = (props) => (
<SvgIcon {...props}>
<path d="M21 10c-1.1 0-2 .9-2 2v3H5v-3c0-1.1-.9-2-2-2s-2 .9-2 2v5c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2zm-3-5H6c-1.1 0-2 .9-2 2v2.15c1.16.41 2 1.51... |
MobileApp/node_modules/react-native/local-cli/templates/HelloWorld/__tests__/index.ios.js | VowelWeb/CoinTradePros.com | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
node_modules/react-bootstrap/es/SplitButton.js | FoxMessenger/nyt-react | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from... |
src/scripts/Paginator.js | williamthing/yoda | 'use strict';
import React from 'react';
import {RenderMixin} from './Mixins';
export default React.createClass({
propTypes: {
text: React.PropTypes.string,
handler: React.PropTypes.func.isRequired
},
mixins: [RenderMixin],
getDefaultProps() {
return {
text: 'Load more',
handler: thi... |
packages/material-ui-icons/legacy/Battery50TwoTone.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V13h10V5.33z" /><path d="M7 13v7.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V13H7z" /></React... |
assets/js/jquery-1.8.3.min.js | negativetwelve/markmiyashita.com | /*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==... |
ajax/libs/forerunnerdb/1.3.21/fdb-legacy.js | brix/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... |
ajax/libs/react/0.5.1/react.min.js | sevab/cdnjs | /**
* React v0.5.1
*
* Copyright 2013 Facebook, Inc.
*
* 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... |
src/frontend/components/main.js | PiTeam/garage-pi | import React from 'react';
import MainAppBar from 'containers/appbar';
import MainLeftBar from 'containers/leftnav';
export default class Main extends React.Component {
constructor(props) {
super(props);
this.onHandleOpenLeftNav = this.onHandleOpenLeftNav.bind(this);
this._handleSetRefLeftBar = this._h... |
ajax/libs/6to5/3.3.2/browser.js | ruo91/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.to5=e()}}(function(){var define,module,exports;return... |
ajax/libs/forerunnerdb/1.3.693/fdb-legacy.min.js | AMoo-Miki/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... |
src/index.js | ChartrainFour/dinner-plan | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, IndexRoute, hashHistory } from 'react-router';
import { compose, createStore, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import thunk from 'redux-thunk';
import persistState from 'redux-localstorage';
impor... |
node_modules/rebass/dist/Container.js | HasanSa/hackathon | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
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]; } } }... |
src/index.js | sfordjasiri/TT | import React from 'react';
import ReactDOM from 'react-dom';
import {BrowserRouter, Route, Redirect, Switch} from 'react-router-dom';
import { Provider } from 'react-redux';
import App from './components/app';
import Resources from './components/resources';
//import Results from './containers/results';
//import Search ... |
src/auth/hoc/component.js | InseeFr/Pogues | import React from 'react';
import { OidcSecure } from '@axa-fr/react-oidc-redux';
const Comp = ({ Component, ...props }) => {
const { authType, ...otherProps } = props;
const ReturnedComponent = <Component {...otherProps} />;
if (authType === 'NONE') return ReturnedComponent;
if (authType === 'OIDC') return <O... |
node_modules/semantic-ui-react/dist/es/elements/Step/StepGroup.js | mowbell/clickdelivery-fed-test | import _extends from 'babel-runtime/helpers/extends';
import _without from 'lodash/without';
import _map from 'lodash/map';
import _isNil from 'lodash/isNil';
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { customPropTypes, getElementType, getUnhandledProps, META, ... |
src/components/matches/controls/CannotEditMatchIcon.js | TTCErembodegem/TTC-React-Front | import React from 'react';
import {Icon, EditIcon} from '../../controls.js';
export const CannotEditMatchIcon = () => (
<span className="fa-stack fa-sm pull-right" style={{marginRight: 8, marginTop: 5}}>
<EditIcon className="fa-stack-1x" />
<Icon fa="fa fa-ban fa-stack-2x text-danger" />
</span>
);
|
js/src/modals/Shapeshift/OptionsStep/optionsSteps.spec.js | nipunn1313/parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any lat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.