45 lines
1.4 KiB
JavaScript
45 lines
1.4 KiB
JavaScript
(function () {
|
|
const OrgPortal = (window.OrgPortal = window.OrgPortal || {});
|
|
const { h } = OrgPortal.runtime;
|
|
const { portalData } = OrgPortal.data;
|
|
|
|
OrgPortal.componentFns = OrgPortal.componentFns || {};
|
|
|
|
OrgPortal.componentFns.ActivityCard = function ActivityCard() {
|
|
return h(
|
|
"section",
|
|
{ className: "card org-panel org-scroll-panel org-span-6" },
|
|
h(
|
|
"div",
|
|
{ className: "org-panel-head" },
|
|
h(
|
|
"div",
|
|
null,
|
|
h("h2", { className: "org-panel-title" }, "Command Feed"),
|
|
h(
|
|
"p",
|
|
{ className: "org-panel-subtitle" },
|
|
"Recent organization-level actions and updates.",
|
|
),
|
|
),
|
|
),
|
|
h(
|
|
"div",
|
|
{ className: "org-activity-list" },
|
|
...portalData.activity.map((item) =>
|
|
h(
|
|
"article",
|
|
{ className: "org-activity-row" },
|
|
h(
|
|
"span",
|
|
{ className: "org-activity-time" },
|
|
item.time,
|
|
),
|
|
h("p", null, item.text),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
};
|
|
})();
|