path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/molecules/formfields/SliderField/__tests__/slider_field.spec.js | policygenius/athenaeum | import React from 'react';
import renderer from 'react-test-renderer';
import SliderField from 'molecules/formfields/SliderField';
describe('<SliderField />', () => {
let defaultProps;
beforeEach(() => {
defaultProps = {
sliderValues: [ 1, 2, 3, 4, 5 ],
input: {
value: 2,
onChange... |
pages/react.js | WanderlandTravelers/wanderlandtravelers.github.io | import React from 'react'
import Helmet from 'react-helmet'
import { config } from 'config'
export default class ReactComponent extends React.Component {
constructor () {
super()
this.state = { count: 0 }
}
handlePlusClick () {
this.setState({ count: this.state.count + 1 })
}
handleMinusClick (... |
webapp/app/components/Users/Button/index.js | EIP-SAM/SAM-Solution-Node-js | //
// List buttons page users
//
import React from 'react';
import { ButtonToolbar } from 'react-bootstrap';
import LinkContainerButton from 'components/Button';
import styles from './styles.css';
/* eslint-disable react/prefer-stateless-function */
export default class UsersButton extends React.Component {
render... |
components/summary.js | amazingBastard/gatsby-utool.io | import React from 'react';
import { prune } from 'underscore.string';
import { fixLinks } from 'utils';
const style = {
summary: {
display: 'block',
position: 'relative',
margin: '0 auto',
color: '#555'
}
};
class Summary extends React.Component {
summary(body) {
const split = body.split('<hr>')... |
examples/shared-root/app.js | mozillo/react-router | import React from 'react'
import { createHistory, useBasename } from 'history'
import { Router, Route, Link } from 'react-router'
const history = useBasename(createHistory)({
basename: '/shared-root'
})
class App extends React.Component {
render() {
return (
<div>
<p>
This illustrates ... |
assets/js/routes/app-routes.react.js | Nosferatu-lib/nosferatu-reactjs-auth | import React from 'react';
import Router from 'react-router';
import Master from '../layouts/master.react';
import Home from '../layouts/home.react';
var {Route, DefaultRoute} = Router;
var AppRoutes = (
<Route name="root" path="/" handler={Master}>
<DefaultRoute handler={Home} />
</Route>
);
export default ... |
docs/src/IntroductionPage.js | Lucifier129/react-bootstrap | import React from 'react';
import CodeExample from './CodeExample';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
const IntroductionPage = React.createClass({
render() {
return (
<div>
<NavMain activePage="introduction" />
<... |
src/components/TodosList.js | AscaL/NTD | import React from 'react';
import _ from 'lodash';
import TodosListHeader from './TodosListHeader';
import TodosListItem from './TodosListItem';
export default class TodosList extends React.Component {
renderItems() {
const props = _.omit(this.props, 'todos');
return _.map(this.props.todos, (todo, index) =... |
examples/todomvc/test/components/Header.spec.js | chentsulin/redux | import expect from 'expect'
import React from 'react'
import TestUtils from 'react-addons-test-utils'
import Header from '../../components/Header'
import TodoTextInput from '../../components/TodoTextInput'
function setup() {
const props = {
addTodo: expect.createSpy()
}
const renderer = TestUtils.createRend... |
src/components/Empty/Empty.js | Landish/react-spectre-css | import React from 'react';
import { string } from 'prop-types';
import classNames from 'classnames';
import Icon from '../Icon/Icon';
const Empty = ({ icon, title, description, children, ...rest }) => {
return (
<div className={classNames('empty')} {...rest}>
{icon &&
<div className={classNames('em... |
src/svg-icons/image/brightness-4.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness4 = (props) => (
<SvgIcon {...props}>
<path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13... |
ajax/libs/orb/1.0.8/orb.js | pvnr0082t/cdnjs | /**
* orb v1.0.8, Pivot grid javascript library.
*
* Copyright (c) 2014-2015 Najmeddine Nouri <devnajm@gmail.com>.
*
* @version v1.0.8
* @link http://nnajm.github.io/orb/
* @license MIT
*/
'use strict';
! function(e) {
if ("object" == typeof exports && "undefined" != typeof module) module.exports = e();
... |
blog/src/routes.js | titusjin/reduxExp | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/app';
import PostsIndex from './components/posts_index';
import PostsNew from './components/posts_new';
import PostsShow from './components/posts_show';
export default (
<Route path="/" component={App}>
<I... |
webpack.config.js | linclark/jsconf-last-call | /*eslint-disable no-var*/
var getConfig = require("hjs-webpack");
var config = require("./presentation/config");
var webpackConfig = getConfig({
in: "./index.jsx",
out: "dist",
clearBeforeBuild: true,
html: config.html
});
webpackConfig.module.loaders[0] = {
test: /(\.js$)|(\.jsx$)/,
exclude: /node_module... |
src/components/TitleComponent.spec.js | maartenplieger/datascienceplatform-frontend | import React from 'react';
import TitleComponent from './TitleComponent';
import { mount } from 'enzyme';
import sinon from 'sinon';
describe('(Component) TitleComponent', () => {
let _component;
const _dispatch = sinon.spy();
const incrementFunc = sinon.spy();
const _actions = {
incrementCounter: incremen... |
site/components/Cover.js | wagonhq/react-dnd | import React from 'react';
import './Cover.less';
export default class Cover {
render() {
return (
<div className="Cover">
<div className="Cover-header">
<p className="Cover-description">
Drag and Drop for React
</p>
</div>
</div>
);
}
} |
src/rendererProcess/component/MainRectBtn.js | ssohjiro/electron_webpack_react_inline_hot_loader_starter | import cx from 'classnames';
import React from 'react';
import _ from 'underscore';
const { oneOf, bool } = React.PropTypes;
const backgroundColors = [
'#FFBF43','#E88B2D','#FF7B3E','#E8442D','#FF3A67','#FF497C','#E832DB','#C344FF','#6D32E8'
];
var i = 1;
class Button extends React.Component {
constructor( props... |
.storybook/decorators.js | Sing-Li/Rocket.Chat | import React from 'react';
import { MeteorProviderMock } from './mocks/providers';
export const rocketChatDecorator = (fn) => {
const linkElement = document.getElementById('theme-styles') || document.createElement('link');
if (linkElement.id !== 'theme-styles') {
require('../app/theme/client/main.css');
require... |
src/svg-icons/image/hdr-on.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageHdrOn = (props) => (
<SvgIcon {...props}>
<path d="M21 11.5v-1c0-.8-.7-1.5-1.5-1.5H16v6h1.5v-2h1.1l.9 2H21l-.9-2.1c.5-.3.9-.8.9-1.4zm-1.5 0h-2v-1h2v1zm-13-.5h-2V9H3v6h1.5v-2.5h2V15H8V9H6.5v2zM13 9H9.5v6H13... |
src/svg-icons/image/filter-2.js | pancho111203/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 ... |
09-react-todos/src/app/todo.js | iproduct/course-node-express-react | import React from 'react';
export default ({todo, onChangeStatus}) => (
<div key={todo.id}>
<span className={`label label-${todo.status === 'active' ? 'info' : todo.status === 'completed' ? 'success' : 'danger'} pull-right`}>
{todo.status === 'active' ? '' : todo.status === 'completed' ? 'Completed' : 'Can... |
app/components/Resume.js | georgeF105/georgeF105.github.io | import React from 'react'
export default (props) => {
return (
<div className='container resume'>
<object className='resume-pdf' data='/CVGeorgeFrancis.doc.pdf'>
<p>This browser does not support PDFs. Please download to view resume<a href='/CVGeorgeFrancis.doc.pdf'>Download PDF</a></p>
</object... |
ajax/libs/yui/3.1.0/loader/loader.js | lmccart/cdnjs | YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
(function() {
var VERSION = Y.version,
CONFIG = Y.config,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLERY_VERSION = ... |
src/svg-icons/device/signal-wifi-3-bar.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi3Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M3.53 10.95l8.46 10.54.0... |
src/parser/hunter/shared/modules/talents/NaturalMending.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS/index';
import Analyzer from 'parser/core/Analyzer';
import SpellUsable from 'parser/shared/modules/SpellUsable';
import { formatNumber } from 'common/format';
import SPECS from 'game/SPECS';
import TalentStatisticBox from 'interface/others/TalentStatisticBo... |
ajax/libs/redux-form/7.0.0-alpha.6/redux-form.js | maruilian11/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-redux"), require("redux"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-redux", "redux"], factory);
e... |
ajax/libs/react-router/1.0.0-beta1/ReactRouter.min.js | pombredanne/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactRouter=t(require("react")):e.ReactRouter=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].e... |
src/ui/layouts/MainLayout.js | gouxlord/gx-js-starterkit | import React from 'react'
import Header from 'src/ui/views/HeaderView';
import ReduxDevTool from 'src/dev-tools/ReduxDevTool';
var MainLayout = React.createClass({
render: function(){
return (
<div>
<ReduxDevTool/>
<Header/>
<div>
... |
src/step-1-typed/client/HelloMessage.js | DJCordhose/react-intro-live-coding | /* @flow */
import React from 'react';
// http://flowtype.org/docs/react.html#_
type Props = {
// ERROR: trying to assign this boolean to state
// greeting: boolean
greeting: string
};
type State = {
greeting: string;
};
// https://github.com/facebook/flow/blob/master/lib/react.js
export default c... |
frontend/js/components/body/index.js | willrp/willbuyer | //IMPORT EXTERNAL COMPONENTS================================================
import React, {lazy, memo, Suspense} from "react";
import { Route, Switch, Redirect } from "react-router-dom";
import { Container } from "semantic-ui-react";
//IMPORT INTERNAL COMPONENTS================================================
import ... |
test/util/createComponentWithIntl.js | fcsonline/react-transmission | import React from 'react';
import renderer from 'react-test-renderer';
import { IntlProvider } from 'react-intl';
export default function(children, props = { locale: 'en' }) {
return renderer.create(
<IntlProvider {...props}>
{children}
</IntlProvider>
);
}
|
react-flux-mui/js/material-ui/src/svg-icons/image/filter.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter = (props) => (
<SvgIcon {...props}>
<path d="M15.96 10.29l-2.75 3.54-1.96-2.36L8.5 15h11l-3.54-4.71zM3 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... |
src/svg-icons/action/chrome-reader-mode.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionChromeReaderMode = (props) => (
<SvgIcon {...props}>
<path d="M13 12h7v1.5h-7zm0-2.5h7V11h-7zm0 5h7V16h-7zM21 4H3c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 15h-9V6h9v13z"/>
... |
docs/src/app/components/pages/components/FloatingActionButton/ExampleSimple.js | pancho111203/material-ui | import React from 'react';
import FloatingActionButton from 'material-ui/FloatingActionButton';
import ContentAdd from 'material-ui/svg-icons/content/add';
const style = {
marginRight: 20,
};
/**
* Default size and `mini` FABs, in primary (default), `secondary` and `disabled` colors.
*/
const FloatingActionButton... |
clientwebapp/src/index.js | jcocchi/IoTPlantWatering | import React from 'react'
import ReactDOM from 'react-dom'
import App from './components/App'
import registerServiceWorker from './registerServiceWorker'
import './css/index.css'
ReactDOM.render(<App />, document.getElementById('root'))
registerServiceWorker()
|
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-bricks-text-corrector.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import $ from 'jquery';
import BaseMixin from '../common/base-mixin.js';
import ElementaryMixin from '../common/elementary-mixin.js';
import Environment from '../environment/environment.js';
import Tools from '../common/tools.js';
import './text-corrector.less';
export const TextCorrector =... |
src/@ui/Icon/icons/LeafOutline.js | NewSpring/Apollos | import React from 'react';
import PropTypes from 'prop-types';
import { Svg } from '../../Svg';
import makeIcon from './makeIcon';
const Icon = makeIcon(({ size = 32, fill, ...otherProps } = {}) => (
<Svg width={size} height={size} viewBox="0 0 24 24" {...otherProps}>
<Svg.Path
d="M12 22h10V12c0-6.67-4.48-... |
es/Form/FormHelperText.js | uplevel-technology/material-ui-next | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
src/js/components/ui/tables/DataTable.js | knowncitizen/tripleo-ui | /**
* Copyright 2017 Red Hat 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 or agreed to... |
Rosa_Madeira/Cliente/src/components/screens/CarrinhoScreen.js | victorditadi/IQApp | import React, { Component } from 'react';
import { View, Text, ListView, ScrollView } from 'react-native';
import CarrinhoLista from '../carrinho/CarrinhoLista';
import { Button } from 'native-base';
class CarrinhoScreen extends Component {
renderButton(){
if(this.props.listCarrinho == '') return false;
retu... |
fields/components/NestedFormField.js | rafmsou/keystone | import React from 'react';
import { StyleSheet } from 'aphrodite/no-important';
import { FormField, FormLabel } from '../../admin/client/App/elemental';
import theme from '../../admin/client/theme';
function NestedFormField ({ children, className, label, ...props }) {
return (
<FormField {...props}>
<FormLabel a... |
pkg/frontend/src/components/Client.js | Zenika/MARCEL | import React, { Component } from 'react'
import { toast } from 'react-toastify'
import { backendFetcher } from '../utils/fetcher'
import Media from './Media'
import Loader from './Loader'
class Client extends Component {
state = {
loading: true,
}
getClient = () =>
this.backend
.get(`clients/${thi... |
react-focus-within/components/Input.js | okonet/slides | import React from 'react';
import styled from 'styled-components'
import { focusRing } from './mixins'
import InputWithoutFocus from './InputWithoutFocus'
const Input = styled(InputWithoutFocus)`
&:focus {
${focusRing('blue')}
}
`
export default Input; |
src/index.js | kidylee/Front-end-boilerplate | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { App } from './App';
import configureStore from './store/configureStore'
const store = configureStore({})
const Root = () =>
(<Provider store={store} >
<App />
</Provider>)
render(
<Root/>
, docu... |
tests/client/disco/containers/TestDiscoPane.js | muffinresearch/addons-frontend | import React from 'react';
import { Simulate, renderIntoDocument } from 'react-addons-test-utils';
import { findDOMNode } from 'react-dom';
import { Provider } from 'react-redux';
import { loadEntities } from 'core/actions';
import I18nProvider from 'core/i18n/Provider';
import {
EXTENSION_TYPE,
INSTALL_STATE,
} f... |
aaf-enrollment/src/components/enrollment/method-authenticators/CardMethod.js | MicroFocus/CX | import React from 'react';
import Authenticator from '../Authenticator';
import CommonCardHandler from '../../../api/devices/common-card-devices.api';
import {STATUS_TYPE} from '../../../ux/ux';
import t from '../../../i18n/locale-keys';
class CardMethod extends React.PureComponent {
constructor(props) {
s... |
fields/types/azurefile/AzureFileColumn.js | everisARQ/keystone | import React from 'react';
var AzureFileColumn = React.createClass({
renderValue () {
var value = this.props.data.fields[this.props.col.path];
if (!value) return;
return <a href={value.url} target="_blank">{value.url}</a>;
},
render () {
return (
<td className="ItemList__col">
<div className="ItemLis... |
js/components/tab/tabThree.js | ChiragHindocha/stay_fit |
import React, { Component } from 'react';
import { Container, Content, Card, CardItem, Text, Body } from 'native-base';
import styles from './styles';
export default class TabThree extends Component { // eslint-disable-line
render() { // eslint-disable-line
return (
<Content padder style={{ marginTop: ... |
test/icon.js | n7best/react-weui | import React from 'react';
import { shallow } from 'enzyme';
import assert from 'assert';
import WeUI from '../src/index';
const {Icon} = WeUI;
describe('<Icon>', ()=> {
[
'success',
'success-circle',
'success-no-circle',
'safe-success',
'safe-warn',
'info',
... |
ajax/libs/react/0.10.0/JSXTransformer.js | lobbin/cdnjs | /**
* JSXTransformer v0.10.0
*/
!function(e){if("object"==typeof exports)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.JSXTransformer=e()}}(function(){var define,module,... |
packages/material-ui-icons/src/PauseCircleOutline.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let PauseCircleOutline = props =>
<SvgIcon {...props}>
<path d="M9 16h2V8H9v8zm3-14C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm1-4h2... |
app/containers/ChatsPage/index.js | davidnum/chat | import React from 'react';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { makeSelectChats, makeSelectError, makeSelectLoading, makeSelectLoadedFromApi } from './selectors';
import { loadChats } from './actions';
import ChatsList from '../../components/ChatsList';
im... |
packages/material-ui-icons/src/AirlineSeatLegroomNormalSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M5 15V3H3v14h11v-2H5zm17 3h-3v-7c0-1.1-.9-2-2-2h-5V3H6v11h10v7h6v-3z" />
, 'AirlineSeatLegroomNormalSharp');
|
frontend/app/js/components/empty.js | serverboards/serverboards | import React from 'react'
var Empty=function(){
return (
<div></div>
)
}
export default Empty
|
2-state/src/TodoItem.js | mariusz-malinowski/tutorial-react | import React from 'react';
export default (props) => {
return (
<li>{props.todo.name}</li>
);
};
|
src/components/ReplActiveIcon.js | princejwesley/Mancy | import React from 'react';
export default class ReplActiveIcon extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className='repl-active-icon'>
<i className="fa fa-angle-right"></i>
</div>
);
}
}
|
examples/src/app.js | glowka/react-select | /* eslint react/prop-types: 0 */
import React from 'react';
import ReactDOM from 'react-dom';
import Select from 'react-select';
import Contributors from './components/Contributors';
import GithubUsers from './components/GithubUsers';
import CustomComponents from './components/CustomComponents';
import CustomRender f... |
ee/client/omnichannel/tags/Skeleton.js | Sing-Li/Rocket.Chat | import React from 'react';
import { Box, Skeleton } from '@rocket.chat/fuselage';
export const FormSkeleton = (props) => <Box w='full' pb='x24' {...props}>
<Skeleton mbe='x8' />
<Skeleton mbe='x4'/>
<Skeleton mbe='x4'/>
<Skeleton mbe='x8'/>
<Skeleton mbe='x4'/>
<Skeleton mbe='x8'/>
</Box>;
|
src/panels/OutputPanel/index.js | Kitware/HPCCloud | /* Output panel can display a simple list with a title
TITLE
name1 value1
name2 value2
---
or a table with headers
TITLE
headerA headerB headerC
name1 someItem someValue
name2 someItem someValue
name3 someItem someValue
*/
import React from 'react... |
ajax/libs/video.js/4.5.1/video.dev.js | contolini/cdnjs | /**
* @fileoverview Main function src.
*/
// HTML5 Shiv. Must be in <head> to support older browsers.
document.createElement('video');
document.createElement('audio');
document.createElement('track');
/**
* Doubles as the main function for users to create a player instance and also
* the main library object.
*
... |
examples/react-pokedex/src/index.js | dawee/dispersive | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/js/Player.react.js | czarandy/mtgptresults | 'use strict';
import React from 'react';
import {Link} from 'react-router';
import DocumentTitle from 'react-document-title';
import NotFound from './NotFound.react.js';
import PlayerLink from './PlayerLink.react.js';
import Players from './Players.js';
import TournamentLink from './TournamentLink.react.js';
import T... |
src/components/App.js | kaicataldo/tonal-sequencer | // @flow
import React, { Component } from 'react';
import Grid from './Grid';
import Controls from './Controls';
export default class App extends Component {
state = {
isPlaying: false,
cols: 16,
rows: 16,
tempo: 120,
type: 'sine',
scale: 'pentatonic',
grid: this._generateNewGridData()
... |
app/classifier/tasks/survey/index.spec.js | jelliotartz/Panoptes-Front-End | import { mount } from 'enzyme';
import React from 'react';
import assert from 'assert';
import SurveyTask from './';
import Choice from './choice';
import { workflow } from '../../../pages/dev-classifier/mock-data';
describe('Survey Task', function(){
const annotation = { value: [] };
const task = workflow.tasks.s... |
app/components/ReportTemplate.js | seungha-kim/grade-sms | // @flow
import React, { Component } from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import { Card, CardTitle, CardText } from 'material-ui/Card';
import TextField from 'material-ui/TextField';
import Paper from 'material-ui/Paper';
import debounce from 'lodash.debounce';
import IconButton from 'mate... |
client/app/components/home/GithubButtons.js | joelseq/SourceGrade | import React from 'react';
import styled from 'styled-components';
const Container = styled.div`
width: 100%;
padding: 15px;
iframe {
margin-left: 10px;
}
`;
const GithubButtons = () => (
<Container>
<iframe
title="star"
src="https://ghbtns.com/github-btn.html?user=joelseq&repo=SourceG... |
ajax/libs/yasqe/1.3.0/yasqe.min.js | quba/cdnjs | !function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASQE=e()}}(function(){var e;return function t(e,i,r){function n(s,a){if(!i[s]){if(!... |
static/src/components/DynamicPassword.js | cas-x/cas-server | /**
* @Author: BingWu Yang <detailyang>
* @Date: 2016-03-11T12:16:28+08:00
* @Email: detailyang@gmail.com
* @Last modified by: detailyang
* @Last modified time: 2016-04-21T00:43:04+08:00
* @License: The MIT License (MIT)
*/
import Antd, {
Button,
Form,
Input,
Alert,
Row,
Col,
Modal,
} from 'antd';
... |
react-ui/src/modules/App/index.js | bhefty/nightlife-app | import React, { Component } from 'react';
import SearchBar from '../../components/SearchBar';
import './App.css';
class App extends Component {
render() {
return (
<div className='App'>
<SearchBar />
<div className='App-header'>
</div>
... |
src/components/Form/InlineInput/InlineInput.js | thegrinder/basic-styled-uikit | import React from 'react';
import { bool, node } from 'prop-types';
import Wrapper from './Wrapper';
import SpinnerWrapper from './SpinnerWrapper';
import StyledInlineInput from './StyledInlineInput';
const propTypes = {
/** submitting flag that shows a component passed to renderSpinner prop */
submitting: bool,
... |
src/components/FormItem/FormItem-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 { shallow } from 'enzyme';
import FormItem from '../FormItem';
describe('FormItem', () => {
it('should r... |
src/scenes/home/signup/signup.js | hollomancer/operationcode_frontend | import React, { Component } from 'react';
import axios from 'axios';
import getVal from 'lodash/get';
import PropTypes from 'prop-types';
import * as CookieHelpers from 'shared/utils/cookieHelper';
import Form from 'shared/components/form/form';
import FormEmail from 'shared/components/form/formEmail/formEmail';
impor... |
templates/beez3/javascript/hide.js | naka211/domus | // Angie Radtke 2009 - 2012 thanks to daniel //
/*global window, localStorage, Cookie, altopen, altclose, big, small, rightopen, rightclose, bildauf, bildzu */
function saveIt(name) {
var x = document.getElementById(name).style.display;
if (!x) {
alert('No cookie available');
} else if (localStorage) {
local... |
ajax/libs/yasgui/1.1.11/yasgui.bundled.min.js | upgle/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r... |
src/setup/dashboard/chat.js | dudeee/dude | import _ from 'lodash';
export default (bot, { client, server }) => {
bot.hear(message => {
client.send('message', message);
});
server.on('channels', message => {
const channels = bot.channels.map(a => ({ ...a, isChannel: true }));
const ims = bot.ims.map(a => ({ ...a, isIM: true }));
message.r... |
frontend/components/player/Duration.js | BootstrapBETA/GAAMER | import React from 'react'
export default function Duration ({ className, seconds }) {
return (
<time dateTime={`P${Math.round(seconds)}S`} className={className}>
{format(seconds)}
</time>
)
}
function format (seconds) {
const date = new Date(seconds * 1000)
const hh = date.getHours()
const mm ... |
App.js | bokuweb/relay-tutorial | import React from 'react';
import Relay from 'react-relay';
class App extends React.Component {
render() {
console.dir(this.props)
return(
<h2>Hello!! {this.props.user.name}</h2>
);
}
}
exports.Container = Relay.createContainer(App, {
initialVariables: {
id: 2
},
fragments: {
user:... |
src/svg-icons/alert/error.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AlertError = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/>
</SvgIcon>
);
AlertError = pure(AlertError);
AlertEr... |
ajax/libs/angular-google-maps/2.0.0/angular-google-maps.js | jaywcjlove/cdnjs | /*! angular-google-maps 2.0.0 2014-10-09
* AngularJS directives for Google Maps
* git: https://github.com/angular-ui/angular-google-maps.git
*/
(function() {
String.prototype.contains = function(value, fromIndex) {
return this.indexOf(value, fromIndex) !== -1;
};
String.prototype.flare = function(flare)... |
src/pages/contact.js | MicahMonfrini/portfolio-site | import React from 'react';
import Head from 'next/head';
import Header from '../components/Header';
import Footer from '../components/Footer';
function ContactPage() {
return (
<div>
<Head>
<meta charSet="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
... |
src/svg-icons/action/help-outline.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHelpOutline = (props) => (
<SvgIcon {...props}>
<path d="M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c... |
common/containers/HeaderContainer/HeaderContainer.js | sauleddy/HomePortal | import React from 'react';
import { connect } from 'react-redux';
import Header from '../../components/Header';
import {
ActionHeader
} from '../../actions';
export default connect(
(state) => ({
title: state['header'].getIn(['title']),
subtitle: state['header'].getIn(['subtitle']),
image: state['head... |
src/js/view/Login.js | marqusm/react-client-template | import React from 'react';
import PropTypes from 'prop-types';
import {connect} from "react-redux";
import {login} from "../store/GlobalAction";
import LoginForm from './LoginForm';
class Login extends React.Component {
componentDidMount() {
// this.ref.getRenderedComponent().blur();
// this.ref.getRenderedC... |
src/components/Visualization.js | tanykim/julie-and-julia | import React, { Component } from 'react';
import _ from 'underscore';
import Lines from './Lines';
import { highlightLine, stopBlink, linkLine, dimLine, updateLines } from './LinesControl';
import { Dim } from './../constants/design';
function getStrData(data) {
var strLenList = [];
let letterCount = 0;
let colu... |
rn-07-layoutWithFlexbox.js | KyoungRan/react-native-ex-NDH | import React from 'react';
import {
StyleSheet,
Text,
View,
StatusBar
} from 'react-native';
export default class App extends React.Component {
render() {
return (
<View style = {
{
flex: 1,
flewDirection: 'row',
justifyContent: 'space-around'
}
... |
src/components/waste-water/sidebar-info/index.js | impact-initiatives/reach-jor-zaatari-webmap | import React from 'react';
import styles from '../../../styles/index.js';
import * as language from '../../../constants/languages';
import messages from '../../../translations/waste-water.js';
import Language from '../../common/info/language.js';
import About from '../../common/info/about.js';
// import Download from '... |
src/app/views/shared/Button/index.js | lpan/htn-challenge | import { cond, always, equals, T } from 'ramda';
import React, { PropTypes } from 'react';
import styles from './styles.css';
const getColor = cond([
[equals('primary'), always('#0EC6FD')],
[equals('warning'), always('#FCAD0F')],
[T, always('#0EC6FD')],
]);
const Button = ({ type, label, onClick }) => {
cons... |
src/NavPane/windows/Item/Content/index.js | gabrielbull/react-desktop | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Padding, { paddingPropTypes } from '../../../../style/padding';
import Margin, { marginPropTypes } from '../../../../style/margin';
import Background, { backgroundPropTypes } from '../../../../style/background/windows';
import Alignmen... |
ajax/libs/yui/3.2.0/loader/loader.js | iros/cdnjs | YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
if (!YUI.Env[Y.version]) {
(function() {
var VERSION = Y.version,
// CONFIG = Y.config,
BUILD = '/build/',
ROOT = VERSI... |
webpack/__mocks__/foremanReact/routes/common/PageLayout/components/ExportButton/ExportButton.js | adamruzicka/foreman-tasks | import React from 'react';
const ExportButton = () => <button>export</button>;
export default ExportButton;
|
src/components/FollowUpPreRTAssessment.js | FiviumAustralia/RNSH-Pilot | import React, { Component } from 'react';
import Panel from './Panel';
import { Select, TextInput, InlineWidgetGroup } from './widgets';
import styles from './FollowUpPreRTAssessment.scss';
export default class PreRTAssessment extends Component {
render () {
return (
<Panel title='Pre-RT Assessment'>
... |
course/format/amd/src/courseeditor.js | mattporritt/moodle | // This file is part of Moodle - http://moodle.org/
//
// Moodle 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.
//
// Moodle is dis... |
ajax/libs/6to5/3.6.4/browser.js | chinakids/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... |
src/components/tabs/Tabs.js | entria/entria-components | import React from 'react';
import styled from 'styled-components';
import { Tabs } from 'material-ui/Tabs';
import { VIEWPORT } from '../Responsive';
const Wrapper = styled.div`
> div {
> div:nth-child(2) > div {
transition: all 1s cubic-bezier(0.23, 1, 0.32, 1) 0ms !important;
}
@media(max-width... |
src/TaskList.js | holden-caulfield/redux-workshop | import React from 'react';
import TaskCard from './TaskCard';
export default class TaskList extends React.Component {
render() {
let { title, tasks, onRemoveTask, onSetTaskStatus } = this.props;
let taskCards = tasks.map( (task, index) =>
<TaskCard key={index} task={task}
onRemove={ () => onRem... |
src/components/Books/Books.js | Okazari/react-rest-hoc | import React from 'react'
import Book from './Book'
const Books = ({ books, postResource }) => {
if(!books) return null
const onAdd = (event) => {
event.preventDefault()
postResource({title: event.target.newBook.value})
event.target.reset()
}
return (
<div className="container">
<h1> Book l... |
src/components/CampaignTimeAndSalary/index.js | goodjoblife/GoodJobShare | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { Switch } from 'react-router';
import { compose, setStatic } from 'recompose';
import Wrapper from 'common/base/Wrapper';
import FanPageBlock from 'common/FanPageBlock';
imp... |
Source/Server/NetBots.Server/Scripts/knockout-3.2.0.debug.js | AiBattleground/BotWars | /*!
* Knockout JavaScript library v3.2.0
* (c) Steven Sanderson - http://knockoutjs.com/
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
*/
(function(){
var DEBUG=true;
(function(undefined){
// (0, eval)('this') is a robust way of getting a reference to the global object
// For details,... |
MARVELous/client/src/js/components/characterDetails/index.js | nicksenger/StackAttack2017 | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import CharacterView from './characterView';
import { fetchCharacterDetails } from '../../actions/index';
export class CharacterDetails extends Component {
componentWillMount() {
this.prop... |
frontend/src/components/layout/appBar.js | unicef/un-partner-portal | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { withStyles } from 'material-ui/styles';
import Grid from 'material-ui/Grid';
import Popover from 'material-ui/Popover';
import AppBar from 'material-ui/AppBar';
import Typography from 'material-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.