From a7d9616680d20359271fa6f811cc40a28bf9173b Mon Sep 17 00:00:00 2001 From: flarum-bot Date: Wed, 20 Dec 2023 21:18:09 +0000 Subject: [PATCH] Bundled output for commit 6391780b73044f1f1a64640e6485e8f006b691bc Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci] --- 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 70887a3..44f017f 100644 --- a/js/dist/forum.js +++ b/js/dist/forum.js @@ -1,2 +1,2 @@ -(()=>{var t={n:r=>{var o=r&&r.__esModule?()=>r.default:()=>r;return t.d(o,{a:o}),o},d:(r,o)=>{for(var n in o)t.o(o,n)&&!t.o(r,n)&&Object.defineProperty(r,n,{enumerable:!0,get:o[n]})},o:(t,r)=>Object.prototype.hasOwnProperty.call(t,r),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},r={};(()=>{"use strict";t.r(r);const o=flarum.core.compat["forum/app"];var n=t.n(o);const e=flarum.core.compat["common/extend"],a=flarum.core.compat["forum/components/IndexPage"];var i=t.n(a);const s=flarum.core.compat["forum/utils/DiscussionControls"];var u=t.n(s);const f=flarum.core.compat["common/components/LinkButton"];var c=t.n(f);n().initializers.add("ianm-syndication",(function(){(0,e.extend)(i().prototype,"actionItems",(function(t){if(n().forum.attribute("ianm-syndication.plugin.forum-icons")){t.has("refresh")&&t.setPriority("refresh",100),t.has("markAllAsRead")&&t.setPriority("markAllAsRead",90);var r=n().forum.attribute("ianm-syndication.plugin.forum-format"),o=n().forum.attribute("baseUrl")+"/"+r;"flarum-tags"in flarum.extensions&&this.currentTag()&&(o=o+"/t/"+this.currentTag().slug()),t.add("rss-feed",m(c(),{icon:"fas fa-rss",className:"Button Button--icon",href:o,target:"_blank"}),105)}})),(0,e.extend)(u(),"userControls",(function(t,r){if(n().forum.attribute("ianm-syndication.plugin.forum-icons")){var o=n().forum.attribute("ianm-syndication.plugin.forum-format");t.add("rss-link",m(c(),{icon:"fas fa-rss",href:n().forum.attribute("baseUrl")+"/"+o+"/d/"+r.id(),external:!0,target:"_blank"},n().translator.trans("ianm-syndication.forum.discussion.feed_link")))}}))}))})(),module.exports=r})(); +(()=>{var t={n:r=>{var n=r&&r.__esModule?()=>r.default:()=>r;return t.d(n,{a:n}),n},d:(r,n)=>{for(var o in n)t.o(n,o)&&!t.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:n[o]})},o:(t,r)=>Object.prototype.hasOwnProperty.call(t,r),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},r={};(()=>{"use strict";t.r(r);const n=flarum.core.compat["forum/app"];var o=t.n(n);const a=flarum.core.compat["common/extend"],e=flarum.core.compat["forum/components/IndexPage"];var i=t.n(e);const s=flarum.core.compat["forum/utils/DiscussionControls"];var u=t.n(s);const f=flarum.core.compat["common/components/LinkButton"];var c=t.n(f);const l=flarum.core.compat["forum/components/UserPage"];var d=t.n(l);o().initializers.add("ianm-syndication",(function(){(0,a.extend)(i().prototype,"actionItems",(function(t){if(o().forum.attribute("ianm-syndication.plugin.forum-icons")){t.has("refresh")&&t.setPriority("refresh",100),t.has("markAllAsRead")&&t.setPriority("markAllAsRead",90);var r=o().forum.attribute("ianm-syndication.plugin.forum-format"),n=o().forum.attribute("baseUrl")+"/"+r;"flarum-tags"in flarum.extensions&&this.currentTag()&&(n=n+"/t/"+this.currentTag().slug()),t.add("rss-feed",m(c(),{icon:"fas fa-rss",className:"Button Button--icon",href:n,target:"_blank"}),105)}})),(0,a.extend)(u(),"userControls",(function(t,r){if(o().forum.attribute("ianm-syndication.plugin.forum-icons")){var n=o().forum.attribute("ianm-syndication.plugin.forum-format");t.add("rss-link",m(c(),{icon:"fas fa-rss",href:o().forum.attribute("baseUrl")+"/"+n+"/d/"+r.id(),external:!0,target:"_blank"},o().translator.trans("ianm-syndication.forum.discussion.feed_link")))}})),(0,a.extend)(d().prototype,"navItems",(function(t){if(o().forum.attribute("ianm-syndication.plugin.forum-icons")){var r=o().forum.attribute("ianm-syndication.plugin.forum-format"),n=o().forum.attribute("baseUrl")+"/"+r+"/u/"+this.user.username()+"/posts";t.add("rss-feed",m(c(),{icon:"fas fa-rss",href:n,external:!0,target:"_blank"},o().translator.trans("ianm-syndication.forum.discussion.feed_link")),40)}}))}))})(),module.exports=r})(); //# sourceMappingURL=forum.js.map \ No newline at end of file diff --git a/js/dist/forum.js.map b/js/dist/forum.js.map index 969e5a8..36023b7 100644 --- a/js/dist/forum.js.map +++ b/js/dist/forum.js.map @@ -1 +1 @@ -{"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,CAAM,ECLdF,EAAwB,CAACM,EAASC,KACjC,IAAI,IAAIC,KAAOD,EACXP,EAAoBS,EAAEF,EAAYC,KAASR,EAAoBS,EAAEH,EAASE,IAC5EE,OAAOC,eAAeL,EAASE,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,ECNDR,EAAwB,CAACc,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,GCClFf,EAAyBM,IACH,oBAAXa,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAeL,EAASa,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAeL,EAAS,aAAc,CAAEe,OAAO,GAAO,G,+BCL9D,MAAM,EAA+BC,OAAOC,KAAKC,OAAO,a,aCAxD,MAAM,EAA+BF,OAAOC,KAAKC,OAAO,iBCAlD,EAA+BF,OAAOC,KAAKC,OAAO,8B,aCAxD,MAAM,EAA+BF,OAAOC,KAAKC,OAAO,kC,aCAxD,MAAM,EAA+BF,OAAOC,KAAKC,OAAO,gC,aCGxDC,IAAAA,aAAAA,IAAqB,oBAAoB,YCQvCC,EAAAA,EAAAA,QAAOC,IAAAA,UAAqB,eAAe,SAAUC,GACnD,GAAKH,IAAAA,MAAAA,UAAoB,uCAAzB,CAIIG,EAAMC,IAAI,YAAYD,EAAME,YAAY,UAAW,KACnDF,EAAMC,IAAI,kBAAkBD,EAAME,YAAY,gBAAiB,IAEnE,IAAMC,EAASN,IAAAA,MAAAA,UAAoB,wCAE/BO,EAAMP,IAAAA,MAAAA,UAAoB,WAAa,IAAMM,EAE7C,gBAAiBT,OAAOW,YAAcC,KAAKC,eAC7CH,EAAMA,EAAM,MAAQE,KAAKC,aAAaC,QAGxCR,EAAMS,IAAI,WAAYC,EAACC,IAAU,CAACC,KAAK,aAAaC,UAAU,sBAAsBC,KAAMV,EAAKW,OAAO,WAAa,IAbnH,CAcF,KAEAjB,EAAAA,EAAAA,QAAOkB,IAAoB,gBAAgB,SAAUhB,EAAmCiB,GACtF,GAAKpB,IAAAA,MAAAA,UAAoB,uCAAzB,CAIA,IAAMM,EAASN,IAAAA,MAAAA,UAAoB,wCAEnCG,EAAMS,IACJ,WACAC,EAACC,IAAU,CAACC,KAAK,aAAaE,KAAMjB,IAAAA,MAAAA,UAAoB,WAAU,IAAOM,EAAM,MAAQc,EAAWC,KAAMC,UAAU,EAAMJ,OAAO,UAC5HlB,IAAAA,WAAAA,MAAqB,gDAP1B,CAUF,GDtCF,G","sources":["webpack://@ianm/syndication/webpack/bootstrap","webpack://@ianm/syndication/webpack/runtime/compat get default export","webpack://@ianm/syndication/webpack/runtime/define property getters","webpack://@ianm/syndication/webpack/runtime/hasOwnProperty shorthand","webpack://@ianm/syndication/webpack/runtime/make namespace object","webpack://@ianm/syndication/external root \"flarum.core.compat['forum/app']\"","webpack://@ianm/syndication/external root \"flarum.core.compat['common/extend']\"","webpack://@ianm/syndication/external root \"flarum.core.compat['forum/components/IndexPage']\"","webpack://@ianm/syndication/external root \"flarum.core.compat['forum/utils/DiscussionControls']\"","webpack://@ianm/syndication/external root \"flarum.core.compat['common/components/LinkButton']\"","webpack://@ianm/syndication/./src/forum/index.ts","webpack://@ianm/syndication/./src/forum/addFeedIcons.tsx"],"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};","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/app'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/extend'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/IndexPage'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/utils/DiscussionControls'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/LinkButton'];","import app from 'flarum/forum/app';\nimport addFeedIcons from './addFeedIcons';\n\napp.initializers.add('ianm-syndication', () => {\n addFeedIcons();\n});\n","import ItemList from 'flarum/common/utils/ItemList';\nimport app from 'flarum/forum/app';\nimport { extend } from 'flarum/common/extend';\nimport IndexPage from 'flarum/forum/components/IndexPage';\nimport type Mithril from 'mithril';\nimport DiscussionPage from 'flarum/forum/components/DiscussionPage';\nimport DiscussionControls from 'flarum/forum/utils/DiscussionControls';\nimport LinkButton from 'flarum/common/components/LinkButton';\nimport Discussion from 'flarum/common/models/Discussion';\n\nexport default function addFeedIcons() {\n extend(IndexPage.prototype, 'actionItems', function (items: ItemList) {\n if (!app.forum.attribute('ianm-syndication.plugin.forum-icons')) {\n return;\n }\n\n if (items.has('refresh')) items.setPriority('refresh', 100);\n if (items.has('markAllAsRead')) items.setPriority('markAllAsRead', 90);\n\n const format = app.forum.attribute('ianm-syndication.plugin.forum-format');\n\n let url = app.forum.attribute('baseUrl') + '/' + format;\n\n if ('flarum-tags' in flarum.extensions && this.currentTag()) {\n url = url + '/t/' + this.currentTag().slug();\n }\n\n items.add('rss-feed', , 105);\n });\n\n extend(DiscussionControls, 'userControls', function (items: ItemList, discussion: Discussion) {\n if (!app.forum.attribute('ianm-syndication.plugin.forum-icons')) {\n return;\n }\n\n const format = app.forum.attribute('ianm-syndication.plugin.forum-format');\n\n items.add(\n 'rss-link',\n \n {app.translator.trans('ianm-syndication.forum.discussion.feed_link')}\n \n );\n });\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","flarum","core","compat","app","extend","IndexPage","items","has","setPriority","format","url","extensions","this","currentTag","slug","add","m","LinkButton","icon","className","href","target","DiscussionControls","discussion","id","external"],"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,CAAM,ECLdF,EAAwB,CAACM,EAASC,KACjC,IAAI,IAAIC,KAAOD,EACXP,EAAoBS,EAAEF,EAAYC,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zB,CAIA,IAAMM,EAASN,IAAAA,MAAAA,UAAoB,wCAEnCG,EAAMS,IACJ,WACAC,EAACC,IAAU,CAACC,KAAK,aAAaE,KAAMjB,IAAAA,MAAAA,UAAoB,WAAU,IAAOM,EAAM,MAAQc,EAAWC,KAAMC,UAAU,EAAMJ,OAAO,UAC5HlB,IAAAA,WAAAA,MAAqB,gDAP1B,CAUF,KAEAC,EAAAA,EAAAA,QAAOsB,IAAAA,UAAoB,YAAY,SAA0BpB,GAC/D,GAAKH,IAAAA,MAAAA,UAAoB,uCAAzB,CAIA,IAAMM,EAASN,IAAAA,MAAAA,UAAoB,wCAC7BO,EAAMP,IAAAA,MAAAA,UAAoB,WAAa,IAAMM,EAAS,MAAQG,KAAKe,KAAKC,WAAa,SAE3FtB,EAAMS,IACJ,WACAC,EAACC,IAAU,CAACC,KAAK,aAAaE,KAAMV,EAAKe,UAAU,EAAMJ,OAAO,UAC7DlB,IAAAA,WAAAA,MAAqB,gDAExB,GAVF,CAYF,GDxDF,G","sources":["webpack://@ianm/syndication/webpack/bootstrap","webpack://@ianm/syndication/webpack/runtime/compat get default export","webpack://@ianm/syndication/webpack/runtime/define property getters","webpack://@ianm/syndication/webpack/runtime/hasOwnProperty shorthand","webpack://@ianm/syndication/webpack/runtime/make namespace object","webpack://@ianm/syndication/external root \"flarum.core.compat['forum/app']\"","webpack://@ianm/syndication/external root \"flarum.core.compat['common/extend']\"","webpack://@ianm/syndication/external root \"flarum.core.compat['forum/components/IndexPage']\"","webpack://@ianm/syndication/external root \"flarum.core.compat['forum/utils/DiscussionControls']\"","webpack://@ianm/syndication/external root \"flarum.core.compat['common/components/LinkButton']\"","webpack://@ianm/syndication/external root \"flarum.core.compat['forum/components/UserPage']\"","webpack://@ianm/syndication/./src/forum/index.ts","webpack://@ianm/syndication/./src/forum/addFeedIcons.tsx"],"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};","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/app'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/extend'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/IndexPage'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/utils/DiscussionControls'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/LinkButton'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/UserPage'];","import app from 'flarum/forum/app';\nimport addFeedIcons from './addFeedIcons';\n\napp.initializers.add('ianm-syndication', () => {\n addFeedIcons();\n});\n","import ItemList from 'flarum/common/utils/ItemList';\nimport app from 'flarum/forum/app';\nimport { extend } from 'flarum/common/extend';\nimport IndexPage from 'flarum/forum/components/IndexPage';\nimport type Mithril from 'mithril';\nimport DiscussionControls from 'flarum/forum/utils/DiscussionControls';\nimport LinkButton from 'flarum/common/components/LinkButton';\nimport Discussion from 'flarum/common/models/Discussion';\nimport UserPage from 'flarum/forum/components/UserPage';\nimport type User from 'flarum/common/models/User';\n\nexport default function addFeedIcons() {\n extend(IndexPage.prototype, 'actionItems', function (items: ItemList) {\n if (!app.forum.attribute('ianm-syndication.plugin.forum-icons')) {\n return;\n }\n\n if (items.has('refresh')) items.setPriority('refresh', 100);\n if (items.has('markAllAsRead')) items.setPriority('markAllAsRead', 90);\n\n const format = app.forum.attribute('ianm-syndication.plugin.forum-format');\n\n let url = app.forum.attribute('baseUrl') + '/' + format;\n\n if ('flarum-tags' in flarum.extensions && this.currentTag()) {\n url = url + '/t/' + this.currentTag().slug();\n }\n\n items.add('rss-feed', , 105);\n });\n\n extend(DiscussionControls, 'userControls', function (items: ItemList, discussion: Discussion) {\n if (!app.forum.attribute('ianm-syndication.plugin.forum-icons')) {\n return;\n }\n\n const format = app.forum.attribute('ianm-syndication.plugin.forum-format');\n\n items.add(\n 'rss-link',\n \n {app.translator.trans('ianm-syndication.forum.discussion.feed_link')}\n \n );\n });\n\n extend(UserPage.prototype, 'navItems', function (this: UserPage, items) {\n if (!app.forum.attribute('ianm-syndication.plugin.forum-icons')) {\n return;\n }\n\n const format = app.forum.attribute('ianm-syndication.plugin.forum-format');\n const url = app.forum.attribute('baseUrl') + '/' + format + '/u/' + this.user.username() + '/posts';\n\n items.add(\n 'rss-feed',\n \n {app.translator.trans('ianm-syndication.forum.discussion.feed_link')}\n ,\n 40\n );\n });\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","flarum","core","compat","app","extend","IndexPage","items","has","setPriority","format","url","extensions","this","currentTag","slug","add","m","LinkButton","icon","className","href","target","DiscussionControls","discussion","id","external","UserPage","user","username"],"sourceRoot":""} \ No newline at end of file