Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

micro-frontend-react-pages

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

micro-frontend-react-pages - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

src/js/components/checkout-page.js

10

CHANGELOG.md

@@ -9,2 +9,7 @@ # Change Log

## [0.0.5][] - 2018-03-04
### Added
- New list item component
- new checkout page component
## [0.0.4][] - 2018-02-28

@@ -20,3 +25,4 @@ ### Added

[Unreleased]: https://github.com/willmendesneto/micro-frontend-react-pages/compare/v0.0.4...HEAD
[0.0.4]: https://github.com/willmendesneto/micro-frontend-react-pages/tree/v0.0.4
[Unreleased]: https://github.com/willmendesneto/micro-frontend-react-pages/compare/v0.0.5...HEAD
[0.0.5]: https://github.com/willmendesneto/micro-frontend-react-pages/compare/v0.0.4...v0.0.5
[0.0.4]: https://github.com/willmendesneto/micro-frontend-react-pages/tree/v0.0.4

2

dist/client.js

@@ -1,1 +0,1 @@

module.exports=function(e){function t(a){if(i[a])return i[a].exports;var r=i[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var i={};return t.m=e,t.c=i,t.d=function(e,i,a){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=7)}([function(e,t){e.exports=require("react")},function(e,t){e.exports=require("prop-types")},function(e,t){},function(e,t,i){"use strict";var a=i(0),r=i.n(a),s=i(1),o=(i.n(s),i(10)),n=(i.n(o),function(){return r.a.createElement("header",{className:"home-page-header"},r.a.createElement("a",{href:"/",className:"header-logo"},"LOGO"),r.a.createElement("div",{className:"home-page-menu"},r.a.createElement("div",{className:"home-page-menu-item"},r.a.createElement("a",{href:"/list-items",className:"home-page-menu-item-link"},"About")),r.a.createElement("div",{className:"home-page-menu-item"},r.a.createElement("a",{href:"/docs/",className:"home-page-menu-item-link"},"Docs"))))});t.a=n},function(e,t,i){"use strict";var a=i(0),r=i.n(a),s=i(1),o=(i.n(s),i(11)),n=(i.n(o),function(){return r.a.createElement("footer",{className:"home-page-footer"},r.a.createElement("div",{className:"home-page-footer-wrapper"},r.a.createElement("p",null,"Built with ❤ by @willmendesneto")))});t.a=n},function(e,t,i){"use strict";var a=i(0),r=i.n(a),s=i(1),o=i.n(s),n=i(12),u=(i.n(n),function(e){var t=e.title,i=e.description;return r.a.createElement("section",{className:"first-section"},r.a.createElement("div",{className:"first-section-wrapper"},r.a.createElement("h1",{className:"first-section-title"},t),r.a.createElement("p",{className:"first-section-description"},i)))});u.propTypes={title:o.a.string,description:o.a.string},u.defaultProps={title:"Here goes the title",description:"Here goes the description"},t.a=u},function(e,t){e.exports=require("generator-poi-boilerplate-demo")},function(e,t,i){e.exports=i(8)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(9),r=i(13),s=i(15);i.d(t,"HomePage",function(){return a.a}),i.d(t,"ListingItemsPage",function(){return r.a}),i.d(t,"DocsPage",function(){return s.a})},function(e,t,i){"use strict";var a=i(0),r=i.n(a),s=i(6),o=(i.n(s),i(2)),n=(i.n(o),i(3)),u=i(4),l=i(5),c=function(){return r.a.createElement(a.Fragment,null,r.a.createElement(n.a,null),r.a.createElement(l.a,null),r.a.createElement("section",{className:"home-page-wrapper is-1-column"},r.a.createElement("h1",{className:"home-page-heading"},r.a.createElement("p",null,"This is your `",r.a.createElement("code",{className:"home-page-code"},"home-page"),"` component")),r.a.createElement(s.HowToStart,null)),r.a.createElement(u.a,null))};t.a=c},function(e,t){},function(e,t){},function(e,t){},function(e,t,i){"use strict";var a=i(0),r=i.n(a),s=i(1),o=i.n(s),n=i(6),u=(i.n(n),i(2)),l=(i.n(u),i(14)),c=(i.n(l),i(3)),m=i(4),p=i(5),d=function(e){var t=e.items,i=e.categoryName,s=t.map(function(e){var t=e.image,i=e.title,a=e.description;return r.a.createElement("li",{className:"product-list-item",key:t},r.a.createElement("a",{href:"#",className:"product-list-link"},r.a.createElement("img",{className:"produc-list-image",src:t}),r.a.createElement("div",{className:"product-list-info"},r.a.createElement("p",null,i),r.a.createElement("p",null,a))))});return r.a.createElement(a.Fragment,null,r.a.createElement(c.a,null),r.a.createElement(p.a,{title:"Products Page",description:"What do you want to check it out?"}),r.a.createElement("section",{className:"home-page-wrapper is-1-column"},r.a.createElement("h1",{className:"home-page-heading"},i),s.length?r.a.createElement("ul",{className:"product-list"},s):r.a.createElement("p",null,"No items for this category :(")),r.a.createElement(m.a,null))};d.propTypes={categoryName:o.a.string,items:o.a.arrayOf(o.a.shape({image:o.a.string.isRequired,title:o.a.string.isRequired,description:o.a.string.isRequired}).isRequired).isRequired},d.defaultProps={items:[],categoryName:""},t.a=d},function(e,t){},function(e,t,i){"use strict";var a=i(0),r=i.n(a),s=i(2),o=(i.n(s),i(3)),n=i(4),u=i(5),l=function(){return r.a.createElement(a.Fragment,null,r.a.createElement(o.a,null),r.a.createElement(u.a,{title:"Docs Page",description:"Let's understand how this project works"}),r.a.createElement("section",{className:"home-page-wrapper is-1-column"},r.a.createElement("h1",{className:"home-page-heading"},"Overview"),r.a.createElement("p",null,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Alias eaque dolorem tempore reiciendis consequuntur iste soluta, quia rerum facilis ipsum? Dolor dolorem ut cumque reiciendis repellendus doloribus in voluptas accusamus! Lorem ipsum dolor sit amet consectetur adipisicing elit. Alias eaque dolorem tempore reiciendis consequuntur iste soluta, quia rerum facilis ipsum? Dolor dolorem ut cumque reiciendis repellendus doloribus in voluptas accusamus!"),r.a.createElement("p",null,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Alias eaque dolorem tempore reiciendis consequuntur iste soluta, quia rerum facilis ipsum? Dolor dolorem ut cumque reiciendis repellendus doloribus in voluptas accusamus! Lorem ipsum dolor sit amet consectetur adipisicing elit. Alias eaque dolorem tempore reiciendis consequuntur iste soluta, quia rerum facilis ipsum? Dolor dolorem ut cumque reiciendis repellendus doloribus in voluptas accusamus! Lorem ipsum dolor sit amet consectetur adipisicing elit. Alias eaque dolorem tempore reiciendis consequuntur iste soluta, quia rerum facilis ipsum? Dolor dolorem ut cumque reiciendis repellendus doloribus in voluptas accusamus! Lorem ipsum dolor sit amet consectetur adipisicing elit. Alias eaque dolorem tempore reiciendis consequuntur iste soluta, quia rerum facilis ipsum? Dolor dolorem ut cumque reiciendis repellendus doloribus in voluptas accusamus!"),r.a.createElement("p",null,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Alias eaque dolorem tempore reiciendis consequuntur iste soluta, quia rerum facilis ipsum? Dolor dolorem ut cumque reiciendis repellendus doloribus in voluptas accusamus!"),r.a.createElement("p",null,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Alias eaque dolorem tempore reiciendis consequuntur iste soluta, quia rerum facilis ipsum? Dolor dolorem ut cumque reiciendis repellendus doloribus in voluptas accusamus!"),r.a.createElement("p",null,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Alias eaque dolorem tempore reiciendis consequuntur iste soluta, quia rerum facilis ipsum? Dolor dolorem ut cumque reiciendis repellendus doloribus in voluptas accusamus! Lorem ipsum dolor sit amet consectetur adipisicing elit. Alias eaque dolorem tempore reiciendis consequuntur iste soluta, quia rerum facilis ipsum? Dolor dolorem ut cumque reiciendis repellendus doloribus in voluptas accusamus! Lorem ipsum dolor sit amet consectetur adipisicing elit. Alias eaque dolorem tempore reiciendis consequuntur iste soluta, quia rerum facilis ipsum? Dolor dolorem ut cumque reiciendis repellendus doloribus in voluptas accusamus!")),r.a.createElement(n.a,null))};t.a=l}]);
module.exports=function(e){function t(i){if(a[i])return a[i].exports;var r=a[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var a={};return t.m=e,t.c=a,t.d=function(e,a,i){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=7)}([function(e,t){e.exports=require("react")},function(e,t){},function(e,t,a){"use strict";var i=a(0),r=a.n(i),n=a(3),s=(a.n(n),a(10)),o=(a.n(s),function(){return r.a.createElement("header",{className:"home-page-header"},r.a.createElement("a",{href:"/",className:"header-logo"},"LOGO"),r.a.createElement("div",{className:"home-page-menu"},r.a.createElement("div",{className:"home-page-menu-item"},r.a.createElement("a",{href:"/",className:"home-page-menu-item-link"},"Home")),r.a.createElement("div",{className:"home-page-menu-item"},r.a.createElement("a",{href:"/items",className:"home-page-menu-item-link"},"Items")),r.a.createElement("div",{className:"home-page-menu-item"},r.a.createElement("a",{href:"/docs",className:"home-page-menu-item-link"},"Docs"))))});t.a=o},function(e,t){e.exports=require("prop-types")},function(e,t,a){"use strict";var i=a(0),r=a.n(i),n=a(3),s=(a.n(n),a(11)),o=(a.n(s),function(){return r.a.createElement("footer",{className:"home-page-footer"},r.a.createElement("div",{className:"home-page-footer-wrapper"},r.a.createElement("p",null,"Built with ❤ by @willmendesneto")))});t.a=o},function(e,t,a){"use strict";var i=a(0),r=a.n(i),n=a(3),s=a.n(n),o=a(12),l=(a.n(o),function(e){var t=e.title,a=e.description;return r.a.createElement("section",{className:"first-section"},r.a.createElement("div",{className:"first-section-wrapper"},r.a.createElement("h1",{className:"first-section-title"},t),r.a.createElement("p",{className:"first-section-description"},a)))});l.propTypes={title:s.a.string,description:s.a.string},l.defaultProps={title:"Here goes the title",description:"Here goes the description"},t.a=l},function(e,t){e.exports=require("generator-poi-boilerplate-demo")},function(e,t,a){e.exports=a(8)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a(9),r=a(13),n=a(15),s=a(17),o=a(18);a.d(t,"HomePage",function(){return i.a}),a.d(t,"ListingItemsPage",function(){return r.a}),a.d(t,"ListingItemPage",function(){return n.a}),a.d(t,"DocsPage",function(){return s.a}),a.d(t,"CheckoutPage",function(){return o.a})},function(e,t,a){"use strict";var i=a(0),r=a.n(i),n=a(6),s=(a.n(n),a(1)),o=(a.n(s),a(2)),l=a(4),u=a(5),c=function(){return r.a.createElement(i.Fragment,null,r.a.createElement(o.a,null),r.a.createElement(u.a,null),r.a.createElement("section",{className:"home-page-wrapper is-1-column"},r.a.createElement("h1",{className:"home-page-heading"},r.a.createElement("p",null,"This is your `",r.a.createElement("code",{className:"home-page-code"},"home-page"),"` component")),r.a.createElement(n.HowToStart,null)),r.a.createElement(l.a,null))};t.a=c},function(e,t){},function(e,t){},function(e,t){},function(e,t,a){"use strict";var i=a(0),r=a.n(i),n=a(3),s=a.n(n),o=a(6),l=(a.n(o),a(1)),u=(a.n(l),a(14)),c=(a.n(u),a(2)),m=a(4),p=a(5),d=function(e){var t=e.items,a=e.categoryName,n=t.map(function(e,t){var a=e.image,i=e.title,n=e.description;return r.a.createElement("li",{className:"product-list-item",key:a},r.a.createElement("a",{href:"/items/"+t,className:"product-list-link"},r.a.createElement("img",{className:"produc-list-image",src:a}),r.a.createElement("div",{className:"product-list-info"},r.a.createElement("p",null,i),r.a.createElement("p",null,n))))});return r.a.createElement(i.Fragment,null,r.a.createElement(c.a,null),r.a.createElement(p.a,{title:"Products Page",description:"What do you want to check it out?"}),r.a.createElement("section",{className:"home-page-wrapper is-1-column"},r.a.createElement("h1",{className:"home-page-heading"},a),n.length?r.a.createElement("ul",{className:"product-list"},n):r.a.createElement("p",null,"No items for this category :(")),r.a.createElement(m.a,null))};d.propTypes={categoryName:s.a.string,items:s.a.arrayOf(s.a.shape({image:s.a.string.isRequired,title:s.a.string.isRequired,description:s.a.string.isRequired}).isRequired).isRequired},d.defaultProps={items:[],categoryName:""},t.a=d},function(e,t){},function(e,t,a){"use strict";var i=a(0),r=a.n(i),n=a(3),s=a.n(n),o=a(6),l=(a.n(o),a(1)),u=(a.n(l),a(16)),c=(a.n(u),a(2)),m=a(4),p=a(5),d=function(e){var t=e.item,a=e.categoryName;return r.a.createElement(i.Fragment,null,r.a.createElement(c.a,null),r.a.createElement(p.a,{title:"Products Page",description:"What do you want to check it out?"}),r.a.createElement("section",{className:"home-page-wrapper is-1-column"},r.a.createElement("h1",{className:"home-page-heading"},a),Object.keys(t).length>0?r.a.createElement("div",{className:"product-list-info"},r.a.createElement("img",{className:"produc-list-image",src:t.image}),r.a.createElement("p",null,t.title),r.a.createElement("p",null,t.description)):r.a.createElement("p",null,"Oops! This item is not available :/"),r.a.createElement("a",{href:"/items"},"Back to List"),r.a.createElement("a",{href:"/checkout"},"Buy this item")),r.a.createElement(m.a,null))};d.propTypes={categoryName:s.a.string,item:s.a.shape({image:s.a.string.isRequired,title:s.a.string.isRequired,description:s.a.string.isRequired})},d.defaultProps={item:{},categoryName:""},t.a=d},function(e,t){},function(e,t,a){"use strict";var i=a(0),r=a.n(i),n=a(1),s=(a.n(n),a(2)),o=a(4),l=a(5),u=function(){return r.a.createElement(i.Fragment,null,r.a.createElement(s.a,null),r.a.createElement(l.a,{title:"Docs Page",description:"Let's understand how this project works"}),r.a.createElement("section",{className:"home-page-wrapper is-1-column"},r.a.createElement("h1",{className:"home-page-heading"},"Overview"),r.a.createElement("p",null,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Alias eaque dolorem tempore reiciendis consequuntur iste soluta, quia rerum facilis ipsum? Dolor dolorem ut cumque reiciendis repellendus doloribus in voluptas accusamus! Lorem ipsum dolor sit amet consectetur adipisicing elit. Alias eaque dolorem tempore reiciendis consequuntur iste soluta, quia rerum facilis ipsum? Dolor dolorem ut cumque reiciendis repellendus doloribus in voluptas accusamus!"),r.a.createElement("p",null,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Alias eaque dolorem tempore reiciendis consequuntur iste soluta, quia rerum facilis ipsum? Dolor dolorem ut cumque reiciendis repellendus doloribus in voluptas accusamus! Lorem ipsum dolor sit amet consectetur adipisicing elit. Alias eaque dolorem tempore reiciendis consequuntur iste soluta, quia rerum facilis ipsum? Dolor dolorem ut cumque reiciendis repellendus doloribus in voluptas accusamus! Lorem ipsum dolor sit amet consectetur adipisicing elit. Alias eaque dolorem tempore reiciendis consequuntur iste soluta, quia rerum facilis ipsum? Dolor dolorem ut cumque reiciendis repellendus doloribus in voluptas accusamus! Lorem ipsum dolor sit amet consectetur adipisicing elit. Alias eaque dolorem tempore reiciendis consequuntur iste soluta, quia rerum facilis ipsum? Dolor dolorem ut cumque reiciendis repellendus doloribus in voluptas accusamus!"),r.a.createElement("p",null,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Alias eaque dolorem tempore reiciendis consequuntur iste soluta, quia rerum facilis ipsum? Dolor dolorem ut cumque reiciendis repellendus doloribus in voluptas accusamus!"),r.a.createElement("p",null,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Alias eaque dolorem tempore reiciendis consequuntur iste soluta, quia rerum facilis ipsum? Dolor dolorem ut cumque reiciendis repellendus doloribus in voluptas accusamus!"),r.a.createElement("p",null,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Alias eaque dolorem tempore reiciendis consequuntur iste soluta, quia rerum facilis ipsum? Dolor dolorem ut cumque reiciendis repellendus doloribus in voluptas accusamus! Lorem ipsum dolor sit amet consectetur adipisicing elit. Alias eaque dolorem tempore reiciendis consequuntur iste soluta, quia rerum facilis ipsum? Dolor dolorem ut cumque reiciendis repellendus doloribus in voluptas accusamus! Lorem ipsum dolor sit amet consectetur adipisicing elit. Alias eaque dolorem tempore reiciendis consequuntur iste soluta, quia rerum facilis ipsum? Dolor dolorem ut cumque reiciendis repellendus doloribus in voluptas accusamus!")),r.a.createElement(o.a,null))};t.a=u},function(e,t,a){"use strict";var i=a(0),r=a.n(i),n=a(1),s=(a.n(n),a(19)),o=(a.n(s),a(2)),l=a(4),u=a(5),c=function(){return r.a.createElement(i.Fragment,null,r.a.createElement(o.a,null),r.a.createElement(u.a,null),r.a.createElement("section",{className:"home-page-wrapper is-1-column"},r.a.createElement("h1",{className:"home-page-heading"},r.a.createElement("p",null,"You made it! We will contact you soon!"))),r.a.createElement(l.a,null))};t.a=c},function(e,t){}]);
import { storiesOf } from 'storybook-react'
import { HomePage, ListingItemsPage, DocsPage } from './src/js/export'
import {
HomePage,
ListingItemsPage,
ListingItemPage,
DocsPage,
CheckoutPage
} from './src/js/export'

@@ -18,3 +24,17 @@ storiesOf('HomePage', module)

/>)
storiesOf('ListingItemPage', module)
.add('Page view', () =>
<ListingItemPage
item={{
categoryName: 'My Category',
image: 'https://loremflickr.com/250/200/cat',
title: 'title 1',
description: 'description 1',
}}
/>)
.add('Page view without item', () => <ListingItemPage />)
storiesOf('DocsPage', module)
.add('Page view', () => <DocsPage />)
storiesOf('CheckoutPage', module)
.add('Page view', () => <CheckoutPage />)
{
"name": "micro-frontend-react-pages",
"version": "0.0.4",
"version": "0.0.5",
"generatorVersion": "3.0.1",

@@ -5,0 +5,0 @@ "description": "Microfrontend workshop - A collection of Page components",

@@ -11,7 +11,10 @@ import React, { Fragment } from 'react'

<div className={'home-page-menu-item'}>
<a href="/list-items" className={'home-page-menu-item-link'}>About</a>
<a href="/" className={'home-page-menu-item-link'}>Home</a>
</div>
<div className={'home-page-menu-item'}>
<a href="/docs/" className={'home-page-menu-item-link'}>Docs</a>
<a href="/items" className={'home-page-menu-item-link'}>Items</a>
</div>
<div className={'home-page-menu-item'}>
<a href="/docs" className={'home-page-menu-item-link'}>Docs</a>
</div>
</div>

@@ -18,0 +21,0 @@ </header>

@@ -13,5 +13,5 @@ import React, { Fragment } from 'react'

const ListItemsPage = ({ items, categoryName }) => {
const listItems = items.map(({ image, title, description }) => (
const listItems = items.map(({ image, title, description }, index) => (
<li className={'product-list-item'} key={image}>
<a href="#" className={'product-list-link'}>
<a href={`/items/${index}`} className={'product-list-link'}>
<img className={'produc-list-image'} src={image} />

@@ -18,0 +18,0 @@ <div className="product-list-info">

import HomePage from './components/home-page'
import ListingItemsPage from './components/list-items-page'
import ListingItemPage from './components/list-item-page'
import DocsPage from './components/docs-page'
import CheckoutPage from './components/checkout-page'
export { HomePage, ListingItemsPage, DocsPage }
export {
HomePage,
ListingItemsPage,
ListingItemPage,
DocsPage,
CheckoutPage
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc