diff --git a/js/dist/forum.js b/js/dist/forum.js index 51eabe4..2e9e597 100644 --- a/js/dist/forum.js +++ b/js/dist/forum.js @@ -1,2 +1,2 @@ -(()=>{var o={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return o.d(n,{a:n}),n},d:(t,n)=>{for(var e in n)o.o(n,e)&&!o.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},o:(o,t)=>Object.prototype.hasOwnProperty.call(o,t),r:o=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})}},t={};(()=>{"use strict";o.r(t),o.d(t,{components:()=>P});const n=flarum.core.compat["forum/app"];var e=o.n(n);const r=flarum.core.compat["common/extend"],a=flarum.core.compat["common/Application"];var s=o.n(a);function c(o,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,t){return o.__proto__=t,o},c(o,t)}function i(o,t){o.prototype=Object.create(t.prototype),o.prototype.constructor=o,c(o,t)}const u=flarum.core.compat["common/Component"];var l=o.n(u);const f=flarum.core.compat["common/helpers/listItems"];var p=o.n(f);const d=flarum.core.compat["common/utils/ItemList"];var b=o.n(d);const v=flarum.core.compat["common/components/LinkButton"];var y=o.n(v),h=function(o){function t(){for(var t,n=arguments.length,e=new Array(n),r=0;r{var o={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return o.d(n,{a:n}),n},d:(t,n)=>{for(var e in n)o.o(n,e)&&!o.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},o:(o,t)=>Object.prototype.hasOwnProperty.call(o,t),r:o=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})}},t={};(()=>{"use strict";o.r(t),o.d(t,{components:()=>T});const n=flarum.core.compat["forum/app"];var e=o.n(n);const r=flarum.core.compat["common/extend"],a=flarum.core.compat["common/Application"];var s=o.n(a);function i(o,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,t){return o.__proto__=t,o},i(o,t)}function c(o,t){o.prototype=Object.create(t.prototype),o.prototype.constructor=o,i(o,t)}const l=flarum.core.compat["common/Component"];var u=o.n(l);const f=flarum.core.compat["common/helpers/listItems"];var p=o.n(f);const d=flarum.core.compat["common/utils/ItemList"];var b=o.n(d);const v=flarum.core.compat["common/components/LinkButton"];var y=o.n(v),h=function(o){function t(){for(var t,n=arguments.length,e=new Array(n),r=0;r {\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['common/Application'];","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/Component'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/helpers/listItems'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/utils/ItemList'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/LinkButton'];","import Component, { ComponentAttrs } from 'flarum/common/Component';\nimport { Children, Vnode } from 'mithril';\nimport LinkButton from 'flarum/common/components/LinkButton';\n\ninterface MobileTabItemAttrs extends ComponentAttrs {\n route: string;\n icon: string;\n label: string;\n}\n\nexport default class MobileTabItem extends Component {\n attrs!: MobileTabItemAttrs;\n\n view(vnode: Vnode): Children {\n const { route, icon, label } = this.attrs;\n return (\n \n {label}\n \n );\n }\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Button'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/LogInModal'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/SessionDropdown'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/helpers/avatar'];","import app from 'flarum/forum/app';\nimport SessionDropdown from 'flarum/forum/components/SessionDropdown';\nimport avatar from 'flarum/common/helpers/avatar';\n\nexport default class MobileTabSessionDropdown extends SessionDropdown {\n getButtonContent(vnode) {\n const user = app.session.user;\n\n // The username can be long, so it is better to display \"Profile\"\n return [avatar(user), ' ', {app.translator.trans('core.forum.header.profile_button')}];\n }\n}\n","import app from 'flarum/forum/app';\nimport Component from 'flarum/common/Component';\nimport { ComponentAttrs } from 'flarum/common/Component';\nimport { Vnode, Children } from 'mithril';\nimport listItems from 'flarum/common/helpers/listItems';\nimport ItemList from 'flarum/common/utils/ItemList';\nimport MobileTabItem from './MobileTabItem';\nimport LinkButton from 'flarum/common/components/LinkButton';\nimport Button from 'flarum/common/components/Button';\nimport LogInModal from 'flarum/forum/components/LogInModal';\n\nimport MobileTabSessionDropdown from './MobileTabSessionDropdown';\n\nexport default class MobileTab extends Component {\n view(vnode: Vnode): Children {\n return (\n \n );\n }\n\n items(): ItemList {\n const items = new ItemList();\n\n items.add('home', , 100);\n\n if ('flarum-tags' in flarum.extensions) {\n items.add(\n 'tags',\n ,\n 90\n );\n }\n\n if (app.session.user) {\n const unread = app.session.user.unreadNotificationCount();\n // The default Flarum component opens as a dropdown on mobile if the drawer is not open\n items.add(\n 'notifications',\n \n {unread ? {unread} : ''}\n {app.translator.trans('core.forum.notifications.title')}\n ,\n 80\n );\n\n items.add('session', , 70);\n } else {\n items.add(\n 'logIn',\n ,\n 70\n );\n }\n\n return items;\n }\n}\n","import MobileTab from './MobileTab';\nimport MobileTabItem from './MobileTabItem';\nimport MobileTabSessionDropdown from './MobileTabSessionDropdown';\n\nexport const components = {\n MobileTab,\n MobileTabItem,\n MobileTabSessionDropdown,\n};\n","import app from 'flarum/forum/app';\nimport { extend } from 'flarum/common/extend';\nimport Application from 'flarum/common/Application';\n\nimport MobileTab from './components/MobileTab';\n\napp.initializers.add('acpl/mobile-tab', () => {\n extend(Application.prototype, 'mount', () => {\n const mTab = document.createElement('div');\n m.mount(document.body.appendChild(mTab), MobileTab);\n });\n});\n\nexport * from './components';\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","_setPrototypeOf","p","setPrototypeOf","bind","__proto__","_inheritsLoose","subClass","superClass","create","constructor","MobileTabItem","attrs","view","vnode","this","route","icon","label","href","title","Component","MobileTabSessionDropdown","getButtonContent","user","app","avatar","className","SessionDropdown","MobileTab","listItems","items","toArray","ItemList","add","extensions","unread","onclick","LogInModal","components","extend","Application","mTab","document","createElement","m","mount","body","appendChild"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"forum.js","mappings":"MACA,IAAIA,EAAsB,CCA1BA,EAAyBC,IACxB,IAAIC,EAASD,G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,GAAOjB,EAC3C,GACF,G","sources":["webpack://@acpl/mobile-tab/webpack/bootstrap","webpack://@acpl/mobile-tab/webpack/runtime/compat get default export","webpack://@acpl/mobile-tab/webpack/runtime/define property getters","webpack://@acpl/mobile-tab/webpack/runtime/hasOwnProperty shorthand","webpack://@acpl/mobile-tab/webpack/runtime/make namespace object","webpack://@acpl/mobile-tab/external root \"flarum.core.compat['forum/app']\"","webpack://@acpl/mobile-tab/external root \"flarum.core.compat['common/extend']\"","webpack://@acpl/mobile-tab/external root \"flarum.core.compat['common/Application']\"","webpack://@acpl/mobile-tab/./node_modules/.store/@babel+runtime@7.22.11/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://@acpl/mobile-tab/./node_modules/.store/@babel+runtime@7.22.11/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://@acpl/mobile-tab/external root \"flarum.core.compat['common/Component']\"","webpack://@acpl/mobile-tab/external root \"flarum.core.compat['common/helpers/listItems']\"","webpack://@acpl/mobile-tab/external root \"flarum.core.compat['common/utils/ItemList']\"","webpack://@acpl/mobile-tab/external root \"flarum.core.compat['common/components/LinkButton']\"","webpack://@acpl/mobile-tab/./src/forum/components/MobileTabItem.tsx","webpack://@acpl/mobile-tab/external root \"flarum.core.compat['common/components/Button']\"","webpack://@acpl/mobile-tab/external root \"flarum.core.compat['forum/components/LogInModal']\"","webpack://@acpl/mobile-tab/external root \"flarum.core.compat['forum/components/SessionDropdown']\"","webpack://@acpl/mobile-tab/external root \"flarum.core.compat['common/helpers/avatar']\"","webpack://@acpl/mobile-tab/./src/forum/components/MobileTabSessionDropdown.js","webpack://@acpl/mobile-tab/./src/forum/components/MobileTab.tsx","webpack://@acpl/mobile-tab/./src/forum/components/index.ts","webpack://@acpl/mobile-tab/./src/forum/index.ts"],"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['common/Application'];","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/Component'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/helpers/listItems'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/utils/ItemList'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/LinkButton'];","import Component, { ComponentAttrs } from 'flarum/common/Component';\nimport { Children, Vnode } from 'mithril';\nimport LinkButton from 'flarum/common/components/LinkButton';\n\ninterface MobileTabItemAttrs extends ComponentAttrs {\n route: string;\n icon: string;\n label: string;\n}\n\nexport default class MobileTabItem extends Component {\n attrs!: MobileTabItemAttrs;\n\n view(vnode: Vnode): Children {\n const { route, icon, label } = this.attrs;\n return (\n \n {label}\n \n );\n }\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Button'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/LogInModal'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/SessionDropdown'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/helpers/avatar'];","import app from 'flarum/forum/app';\nimport SessionDropdown from 'flarum/forum/components/SessionDropdown';\nimport avatar from 'flarum/common/helpers/avatar';\n\nexport default class MobileTabSessionDropdown extends SessionDropdown {\n getButtonContent(vnode) {\n const user = app.session.user;\n\n // The username can be long, so it is better to display \"Profile\"\n return [avatar(user), ' ', {app.translator.trans('core.forum.header.profile_button')}];\n }\n}\n","import app from 'flarum/forum/app';\nimport Component from 'flarum/common/Component';\nimport { ComponentAttrs } from 'flarum/common/Component';\nimport { Vnode, Children } from 'mithril';\nimport listItems from 'flarum/common/helpers/listItems';\nimport ItemList from 'flarum/common/utils/ItemList';\nimport MobileTabItem from './MobileTabItem';\nimport LinkButton from 'flarum/common/components/LinkButton';\nimport Button from 'flarum/common/components/Button';\nimport LogInModal from 'flarum/forum/components/LogInModal';\n\nimport MobileTabSessionDropdown from './MobileTabSessionDropdown';\n\nexport default class MobileTab extends Component {\n view(vnode: Vnode): Children {\n return (\n \n );\n }\n\n items(): ItemList {\n const items = new ItemList();\n\n items.add('home', , 100);\n\n if ('askvortsov-categories' in flarum.extensions) {\n items.add(\n 'categories',\n ,\n 90\n );\n } else if ('flarum-tags' in flarum.extensions) {\n items.add(\n 'tags',\n ,\n 90\n );\n }\n\n if (app.session.user) {\n const unread = app.session.user.unreadNotificationCount();\n // The default Flarum component opens as a dropdown on mobile if the drawer is not open\n items.add(\n 'notifications',\n \n {unread ? {unread} : ''}\n {app.translator.trans('core.forum.notifications.title')}\n ,\n 80\n );\n\n items.add('session', , 70);\n } else {\n items.add(\n 'logIn',\n ,\n 70\n );\n }\n\n return items;\n }\n}\n","import MobileTab from './MobileTab';\nimport MobileTabItem from './MobileTabItem';\nimport MobileTabSessionDropdown from './MobileTabSessionDropdown';\n\nexport const components = {\n MobileTab,\n MobileTabItem,\n MobileTabSessionDropdown,\n};\n","import app from 'flarum/forum/app';\nimport { extend } from 'flarum/common/extend';\nimport Application from 'flarum/common/Application';\n\nimport MobileTab from './components/MobileTab';\n\napp.initializers.add('acpl/mobile-tab', () => {\n extend(Application.prototype, 'mount', () => {\n const mTab = document.createElement('div');\n m.mount(document.body.appendChild(mTab), MobileTab);\n });\n});\n\nexport * from './components';\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","_setPrototypeOf","p","setPrototypeOf","bind","__proto__","_inheritsLoose","subClass","superClass","create","constructor","MobileTabItem","_Component","_this","_len","arguments","length","args","Array","_key","apply","concat","attrs","view","vnode","_this$attrs","this","route","icon","label","m","LinkButton","href","title","Component","MobileTabSessionDropdown","_SessionDropdown","getButtonContent","user","app","avatar","className","trans","SessionDropdown","MobileTab","_proto","listItems","items","toArray","ItemList","add","extensions","unread","unreadNotificationCount","Button","onclick","show","LogInModal","components","extend","Application","mTab","document","createElement","mount","body","appendChild"],"sourceRoot":""} \ No newline at end of file diff --git a/js/src/forum/components/MobileTab.tsx b/js/src/forum/components/MobileTab.tsx index 910245a..0c5cccf 100644 --- a/js/src/forum/components/MobileTab.tsx +++ b/js/src/forum/components/MobileTab.tsx @@ -25,7 +25,13 @@ export default class MobileTab extends Component { items.add('home', , 100); - if ('flarum-tags' in flarum.extensions) { + if ('askvortsov-categories' in flarum.extensions) { + items.add( + 'categories', + , + 90 + ); + } else if ('flarum-tags' in flarum.extensions) { items.add( 'tags', ,