path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
assets/jqwidgets/demos/react/app/chart/stackedwaterfallseries/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxChart from '../../../jqwidgets-react/react_jqxchart.js';
class App extends React.Component {
render() {
let sampleData = [
{ a: 35, b: 40 },
{ a: 10, b: 25 },
{ a: 20, b: 20 },
{ a: 30, ... |
eventkit_cloud/ui/static/ui/app/components/MapTools/DrawFreeButton.js | venicegeo/eventkit-cloud | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { withTheme } from '@material-ui/core/styles';
import ContentCreate from '@material-ui/icons/Create';
import ContentClear from '@material-ui/icons/Clear';
export class DrawFreeButton extends Component {
constructor(props) {
... |
src/AffixMixin.js | jamon/react-bootstrap | import React from 'react';
import domUtils from './utils/domUtils';
import EventListener from './utils/EventListener';
const AffixMixin = {
propTypes: {
offset: React.PropTypes.number,
offsetTop: React.PropTypes.number,
offsetBottom: React.PropTypes.number
},
getInitialState() {
return {
a... |
examples/src/components/NumericSelect.js | mobile5dev/react-select | import React from 'react';
import createClass from 'create-react-class';
import PropTypes from 'prop-types';
import Select from 'react-select';
var ValuesAsNumbersField = createClass({
displayName: 'ValuesAsNumbersField',
propTypes: {
label: PropTypes.string
},
getInitialState () {
return {
options: [
{... |
public/components/wz-menu/wz-menu-security.js | wazuh/wazuh-kibana-app | /*
* Wazuh app - React component for Settings submenu.
* Copyright (C) 2015-2022 Wazuh, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at yo... |
simpleFetch/src/Detail.js | fengnovo/webpack-react | import React from 'react'
import ReactDOM from 'react-dom'
import { connect } from 'react-redux'
import { Link } from 'react-router'
import { fetchCommentData,fetchDetailData } from './actions'
class Detail extends React.Component {
constructor (props) {
super(props)
if(this.props && this.props.par... |
components/Layout.js | icarlossz/icarlossz.github.io | import React from 'react'
import Head from 'next/head'
import { Menu, Loader, Footer } from './'
export default ({ title, content:Content }) => (
<main role="application">
<Head>
<title>Carlos Sz | {title}</title>
</Head>
<Menu />
<Loader />
<div id="content">
<Conte... |
stories/time-related-controls.js | wmzy/formsy-antd | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { FormItem, Form, DatePicker, TimePicker } from 'formsy-antd';
import { Button } from 'antd';
import './styles.css';
const MonthPicker = DatePicker.MonthPicker;
const RangePicker = DatePic... |
app/components/ContactsList.js | thirdicrypto/darkwallet-electron-ui | import React, { Component } from 'react';
import { Link } from 'react-router';
export default class SendForm extends Component {
render() {
return (
<div>
<div className="scroller">
<div className="row">
<div className="small-6 columns">
<h3 >Contacts</h3>
... |
cubetracker-app/src/Draft.js | sandorw/cubetracker | import React from 'react';
import {render} from 'react-dom';
import Button from 'react-bootstrap/lib/Button';
export default class Draft extends React.Component {
render() {
return (
<Button>Draft</Button>
);
}
}
|
src/modules/persisted/components/Request-persisted.js | otissv/graphql-guru-ide | import React from 'react';
import autobind from 'class-autobind';
import styled from 'styled-components';
import CodeMirror from 'react-codemirror';
import '../../../../node_modules/codemirror/lib/codemirror.css';
require('codemirror/mode/javascript/javascript');
require('codemirror/addon/fold/foldgutter');
require('co... |
resource/js/app.js | crow-misia/crowi | import React from 'react';
import ReactDOM from 'react-dom';
import Crowi from './util/Crowi';
import CrowiRenderer from './util/CrowiRenderer';
import HeaderSearchBox from './components/HeaderSearchBox';
import SearchPage from './components/SearchPage';
import PageListSearch from './components/PageListSearc... |
fields/types/cloudinaryimages/CloudinaryImagesField.js | geminiyellow/keystone | import _ from 'underscore';
import React from 'react';
import Field from '../Field';
import { Button, FormField, FormInput, FormNote } from 'elemental';
import Lightbox from '../../../admin/src/components/Lightbox';
const SUPPORTED_TYPES = ['image/gif', 'image/png', 'image/jpeg', 'image/bmp', 'image/x-icon', 'applicat... |
example/index.ios.js | netbeast/react-native-dial | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import Example from './example'
export default class example extends Component {
render() {
return (
... |
src/App.js | gilbox/elegant-react-hot-demo | import React, { Component } from 'react';
import {sub} from 'elegant-react';
import Counters from './Counters';
import {on, stream} from 'flyd';
import counterPlugin from './counter-plugin';
export default class App extends Component {
constructor(props) {
super(props);
const {atom} = this.props;
this.... |
app/javascript/mastodon/components/__tests__/avatar_overlay-test.js | codl/mastodon | import React from 'react';
import renderer from 'react-test-renderer';
import { fromJS } from 'immutable';
import AvatarOverlay from '../avatar_overlay';
describe('<AvatarOverlay', () => {
const account = fromJS({
username: 'alice',
acct: 'alice',
display_name: 'Alice',
avatar: '/animated/alice.gif',... |
app/javascript/mastodon/features/compose/components/upload_button.js | 5thfloor/ichiji-social | import React from 'react';
import IconButton from '../../../components/icon_button';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 're... |
pootle/static/js/shared/components/CodeMirror.js | dwaynebailey/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import * as CM from 'codemirro... |
test/unit/src/common/components/share/t_twitter.js | canonical-websites/build.snapcraft.io | import React from 'react';
import expect from 'expect';
import { shallow } from 'enzyme';
import { Tweet } from '../../../../../../src/common/components/share';
describe('<Tweet />', function() {
let wrapper;
beforeEach(function() {
wrapper = shallow(<Tweet text={ 'foo' } />);
});
it('should be an ancho... |
src/pages/list/ListPage.js | yang-zhang-syd/React-Wechat-E2E-Test-With-Fake-Api | import React from 'react';
import {
Panel,
PanelHeader,
PanelBody,
PanelFooter,
MediaBox,
MediaBoxHeader,
MediaBoxBody,
MediaBoxTitle,
MediaBoxDescription,
MediaBoxInfo,
MediaBoxInfoMeta,
Cells,
Cell,
CellHeader,
CellBody,
CellFooter
} from 'react-weui';
import Page from '../../component... |
src/features/rekit-cmds/DialogPlace.js | supnate/rekit-portal | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import { autobind } from 'core-decorators';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Modal } from 'antd';
import * as actions from './redux/actions';
import { CmdForm,... |
SSBW/Tareas/Tarea9/restaurantes2/node_modules/react-bootstrap/es/InputGroupAddon.js | jmanday/Master | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/containers/pages/create-deck/after-class-selection/left-container.js | vFujin/HearthLounge | import React from 'react';
import SidebarHeader from './left-container/sidebar/sidebar-header';
import DeckSidebar from './left-container/deck-sidebar';
const LeftContainer = ({playerClass}) => (
<div className="container__page--inner container__page--left">
<SidebarHeader />
<DeckSidebar playerC... |
node_modules/react-router/es6/RouterContext.js | ajames72/MovieDBReact | var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var _extends = Object.assign || function (target) { for (var i = 1; i < argum... |
packages/bonde-admin/src/components/notify/warning.js | ourcities/rebu-client | import PropTypes from 'prop-types'
import React from 'react'
import Box from './box'
var styles = require('exenv').canUseDOM ? require('./warning.scss') : {}
const Warning = ({ title, children }) => (
<Box
title={title}
styles={styles}
icon='exclamation-triangle'
>
{children}
</Box>
)
Warning.p... |
app/assets/javascripts/application.js | tka/ideapool | require("../stylesheets/application.scss")
import React from 'react';
import ReactDom from 'react-dom'
import UserNav from "./components/UserNav.js"
ReactDom.render(
<UserNav/>,
document.getElementById('user-nav')
);
|
packages/material-ui-icons/src/LocalHotel.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let LocalHotel = props =>
<SvgIcon {...props}>
<path d="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z" />
</SvgIcon>;
LocalHotel = pure(Loc... |
packages/icons/src/script.js | geek/joyent-portal | import React from 'react';
import Rotate from './rotate';
import calcFill from './fill';
export default ({
fill = null,
light = false,
disabled = false,
direction = 'down',
colors = {},
style = {},
...rest
}) => (
<Rotate direction={direction}>
{({ style: rotateStyle }) => (
<svg
xml... |
public/app/components/vpanel-project-tab/canvas-component-attribute.js | vincent-tr/mylife-home-studio | 'use strict';
import React from 'react';
import * as dnd from 'react-dnd';
import icons from '../icons';
import { dragTypes } from '../../constants/index';
import styles from './canvas-component-styles';
const CanvasComponentAttribute = ({ attribute, connectDragPreview, connectDragSource }) => connectDragSource(
... |
app/javascript/mastodon/features/account_gallery/components/media_item.js | yukimochi/mastodon | import Blurhash from 'mastodon/components/blurhash';
import classNames from 'classnames';
import Icon from 'mastodon/components/icon';
import { autoPlayGif, displayMedia, useBlurhash } from 'mastodon/initial_state';
import { isIOS } from 'mastodon/is_mobile';
import PropTypes from 'prop-types';
import React from 'react... |
front/app/js/components/__dev__/ExpandButtonGroup.js | nudoru/React-Starter-3 | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles, createClassNameFromProps } from '../controls/common/StyleManager';
/**
<ExpandButtonGroup>
<ToggleButton>Click Me</ToggleButton> // If first, buttons on right, last on left
<ButtonGroup> // hide / show, op... |
docs/app/Examples/collections/Table/Variations/TableExampleAttached.js | koenvg/Semantic-UI-React | import React from 'react'
import { Table } from 'semantic-ui-react'
const header = (
<Table.Header>
<Table.Row>
<Table.HeaderCell>Header</Table.HeaderCell>
<Table.HeaderCell>Header</Table.HeaderCell>
<Table.HeaderCell>Header</Table.HeaderCell>
</Table.Row>
</Table.Header>
)
const body = (... |
client/src/templates/Introduction/Intro.js | jonathanihm/freeCodeCamp | import React from 'react';
import PropTypes from 'prop-types';
import { Link, graphql } from 'gatsby';
import Helmet from 'react-helmet';
import { Grid, ListGroup, ListGroupItem } from '@freecodecamp/react-bootstrap';
import LearnLayout from '../../components/layouts/Learn';
import FullWidthRow from '../../components/... |
generators/mobile-app/templates/test-app.js | HsuTing/generator-cat | 'use strict';
import React from 'react';
import renderer from 'react-test-renderer';
import App from 'components/App';
it('App', () => {
const rendered = renderer.create(<App />).toJSON();
expect(rendered).toBeTruthy();
});
|
src/pages/about.js | H3yfinn/finbarmaunsell.com | import React from 'react';
import Link from 'gatsby-link';
import Footer from './components/footer.js'
import me from './images/me_tonga.png';
const SecondPage = () => (
<div>
<div>
<h1>About</h1>
<p>This page is my elevator pitch, web style!</p>
<p>I'm one of those ... |
frontend/app_v2/src/common/icons/Lessons.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
/**
* @summary Lessons
* @component
*
* @param {object} props
*
* @returns {node} jsx markup
*/
function Lessons({ styling }) {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" className={styling}>
<path d="M0 0h24v24H0z... |
src/svg-icons/device/bluetooth-disabled.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBluetoothDisabled = (props) => (
<SvgIcon {...props}>
<path d="M13 5.83l1.88 1.88-1.6 1.6 1.41 1.41 3.02-3.02L12 2h-1v5.03l2 2v-3.2zM5.41 4L4 5.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l4.29-4.29 2.3 2.29... |
src/components/TeamForm/TeamForm.js | labzero/lunch | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Button from 'react-bootstrap/lib/Button';
import Col from 'react-bootstrap/lib/Col';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormGroup from 'react-b... |
app/components/Root/Root.js | LabMDE/bungee-books-web | import React from 'react';
import style from './Root.scss';
import classNames from 'classNames/bind';
const css = classNames.bind(style);
import Nav from '../Nav/Nav';
import Footer from '../Footer/Footer';
const Root = ({ children }) => {
return (
<div className="main-container">
<Nav />
<div cla... |
src/components/Home.js | benawad/nukool | import React, { Component } from 'react';
import { Container, Button, Form, Message } from 'semantic-ui-react'
import Title from './Title';
class Home extends Component {
getParameterByName(name) {
const url = window.location.href;
name = name.replace(/[\[\]]/g, "\\$&");
const regex = new RegExp("[?&]" +... |
src/routes.js | wunderg/react-nos-kit | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App';
import HomePage from './components/HomePage';
import AboutPage from './components/AboutPage.js';
import NotFoundPage from './components/NotFoundPage.js';
import Signin from './containers/Auth/signin.js';
im... |
definitions/npm/fixed-data-table-2_v0.7.x/flow_v0.47.x-v0.52.x/test_fixed-data-table-2_v0.7.x.js | flowtype/flow-typed | /* @flow */
import React from 'react';
import {Cell, Column, ColumnGroup, Table} from 'fixed-data-table-2';
let cell = <Cell/>;
cell = <Cell onColumnResize={(left, width, minWidth, maxWidth, columnKey, event) => {event.target;}}/>;
// $FlowExpectedError
cell = <Cell onColumnResize={(left, width, minWidth, maxWidth, co... |
src/content/work/assets/SubscriptionsForSaas/modules/List/Icons/Pause/index.js | jmikrut/keen-2017 | import React from 'react';
import './Pause.css';
export default (props) => {
let color = props.color ? props.color : '';
return (
<svg className="plus" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12">
<line stroke={color} x1="4.76" y1="3.76" x2="4.76" y2="8.24"/>
<line stroke={color} x1="7.24" y1="... |
demo/back-end-antd-app/src/components/Todo.js | JianmingXia/StudyTest | import React from 'react'
const Todo = ({ completed, text, onClick, onDelete }) => (
<li style={{
width: "400px"
}}>
<span
onClick={onClick}
style={{
textDecoration: completed ? 'line-through' : 'none',
width: "350px"
}}>
{text}
</span>
<button onClick={on... |
client/src/components/FileManager.js | nickbreaton/spare-page | import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import { download, remove } from '../state/files'
import File from './File'
import React from 'react'
const FileManager = (props) => (
<div>
{mapFilesToComponents(props)}
</div>
)
const mapFilesToComponents = (props) => (
props... |
src/components/QuestionItem/index.js | da07ng/danqing | import React, { Component } from 'react';
class QuestionItem extends Component {
constructor(props) {
super(props);
}
render() {
return (
<h1>danqing</h1>
);
}
}
export default QuestionItem;
|
examples/cra-kitchen-sink/src/stories/welcome.stories.js | storybooks/react-storybook | import React from 'react';
import { Welcome } from '@storybook/react/demo';
import { linkTo } from '@storybook/addon-links';
export default {
title: 'Welcome',
component: Welcome,
};
export const Story1 = () => <Welcome showApp={linkTo('Button')} />;
Story1.title = 'to Storybook';
|
lib/js/apps/genetic-algorithms/index.js | jneander/learning | import React from 'react';
import AppHarness from 'js/shared/components/AppHarness';
import ExampleHarness from 'js/shared/components/ExampleHarness';
import CardSplitting from './CardSplitting';
import KnightCovering from './KnightCovering';
import OneMax from './OneMax';
import Queens from './Queens';
import Sortin... |
react-flux-mui/js/material-ui/src/svg-icons/image/filter-6.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter6 = (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-8-2h2c1.1 0 2-.89 2-2v-2... |
src/components/tablePrices/presentation/TPTableModal.js | edu-affiliates/promo_calculators | 'use strict';
import React from 'react';
import PropTypes from 'prop-types'
import {connect} from 'react-redux'
import generalOptions from '../../../config/generalOptions';
import {plusPage, minusPage, handleInputPageNumber} from '../../../store/actions'
//presentation of the counter in calc small
class TPTableModal... |
node_modules/react-router-dom/node_modules/react-router/es/MemoryRouter.js | millerman86/CouponProject | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
internals/templates/notFoundPage/notFoundPage.js | kenzanboo/tumbler-blog-api | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it... |
app/layouts/dashboard/dashboard.spec.js | horacio-giovine/react-webpack-node | import Dashboard from './dashboard'
import {mount, render, shallow} from 'enzyme'
import React from 'react'
import assert from 'assert'
describe('Dashboard', function () {
it('Dashboard component imported successfuly', function () {
let wrapper = shallow(<Dashboard />)
assert.ok(wrapper)
})
})
|
src/common/components/Router/RouterBase.js | minmaster/gig-native-web | 'use strict';
import { Component } from 'react';
import Home from '../Home/Home';
import Video from '../Video/Video';
import Article from '../Article/Article';
import Gallery from '../Gallery/Gallery';
import React from 'react';
class Router extends Component {
constructor(props) {
super(props);
this.s... |
src/svg-icons/action/alarm.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAlarm = (props) => (
<SvgIcon {...props}>
<path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-9 4.03... |
src/views/TheirTeamView.js | andrewSRahn/pickban | import React from 'react'
import OpponentComponent from '../components/OpponentComponent.js'
export default function TheirTeamView(props){
if(props.client === '')
return <div id='their-team'></div>
else {
return (
<div id='their-team'>
<OpponentComponent {...props.client.theirTeam[0]}/>
<Opp... |
examples/query-params/app.js | natorojr/react-router | import React from 'react';
import { Router, Route, Link } from 'react-router';
var User = React.createClass({
render() {
var { query } = this.props.location;
var age = query && query.showAge ? '33' : '';
var { userID } = this.props.params;
return (
<div className="User">
<h1>User id: {u... |
examples/redux-loop/redux-loop-example/src/counter.js | mpeyper/redux-subspace | import React from 'react';
import { fromJS } from 'immutable';
import { connect } from 'react-redux';
import { createAction, createReducer } from 'redux-act';
import { Cmd, loop } from 'redux-loop';
import delay from './delay';
/**
* Set up an initial state with two counters that we will update after some
* variable... |
ajax/libs/react-instantsearch/4.1.0/Connectors.js | joeyparrish/cdnjs | /*! ReactInstantSearch 4.1.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.... |
demo/src/containers/Button.js | ilxanlar/cathode | import React from 'react';
import { Button, ButtonGroup, Grid } from '../../../src';
import { moodKeys } from '../../../src/helpers/propTypes';
export default () => (
<div>
<Grid.Row multi>
{
moodKeys.map((mood, key) => (
<Grid.Column key={key} xs={12} sm={12} md={6} xl={4} xxl={3}>
... |
src/svg-icons/av/remove-from-queue.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvRemoveFromQueue = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-7v2H8v-2h8z"/>
</SvgIcon>
);... |
actor-apps/app-web/src/app/components/Main.react.js | yangchenghu/actor-platform | import React from 'react';
import {PeerTypes} from 'constants/ActorAppConstants';
import requireAuth from 'utils/require-auth';
import ActorClient from 'utils/ActorClient';
import PeerUtils from 'utils/PeerUtils';
import RouterContainer from 'utils/RouterContainer';
import DialogActionCreators from 'actions/DialogAc... |
app/jsx/canvas_cropper/cropperMaker.js | venturehive/canvas-lms | /*
* Copyright (C) 2016 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
docs/app/Examples/modules/Embed/Types/EmbedExampleCustom.js | koenvg/Semantic-UI-React | import React from 'react'
import { Embed } from 'semantic-ui-react'
const EmbedExampleCustom = () => (
<Embed
icon='right circle arrow'
placeholder='http://semantic-ui.com/images/image-16by9.png'
url='http://www.myfav.es/jack'
/>
)
export default EmbedExampleCustom
|
ReactJS_Seed_Project/app/views/Minor.js | huang6349/inspinia | import React, { Component } from 'react';
class Minor extends Component {
render() {
return (
<div className="wrapper wrapper-content animated fadeInRight">
<div className="row">
<div className="col-lg-12">
<div className="text-center... |
src/ChromeTab/Tab.js | teramotodaiki/h4p | import React from 'react';
import { SourceFile } from '../File/';
const getUniqueId = ((id) => () => 'Tab__' + ++id)(0);
export default class Tab {
constructor(props) {
this.props = Object.freeze(props);
this.key = props.key || getUniqueId();
}
get file() {
return this.props.getFile() || new Sour... |
packages/icons/src/actions.js | yldio/joyent-portal | import React from 'react';
import Rotate from './rotate';
import calcFill from './fill';
export default ({
fill = null,
light = false,
disabled = false,
direction = 'down',
colors = {},
style = {},
...rest
}) => (
<Rotate direction={direction}>
{({ style: rotateStyle }) => (
<svg
xml... |
src/components/header/Header.js | metasfresh/metasfresh-webui-frontend | import counterpart from 'counterpart';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import classnames from 'classnames';
import {
deleteRequest,
duplicateRequest,
openFile,
} from '../../actions/Gen... |
src/page/spa/root/Root.hot.js | SteamerTeam/steamer-react | import { AppContainer } from 'react-hot-loader';
import React from 'react';
import { render } from 'react-dom';
import App from './Root.dev';
const rootEl = document.getElementById('pages');
render(
<AppContainer>
<App />
</AppContainer>,
rootEl
);
if (module.hot) {
module.hot.accept('./Root.dev', () => ... |
modules/experimental/AsyncProps.js | omerts/react-router | import React from 'react';
import invariant from 'invariant';
var { func, array, shape, object } = React.PropTypes;
var contextTypes = {
asyncProps: shape({
reloadComponent: func,
propsArray: array,
componentsArray: array
})
};
var _serverPropsArray = null;
function setServerPropsArray(array) {
inv... |
src/containers/weather_list.js | riquet28/Weather_ReactRedux | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Chart from '../components/chart';
import GoogleMap from '../components/google_map';
class WeatherList extends Component {
renderWeather(cityData) {
const name = cityData.city.name;
const temps = cityData.list.map(weather ... |
ignite/DevScreens/ComponentExamplesScreen.js | TylerKirby/Phrontis | // An All Components Screen is a great way to dev and quick-test components
import React from 'react'
import { Platform, View, ScrollView, Text, Image, TouchableOpacity } from 'react-native'
import { Images } from './DevTheme'
import styles from './Styles/ComponentExamplesScreenStyles'
// Examples Render Engine
import... |
src/components/Router1.js | hong1012/FreePay | import React from 'react'
export default React.createClass({
render() {
return <div>Hello, React Router!</div>
}
})
|
src/app.js | menthena/project-a | import React from 'react';
import styles from './app.css';
export default ({children}) => {
return (
<div id="container">
{children}
</div>
);
}
|
packages/ringcentral-widgets/components/OfflineModeBadge/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Draggable from '../Draggable';
import Badge from '../Badge';
import i18n from './i18n';
import styles from './styles.scss';
export default function OfflineModeBadge({
className,
offline,
currentLocale,
sh... |
src/routes/account/Role/Search.js | pmg1989/dva-admin | import React from 'react'
import PropTypes from 'prop-types'
import { Form, Button, Row, Col, Icon } from 'antd'
const Search = ({
addPower,
onAdd,
}) => {
return (
<Row gutter={24}>
{addPower &&
<Col lg={24} md={24} sm={24} xs={24} style={{ marginBottom: 16, textAlign: 'right' }}>
<Butto... |
docs/app/Examples/elements/Button/Groups/ButtonExampleGroupIcon.js | clemensw/stardust | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleGroupIcon = () => (
<div>
<Button.Group>
<Button icon='align left' />
<Button icon='align center' />
<Button icon='align right' />
<Button icon='align justify' />
</Button.Group>
{' '}
<But... |
app/containers/App/index.js | codekiln/beetimer | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
static/src/containers/Authorize.js | cas-x/cas-server | /**
* @Author: BingWu Yang <detailyang>
* @Date: 2016-03-13T22:43:06+08:00
* @Email: detailyang@gmail.com
* @Last modified by: detailyang
* @Last modified time: 2016-07-05T16:25:37+08:00
* @License: The MIT License (MIT)
*/
import { Icon, Button, Row, Col, message } from 'antd';
import url from 'url';
import que... |
app/pages/app/Tabbar/index.js | czy0729/react-alumni | /**
* Tabbar 导航条
* @Date: 2017-03-06 19:46:25
* @Last Modified by: Administrator
* @Last Modified time: 2017-03-31 08:12:10
*/
'use strict';
import React from 'react';
import classNames from 'classnames';
import { observer } from 'decorators';
import { $app } from 'stores';
import { TabBar, Icon } from 'antd-mo... |
src/svg-icons/device/battery-alert.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryAlert = (props) => (
<SvgIcon {...props}>
<path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4zM13 18h-2v-2h2v2zm0... |
src/components/Ad/Ad.js | dontexpectanythingsensible/random-utils | import React from 'react';
export default class Ad extends React.Component {
componentDidMount () {
(window.adsbygoogle = window.adsbygoogle || []).push({});
}
render () {
return (
<div className='ad'>
<ins className='adsbygoogle'
style={ { display: 'block' } }
data-ad-... |
app/javascript/mastodon/components/permalink.js | verniy6462/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class Permalink extends React.PureComponent {
static contextTypes = {
router: PropTypes.object,
};
static propTypes = {
className: PropTypes.string,
href: PropTypes.string.isRequired,
to: PropTypes.string.isRequired,
... |
test/specs/views/Feed/FeedDate-test.js | ben174/Semantic-UI-React | import faker from 'faker'
import React from 'react'
import * as common from 'test/specs/commonTests'
import FeedDate from 'src/views/Feed/FeedDate'
describe('FeedDate', () => {
common.isConformant(FeedDate)
common.rendersChildren(FeedDate)
it('renders text with date prop', () => {
const text = faker.hacker... |
client/lib/createRootComponent.js | brewgauge/bg-frontend | 'use strict'
import React from 'react'
import {Provider} from 'react-redux'
import thunkMiddleware from 'redux-thunk'
import loggerMiddleware from 'redux-logger'
import {combineReducers, createStore, applyMiddleware} from 'redux'
import {browserHistory, Router, Route, IndexRoute} from 'react-router'
import {routerRedu... |
src/components/tos.js | pol-is/polisClientAdmin | import React from 'react';
import Radium from 'radium';
import _ from 'lodash';
import { doSignout } from '../actions';
import StaticContentContainer from "./framework/static-content-container";
const styles = {
card: {
position: "relative",
zIndex: 10,
padding: "50px",
borderRadius: 3,
color: ... |
app/javascript/flavours/glitch/features/picture_in_picture/components/header.js | Kirishima21/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import IconButton from 'flavours/glitch/components/icon_button';
import { Link } from 're... |
src/components/blocks/BlockSocial.js | m0sk1t/react_email_editor | import React from 'react';
const BlockSocial = ({ blockOptions }) => {
const imgLocation = '/';
return (
<table
width="550"
cellPadding="0"
cellSpacing="0"
role="presentation"
>
<tbody>
<tr>
<td
width="550"
style={blockOptions.elements[0]}
>
<a
target="_blank"
... |
src/js/components/Box/stories/OnClick.js | HewlettPackard/grommet | import React from 'react';
import { Attraction } from 'grommet-icons';
import { Grommet, Box, Text } from 'grommet';
import { grommet } from '../../../themes';
export const OnClickBox = () => (
<Grommet theme={grommet}>
<Box justify="center" align="center" pad="large">
{/* eslint-disable no-alert */}
... |
static/src/routes.js | PMA-2020/pma-translation-hub | /* eslint new-cap: 0 */
import React from 'react';
import { Route } from 'react-router';
/* containers */
import { App } from './containers/App';
import { HomeContainer } from './containers/HomeContainer';
import LoginView from './components/LoginView';
import RegisterView from './components/RegisterView';
import Pro... |
src/containers/Asians/TabControls/BreakTeams/ViewBreaks/index.js | westoncolemanl/tabbr-web | import React from 'react'
import { connect } from 'react-redux'
import withStyles from 'material-ui/styles/withStyles'
import Card, {
CardContent,
CardActions
} from 'material-ui/Card'
import Button from 'material-ui/Button'
import Table, {
TableBody,
TableCell,
TableHead,
TableRow
} from 'material-ui/Tabl... |
test/integration/client-navigation/pages/dynamic/[slug]/route.js | azukaru/next.js | import React from 'react'
export default class DynamicRoute extends React.Component {
static async getInitialProps({ query = { slug: 'default' } }) {
return {
query,
}
}
render() {
return <p id="dynamic-page">{this.props.query.slug}</p>
}
}
|
classic/src/scenes/mailboxes/src/Scenes/AppScene/ServiceTab/CoreServiceWebView/ServiceSearch.js | wavebox/waveboxapp | import PropTypes from 'prop-types'
import React from 'react'
import { Paper, TextField, IconButton } from '@material-ui/core'
import { accountStore, accountActions } from 'stores/account'
import shallowCompare from 'react-addons-shallow-compare'
import { WB_WINDOW_FIND_START } from 'shared/ipcEvents'
import { ipcRender... |
src/app.js | flyingSprite/upperHot | // Styles - Public
import 'material-design-icons';
import './asserts/index.scss';
// Libraries
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
// Load Material UI
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import MuiThemeProvider from 'material-ui/... |
app/components/common/notFoundPage.js | ongmin/batchtracker | 'use strict'
import React from 'react'
import { Link } from 'react-router'
var NotFoundPage = React.createClass({
render: function () {
return (
<div className='contentContainer'>
<h1>Page Not Found</h1>
<p>Sorry, there is nothing to see here.</p>
<p><Link to='/'>Back to H... |
src/main.js | drifterz28/drizzle-maker | import React from 'react';
import ReactDOM from 'react-dom'
import {Provider} from 'react-redux';
import {configureStore} from './store';
import seasons from 'lib/seasons';
import App from './containers/app';
let state;
const store = configureStore(state);
//seasons();
ReactDOM.render(
<Provider store={store}>
... |
client/src/components/auth/Signup.js | NicholasAsimov/voting-app | import React from 'react';
import { reduxForm } from 'redux-form';
import * as actions from '../../actions';
class Signup extends React.Component {
handleFormSubmit = (formProps) => {
this.props.signupUser(formProps);
};
renderAlert() {
if (this.props.errorMessage) {
return (
<div classNam... |
src/pages/fpv-news/index.js | jumpalottahigh/blog.georgi-yanev.com | import React from 'react'
import styled from 'styled-components'
import { graphql, Link } from 'gatsby'
import Layout from '../../components/structure/layout'
import TinyLetterSignup from '../../components/TinyLetterSignUp'
const StyledFpvNewsPage = styled.div`
h2 {
text-align: center;
}
.fpv-news-list {
... |
app/src/Frontend/libs/weui/components/mediabox/mediabox_desc.js | ptphp/ptphp | /**
* Created by n7best
*/
import React from 'react';
import classNames from 'classnames';
export default class MediaBoxDescription extends React.Component {
render() {
const {children, className, ...others} = this.props;
const cls = classNames({
weui_media_desc: true
}, cl... |
app/common/components/VocabSynonym/VocabSynonymList.js | Kaniwani/KW-Frontend | import React from 'react';
import PropTypes from 'prop-types';
import VocabSynonym from 'common/components/VocabSynonym/VocabSynonym';
import Element from 'common/components/Element';
VocabSynonymList.propTypes = {
ids: PropTypes.arrayOf(PropTypes.number).isRequired,
reviewId: PropTypes.number.isRequired,
};
exp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.