lm-web-controls 1.2.31 → 1.2.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import e,{useState as t}from"react";import a from"moment";function i(i){var
|
|
2
|
+
import e,{useState as t}from"react";import a from"moment";function i(i){var n=i.blogs,l=i.icon,c=i.title,o=i.nestedUrl,r=t("grid"),m=r[0],s=r[1],d=function(e){s(e)},g=n.map((function(e){return function(e){var t,i;return{"@context":"https://schema.org","@type":"Article",headline:e.title,image:[e.featuredImage],author:{"@type":"Person",name:(null===(t=e.author)||void 0===t?void 0:t.name)||"Admin"},datePublished:a(e.publishedOn).toISOString(),dateModified:a(e.publishedOn).toISOString(),mainEntityOfPage:{"@type":"WebPage","@id":"".concat(window.location.origin).concat(o?"/".concat(o):"","/post/").concat(e.slug)},publisher:{"@type":"Organization",name:(null===(i=e.author)||void 0===i?void 0:i.name)||"Admin"},description:e.previewContent}}(e)}));return e.createElement("section",{className:"blog-list-main-container"},e.createElement("div",{className:"blog-list-top-container"},c&&e.createElement("h2",{className:"blog-list-main-title"},c),e.createElement("div",{className:"blog-list-icons-container"},l.grid&&e.createElement("div",{className:"blog-list-icon ".concat("grid"===m?"active":""),onClick:function(){return d("grid")},title:"Grid View"},l.grid),l.list&&e.createElement("div",{className:"blog-list-icon ".concat("list"===m?"active":""),onClick:function(){return d("list")},title:"List View"},l.list))),e.createElement("div",{className:"".concat("grid"===m?"blogs-grid-view":"blogs-list-view")},n.map((function(t){var i,n,c;return e.createElement("div",{key:t.slug,className:"".concat("grid"===m?"blog-item-grid":"blog-item-list")},e.createElement("a",{href:"".concat(o?"/".concat(o):"","/post/").concat(t.slug)},e.createElement("img",{src:t.featuredImage,alt:t.title,className:"".concat("grid"===m?"blog-item-grid-image":"blog-item-list-image")})),e.createElement("div",{className:"blog-details"},e.createElement("a",{href:"".concat(o?"/".concat(o):"","/post/").concat(t.slug)},e.createElement("h3",{className:"blog-item-title"},t.title)),e.createElement("div",{className:"blog-item-avatar-main-container"},e.createElement("div",{className:"blog-item-avatar"},(null===(i=t.author)||void 0===i?void 0:i.name)?null===(n=t.author)||void 0===n?void 0:n.name[0]:""),e.createElement("div",{className:"blog-item-author-container"},e.createElement("h3",{className:"blog-item-author-name"},(null===(c=t.author)||void 0===c?void 0:c.name)||""),e.createElement("div",{className:"blog-item-date-read"},"On ".concat(a(t.publishedOn).format("ddd, MMM DD, YYYY"),", ").concat(t.readTime?"".concat(t.readTime," Min read"):"3 Min read")))),e.createElement("p",{className:"blog-item-preview-content"},t.previewContent),e.createElement("a",{className:"blog-item-read-more-container",href:"".concat(o?"/".concat(o):"","/post/").concat(t.slug)},e.createElement("p",null,"Read More"),l.link?l.link:null)))}))),e.createElement("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(g)}}))}export{i as BlogList};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import e from"react";import
|
|
2
|
+
import e from"react";import t from"moment";function a(a){var n,o,i,r,l,m,s=a.post,c={"@context":"https://schema.org","@type":"Article",headline:s.title,image:[s.featuredImage],author:{"@type":"Person",name:(null===(n=s.author)||void 0===n?void 0:n.name)||"Admin"},datePublished:t(s.publishedOn).toISOString(),dateModified:t(s.publishedOn).toISOString(),mainEntityOfPage:{"@type":"WebPage","@id":window.location.href},publisher:{"@type":"Organization",name:(null===(o=s.author)||void 0===o?void 0:o.name)||"Admin"},description:s.previewContent,articleBody:s.content.replace(/<[^>]+>/g,"")};return e.createElement("section",{className:"post-main-container"},e.createElement("h2",{className:"post-title"},s.title),e.createElement("div",{className:"post-avatar-main-container"},e.createElement("div",{className:"post-avatar"},(null===(i=s.author)||void 0===i?void 0:i.name)?null===(r=s.author)||void 0===r?void 0:r.name[0]:""),e.createElement("div",{className:"post-author-container"},e.createElement("h3",{className:"post-author-name"},(null===(l=s.author)||void 0===l?void 0:l.name)||""),e.createElement("div",{className:"post-date-read"},"On ".concat(t(s.publishedOn).format("ddd, MMM DD, YYYY"),", ").concat(s.readTime?"".concat(s.readTime," Min read"):"3 Min read")))),e.createElement("div",{className:"post-image-container"},e.createElement("img",{src:s.featuredImage,alt:s.title,className:"post-image"}),e.createElement("span",{className:"post-category"},(null===(m=null==s?void 0:s.categoryInfo)||void 0===m?void 0:m.name)||"General")),e.createElement("span",{dangerouslySetInnerHTML:{__html:s.content},className:"post-content",id:"post-content"}),e.createElement("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(c)}}))}export{a as Post};
|