path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
wp-content/plugins/jetpack/modules/sharedaddy/sharing.js | amie-wilt/buymyoldtextbook | if ( sharing_js_options && sharing_js_options.counts ) {
var WPCOMSharing = {
done_urls : [],
twitter_count : {},
get_counts : function( url ) {
var https_url, http_url, urls, id, service, service_urls, service_url;
id = WPCOM_sharing_counts[ url ];
if ( 'undefined' != typeof WPCOMSharing.done_urls[ i... |
browser/app/js/components/SideBar.js | hackintoshrao/minio | /*
* Minio Cloud Storage (C) 2016 Minio, 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 applicable law... |
plum/src/components/groups/groupView.js | jbkaplan/plum-app | import React, { Component } from 'react';
import {
StyleSheet,
Navigator,
TabBarIOS,
TouchableHighlight,
Image,
View
} from 'react-native';
var Groups = require('./groups');
var NewGroup = require('./new');
ROUTES = {
groups: Groups,
newGroup: NewGroup,
};
module.exports = React.createClass({
comp... |
client/App/Shell/Home/CompleteAllButton/CompleteAllButton.js | noamokman/project-starter-sample | import React from 'react';
import {blue500} from 'material-ui/styles/colors';
import {IconButton} from 'material-ui';
import ActionDoneAll from 'material-ui/svg-icons/action/done-all';
export default ({checked, disabled, onClick}) => (
<IconButton tooltip={checked ? 'Mark all unchecked' : 'Mark all checked'} disable... |
src/components/FundsList.js | ramaya314/UndocuFunds | import React from 'react';
import Paper from 'material-ui/Paper';
import FundsTableRow from './FundsTableRow';
import FundsTableHeader from './FundsTableHeader';
import Loading from 'react-loading';
import Utils from '../Utils';
import Spacer from './Spacer';
import SearchInput, {createFilter} from 'react-search-i... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/CssModulesInclusion.js | maletor/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 from 'react';
import styles from './assets/style.module.css';
export default () => (
<p className={styles.cssModulesIncl... |
app/tmp/modernizr/test/caniuse_files/jquery.min.js | r-long/drakenix.com | /*!
* jQuery JavaScript Library v1.6.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
poc/src/index.js | clplain/poc | import React from 'react';
import ReactDOM from 'react-dom';
import { IndexRoute, Router, Route } from 'react-router';
import createHistory from 'history/lib/createHashHistory';
const history = createHistory( { queryKey: false } );
import App from './js/components/App';
import Logout from './js/components/Logout';
impo... |
app/scenes/Talk/components/Pane/index.js | brentvatne/react-conf-app | // @flow
import React, { Component } from 'react';
import {
PixelRatio,
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
View,
} from 'react-native';
import moment from 'moment';
import type { ScheduleTalk } from '../../../../types';
import { TIME_FORMAT } from '../../../../constants';
import theme from '.... |
fields/types/relationship/RelationshipFilter.js | mikaoelitiana/keystone | import async from 'async';
import React from 'react';
import xhr from 'xhr';
import { Button, FormField, FormInput, InputGroup, SegmentedControl } from 'elemental';
import PopoutList from '../../../admin/client/components/PopoutList';
const TOGGLE_OPTIONS = [
{ label: 'Linked To', value: false },
{ label: 'NOT Lin... |
examples/filter/app.js | bartvde/sdk | /** SDK showing filters application example.
*
*/
import {createStore, combineReducers, applyMiddleware} from 'redux';
import thunkMiddleware from 'redux-thunk';
import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import RendererSwitch from '../rendererswitch';
impo... |
frontend/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | SokolovArtur/tochka | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/routes.js | ames89/keystone-react-redux | import React from 'react';
import { IndexRoute, Route } from 'react-router';
import { routerActions } from 'react-router-redux';
import { UserAuthWrapper } from 'redux-auth-wrapper';
import { App, Home, NotFound } from 'containers';
import getRoutesUtils from 'utils/routes';
// eslint-disable-next-line import/no-dynam... |
src/components/floating-toolbar/floating-toolbar.js | mpigsley/sectors-without-number | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { Link } from 'react-router-dom';
import ReactHintFactory from 'react-hint';
import { FormattedMessage, intlShape } from 'react-intl';
import {
List,
Settings,
Plus,
Lock,
Unlock,
Layers... |
packages/mineral-ui-icons/src/IconBlurLinear.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 IconBlurLinear(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconPro... |
packages/material/src/components/FormatJson.native.js | wq/wq.app | import React from 'react';
import { Text, ScrollView } from 'react-native';
import PropTypes from 'prop-types';
export default function FormatJson({ json }) {
return (
<ScrollView style={{ height: 128 }}>
<Text>{JSON.stringify(json, null, 4)}</Text>
</ScrollView>
);
}
FormatJson.pr... |
ajax/libs/rxjs-dom/2.0.3/rx.dom.js | barcadictni/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
(function (root, factory) {
var freeExports = typeof exports == 'object' && exports,
freeModule = typeof module == 'object' && module && module.exports == freeExports && modu... |
packages/material-ui-icons/src/StarOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><g fill="none"><path d="M0 0h24v24H0V0z" /><path d="M0 0h24v24H0V0z" /></g><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27z" /></React.... |
examples/custom-validation/app.js | yesmeck/formsy-react | import React from 'react';
import ReactDOM from 'react-dom';
import Formsy from 'formsy-react';
import MyInput from './../components/Input';
const currentYear = new Date().getFullYear();
const validators = {
time: {
regexp: /^(([0-1]?[0-9])|([2][0-3])):([0-5]?[0-9])(:([0-5]?[0-9]))?$/,
message: 'Not valid ... |
app/javascript/mastodon/features/account_timeline/containers/header_container.js | imas/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { makeGetAccount } from '../../../selectors';
import Header from '../components/header';
import {
followAccount,
unfollowAccount,
unblockAccount,
unmuteAccount,
pinAccount,
unpinAccount,
} from '../../../actions/accounts';
import {
m... |
ajax/libs/react/0.4.2/react.js | raimohanska/cdnjs | /**
* React v0.4.2
*/
(function(e){if("function"==typeof bootstrap)bootstrap("react",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeReact=e}else"undefined"!=typeof window?window.React=e():globa... |
src/docs/components/chart/BaseDoc.js | grommet/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Anchor from 'grommet/components/Anchor';
import DocsArticle from '../../../components/DocsArticle';
import BackControl from './BackControl';
export default class BaseDoc extends Component {
render ... |
tests/baselines/reference/jsxPartialSpread.js | kitsonk/TypeScript | //// [jsxPartialSpread.tsx]
/// <reference path="/.lib/react16.d.ts" />
const Select = (p: {value?: unknown}) => <p></p>;
import React from 'react';
export function Repro({ SelectProps = {} }: { SelectProps?: Partial<Parameters<typeof Select>[0]> }) {
return (
<Select value={'test'} {...SelectProps} />
... |
examples/async/index.js | Aweary/redux | import 'babel-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'
const store = configureStore()
render(
<Provider store={store}>
<App />
</Provider>,
document.get... |
src/svg-icons/maps/local-laundry-service.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalLaundryService = (props) => (
<SvgIcon {...props}>
<path d="M9.17 16.83c1.56 1.56 4.1 1.56 5.66 0 1.56-1.56 1.56-4.1 0-5.66l-5.66 5.66zM18 2.01L6 2c-1.11 0-2 .89-2 2v16c0 1.11.89 2 2 2h12c1.11 0 2-.89 ... |
zwdemoRect/src/components/docked.js | send2ocean/nodelearn | import React from 'react';
import Drawer from 'material-ui/Drawer';
import MenuItem from 'material-ui/MenuItem';
import AppBar from './appBar.js';
import MenuItems from './menuItem.js'
export default class DrawerSimple extends React.Component {
constructor(props) {
super(props);
this.state = {open: true};
... |
src/containers/PuzzleSet.js | dpickett/name-game | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { fetchIdentities } from '../modules/Identity'
import PuzzleStatistics from './PuzzleStatistics'
import GuessFeedback from './GuessFeedback'
import GiveUpFeedback from './GiveUpFeedback'
import GameOver fro... |
Js/Ui/Components/Date/index.js | Webiny/Webiny | import React from 'react';
import ReactDOM from 'react-dom';
import _ from 'lodash';
import $ from 'jquery';
import Webiny from 'webiny';
class Date extends Webiny.Ui.FormComponent {
constructor(props) {
super(props);
this.valueChanged = false;
this.bindMethods('setup,onChange');
}
... |
packages/material-ui-icons/src/Group.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Group = props =>
<SvgIcon {...props}>
<path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-... |
ajax/libs/jointjs/0.8.0/joint.all.min.js | holtkamp/cdnjs | /*! JointJS v0.8.0 - JavaScript diagramming library 2014-01-22
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
if(function(a,b){function c(a){var b=a.length,c=ib.type(... |
src/components/itemRow.js | antholord/poe-livesearch | /**
* Created by Anthony Lord on 2017-04-21.
*/
import React from 'react';
import CopyToClipboard from 'react-copy-to-clipboard';
import Mods from './mods'
import Image from "./image";
class ItemRow extends React.Component {
constructor(props){
super(props);
this.state = { copied : false};
... |
src/balloon.js | toolmantim/sams-29th-birthday | import React from 'react';
import Color from 'color';
import classnames from 'classnames';
import uuid from 'uuid';
import ExplosionOfSams from './explosion-of-sams';
import './balloon.css';
class Balloon extends React.Component {
static colors = [
"#FFBA03",
"#03BEFF",
"#E366FD"
]
constructor(pro... |
src/svg-icons/places/beach-access.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesBeachAccess = (props) => (
<SvgIcon {...props}>
<path d="M13.127 14.56l1.43-1.43 6.44 6.443L19.57 21zm4.293-5.73l2.86-2.86c-3.95-3.95-10.35-3.96-14.3-.02 3.93-1.3 8.31-.25 11.44 2.88zM5.95 5.98c-3.94 3.95... |
docs/src/app/components/pages/components/Stepper/Page.js | mmrtnz/material-ui | import React from 'react';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import stepperReadmeText from './README.md';
import advancedReadmeText from './Advanced.md';
import HorizontalLinearStepper... |
src/esm/components/graphics/icons/stats-icon/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 StatsIcon = function StatsIcon(_ref) {
var color = _ref.... |
node_modules/semantic-ui-react/dist/es/collections/Form/FormGroup.js | mowbell/clickdelivery-fed-test | import _toConsumableArray from 'babel-runtime/helpers/toConsumableArray';
import _extends from 'babel-runtime/helpers/extends';
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { customPropTypes, getElementType, getUnhandledProps, META, SUI, useKeyOnly, useWidthProp } ... |
examples/src/app.js | jacycode/react-select-plus-2 | /* eslint react/prop-types: 0 */
import React from 'react';
import ReactDOM from 'react-dom';
import Select from 'react-select-plus-2';
import Creatable from './components/Creatable';
import Contributors from './components/Contributors';
import GithubUsers from './components/GithubUsers';
import CustomComponents from... |
index.android.js | ttalhouk/Game_On | /**
* Sample React Native App
* https://github.com/facebook/react-native
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class GameOn extends Component {
render() {
return (
<View style={styles.container}>
<Text style={sty... |
src/components/Contentful/InternalLink/index.js | ndlib/usurper | import React from 'react'
import PropTypes from 'prop-types'
import typy from 'typy'
import Link from 'components/Interactive/Link'
const InternalLink = (props) => {
const page = props.cfEntry.fields.page
const link = page ? (typy(page, 'fields.slug').safeString || typy(page, 'fields.url').safeString) : null
con... |
ajax/libs/inferno-compat/1.1.2/inferno-compat.js | ahocevar/cdnjs | /*!
* inferno-compat v1.1.2
* (c) 2017 Dominic Gannaway
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('proptypes'), require('inferno-component'), require('inferno')) :
typeof define === 'function' && defin... |
src/components/Cards/JudgementItem/JudgementItem.js | gabrielmf/SIR-EDU-2.0 | import React from 'react'
import { RaisedButton, FlatButton, DatePicker, TextField, Paper } from 'material-ui'
import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card';
import { Modal } from 'react-bootstrap'
import { connect } from 'react-redux'
import './JudgementItem.scss'
cons... |
examples/pinterest/app.js | ksivam/react-router | import React from 'react'
import { createHistory, useBasename } from 'history'
import { Router, Route, IndexRoute, Link } from 'react-router'
const history = useBasename(createHistory)({
basename: '/pinterest'
})
const PICTURES = [
{ id: 0, src: 'http://placekitten.com/601/601' },
{ id: 1, src: 'http://placekit... |
app/components/app.js | ongmin/batchtracker | import React from 'react'
import Header from './common/header'
import Modal from './common/modal'
var App = React.createClass({
componentWillReceiveProps (nextProps) {
// if we changed routes...
if ((
nextProps.location.key !== this.props.location.key &&
nextProps.location.state &&
... |
js/jquery.js | Jackque/jackque.github.io | /*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
Example/__tests__/index.android.js | phuongla/react-native-auto-typing-text | 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 />
);
});
|
src/views/createRoutes.js | w01fgang/react-redux-universal-hot-example | import React from 'react';
import {Route} from 'react-router';
import App from './App';
import Home from './Home';
import Widgets from './Widgets';
import About from './About';
import Login from './Login';
import RequireLogin from './RequireLogin';
import LoginSuccess from './LoginSuccess';
import Survey from './Survey... |
packages/material-ui-icons/src/NoteAdd.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z" />
, 'NoteAdd');
|
src/components/app.js | RaneWallin/FCCLeaderboard | import React, { Component } from 'react';
import Campers from '../containers/campers';
import SiteHeader from './header';
export default class App extends Component {
render() {
return (
<div>
<SiteHeader />
<Campers />
</div>
);
}
}
|
ajax/libs/yui/3.14.1/scrollview-base/scrollview-base-coverage.js | ripple0328/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/scrollview-base/scrollview-base.js']) {
__coverage__['build/scrollview-base/scrollview-base.js'] = {"path":"build/scrollview-base/scrollview-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":... |
node_modules/socket.io-client/socket.io.js | medaymenourabi/HikingZoneFront | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["io"] = factory();
else
root["io"] = fac... |
src/components/Events.js | OSWeekends/EventPoints | import React, { Component } from 'react';
import Event from './Event';
import './Events.scss';
class Events extends Component {
constructor() {
super();
this.state = { load: 'loading', events: [] };
this.requestEvents = this.requestEvents.bind(this);
this.requestEvents();
}
async requestEvents... |
tests/components/ArticleSpec.js | andela-iukwuoma/newsfeed | import React from 'react';
import chai from 'chai';
import chaiEnzyme from 'chai-enzyme';
import { shallow } from 'enzyme';
import Article from '../../src/app/components/Article';
import defaultUrlImage from '../../src/public/images/newsimage.jpg';
import * as data from '../testData';
chai.use(chaiEnzyme());
const exp... |
__tests__/index.android.js | shiyunjie/scs | 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 />
);
});
|
files/core-js/0.8.3/core.js | ajibolam/jsdelivr | /**
* Core.js 0.8.3
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(undefined){
var __e = null, __g = null;
(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... |
app/components/Input/index.js | PeterKow/clientAurity | /**
*
* Input
*
*/
import React from 'react';
import styles from './styles.css';
function Input({ onChange, value, style, className }) {
return (
<input
className={ className || styles.input }
style={ style }
onChange={ onChange }
value={ value}
/>
);
}
export default Input;
|
lib/BackgroundDecorator.js | timomeh/react-native-material-bottom-navigation | import React from 'react'
import PropTypes from 'prop-types'
import { View, StyleSheet } from 'react-native'
import BackgroundRippleAnimation from './BackgroundRippleAnimation'
export default class BackgroundDecorator extends React.Component {
static propTypes = {
children: PropTypes.func.isRequired
}
stat... |
flask_react/client/test/components/Home.spec.js | ebottabi/mmakinde-ebot | /* global expect */
import React from 'react';
import { shallow } from 'enzyme';
import Home from '../../components/Home';
describe('Footer component', () => {
it('renders as a footer', () => {
const wrapper = shallow(<Home />);
expect(wrapper.node.type).toEqual('div');
});
});
|
app/containers/AuthLogin/Loading/index.js | SakuB/Individual_website | import React, { Component } from 'react';
import styles from './styles.css';
import classNames from 'classnames';
import QueueAnim from 'rc-queue-anim';
class Loading extends Component {
render() {
return (
<QueueAnim type="scaleX">
<div className={styles.loading} key="a">
<div className... |
webapp/src/components/MetamaskStatus.js | ArnaudBrousseau/blockbin | import React, { Component } from 'react';
import { getEtherscanURL } from '../util/ethereum';
import Web3 from 'web3';
class MetamaskStatus extends Component {
constructor(props) {
super(props);
var contractAddress = process.env.REACT_APP_CONTRACT_ADDRESS;
var contractNetwork = process.env.REACT_APP_CO... |
src/ExhibitionsContainer/ExhibitionForm.js | nienkebos/ExhibitionPlanner | import React from 'react'
import jQuery from 'jquery'
import Dropzone from 'react-dropzone'
import request from 'superagent'
//STYLES//
import TextField from 'material-ui/TextField'
import Divider from 'material-ui/Divider'
import Paper from 'material-ui/Paper'
import FlatButton from 'material-ui/FlatButton'
const st... |
client/main.js | marcinwysocki/meteor-events | import React from 'react';
import { render } from 'react-dom';
import { Meteor } from 'meteor/meteor';
import App from '../imports/ui/App';
Meteor.startup(() => {
render(<App />, document.getElementById('app-container'));
}); |
node_modules/react-icons/md/code.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdCode = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m24.3 27.7l7.7-7.7-7.7-7.7 2.3-2.3 10 10-10 10z m-8.6 0l-2.3 2.3-10-10 10-10 2.3 2.3-7.7 7.7z"/></g>
</Icon>
)
export default MdCode
|
news/components/Nav/components/NavLinks.js | FreeCodeCampQuito/FreeCodeCamp | import React from 'react';
import { NavItem, Nav } from 'react-bootstrap';
import { startCase } from 'lodash';
const urls = {
curriculum: 'https://learn.freecodecamp.org',
forum: 'https://forum.freecodecamp.org',
news: 'https://freecodecamp.org/news'
};
const Links = Object.keys(urls).map(key => (
<NavItem hr... |
src/routes/user/index.js | shaohuawang2015/goldbeans-admin | 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 User = ({ location, dispatch, user, loading }... |
views/blocks/CommentForm/CommentForm.js | urfu-2016/team5 | import React from 'react';
import './CommentForm.css';
import b from 'b_';
import './../Input.css';
import {CommentFormStrings} from './../../constants/strings';
import {CommentFormConstants} from './../../constants/constants';
import Button from './../Button/Button';
const commentForm = b.lock('comment-form');
expor... |
src/assets/js/react/components/Template/TemplateHeaderNavigation.js | blueliquiddesigns/gravity-forms-pdf-extended | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { withRouter } from 'react-router-dom'
/**
* Renders the template navigation header that get displayed on the
* /template/:id pages.
*
* @package Gravity PDF
* @copyright Copyright (c) 2020, Blue Liquid... |
src/parser/monk/windwalker/modules/spells/FistsofFury.js | FaideWW/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import Analyzer from 'parser/core/Analyzer';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
// Inspired by the penance bolt counter modul... |
js/component/MainScreenNavigator.js | codeestX/MoeFM | /**
* @author: Est <codeest.dev@gmail.com>
* @date: 2017/6/15
* @description:
*/
import React from 'react'
import { Text, StyleSheet } from 'react-native'
import Icon from 'react-native-vector-icons/Ionicons';
import { TabNavigator } from 'react-navigation';
import TabMePage from '../page/TabMePage'
import TabMus... |
src/index.js | dfosco/tweaking-twitter | import React from 'react';
import { render } from 'react-dom';
import { App } from './App';
render(<App />, document.getElementById('root'));
|
src/svg-icons/maps/local-activity.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalActivity = (props) => (
<SvgIcon {...props}>
<path d="M20 12c0-1.1.9-2 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2z... |
pages/public/components/Videolist.js | mackybeltran/magic_mark_static_website | import React from 'react'
import { Carousel } from 'react-bootstrap'
const videos = [{path: 'https://www.youtube.com/embed/2gOeuvX_JGY?controls=1&showinfo=0', caption: 'Demo Reel'},
{path: 'https://www.youtube.com/embed/2cyt3ndRWgk?controls=1&showinfo=0', caption: 'Street Magic'},
{path... |
node_modules/babel-core/lib/babel/traversal/path/lib/hoister.js | oneillci/egghead-react-app | "use strict";
var _toolsProtectJs2 = require("./../../../tools/protect.js");
var _toolsProtectJs3 = _interopRequireDefault(_toolsProtectJs2);
exports.__esModule = true;
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) ... |
ajax/libs/jQRangeSlider/4.1.2/jQRangeSliderBar.min.js | cgvarela/cdnjs | (function(a,b){a.widget("ui.rangeSliderBar",a.ui.rangeSliderDraggable,{options:{leftHandle:null,rightHandle:null,bounds:{min:0,max:100},type:"rangeSliderHandle",range:false,drag:function(){},stop:function(){},values:{min:0,max:20},wheelSpeed:4,wheelMode:null},_values:{min:0,max:20},_waitingToInit:2,_wheelTimeout:false,... |
dev/test-studio/parts/tools/long.js | sanity-io/sanity | import React from 'react'
function LongTool() {
return (
<div style={{padding: '1em', textAlign: 'center'}}>
<h1>This should be scrollable</h1>
<h1>This should be scrollable</h1>
<h1>This should be scrollable</h1>
<h1>This should be scrollable</h1>
<h1>This should be scrollable</h1>... |
docs/components/components/SeparatorDocumentation.js | nikgraf/belle | import React, { Component } from 'react';
import { Option, Select, Separator } from 'belle';
import Code from '../Code';
const basicCodeExample = `<!-- basic select example with separators -->
<Select>
<Separator>America</Separator>
<Option value="san-francisco">San Francisco</Option>
<Option value="vancouver">V... |
client/admin/components/Header/Header.js | bigwisu/josspoll | import React, { Component } from 'react';
class Header extends Component {
sidebarToggle(e) {
e.preventDefault();
document.body.classList.toggle('sidebar-hidden');
}
mobileSidebarToggle(e) {
e.preventDefault();
document.body.classList.toggle('sidebar-mobile-show');
}
asideToggle(e) {
e... |
Templates/webpack.config.js | RadioSystems/RadioSystems.React | "use strict";
var path = require("path");
module.exports = {
entry: {
"RadioSystems.React": "./Modules/RadioSystems.React/ReactBase/index.js"
},
output: {
filename: "./Modules/[name]/Scripts/Orchard.React.js"
},
devtool: "source-map",
module: {
loaders: [
{... |
packages/mcs-lite-ui/src/DataChannel/DisplayString.js | MCS-Lite/mcs-lite | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import Textarea from '../Textarea';
export const Container = styled.div`
width: 100%;
display: flex;
flex-direction: column;
align-self: stretch;
`;
export const StyledTextarea = styled(Textarea)`
height: ... |
ajax/libs/rxjs/2.3.12/rx.all.compat.js | SpencerCDixon/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... |
packages/material-ui-icons/src/ReplayRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M12 5V2.21c0-.45-.54-.67-.85-.35l-3.8 3.79c-.2.2-.2.51 0 .71l3.79 3.79c.32.31.86.09.86-.36V7c3.73 0 6.68 3.42 5.86 7.29-.47 2.27-2.31 4.1-4.57 4.57-3.57.75-6.75-1.7-7.23-5.01-.07-.48-.49-.85-.98-.85-.... |
src/CheckButton.js | chinayangzhan913/react-grid-gallery | import PropTypes from 'prop-types';
import React, { Component } from 'react';
class CheckButton extends Component {
constructor (props) {
super(props);
this.state = {
hover: this.props.hover
};
this.fill = this.fill.bind(this);
this.visibility = this.visibility... |
ajax/libs/react-popper/0.9.1/react-popper.js | extend1994/cdnjs | 'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var react = require('react');
var PropTypes = _interopDefault(require('prop-types'));
var PopperJS = _interopDefault(require(... |
SocialERPWeb/obj/Release/Package/PackageTmp/Scripts/jquery-1.9.1.js | CodeMoggy/ngOutlookApp | /* NUGET: BEGIN LICENSE TEXT
jQuery v1.9.1
Microsoft grants you the right to use these script files for the sole purpose of either: (i) interacting through your browser with the Microsoft website, subject to the website's terms of use; or (ii) using the files as included with a Microsoft product subject to that produc... |
admin/src/route/EditSite.js | zentrope/webl | //
// Copyright (c) 2017 Keith Irwin
//
// 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 3 of the License,
// or (at your option) any later version.
//
// This program is distri... |
app/javascript/mastodon/features/favourites/index.js | danhunsaker/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { fetchFavourit... |
sites/all/modules/custom/shopify_enhancements/js/app/cart/index.js | xeraseth/project-bear | /**
* @file
* Create a Cart React rendering.
*
* Not using Redux because the Shopify cart item should be the one source of truth.
*/
import React from 'react'
import { render } from 'react-dom'
import CartComp from './components/cart'
import CartItemComp from './components/cartItem'
export const Cart = (lineIte... |
src/components/calendar/CardSection.js | ChrisWhiten/react-rink | import React from 'react';
import PropTypes from 'prop-types';
import {CardElement} from 'react-stripe-elements';
// import './styles/CardSection.css';
class CardSection extends React.Component {
constructor() {
super();
this.state = {
active: false,
selectedBooking: null,
};
}
render(... |
src/components/Modal.js | FiviumAustralia/RNSH-Pilot | import React, { Component } from 'react';
import styles from './Modal.scss';
import { Link } from 'react-router';
export default class Modal extends Component {
render () {
return (
<div className={styles['modal']}>
<div className={styles['header']}>
<h2>{this.props.modalHeading}</h2>
... |
ajax/libs/yui/3.7.1/datatable-core/datatable-core.js | alucard001/cdnjs | YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@since 3.5.0
**/
var INVALID = Y.Attribute.INVALID_VALUE,
Lang = Y.Lang,
isFunction = Lang.isFunction,
isObject = Lang.isO... |
src/svg-icons/hardware/keyboard-arrow-left.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardArrowLeft = (props) => (
<SvgIcon {...props}>
<path d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"/>
</SvgIcon>
);
HardwareKeyboardArrowLeft = pure(HardwareKeyboardArrowLeft);
Hardware... |
docs/src/pages/components/checkboxes/CustomizedCheckbox.js | kybarg/material-ui | import React from 'react';
import clsx from 'clsx';
import { makeStyles } from '@material-ui/core/styles';
import Checkbox from '@material-ui/core/Checkbox';
const useStyles = makeStyles({
root: {
'&:hover': {
backgroundColor: 'transparent',
},
},
icon: {
borderRadius: 3,
width: 16,
hei... |
client/src/SearchTerm.js | panter/mykonote | import React, { Component } from 'react';
import './SearchTerm.css';
class SearchTerm extends Component {
render() {
if (!this.props.searchQuery) { return null; }
return (
<div className="search-term">Showing results for "{this.props.searchQuery}"</div>
);
}
}
export default SearchTerm;
|
example/src/components/YelpSearchItem.js | zordius/reservice | import React from 'react'
import PropTypes from 'prop-types'
const YelpSearchItem = ({ item }) => <li onClick={() => (global.window.location.href = `/business/${encodeURIComponent(item.id)}`)} >
<h2>{item.name}</h2><img src={item.rating_img_url} alt='rating' />
</li>
YelpSearchItem.propTypes = {
item: PropTypes.o... |
App.js | Datasilk/Dedicate |
import React from 'react';
import {View, Dimensions, StyleSheet, NativeEventEmitter} from 'react-native';
import { createStackNavigator } from 'react-navigation';
import ScreenTransition from 'ui/ScreenTransition';
import Toolbar from 'ui/Toolbar';
import Schema from 'db/Schema';
import {getUserConfig} from 'dedicate/... |
sdncon/ui/static/js/thirdparty/jquery-1.9.1.js | mandeepdhami/netvirt-ctrl | /*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-4
*/
(function( window, undefined ) {
// Can't do t... |
ajax/libs/analytics.js/1.3.7/analytics.js | ekeneijeoma/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 ... |
webchat/node_modules/engine.io-client/engine.io.js | KLEROV/webchat | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["eio"] = factory();
else
root["eio"] = f... |
node_modules/react/lib/findNodeHandle.js | luisfpinto/react-rpi | /**
* 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.
*
* @provides... |
imports/ui/components/link-grabber-btn.js | dklisiaris/boomabu | import React from 'react';
import {Meteor} from 'meteor/meteor';
import {ReactPageClick} from 'react-page-click';
import {
addBookmark, refreshBookmark, grabBookmarks
} from '../../api/bookmarks/methods';
export class LinkGrabberBtn extends React.Component {
constructor(props) {
super(props);
this.state = ... |
app/javascript/mastodon/features/public_timeline/index.js | RobertRence/Mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import {
refreshPublicTimeline,
exp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.