micro-frontend-react-pages
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -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 |
@@ -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){}]); |
22
index.js
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
17999
3
0
0
641982
38