From 7afb15fc473f42f6b958559b88e60a1029d8dde9 Mon Sep 17 00:00:00 2001 From: SychO9 Date: Fri, 18 Feb 2022 10:04:44 +0100 Subject: [PATCH] yarn build --- js/dist/forum.js | 2 +- js/dist/forum.js.map | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/dist/forum.js b/js/dist/forum.js index 6c593fb..d0534c9 100644 --- a/js/dist/forum.js +++ b/js/dist/forum.js @@ -1,2 +1,2 @@ -(()=>{var t={n:e=>{var s=e&&e.__esModule?()=>e.default:()=>e;return t.d(s,{a:s}),s},d:(e,s)=>{for(var a in s)t.o(s,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:s[a]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};(()=>{"use strict";function s(){return s=Object.assign||function(t){for(var e=1;e{var t={n:e=>{var s=e&&e.__esModule?()=>e.default:()=>e;return t.d(s,{a:s}),s},d:(e,s)=>{for(var a in s)t.o(s,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:s[a]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};(()=>{"use strict";function s(){return s=Object.assign||function(t){for(var e=1;e {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","export default function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/extend'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/DiscussionListItem'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['tags/components/TagsPage'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['components/IndexPage'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['components/Link'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['components/LoadingIndicator'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['helpers/listItems'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['helpers/humanTime'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['tags/common/helpers/tagIcon'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['tags/common/helpers/tagLabel'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['tags/common/utils/sortTags'];","import IndexPage from 'flarum/components/IndexPage';\nimport Link from 'flarum/components/Link';\nimport LoadingIndicator from 'flarum/components/LoadingIndicator';\nimport listItems from 'flarum/helpers/listItems';\nimport humanTime from 'flarum/helpers/humanTime';\n\nimport tagIcon from 'flarum/tags/common/helpers/tagIcon';\nimport tagLabel from 'flarum/tags/common/helpers/tagLabel';\nimport sortTags from 'flarum/tags/common/utils/sortTags';\n\nexport default class TagsPage {\n view() {\n if (this.loading) {\n return ;\n }\n\n const pinned = this.tags.filter((tag) => tag.position() !== null);\n const cloud = this.tags.filter((tag) => tag.position() === null);\n\n return (\n
\n {IndexPage.prototype.hero()}\n
\n \n\n
\n
    \n {pinned.map((tag) => {\n const lastPostedDiscussion = tag.lastPostedDiscussion();\n const children = sortTags(tag.children() || []);\n const tagIconNode = tagIcon(tag, {}, { useColor: false });\n\n if (tagIconNode.attrs.style && tagIconNode.attrs.style.backgroundColor) {\n delete tagIconNode.attrs.style.backgroundColor;\n }\n\n return (\n
  • \n \n
    {tagIconNode}
    \n
    \n

    {tag.name()}

    \n

    {tag.description()}

    \n {children && children.length ? (\n
    \n {children.map((child) => [\n \n {child.name()}\n ,\n ' ',\n ])}\n
    \n ) : (\n ''\n )}\n {lastPostedDiscussion ? (\n \n {lastPostedDiscussion.title()}\n {humanTime(lastPostedDiscussion.lastPostedAt())}\n \n ) : (\n \n )}\n
    \n \n
  • \n );\n })}\n
\n\n {cloud.length ?
{cloud.map((tag) => [tagLabel(tag, { link: true }), ' '])}
: ''}\n
\n
\n
\n );\n }\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['utils/string'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['extensions/afrux-theme-base/forum/components/Footer'];","import { extend, override } from 'flarum/common/extend';\nimport DiscussionListItem from 'flarum/forum/components/DiscussionListItem';\nimport TagsPage from 'flarum/tags/components/TagsPage';\nimport AsiremTagsPage from './components/TagsPage';\nimport { truncate } from 'flarum/utils/string';\n\nimport Footer from 'flarum/extensions/afrux-theme-base/forum/components/Footer';\n\napp.initializers.add('afrux-asirem', () => {\n extend(DiscussionListItem.prototype, 'view', function (vnode) {\n const discussionListItemContent = vnode.children.find(\n (e) => e?.tag === 'div' && e.attrs && e.attrs.className.includes('DiscussionListItem-content')\n );\n\n discussionListItemContent.children[0] = (\n
{[discussionListItemContent.children[0], discussionListItemContent.children[1]]}
\n );\n\n delete discussionListItemContent.children[1];\n\n discussionListItemContent.children[3] =
{discussionListItemContent.children[3]}
;\n\n if (this.attrs.discussion.tags() && this.attrs.discussion.tags()[0] && this.attrs.discussion.tags()[0].color()) {\n vnode.attrs.style = { '--tag-color': this.attrs.discussion.tags()[0].color(), ...(vnode.attrs.style || {}) };\n }\n\n if (this.attrs.discussion.isUnread()) {\n vnode.attrs.className += ' DiscussionListItem--unread';\n }\n });\n\n extend(DiscussionListItem.prototype, 'infoItems', function (items) {\n if (!items.has('excerpt')) {\n const firstPost = this.attrs.discussion.firstPost();\n\n if (firstPost) {\n const excerpt = truncate(firstPost.contentPlain(), 175);\n\n items.add('excerpt',
{excerpt}
, -100);\n }\n }\n });\n\n override(Footer.prototype, 'separator', function () {\n return (\n \n \n \n );\n });\n\n override(TagsPage.prototype, 'view', AsiremTagsPage.prototype.view);\n});\n"],"names":["__webpack_require__","module","getter","__esModule","d","a","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","_extends","assign","target","i","arguments","length","source","apply","this","flarum","core","compat","TagsPage","view","loading","pinned","tags","filter","tag","position","cloud","className","IndexPage","listItems","toArray","map","lastPostedDiscussion","children","sortTags","tagIconNode","tagIcon","useColor","attrs","style","backgroundColor","color","href","app","route","name","description","child","discussion","lastPostNumber","title","humanTime","lastPostedAt","tagLabel","link","initializers","add","extend","DiscussionListItem","vnode","discussionListItemContent","find","e","includes","isUnread","items","has","firstPost","excerpt","truncate","contentPlain","override","Footer","xmlns","width","height","AsiremTagsPage"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"forum.js","mappings":"MACA,IAAIA,EAAsB,CCA1BA,EAAyBC,IACxB,IAAIC,EAASD,GAAUA,EAAOE,WAC7B,IAAOF,EAAiB,QACxB,IAAM,EAEP,OADAD,EAAoBI,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,GCLRF,EAAwB,CAACM,EAASC,K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,UAASC,IAAAA,UAAkB,aAAa,WACtC,OACE,SAAKC,MAAM,6BAA6BC,MAAM,OAAOC,OAAO,MAAMhD,UAAU,sBAC1E,UACE,eAAa,IACbvC,EAAE,+vBAMVmF,EAAAA,EAAAA,UAASrD,IAAAA,UAAoB,OAAQ0D,EAAAA,UAAAA,U","sources":["webpack://@afrux/asirem/webpack/bootstrap","webpack://@afrux/asirem/webpack/runtime/compat get default export","webpack://@afrux/asirem/webpack/runtime/define property getters","webpack://@afrux/asirem/webpack/runtime/hasOwnProperty shorthand","webpack://@afrux/asirem/webpack/runtime/make namespace object","webpack://@afrux/asirem/../../core/js/node_modules/@babel/runtime/helpers/esm/extends.js","webpack://@afrux/asirem/external root \"flarum.core.compat['common/extend']\"","webpack://@afrux/asirem/external root \"flarum.core.compat['forum/components/DiscussionListItem']\"","webpack://@afrux/asirem/external root \"flarum.core.compat['tags/components/TagsPage']\"","webpack://@afrux/asirem/external root \"flarum.core.compat['components/IndexPage']\"","webpack://@afrux/asirem/external root \"flarum.core.compat['components/Link']\"","webpack://@afrux/asirem/external root \"flarum.core.compat['components/LoadingIndicator']\"","webpack://@afrux/asirem/external root \"flarum.core.compat['helpers/listItems']\"","webpack://@afrux/asirem/external root \"flarum.core.compat['helpers/humanTime']\"","webpack://@afrux/asirem/external root \"flarum.core.compat['tags/common/helpers/tagIcon']\"","webpack://@afrux/asirem/external root \"flarum.core.compat['tags/common/helpers/tagLabel']\"","webpack://@afrux/asirem/external root \"flarum.core.compat['tags/common/utils/sortTags']\"","webpack://@afrux/asirem/./src/forum/components/TagsPage.js","webpack://@afrux/asirem/external root \"flarum.core.compat['utils/string']\"","webpack://@afrux/asirem/external root \"flarum.core.compat['extensions/afrux-theme-base/forum/components/Footer']\"","webpack://@afrux/asirem/./src/forum/index.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","export default function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/extend'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/DiscussionListItem'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['tags/components/TagsPage'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['components/IndexPage'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['components/Link'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['components/LoadingIndicator'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['helpers/listItems'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['helpers/humanTime'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['tags/common/helpers/tagIcon'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['tags/common/helpers/tagLabel'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['tags/common/utils/sortTags'];","import IndexPage from 'flarum/components/IndexPage';\nimport Link from 'flarum/components/Link';\nimport LoadingIndicator from 'flarum/components/LoadingIndicator';\nimport listItems from 'flarum/helpers/listItems';\nimport humanTime from 'flarum/helpers/humanTime';\n\nimport tagIcon from 'flarum/tags/common/helpers/tagIcon';\nimport tagLabel from 'flarum/tags/common/helpers/tagLabel';\nimport sortTags from 'flarum/tags/common/utils/sortTags';\n\nexport default class TagsPage {\n view() {\n if (this.loading) {\n return ;\n }\n\n const pinned = this.tags.filter((tag) => tag.position() !== null);\n const cloud = this.tags.filter((tag) => tag.position() === null);\n\n return (\n
\n {IndexPage.prototype.hero()}\n
\n \n\n
\n
    \n {pinned.map((tag) => {\n const lastPostedDiscussion = tag.lastPostedDiscussion();\n const children = sortTags(tag.children() || []);\n const tagIconNode = tagIcon(tag, {}, { useColor: false });\n\n if (tagIconNode.attrs.style && tagIconNode.attrs.style.backgroundColor) {\n delete tagIconNode.attrs.style.backgroundColor;\n }\n\n return (\n
  • \n \n
    {tagIconNode}
    \n
    \n

    {tag.name()}

    \n

    {tag.description()}

    \n {children && children.length ? (\n
    \n {children.map((child) => [\n \n {child.name()}\n ,\n ' ',\n ])}\n
    \n ) : (\n ''\n )}\n {lastPostedDiscussion ? (\n \n {lastPostedDiscussion.title()}\n {humanTime(lastPostedDiscussion.lastPostedAt())}\n \n ) : (\n \n )}\n
    \n \n
  • \n );\n })}\n
\n\n {cloud.length ?
{cloud.map((tag) => [tagLabel(tag, { link: true }), ' '])}
: ''}\n
\n
\n
\n );\n }\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['utils/string'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['extensions/afrux-theme-base/forum/components/Footer'];","import { extend, override } from 'flarum/common/extend';\nimport DiscussionListItem from 'flarum/forum/components/DiscussionListItem';\nimport TagsPage from 'flarum/tags/components/TagsPage';\nimport AsiremTagsPage from './components/TagsPage';\nimport { truncate } from 'flarum/utils/string';\n\nimport Footer from 'flarum/extensions/afrux-theme-base/forum/components/Footer';\n\napp.initializers.add('afrux-asirem', () => {\n extend(DiscussionListItem.prototype, 'view', function (vnode) {\n const discussionListItemContent = vnode.children.find(\n (e) => e && e.tag === 'div' && e.attrs && e.attrs.className.includes('DiscussionListItem-content')\n );\n\n discussionListItemContent.children[0] = (\n
{[discussionListItemContent.children[0], discussionListItemContent.children[1]]}
\n );\n\n delete discussionListItemContent.children[1];\n\n discussionListItemContent.children[3] =
{discussionListItemContent.children[3]}
;\n\n if (this.attrs.discussion.tags() && this.attrs.discussion.tags()[0] && this.attrs.discussion.tags()[0].color()) {\n vnode.attrs.style = { '--tag-color': this.attrs.discussion.tags()[0].color(), ...(vnode.attrs.style || {}) };\n }\n\n if (this.attrs.discussion.isUnread()) {\n vnode.attrs.className += ' DiscussionListItem--unread';\n }\n });\n\n extend(DiscussionListItem.prototype, 'infoItems', function (items) {\n if (!items.has('excerpt')) {\n const firstPost = this.attrs.discussion.firstPost();\n\n if (firstPost) {\n const excerpt = truncate(firstPost.contentPlain(), 175);\n\n items.add('excerpt',
{excerpt}
, -100);\n }\n }\n });\n\n override(Footer.prototype, 'separator', function () {\n return (\n \n \n \n );\n });\n\n override(TagsPage.prototype, 'view', AsiremTagsPage.prototype.view);\n});\n"],"names":["__webpack_require__","module","getter","__esModule","d","a","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","_extends","assign","target","i","arguments","length","source","apply","this","flarum","core","compat","TagsPage","view","loading","pinned","tags","filter","tag","position","cloud","className","IndexPage","listItems","toArray","map","lastPostedDiscussion","children","sortTags","tagIconNode","tagIcon","useColor","attrs","style","backgroundColor","color","href","app","route","name","description","child","discussion","lastPostNumber","title","humanTime","lastPostedAt","tagLabel","link","initializers","add","extend","DiscussionListItem","vnode","discussionListItemContent","find","e","includes","isUnread","items","has","firstPost","excerpt","truncate","contentPlain","override","Footer","xmlns","width","height","AsiremTagsPage"],"sourceRoot":""} \ No newline at end of file