codex 1.7.0a2__py3-none-any.whl → 1.7.2__py3-none-any.whl
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.
Potentially problematic release.
This version of codex might be problematic. Click here for more details.
- codex/choices.py +2 -17
- codex/db.py +1 -2
- codex/librarian/bookmark/bookmarkd.py +1 -1
- codex/librarian/bookmark/update.py +14 -1
- codex/librarian/janitor/integrity.py +11 -10
- codex/librarian/janitor/tasks.py +1 -1
- codex/serializers/browser/choices.py +9 -11
- codex/serializers/browser/metadata.py +1 -1
- codex/serializers/browser/page.py +1 -0
- codex/static_root/assets/VCheckbox-DLMzIII1.1ff8fc2d9a21.js +1 -0
- codex/static_root/assets/VCheckbox-DLMzIII1.1ff8fc2d9a21.js.br +0 -0
- codex/static_root/assets/VCheckbox-DLMzIII1.1ff8fc2d9a21.js.gz +0 -0
- codex/static_root/assets/VCheckbox-DLMzIII1.js +1 -0
- codex/static_root/assets/VCheckbox-DLMzIII1.js.br +0 -0
- codex/static_root/assets/VCheckbox-DLMzIII1.js.gz +0 -0
- codex/static_root/assets/{VCheckboxBtn-DnBH3a96.876fda35b85a.js → VCheckboxBtn-BzoQl8XC.094679a3624b.js} +1 -1
- codex/static_root/assets/VCheckboxBtn-BzoQl8XC.094679a3624b.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-BzoQl8XC.094679a3624b.js.gz +0 -0
- codex/static_root/assets/{VCheckboxBtn-DnBH3a96.js → VCheckboxBtn-BzoQl8XC.js} +1 -1
- codex/static_root/assets/VCheckboxBtn-BzoQl8XC.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-BzoQl8XC.js.gz +0 -0
- codex/static_root/assets/VCombobox-CBY8K5CP.fcf2221a9edd.js +1 -0
- codex/static_root/assets/VCombobox-CBY8K5CP.fcf2221a9edd.js.br +0 -0
- codex/static_root/assets/VCombobox-CBY8K5CP.fcf2221a9edd.js.gz +0 -0
- codex/static_root/assets/VCombobox-CBY8K5CP.js +1 -0
- codex/static_root/assets/VCombobox-CBY8K5CP.js.br +0 -0
- codex/static_root/assets/VCombobox-CBY8K5CP.js.gz +0 -0
- codex/static_root/assets/VDialog-DXQz0Ylp.7b23d86dbd0d.css +1 -0
- codex/static_root/assets/VDialog-DXQz0Ylp.7b23d86dbd0d.css.br +0 -0
- codex/static_root/assets/VDialog-DXQz0Ylp.7b23d86dbd0d.css.gz +0 -0
- codex/static_root/assets/VDialog-DXQz0Ylp.css +1 -0
- codex/static_root/assets/VDialog-DXQz0Ylp.css.br +0 -0
- codex/static_root/assets/VDialog-DXQz0Ylp.css.gz +0 -0
- codex/static_root/assets/VDialog-Db4tJYqR.e21a79a5030e.js +1 -0
- codex/static_root/assets/VDialog-Db4tJYqR.e21a79a5030e.js.br +0 -0
- codex/static_root/assets/VDialog-Db4tJYqR.e21a79a5030e.js.gz +0 -0
- codex/static_root/assets/VDialog-Db4tJYqR.js +1 -0
- codex/static_root/assets/VDialog-Db4tJYqR.js.br +0 -0
- codex/static_root/assets/VDialog-Db4tJYqR.js.gz +0 -0
- codex/static_root/assets/{VExpansionPanels-CBPnoy7O.212f4cad7d78.js → VExpansionPanels-DN4yGbOt.163e59e38865.js} +1 -1
- codex/static_root/assets/VExpansionPanels-DN4yGbOt.163e59e38865.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-DN4yGbOt.163e59e38865.js.gz +0 -0
- codex/static_root/assets/{VExpansionPanels-CBPnoy7O.js → VExpansionPanels-DN4yGbOt.js} +1 -1
- codex/static_root/assets/VExpansionPanels-DN4yGbOt.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-DN4yGbOt.js.gz +0 -0
- codex/static_root/assets/{VRadioGroup-C7Zu_Eup.b42735892aec.js → VRadioGroup-D2-PWEfs.ce7644863c25.js} +1 -1
- codex/static_root/assets/VRadioGroup-D2-PWEfs.ce7644863c25.js.br +0 -0
- codex/static_root/assets/VRadioGroup-D2-PWEfs.ce7644863c25.js.gz +0 -0
- codex/static_root/assets/{VRadioGroup-C7Zu_Eup.js → VRadioGroup-D2-PWEfs.js} +1 -1
- codex/static_root/assets/VRadioGroup-D2-PWEfs.js.br +0 -0
- codex/static_root/assets/VRadioGroup-D2-PWEfs.js.gz +0 -0
- codex/static_root/assets/VSelect-DqXJ23Pc.a1360cbed050.js +1 -0
- codex/static_root/assets/VSelect-DqXJ23Pc.a1360cbed050.js.br +0 -0
- codex/static_root/assets/VSelect-DqXJ23Pc.a1360cbed050.js.gz +0 -0
- codex/static_root/assets/VSelect-DqXJ23Pc.js +1 -0
- codex/static_root/assets/VSelect-DqXJ23Pc.js.br +0 -0
- codex/static_root/assets/VSelect-DqXJ23Pc.js.gz +0 -0
- codex/static_root/assets/{VSelectionControl-B42mmzLA.bf64d259ddef.js → VSelectionControl-CxhDNufT.dd7ca99567fc.js} +1 -1
- codex/static_root/assets/VSelectionControl-CxhDNufT.dd7ca99567fc.js.br +0 -0
- codex/static_root/assets/VSelectionControl-CxhDNufT.dd7ca99567fc.js.gz +0 -0
- codex/static_root/assets/{VSelectionControl-B42mmzLA.js → VSelectionControl-CxhDNufT.js} +1 -1
- codex/static_root/assets/VSelectionControl-CxhDNufT.js.br +0 -0
- codex/static_root/assets/VSelectionControl-CxhDNufT.js.gz +0 -0
- codex/static_root/assets/{VSlideGroup-BtfHoWCn.33e2bd94e34a.js → VSlideGroup-DRbthp6q.7365c5542d47.js} +1 -1
- codex/static_root/assets/VSlideGroup-DRbthp6q.7365c5542d47.js.br +0 -0
- codex/static_root/assets/VSlideGroup-DRbthp6q.7365c5542d47.js.gz +0 -0
- codex/static_root/assets/{VSlideGroup-BtfHoWCn.js → VSlideGroup-DRbthp6q.js} +1 -1
- codex/static_root/assets/VSlideGroup-DRbthp6q.js.br +0 -0
- codex/static_root/assets/VSlideGroup-DRbthp6q.js.gz +0 -0
- codex/static_root/assets/{VTable-R3X0iPjV.ee07d9c2ca5f.js → VTable-Cbq-yJos.c884706cac21.js} +1 -1
- codex/static_root/assets/VTable-Cbq-yJos.c884706cac21.js.br +0 -0
- codex/static_root/assets/VTable-Cbq-yJos.c884706cac21.js.gz +0 -0
- codex/static_root/assets/{VTable-R3X0iPjV.js → VTable-Cbq-yJos.js} +1 -1
- codex/static_root/assets/VTable-Cbq-yJos.js.br +0 -0
- codex/static_root/assets/VTable-Cbq-yJos.js.gz +0 -0
- codex/static_root/assets/VTextField-Crc3gdNh.39995ccf4d52.css +1 -0
- codex/static_root/assets/VTextField-Crc3gdNh.39995ccf4d52.css.br +0 -0
- codex/static_root/assets/VTextField-Crc3gdNh.39995ccf4d52.css.gz +0 -0
- codex/static_root/assets/VTextField-Crc3gdNh.css +1 -0
- codex/static_root/assets/VTextField-Crc3gdNh.css.br +0 -0
- codex/static_root/assets/VTextField-Crc3gdNh.css.gz +0 -0
- codex/static_root/assets/VTextField-X5yAw35c.155e276dd747.js +1 -0
- codex/static_root/assets/VTextField-X5yAw35c.155e276dd747.js.br +0 -0
- codex/static_root/assets/VTextField-X5yAw35c.155e276dd747.js.gz +0 -0
- codex/static_root/assets/VTextField-X5yAw35c.js +1 -0
- codex/static_root/assets/VTextField-X5yAw35c.js.br +0 -0
- codex/static_root/assets/VTextField-X5yAw35c.js.gz +0 -0
- codex/static_root/assets/{VWindowItem-DHTDdYfK.f6bf6b893442.js → VWindowItem-CRqhVh-9.cd73d01e0591.js} +1 -1
- codex/static_root/assets/VWindowItem-CRqhVh-9.cd73d01e0591.js.br +0 -0
- codex/static_root/assets/VWindowItem-CRqhVh-9.cd73d01e0591.js.gz +0 -0
- codex/static_root/assets/{VWindowItem-DHTDdYfK.js → VWindowItem-CRqhVh-9.js} +1 -1
- codex/static_root/assets/VWindowItem-CRqhVh-9.js.br +0 -0
- codex/static_root/assets/VWindowItem-CRqhVh-9.js.gz +0 -0
- codex/static_root/assets/{admin-CIWyRJnH.dde0ee029f08.js → admin-BFvQwinN.6cfff21f780a.js} +1 -1
- codex/static_root/assets/admin-BFvQwinN.6cfff21f780a.js.br +0 -0
- codex/static_root/assets/admin-BFvQwinN.6cfff21f780a.js.gz +0 -0
- codex/static_root/assets/{admin-CIWyRJnH.js → admin-BFvQwinN.js} +1 -1
- codex/static_root/assets/admin-BFvQwinN.js.br +0 -0
- codex/static_root/assets/admin-BFvQwinN.js.gz +0 -0
- codex/static_root/assets/admin-menu-Jfmp_Yd8.39fa7a18b3b4.js +1 -0
- codex/static_root/assets/admin-menu-Jfmp_Yd8.39fa7a18b3b4.js.br +0 -0
- codex/static_root/assets/admin-menu-Jfmp_Yd8.39fa7a18b3b4.js.gz +0 -0
- codex/static_root/assets/admin-menu-Jfmp_Yd8.js +1 -0
- codex/static_root/assets/admin-menu-Jfmp_Yd8.js.br +0 -0
- codex/static_root/assets/admin-menu-Jfmp_Yd8.js.gz +0 -0
- codex/static_root/assets/{admin-settings-button-progress-DHIl0C8k.85a213c96423.js → admin-settings-button-progress-BAk-B1sR.cbf73c71330d.js} +1 -1
- codex/static_root/assets/admin-settings-button-progress-BAk-B1sR.cbf73c71330d.js.br +0 -0
- codex/static_root/assets/admin-settings-button-progress-BAk-B1sR.cbf73c71330d.js.gz +0 -0
- codex/static_root/assets/{admin-settings-button-progress-DHIl0C8k.js → admin-settings-button-progress-BAk-B1sR.js} +1 -1
- codex/static_root/assets/admin-settings-button-progress-BAk-B1sR.js.br +0 -0
- codex/static_root/assets/admin-settings-button-progress-BAk-B1sR.js.gz +0 -0
- codex/static_root/assets/browser-CctlSJji.css +1 -0
- codex/static_root/assets/browser-CctlSJji.css.br +0 -0
- codex/static_root/assets/browser-CctlSJji.css.gz +0 -0
- codex/static_root/assets/browser-CctlSJji.d42d796476d2.css +1 -0
- codex/static_root/assets/browser-CctlSJji.d42d796476d2.css.br +0 -0
- codex/static_root/assets/browser-CctlSJji.d42d796476d2.css.gz +0 -0
- codex/static_root/assets/browser-DJnEeVHz.a78c47516b08.js +1 -0
- codex/static_root/assets/browser-DJnEeVHz.a78c47516b08.js.br +0 -0
- codex/static_root/assets/browser-DJnEeVHz.a78c47516b08.js.gz +0 -0
- codex/static_root/assets/browser-DJnEeVHz.js +1 -0
- codex/static_root/assets/browser-DJnEeVHz.js.br +0 -0
- codex/static_root/assets/browser-DJnEeVHz.js.gz +0 -0
- codex/static_root/assets/change-password-dialog-C_EOKOn9.a30e68c6e303.css +1 -0
- codex/static_root/assets/change-password-dialog-C_EOKOn9.a30e68c6e303.css.br +0 -0
- codex/static_root/assets/change-password-dialog-C_EOKOn9.a30e68c6e303.css.gz +0 -0
- codex/static_root/assets/change-password-dialog-C_EOKOn9.css +1 -0
- codex/static_root/assets/change-password-dialog-C_EOKOn9.css.br +0 -0
- codex/static_root/assets/change-password-dialog-C_EOKOn9.css.gz +0 -0
- codex/static_root/assets/change-password-dialog-DJtOQw7K.be7fa5ec653d.js +1 -0
- codex/static_root/assets/change-password-dialog-DJtOQw7K.be7fa5ec653d.js.br +0 -0
- codex/static_root/assets/change-password-dialog-DJtOQw7K.be7fa5ec653d.js.gz +0 -0
- codex/static_root/assets/change-password-dialog-DJtOQw7K.js +1 -0
- codex/static_root/assets/change-password-dialog-DJtOQw7K.js.br +0 -0
- codex/static_root/assets/change-password-dialog-DJtOQw7K.js.gz +0 -0
- codex/static_root/assets/confirm-dialog-54rblwf7.9b5915b112c0.css +1 -0
- codex/static_root/assets/confirm-dialog-54rblwf7.9b5915b112c0.css.br +0 -0
- codex/static_root/assets/confirm-dialog-54rblwf7.css +1 -0
- codex/static_root/assets/confirm-dialog-54rblwf7.css.br +0 -0
- codex/static_root/assets/confirm-dialog-CME4gKSZ.1606233e784c.js +1 -0
- codex/static_root/assets/confirm-dialog-CME4gKSZ.1606233e784c.js.br +0 -0
- codex/static_root/assets/confirm-dialog-CME4gKSZ.1606233e784c.js.gz +0 -0
- codex/static_root/assets/confirm-dialog-CME4gKSZ.js +1 -0
- codex/static_root/assets/confirm-dialog-CME4gKSZ.js.br +0 -0
- codex/static_root/assets/confirm-dialog-CME4gKSZ.js.gz +0 -0
- codex/static_root/assets/{datetime-column-Dnxh9sRh.b6a92a6bcce9.js → datetime-column-D_F30OLW.09cdce0ef96e.js} +1 -1
- codex/static_root/assets/datetime-column-D_F30OLW.09cdce0ef96e.js.br +2 -0
- codex/static_root/assets/datetime-column-D_F30OLW.09cdce0ef96e.js.gz +0 -0
- codex/static_root/assets/{datetime-column-Dnxh9sRh.js → datetime-column-D_F30OLW.js} +1 -1
- codex/static_root/assets/datetime-column-D_F30OLW.js.br +2 -0
- codex/static_root/assets/datetime-column-D_F30OLW.js.gz +0 -0
- codex/static_root/assets/{filter-CmOjoKbH.ea79c4727d92.js → filter-ud5mPZpn.0f0a537959aa.js} +1 -1
- codex/static_root/assets/filter-ud5mPZpn.0f0a537959aa.js.br +0 -0
- codex/static_root/assets/filter-ud5mPZpn.0f0a537959aa.js.gz +0 -0
- codex/static_root/assets/{filter-CmOjoKbH.js → filter-ud5mPZpn.js} +1 -1
- codex/static_root/assets/filter-ud5mPZpn.js.br +0 -0
- codex/static_root/assets/filter-ud5mPZpn.js.gz +0 -0
- codex/static_root/assets/{flag-tab-1PeNvDA9.2fc60db57915.js → flag-tab-k2g6u_vi.3e1da9318af9.js} +1 -1
- codex/static_root/assets/flag-tab-k2g6u_vi.3e1da9318af9.js.br +0 -0
- codex/static_root/assets/flag-tab-k2g6u_vi.3e1da9318af9.js.gz +0 -0
- codex/static_root/assets/{flag-tab-1PeNvDA9.js → flag-tab-k2g6u_vi.js} +1 -1
- codex/static_root/assets/flag-tab-k2g6u_vi.js.br +0 -0
- codex/static_root/assets/flag-tab-k2g6u_vi.js.gz +0 -0
- codex/static_root/assets/{group-tab-Zl_C7M7Z.dbeed7f2d08f.js → group-tab-C6Ykf03Z.ff0cc204013a.js} +1 -1
- codex/static_root/assets/group-tab-C6Ykf03Z.ff0cc204013a.js.br +0 -0
- codex/static_root/assets/group-tab-C6Ykf03Z.ff0cc204013a.js.gz +0 -0
- codex/static_root/assets/{group-tab-Zl_C7M7Z.js → group-tab-C6Ykf03Z.js} +1 -1
- codex/static_root/assets/group-tab-C6Ykf03Z.js.br +0 -0
- codex/static_root/assets/group-tab-C6Ykf03Z.js.gz +0 -0
- codex/static_root/assets/http-error-Ctcws1xe.cfd378a792d2.css +1 -0
- codex/static_root/assets/{http-error-DKulXuTl.95e42988d5d5.css.br → http-error-Ctcws1xe.cfd378a792d2.css.br} +0 -0
- codex/static_root/assets/http-error-Ctcws1xe.cfd378a792d2.css.gz +0 -0
- codex/static_root/assets/http-error-Ctcws1xe.css +1 -0
- codex/static_root/assets/{http-error-DKulXuTl.css.br → http-error-Ctcws1xe.css.br} +0 -0
- codex/static_root/assets/http-error-Ctcws1xe.css.gz +0 -0
- codex/static_root/assets/{http-error-YNrrsTPg.73e9978dc0ce.js → http-error-DQBHK8v5.aea50b1327fd.js} +1 -1
- codex/static_root/assets/http-error-DQBHK8v5.aea50b1327fd.js.br +0 -0
- codex/static_root/assets/http-error-DQBHK8v5.aea50b1327fd.js.gz +0 -0
- codex/static_root/assets/{http-error-YNrrsTPg.js → http-error-DQBHK8v5.js} +1 -1
- codex/static_root/assets/http-error-DQBHK8v5.js.br +0 -0
- codex/static_root/assets/http-error-DQBHK8v5.js.gz +0 -0
- codex/static_root/assets/index-ClGiHwWc.0717bacf5135.js +1 -0
- codex/static_root/assets/index-ClGiHwWc.0717bacf5135.js.br +0 -0
- codex/static_root/assets/index-ClGiHwWc.0717bacf5135.js.gz +0 -0
- codex/static_root/assets/index-ClGiHwWc.js +1 -0
- codex/static_root/assets/index-ClGiHwWc.js.br +0 -0
- codex/static_root/assets/index-ClGiHwWc.js.gz +0 -0
- codex/static_root/assets/library-tab-BpinbqAu.53fa2625e727.js +1 -0
- codex/static_root/assets/library-tab-BpinbqAu.53fa2625e727.js.br +0 -0
- codex/static_root/assets/library-tab-BpinbqAu.53fa2625e727.js.gz +0 -0
- codex/static_root/assets/library-tab-BpinbqAu.js +1 -0
- codex/static_root/assets/library-tab-BpinbqAu.js.br +0 -0
- codex/static_root/assets/library-tab-BpinbqAu.js.gz +0 -0
- codex/static_root/assets/library-tab-Cat0MAK5.5911f022188e.css +1 -0
- codex/static_root/assets/library-tab-Cat0MAK5.5911f022188e.css.br +0 -0
- codex/static_root/assets/library-tab-Cat0MAK5.5911f022188e.css.gz +0 -0
- codex/static_root/assets/library-tab-Cat0MAK5.css +1 -0
- codex/static_root/assets/library-tab-Cat0MAK5.css.br +0 -0
- codex/static_root/assets/library-tab-Cat0MAK5.css.gz +0 -0
- codex/static_root/assets/main-BVKrDunc.1c6f8cdc3afb.js +35 -0
- codex/static_root/assets/main-BVKrDunc.1c6f8cdc3afb.js.br +0 -0
- codex/static_root/assets/main-BVKrDunc.1c6f8cdc3afb.js.gz +0 -0
- codex/static_root/assets/main-BVKrDunc.js +35 -0
- codex/static_root/assets/main-BVKrDunc.js.br +0 -0
- codex/static_root/assets/main-BVKrDunc.js.gz +0 -0
- codex/static_root/assets/pager-full-pdf-C1ZSyXfG.f2e95b19621c.js +1 -0
- codex/static_root/assets/pager-full-pdf-C1ZSyXfG.f2e95b19621c.js.br +0 -0
- codex/static_root/assets/pager-full-pdf-C1ZSyXfG.f2e95b19621c.js.gz +0 -0
- codex/static_root/assets/pager-full-pdf-C1ZSyXfG.js +1 -0
- codex/static_root/assets/pager-full-pdf-C1ZSyXfG.js.br +0 -0
- codex/static_root/assets/pager-full-pdf-C1ZSyXfG.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-Cx_9nh6D.546121fa7a0d.css +1 -0
- codex/static_root/assets/pagination-toolbar-Cx_9nh6D.546121fa7a0d.css.br +0 -0
- codex/static_root/assets/pagination-toolbar-Cx_9nh6D.546121fa7a0d.css.gz +0 -0
- codex/static_root/assets/pagination-toolbar-Cx_9nh6D.css +1 -0
- codex/static_root/assets/pagination-toolbar-Cx_9nh6D.css.br +0 -0
- codex/static_root/assets/pagination-toolbar-Cx_9nh6D.css.gz +0 -0
- codex/static_root/assets/pagination-toolbar-Diad0EdD.140911bf86af.js +1 -0
- codex/static_root/assets/pagination-toolbar-Diad0EdD.140911bf86af.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-Diad0EdD.140911bf86af.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-Diad0EdD.js +1 -0
- codex/static_root/assets/pagination-toolbar-Diad0EdD.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-Diad0EdD.js.gz +0 -0
- codex/static_root/assets/{pdf-doc-BbuJd_VS.225d8590d020.js → pdf-doc-b-GyNR6z.c9d18f0d36ed.js} +1 -1
- codex/static_root/assets/pdf-doc-b-GyNR6z.c9d18f0d36ed.js.br +0 -0
- codex/static_root/assets/pdf-doc-b-GyNR6z.c9d18f0d36ed.js.gz +0 -0
- codex/static_root/assets/{pdf-doc-BbuJd_VS.js → pdf-doc-b-GyNR6z.js} +1 -1
- codex/static_root/assets/pdf-doc-b-GyNR6z.js.br +0 -0
- codex/static_root/assets/pdf-doc-b-GyNR6z.js.gz +0 -0
- codex/static_root/assets/reader-2up6WEuE.c56ad81d14c6.js +2 -0
- codex/static_root/assets/reader-2up6WEuE.c56ad81d14c6.js.br +0 -0
- codex/static_root/assets/reader-2up6WEuE.c56ad81d14c6.js.gz +0 -0
- codex/static_root/assets/reader-2up6WEuE.js +2 -0
- codex/static_root/assets/reader-2up6WEuE.js.br +0 -0
- codex/static_root/assets/reader-2up6WEuE.js.gz +0 -0
- codex/static_root/assets/reader-Dd2KmdCN.115d4bfe9280.css +1 -0
- codex/static_root/assets/reader-Dd2KmdCN.115d4bfe9280.css.br +0 -0
- codex/static_root/assets/reader-Dd2KmdCN.115d4bfe9280.css.gz +0 -0
- codex/static_root/assets/reader-Dd2KmdCN.css +1 -0
- codex/static_root/assets/reader-Dd2KmdCN.css.br +0 -0
- codex/static_root/assets/reader-Dd2KmdCN.css.gz +0 -0
- codex/static_root/assets/relation-chips-piYv1IcD.f8a2ae79de89.js +1 -0
- codex/static_root/assets/relation-chips-piYv1IcD.f8a2ae79de89.js.br +0 -0
- codex/static_root/assets/relation-chips-piYv1IcD.f8a2ae79de89.js.gz +0 -0
- codex/static_root/assets/relation-chips-piYv1IcD.js +1 -0
- codex/static_root/assets/relation-chips-piYv1IcD.js.br +0 -0
- codex/static_root/assets/relation-chips-piYv1IcD.js.gz +0 -0
- codex/static_root/assets/{settings-drawer-C-hgtHJt.0eaf7e00ee9b.js → settings-drawer-yVoY-WCS.1240cc47a246.js} +2 -2
- codex/static_root/assets/settings-drawer-yVoY-WCS.1240cc47a246.js.br +0 -0
- codex/static_root/assets/settings-drawer-yVoY-WCS.1240cc47a246.js.gz +0 -0
- codex/static_root/assets/{settings-drawer-C-hgtHJt.js → settings-drawer-yVoY-WCS.js} +2 -2
- codex/static_root/assets/settings-drawer-yVoY-WCS.js.br +0 -0
- codex/static_root/assets/settings-drawer-yVoY-WCS.js.gz +0 -0
- codex/static_root/assets/{stats-tab-BAYTqQNg.5f715428c394.css → stats-tab-BlXGStge.9fdb0106124d.css} +1 -1
- codex/static_root/assets/stats-tab-BlXGStge.9fdb0106124d.css.br +0 -0
- codex/static_root/assets/stats-tab-BlXGStge.9fdb0106124d.css.gz +0 -0
- codex/static_root/assets/{stats-tab-BAYTqQNg.css → stats-tab-BlXGStge.css} +1 -1
- codex/static_root/assets/stats-tab-BlXGStge.css.br +0 -0
- codex/static_root/assets/stats-tab-BlXGStge.css.gz +0 -0
- codex/static_root/assets/{stats-tab-C7iJCFa5.f1039eba03c2.js → stats-tab-bqSPLvTp.05106cb03ef0.js} +1 -1
- codex/static_root/assets/stats-tab-bqSPLvTp.05106cb03ef0.js.br +0 -0
- codex/static_root/assets/stats-tab-bqSPLvTp.05106cb03ef0.js.gz +0 -0
- codex/static_root/assets/{stats-tab-C7iJCFa5.js → stats-tab-bqSPLvTp.js} +1 -1
- codex/static_root/assets/stats-tab-bqSPLvTp.js.br +0 -0
- codex/static_root/assets/stats-tab-bqSPLvTp.js.gz +0 -0
- codex/static_root/assets/task-tab-DWPKaGPT.da4df28dde5c.js +1 -0
- codex/static_root/assets/task-tab-DWPKaGPT.da4df28dde5c.js.br +0 -0
- codex/static_root/assets/task-tab-DWPKaGPT.da4df28dde5c.js.gz +0 -0
- codex/static_root/assets/task-tab-DWPKaGPT.js +1 -0
- codex/static_root/assets/task-tab-DWPKaGPT.js.br +0 -0
- codex/static_root/assets/task-tab-DWPKaGPT.js.gz +0 -0
- codex/static_root/assets/task-tab-EGlhcKTH.478e74041f80.css +1 -0
- codex/static_root/assets/{task-tab--cXi48kg.5dfd6890a1c2.css.br → task-tab-EGlhcKTH.478e74041f80.css.br} +1 -1
- codex/static_root/assets/task-tab-EGlhcKTH.478e74041f80.css.gz +0 -0
- codex/static_root/assets/task-tab-EGlhcKTH.css +1 -0
- codex/static_root/assets/{task-tab--cXi48kg.css.br → task-tab-EGlhcKTH.css.br} +1 -1
- codex/static_root/assets/task-tab-EGlhcKTH.css.gz +0 -0
- codex/static_root/assets/{transition-CQVFPpmZ.ba35e475243a.js → transition-DWVQ2EZ3.0bdfaa37b937.js} +1 -1
- codex/static_root/assets/transition-DWVQ2EZ3.0bdfaa37b937.js.br +0 -0
- codex/static_root/assets/transition-DWVQ2EZ3.0bdfaa37b937.js.gz +0 -0
- codex/static_root/assets/{transition-CQVFPpmZ.js → transition-DWVQ2EZ3.js} +1 -1
- codex/static_root/assets/transition-DWVQ2EZ3.js.br +0 -0
- codex/static_root/assets/transition-DWVQ2EZ3.js.gz +0 -0
- codex/static_root/assets/unauthorized-CEGD20tR.064b0993a944.js +1 -0
- codex/static_root/assets/unauthorized-CEGD20tR.064b0993a944.js.br +0 -0
- codex/static_root/assets/unauthorized-CEGD20tR.064b0993a944.js.gz +0 -0
- codex/static_root/assets/unauthorized-CEGD20tR.js +1 -0
- codex/static_root/assets/unauthorized-CEGD20tR.js.br +0 -0
- codex/static_root/assets/unauthorized-CEGD20tR.js.gz +0 -0
- codex/static_root/assets/{unauthorized-BjhIc97q.728511c92cd0.css → unauthorized-DyojW2ic.css} +1 -1
- codex/static_root/assets/unauthorized-DyojW2ic.css.br +0 -0
- codex/static_root/assets/unauthorized-DyojW2ic.css.gz +0 -0
- codex/static_root/assets/{unauthorized-BjhIc97q.css → unauthorized-DyojW2ic.feefa7628a23.css} +1 -1
- codex/static_root/assets/unauthorized-DyojW2ic.feefa7628a23.css.br +0 -0
- codex/static_root/assets/unauthorized-DyojW2ic.feefa7628a23.css.gz +0 -0
- codex/static_root/assets/{user-tab-icKcK_Qd.c29142ed5212.js → user-tab-EsokzMCB.b0acc46b56a3.js} +1 -1
- codex/static_root/assets/user-tab-EsokzMCB.b0acc46b56a3.js.br +0 -0
- codex/static_root/assets/user-tab-EsokzMCB.b0acc46b56a3.js.gz +0 -0
- codex/static_root/assets/{user-tab-icKcK_Qd.js → user-tab-EsokzMCB.js} +1 -1
- codex/static_root/assets/user-tab-EsokzMCB.js.br +0 -0
- codex/static_root/assets/user-tab-EsokzMCB.js.gz +0 -0
- codex/static_root/{manifest.3eee2b4822b7.json → manifest.4a38de3db1c5.json} +275 -275
- codex/static_root/manifest.4a38de3db1c5.json.br +0 -0
- codex/static_root/manifest.4a38de3db1c5.json.gz +0 -0
- codex/static_root/manifest.json +275 -275
- codex/static_root/manifest.json.br +0 -0
- codex/static_root/manifest.json.gz +0 -0
- codex/static_root/staticfiles.json +1 -1
- codex/urls/api/browser.py +9 -0
- codex/urls/api/reader.py +8 -4
- codex/util.py +11 -0
- codex/views/admin/tasks.py +1 -2
- codex/views/bookmark.py +1 -1
- codex/views/browser/annotate/card.py +12 -0
- codex/views/browser/annotate/order.py +13 -9
- codex/views/browser/download.py +64 -0
- codex/views/browser/filters/group.py +2 -0
- codex/views/browser/validate.py +7 -3
- codex/views/download.py +5 -5
- codex/views/reader/page.py +11 -6
- codex/views/reader/params.py +1 -1
- codex/views/session.py +2 -1
- codex/views/timezone.py +2 -14
- {codex-1.7.0a2.dist-info → codex-1.7.2.dist-info}/METADATA +5 -7
- {codex-1.7.0a2.dist-info → codex-1.7.2.dist-info}/RECORD +328 -325
- codex/static_root/assets/VCheckbox-CCOzQpCw.a65ad95bd21a.js +0 -1
- codex/static_root/assets/VCheckbox-CCOzQpCw.a65ad95bd21a.js.br +0 -0
- codex/static_root/assets/VCheckbox-CCOzQpCw.a65ad95bd21a.js.gz +0 -0
- codex/static_root/assets/VCheckbox-CCOzQpCw.js +0 -1
- codex/static_root/assets/VCheckbox-CCOzQpCw.js.br +0 -0
- codex/static_root/assets/VCheckbox-CCOzQpCw.js.gz +0 -0
- codex/static_root/assets/VCheckboxBtn-DnBH3a96.876fda35b85a.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-DnBH3a96.876fda35b85a.js.gz +0 -0
- codex/static_root/assets/VCheckboxBtn-DnBH3a96.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-DnBH3a96.js.gz +0 -0
- codex/static_root/assets/VCombobox-DwwoR4yO.e7a4db7ab7f0.js +0 -1
- codex/static_root/assets/VCombobox-DwwoR4yO.e7a4db7ab7f0.js.br +0 -0
- codex/static_root/assets/VCombobox-DwwoR4yO.e7a4db7ab7f0.js.gz +0 -0
- codex/static_root/assets/VCombobox-DwwoR4yO.js +0 -1
- codex/static_root/assets/VCombobox-DwwoR4yO.js.br +0 -0
- codex/static_root/assets/VCombobox-DwwoR4yO.js.gz +0 -0
- codex/static_root/assets/VDialog-CSvrKKb2.css +0 -1
- codex/static_root/assets/VDialog-CSvrKKb2.css.br +0 -0
- codex/static_root/assets/VDialog-CSvrKKb2.css.gz +0 -0
- codex/static_root/assets/VDialog-CSvrKKb2.fd4d50904b17.css +0 -1
- codex/static_root/assets/VDialog-CSvrKKb2.fd4d50904b17.css.br +0 -0
- codex/static_root/assets/VDialog-CSvrKKb2.fd4d50904b17.css.gz +0 -0
- codex/static_root/assets/VDialog-DbN2FfmF.b2843f79d90f.js +0 -1
- codex/static_root/assets/VDialog-DbN2FfmF.b2843f79d90f.js.br +0 -0
- codex/static_root/assets/VDialog-DbN2FfmF.b2843f79d90f.js.gz +0 -0
- codex/static_root/assets/VDialog-DbN2FfmF.js +0 -1
- codex/static_root/assets/VDialog-DbN2FfmF.js.br +0 -0
- codex/static_root/assets/VDialog-DbN2FfmF.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-CBPnoy7O.212f4cad7d78.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-CBPnoy7O.212f4cad7d78.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-CBPnoy7O.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-CBPnoy7O.js.gz +0 -0
- codex/static_root/assets/VRadioGroup-C7Zu_Eup.b42735892aec.js.br +0 -0
- codex/static_root/assets/VRadioGroup-C7Zu_Eup.b42735892aec.js.gz +0 -0
- codex/static_root/assets/VRadioGroup-C7Zu_Eup.js.br +0 -0
- codex/static_root/assets/VRadioGroup-C7Zu_Eup.js.gz +0 -0
- codex/static_root/assets/VSelect-BTy7SKk0.dee138de5dd0.js +0 -1
- codex/static_root/assets/VSelect-BTy7SKk0.dee138de5dd0.js.br +0 -0
- codex/static_root/assets/VSelect-BTy7SKk0.dee138de5dd0.js.gz +0 -0
- codex/static_root/assets/VSelect-BTy7SKk0.js +0 -1
- codex/static_root/assets/VSelect-BTy7SKk0.js.br +0 -0
- codex/static_root/assets/VSelect-BTy7SKk0.js.gz +0 -0
- codex/static_root/assets/VSelectionControl-B42mmzLA.bf64d259ddef.js.br +0 -0
- codex/static_root/assets/VSelectionControl-B42mmzLA.bf64d259ddef.js.gz +0 -0
- codex/static_root/assets/VSelectionControl-B42mmzLA.js.br +0 -0
- codex/static_root/assets/VSelectionControl-B42mmzLA.js.gz +0 -0
- codex/static_root/assets/VSlideGroup-BtfHoWCn.33e2bd94e34a.js.br +0 -0
- codex/static_root/assets/VSlideGroup-BtfHoWCn.33e2bd94e34a.js.gz +0 -0
- codex/static_root/assets/VSlideGroup-BtfHoWCn.js.br +0 -0
- codex/static_root/assets/VSlideGroup-BtfHoWCn.js.gz +0 -0
- codex/static_root/assets/VTable-R3X0iPjV.ee07d9c2ca5f.js.br +0 -0
- codex/static_root/assets/VTable-R3X0iPjV.ee07d9c2ca5f.js.gz +0 -0
- codex/static_root/assets/VTable-R3X0iPjV.js.br +0 -0
- codex/static_root/assets/VTable-R3X0iPjV.js.gz +0 -0
- codex/static_root/assets/VTextField-BnCEPZIq.b0c32b2c0b14.css +0 -1
- codex/static_root/assets/VTextField-BnCEPZIq.b0c32b2c0b14.css.br +0 -0
- codex/static_root/assets/VTextField-BnCEPZIq.b0c32b2c0b14.css.gz +0 -0
- codex/static_root/assets/VTextField-BnCEPZIq.css +0 -1
- codex/static_root/assets/VTextField-BnCEPZIq.css.br +0 -0
- codex/static_root/assets/VTextField-BnCEPZIq.css.gz +0 -0
- codex/static_root/assets/VTextField-D9pqgz_R.47beb9e7e547.js +0 -1
- codex/static_root/assets/VTextField-D9pqgz_R.47beb9e7e547.js.br +0 -0
- codex/static_root/assets/VTextField-D9pqgz_R.47beb9e7e547.js.gz +0 -0
- codex/static_root/assets/VTextField-D9pqgz_R.js +0 -1
- codex/static_root/assets/VTextField-D9pqgz_R.js.br +0 -0
- codex/static_root/assets/VTextField-D9pqgz_R.js.gz +0 -0
- codex/static_root/assets/VWindowItem-DHTDdYfK.f6bf6b893442.js.br +0 -0
- codex/static_root/assets/VWindowItem-DHTDdYfK.f6bf6b893442.js.gz +0 -0
- codex/static_root/assets/VWindowItem-DHTDdYfK.js.br +0 -0
- codex/static_root/assets/VWindowItem-DHTDdYfK.js.gz +0 -0
- codex/static_root/assets/admin-CIWyRJnH.dde0ee029f08.js.br +0 -0
- codex/static_root/assets/admin-CIWyRJnH.dde0ee029f08.js.gz +0 -0
- codex/static_root/assets/admin-CIWyRJnH.js.br +0 -0
- codex/static_root/assets/admin-CIWyRJnH.js.gz +0 -0
- codex/static_root/assets/admin-menu-BHOUwxhf.1ed26b58fb9f.js +0 -1
- codex/static_root/assets/admin-menu-BHOUwxhf.1ed26b58fb9f.js.br +0 -0
- codex/static_root/assets/admin-menu-BHOUwxhf.1ed26b58fb9f.js.gz +0 -0
- codex/static_root/assets/admin-menu-BHOUwxhf.js +0 -1
- codex/static_root/assets/admin-menu-BHOUwxhf.js.br +0 -0
- codex/static_root/assets/admin-menu-BHOUwxhf.js.gz +0 -0
- codex/static_root/assets/admin-settings-button-progress-DHIl0C8k.85a213c96423.js.br +0 -0
- codex/static_root/assets/admin-settings-button-progress-DHIl0C8k.85a213c96423.js.gz +0 -0
- codex/static_root/assets/admin-settings-button-progress-DHIl0C8k.js.br +0 -0
- codex/static_root/assets/admin-settings-button-progress-DHIl0C8k.js.gz +0 -0
- codex/static_root/assets/browser-6T4uwUjJ.7dd4a7f74df6.js +0 -1
- codex/static_root/assets/browser-6T4uwUjJ.7dd4a7f74df6.js.br +0 -0
- codex/static_root/assets/browser-6T4uwUjJ.7dd4a7f74df6.js.gz +0 -0
- codex/static_root/assets/browser-6T4uwUjJ.js +0 -1
- codex/static_root/assets/browser-6T4uwUjJ.js.br +0 -0
- codex/static_root/assets/browser-6T4uwUjJ.js.gz +0 -0
- codex/static_root/assets/browser-Br5CorL4.6e2a416309d5.css +0 -1
- codex/static_root/assets/browser-Br5CorL4.6e2a416309d5.css.br +0 -0
- codex/static_root/assets/browser-Br5CorL4.6e2a416309d5.css.gz +0 -0
- codex/static_root/assets/browser-Br5CorL4.css +0 -1
- codex/static_root/assets/browser-Br5CorL4.css.br +0 -0
- codex/static_root/assets/browser-Br5CorL4.css.gz +0 -0
- codex/static_root/assets/change-password-dialog-BfiQBpUn.48db4c906920.js +0 -1
- codex/static_root/assets/change-password-dialog-BfiQBpUn.48db4c906920.js.br +0 -0
- codex/static_root/assets/change-password-dialog-BfiQBpUn.48db4c906920.js.gz +0 -0
- codex/static_root/assets/change-password-dialog-BfiQBpUn.js +0 -1
- codex/static_root/assets/change-password-dialog-BfiQBpUn.js.br +0 -0
- codex/static_root/assets/change-password-dialog-BfiQBpUn.js.gz +0 -0
- codex/static_root/assets/change-password-dialog-DrIXdKUC.217574b45b02.css +0 -1
- codex/static_root/assets/change-password-dialog-DrIXdKUC.217574b45b02.css.br +0 -0
- codex/static_root/assets/change-password-dialog-DrIXdKUC.217574b45b02.css.gz +0 -0
- codex/static_root/assets/change-password-dialog-DrIXdKUC.css +0 -1
- codex/static_root/assets/change-password-dialog-DrIXdKUC.css.br +0 -0
- codex/static_root/assets/change-password-dialog-DrIXdKUC.css.gz +0 -0
- codex/static_root/assets/confirm-dialog-B7w6z2rf.472011c06253.css +0 -1
- codex/static_root/assets/confirm-dialog-B7w6z2rf.css +0 -1
- codex/static_root/assets/confirm-dialog-Iyuhxfyi.cf28325e58b7.js +0 -1
- codex/static_root/assets/confirm-dialog-Iyuhxfyi.cf28325e58b7.js.br +0 -0
- codex/static_root/assets/confirm-dialog-Iyuhxfyi.cf28325e58b7.js.gz +0 -0
- codex/static_root/assets/confirm-dialog-Iyuhxfyi.js +0 -1
- codex/static_root/assets/confirm-dialog-Iyuhxfyi.js.br +0 -0
- codex/static_root/assets/confirm-dialog-Iyuhxfyi.js.gz +0 -0
- codex/static_root/assets/datetime-column-Dnxh9sRh.b6a92a6bcce9.js.br +0 -0
- codex/static_root/assets/datetime-column-Dnxh9sRh.b6a92a6bcce9.js.gz +0 -0
- codex/static_root/assets/datetime-column-Dnxh9sRh.js.br +0 -0
- codex/static_root/assets/datetime-column-Dnxh9sRh.js.gz +0 -0
- codex/static_root/assets/filter-CmOjoKbH.ea79c4727d92.js.br +0 -0
- codex/static_root/assets/filter-CmOjoKbH.ea79c4727d92.js.gz +0 -0
- codex/static_root/assets/filter-CmOjoKbH.js.br +0 -0
- codex/static_root/assets/filter-CmOjoKbH.js.gz +0 -0
- codex/static_root/assets/flag-tab-1PeNvDA9.2fc60db57915.js.br +0 -0
- codex/static_root/assets/flag-tab-1PeNvDA9.2fc60db57915.js.gz +0 -0
- codex/static_root/assets/flag-tab-1PeNvDA9.js.br +0 -0
- codex/static_root/assets/flag-tab-1PeNvDA9.js.gz +0 -0
- codex/static_root/assets/group-tab-Zl_C7M7Z.dbeed7f2d08f.js.br +0 -0
- codex/static_root/assets/group-tab-Zl_C7M7Z.dbeed7f2d08f.js.gz +0 -0
- codex/static_root/assets/group-tab-Zl_C7M7Z.js.br +0 -0
- codex/static_root/assets/group-tab-Zl_C7M7Z.js.gz +0 -0
- codex/static_root/assets/http-error-DKulXuTl.95e42988d5d5.css +0 -1
- codex/static_root/assets/http-error-DKulXuTl.95e42988d5d5.css.gz +0 -0
- codex/static_root/assets/http-error-DKulXuTl.css +0 -1
- codex/static_root/assets/http-error-DKulXuTl.css.gz +0 -0
- codex/static_root/assets/http-error-YNrrsTPg.73e9978dc0ce.js.br +0 -0
- codex/static_root/assets/http-error-YNrrsTPg.73e9978dc0ce.js.gz +0 -0
- codex/static_root/assets/http-error-YNrrsTPg.js.br +0 -0
- codex/static_root/assets/http-error-YNrrsTPg.js.gz +0 -0
- codex/static_root/assets/index-j5K-C_JC.65c2dc5af141.js +0 -1
- codex/static_root/assets/index-j5K-C_JC.65c2dc5af141.js.br +0 -0
- codex/static_root/assets/index-j5K-C_JC.65c2dc5af141.js.gz +0 -0
- codex/static_root/assets/index-j5K-C_JC.js +0 -1
- codex/static_root/assets/index-j5K-C_JC.js.br +0 -0
- codex/static_root/assets/index-j5K-C_JC.js.gz +0 -0
- codex/static_root/assets/library-tab-CxKs8G-K.c6bfd6d53b17.js +0 -1
- codex/static_root/assets/library-tab-CxKs8G-K.c6bfd6d53b17.js.br +0 -0
- codex/static_root/assets/library-tab-CxKs8G-K.c6bfd6d53b17.js.gz +0 -0
- codex/static_root/assets/library-tab-CxKs8G-K.js +0 -1
- codex/static_root/assets/library-tab-CxKs8G-K.js.br +0 -0
- codex/static_root/assets/library-tab-CxKs8G-K.js.gz +0 -0
- codex/static_root/assets/library-tab-Wew8YOLv.0c1780a6b68e.css +0 -1
- codex/static_root/assets/library-tab-Wew8YOLv.0c1780a6b68e.css.br +0 -0
- codex/static_root/assets/library-tab-Wew8YOLv.0c1780a6b68e.css.gz +0 -0
- codex/static_root/assets/library-tab-Wew8YOLv.css +0 -1
- codex/static_root/assets/library-tab-Wew8YOLv.css.br +0 -0
- codex/static_root/assets/library-tab-Wew8YOLv.css.gz +0 -0
- codex/static_root/assets/main-H14uUxuN.cc1511f0f146.js +0 -35
- codex/static_root/assets/main-H14uUxuN.cc1511f0f146.js.br +0 -0
- codex/static_root/assets/main-H14uUxuN.cc1511f0f146.js.gz +0 -0
- codex/static_root/assets/main-H14uUxuN.js +0 -35
- codex/static_root/assets/main-H14uUxuN.js.br +0 -0
- codex/static_root/assets/main-H14uUxuN.js.gz +0 -0
- codex/static_root/assets/pager-full-pdf-DcRg28qt.ca9cdb9619ff.js +0 -1
- codex/static_root/assets/pager-full-pdf-DcRg28qt.ca9cdb9619ff.js.br +0 -0
- codex/static_root/assets/pager-full-pdf-DcRg28qt.ca9cdb9619ff.js.gz +0 -0
- codex/static_root/assets/pager-full-pdf-DcRg28qt.js +0 -1
- codex/static_root/assets/pager-full-pdf-DcRg28qt.js.br +0 -0
- codex/static_root/assets/pager-full-pdf-DcRg28qt.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-BgoV4zqc.ab5fa1be17a3.js +0 -1
- codex/static_root/assets/pagination-toolbar-BgoV4zqc.ab5fa1be17a3.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-BgoV4zqc.ab5fa1be17a3.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-BgoV4zqc.js +0 -1
- codex/static_root/assets/pagination-toolbar-BgoV4zqc.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-BgoV4zqc.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-DGrxp2OD.css +0 -1
- codex/static_root/assets/pagination-toolbar-DGrxp2OD.css.br +0 -0
- codex/static_root/assets/pagination-toolbar-DGrxp2OD.css.gz +0 -0
- codex/static_root/assets/pagination-toolbar-DGrxp2OD.f960a624f04f.css +0 -1
- codex/static_root/assets/pagination-toolbar-DGrxp2OD.f960a624f04f.css.br +0 -0
- codex/static_root/assets/pagination-toolbar-DGrxp2OD.f960a624f04f.css.gz +0 -0
- codex/static_root/assets/pdf-doc-BbuJd_VS.225d8590d020.js.br +0 -0
- codex/static_root/assets/pdf-doc-BbuJd_VS.225d8590d020.js.gz +0 -0
- codex/static_root/assets/pdf-doc-BbuJd_VS.js.br +0 -0
- codex/static_root/assets/pdf-doc-BbuJd_VS.js.gz +0 -0
- codex/static_root/assets/reader-DORea4Al.d8e756bb0027.js +0 -2
- codex/static_root/assets/reader-DORea4Al.d8e756bb0027.js.br +0 -0
- codex/static_root/assets/reader-DORea4Al.d8e756bb0027.js.gz +0 -0
- codex/static_root/assets/reader-DORea4Al.js +0 -2
- codex/static_root/assets/reader-DORea4Al.js.br +0 -0
- codex/static_root/assets/reader-DORea4Al.js.gz +0 -0
- codex/static_root/assets/reader-OpKdTZ_B.css +0 -1
- codex/static_root/assets/reader-OpKdTZ_B.css.br +0 -0
- codex/static_root/assets/reader-OpKdTZ_B.css.gz +0 -0
- codex/static_root/assets/reader-OpKdTZ_B.ebd1512b7014.css +0 -1
- codex/static_root/assets/reader-OpKdTZ_B.ebd1512b7014.css.br +0 -0
- codex/static_root/assets/reader-OpKdTZ_B.ebd1512b7014.css.gz +0 -0
- codex/static_root/assets/relation-chips-kqofGdNg.0c7a53962f2b.js +0 -1
- codex/static_root/assets/relation-chips-kqofGdNg.0c7a53962f2b.js.br +0 -0
- codex/static_root/assets/relation-chips-kqofGdNg.0c7a53962f2b.js.gz +0 -0
- codex/static_root/assets/relation-chips-kqofGdNg.js +0 -1
- codex/static_root/assets/relation-chips-kqofGdNg.js.br +0 -0
- codex/static_root/assets/relation-chips-kqofGdNg.js.gz +0 -0
- codex/static_root/assets/settings-drawer-C-hgtHJt.0eaf7e00ee9b.js.br +0 -0
- codex/static_root/assets/settings-drawer-C-hgtHJt.0eaf7e00ee9b.js.gz +0 -0
- codex/static_root/assets/settings-drawer-C-hgtHJt.js.br +0 -0
- codex/static_root/assets/settings-drawer-C-hgtHJt.js.gz +0 -0
- codex/static_root/assets/stats-tab-BAYTqQNg.5f715428c394.css.br +0 -0
- codex/static_root/assets/stats-tab-BAYTqQNg.5f715428c394.css.gz +0 -0
- codex/static_root/assets/stats-tab-BAYTqQNg.css.br +0 -0
- codex/static_root/assets/stats-tab-BAYTqQNg.css.gz +0 -0
- codex/static_root/assets/stats-tab-C7iJCFa5.f1039eba03c2.js.br +0 -0
- codex/static_root/assets/stats-tab-C7iJCFa5.f1039eba03c2.js.gz +0 -0
- codex/static_root/assets/stats-tab-C7iJCFa5.js.br +0 -0
- codex/static_root/assets/stats-tab-C7iJCFa5.js.gz +0 -0
- codex/static_root/assets/task-tab--cXi48kg.5dfd6890a1c2.css +0 -1
- codex/static_root/assets/task-tab--cXi48kg.5dfd6890a1c2.css.gz +0 -0
- codex/static_root/assets/task-tab--cXi48kg.css +0 -1
- codex/static_root/assets/task-tab--cXi48kg.css.gz +0 -0
- codex/static_root/assets/task-tab-Drfz5uaT.0b387dcd4f5a.js +0 -1
- codex/static_root/assets/task-tab-Drfz5uaT.0b387dcd4f5a.js.br +0 -0
- codex/static_root/assets/task-tab-Drfz5uaT.0b387dcd4f5a.js.gz +0 -0
- codex/static_root/assets/task-tab-Drfz5uaT.js +0 -1
- codex/static_root/assets/task-tab-Drfz5uaT.js.br +0 -0
- codex/static_root/assets/task-tab-Drfz5uaT.js.gz +0 -0
- codex/static_root/assets/transition-CQVFPpmZ.ba35e475243a.js.br +0 -0
- codex/static_root/assets/transition-CQVFPpmZ.ba35e475243a.js.gz +0 -0
- codex/static_root/assets/transition-CQVFPpmZ.js.br +0 -0
- codex/static_root/assets/transition-CQVFPpmZ.js.gz +0 -0
- codex/static_root/assets/unauthorized-BjhIc97q.728511c92cd0.css.br +0 -0
- codex/static_root/assets/unauthorized-BjhIc97q.728511c92cd0.css.gz +0 -0
- codex/static_root/assets/unauthorized-BjhIc97q.css.br +0 -0
- codex/static_root/assets/unauthorized-BjhIc97q.css.gz +0 -0
- codex/static_root/assets/unauthorized-Cfxq6rru.968d6e6e57bd.js +0 -1
- codex/static_root/assets/unauthorized-Cfxq6rru.968d6e6e57bd.js.br +0 -0
- codex/static_root/assets/unauthorized-Cfxq6rru.968d6e6e57bd.js.gz +0 -0
- codex/static_root/assets/unauthorized-Cfxq6rru.js +0 -1
- codex/static_root/assets/unauthorized-Cfxq6rru.js.br +0 -0
- codex/static_root/assets/unauthorized-Cfxq6rru.js.gz +0 -0
- codex/static_root/assets/user-tab-icKcK_Qd.c29142ed5212.js.br +0 -0
- codex/static_root/assets/user-tab-icKcK_Qd.c29142ed5212.js.gz +0 -0
- codex/static_root/assets/user-tab-icKcK_Qd.js.br +0 -0
- codex/static_root/assets/user-tab-icKcK_Qd.js.gz +0 -0
- codex/static_root/manifest.3eee2b4822b7.json.br +0 -0
- codex/static_root/manifest.3eee2b4822b7.json.gz +0 -0
- {codex-1.7.0a2.dist-info → codex-1.7.2.dist-info}/LICENSE +0 -0
- {codex-1.7.0a2.dist-info → codex-1.7.2.dist-info}/WHEEL +0 -0
- {codex-1.7.0a2.dist-info → codex-1.7.2.dist-info}/entry_points.txt +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/admin-settings-button-progress-
|
|
2
|
-
import{_ as U,o as C,c as B,a7 as Ze,B as je,w as k,ai as Ve,i as Q,ao as Pe,ap as De,b8 as Ke,y as ee,H as re,m as te,u as N,r as A,a as s,b as E,C as P,D as xe,E as O,N as Qe,as as Be,p as ae,W as oe,g as ne,h as le,aP as ue,t as Z,aQ as ce,aR as Ee,aT as M,f as y,l as Re,q as F,b9 as Ie,ba as Je,bb as et,A as Y,L as x,K as tt,aM as at,Y as $e,bc as ot,bd as Oe,e as Me,be as nt,bf as G,bg as Le,bh as Ae,bi as lt,v as Ne,bj as Ue,aU as X,bk as He,bl as st,bm as it,bn as rt,bo as ut,k as ct,bp as dt,F as vt,aW as mt}from"./main-H14uUxuN.js";import{V as ze,t as de,q as ve,e as me,v as he,r as fe,g as ge,h as K,i as ht,w as ft,x as gt,u as yt,y as bt,z as _t}from"./VDialog-DbN2FfmF.js";import{V as W,a as se,c as J}from"./transition-CQVFPpmZ.js";import{c as pt,i as wt}from"./VSelectionControl-B42mmzLA.js";import{b as Fe,u as St}from"./VTextField-D9pqgz_R.js";import{P as kt,a as Ct}from"./unauthorized-Cfxq6rru.js";import{c as Tt}from"./copy-to-clipboard-DoUvDJVx.js";import{a as ie}from"./VSlideGroup-BtfHoWCn.js";const Vt={name:"ScaleButton",props:{scale:{type:Boolean,default:!1}},computed:{breakPoint(){return this.$vuetify.display.xs},density(){return this.breakPoint?"compact":"default"}}};function Pt(e,n,a,d,t,o){return C(),B(ze,{density:o.density},Ze({_:2},[je(e.$slots,(l,u)=>({name:u,fn:k(b=>[Ve(e.$slots,u,Q({props:l},b))])}))]),1032,["density"])}const Dt=U(Vt,[["render",Pt]]),ke=Pe(De(()=>Be(()=>import("./admin-settings-button-progress-DHIl0C8k.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])))),xt={name:"SettingsDrawerButton",components:{AdminSettingsButtonProgress:ke,ScaleButton:Dt},data(){return{mdiMenu:Ke,AdminSettingsButtonProgress:ke}},computed:{...ee(re,["isUserAdmin"])},methods:{...te(N,["setSettingsDrawerOpen"]),onClick(){this.setSettingsDrawerOpen(!0)}}};function Bt(e,n,a,d,t,o){const l=A("ScaleButton");return C(),B(l,{id:"settingsDrawerButton",variant:"plain",icon:"",title:"Settings",onClick:Qe(o.onClick,["prevent"])},{default:k(()=>[s(W,null,{default:k(()=>[E(P(t.mdiMenu),1)]),_:1}),e.isUserAdmin?(C(),B(xe(t.AdminSettingsButtonProgress),{key:0})):O("",!0)]),_:1},8,["onClick"])}const Pa=U(xt,[["render",Bt],["__scopeId","data-v-cdf6ad8a"]]),Et=ae({text:String,...oe(),...se()},"VToolbarTitle"),Rt=ne()({name:"VToolbarTitle",props:Et(),setup(e,n){let{slots:a}=n;return le(()=>{const d=!!(a.default||a.text||e.text);return s(e.tag,{class:["v-toolbar-title",e.class],style:e.style},{default:()=>{var t;return[d&&s("div",{class:"v-toolbar-title__placeholder"},[a.text?a.text():e.text,(t=a.default)==null?void 0:t.call(a)])]}})}),{}}}),It=[null,"prominent","default","comfortable","compact"],$t=ae({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>It.includes(e)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...de(),...oe(),...ve(),...me(),...se({tag:"header"}),...ue()},"VToolbar"),Da=ne()({name:"VToolbar",props:$t(),setup(e,n){var m;let{slots:a}=n;const{backgroundColorClasses:d,backgroundColorStyles:t}=J(Z(e,"color")),{borderClasses:o}=he(e),{elevationClasses:l}=fe(e),{roundedClasses:u}=ge(e),{themeClasses:b}=ce(e),{rtlClasses:_}=Ee(),c=M(!!(e.extended||(m=a.extension)!=null&&m.call(a))),f=y(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),v=y(()=>c.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return Re({VBtn:{variant:"text"}}),le(()=>{var $;const p=!!(e.title||a.title),T=!!(a.image||e.image),I=($=a.extension)==null?void 0:$.call(a);return c.value=!!(e.extended||I),s(e.tag,{class:["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},d.value,o.value,l.value,u.value,b.value,_.value,e.class],style:[t.value,e.style]},{default:()=>[T&&s("div",{key:"image",class:"v-toolbar__image"},[a.image?s(K,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},a.image):s(Fe,{key:"image-img",cover:!0,src:e.image},null)]),s(K,{defaults:{VTabs:{height:F(f.value)}}},{default:()=>{var R,D,L;return[s("div",{class:"v-toolbar__content",style:{height:F(f.value)}},[a.prepend&&s("div",{class:"v-toolbar__prepend"},[(R=a.prepend)==null?void 0:R.call(a)]),p&&s(Rt,{key:"title",text:e.title},{text:a.title}),(D=a.default)==null?void 0:D.call(a),a.append&&s("div",{class:"v-toolbar__append"},[(L=a.append)==null?void 0:L.call(a)])])]}}),s(K,{defaults:{VTabs:{height:F(v.value)}}},{default:()=>[s(pt,null,{default:()=>[c.value&&s("div",{class:"v-toolbar__extension",style:{height:F(v.value)}},[I])]})]})]})}),{contentHeight:f,extensionHeight:v}}}),Ot={name:"OPDSUrl",props:{title:{type:String,required:!0},subtitle:{type:String,default:void 0},urlPath:{type:String,required:!0}},data(){return{mdiRss:Ie,showTooltip:{show:!1}}},computed:{clipBoardEnabled(){return location.protocol=="https:"},clipBoardIcon(){return this.showTooltip.show?Je:et},tooltip(){return this.clipBoardEnabled},url(){return window.origin+this.urlPath}},methods:{onClickURL(){this.clipBoardEnabled&&Tt(this.url,this.showTooltip)}}},Mt=["title"],Lt={key:0},At={class:"copied"},Nt={key:1,class:"subtitle"},Ut={class:"opdsUrl"};function Ht(e,n,a,d,t,o){return C(),Y("div",{class:"opdsVersion",title:o.tooltip,onClick:n[0]||(n[0]=(...l)=>o.onClickURL&&o.onClickURL(...l))},[x("h3",null,[E(P(a.title)+" ",1),o.clipBoardEnabled?(C(),Y("span",Lt,[s(W,{class:"clipBoardIcon",size:"small"},{default:k(()=>[E(P(o.clipBoardIcon),1)]),_:1}),s(wt,null,{default:k(()=>[tt(x("span",At,"Copied",512),[[at,t.showTooltip.show]])]),_:1})])):O("",!0),a.subtitle?(C(),Y("span",Nt,P(a.subtitle),1)):O("",!0)]),x("div",Ut,P(o.url),1)],8,Mt)}const zt=U(Ot,[["render",Ht],["__scopeId","data-v-b8e2453a"]]),Ft={name:"OPDSDialog",components:{OPDSUrl:zt,PlaceholderLoading:kt},data(){return{mdiRss:Ie}},computed:{...ee(N,{opdsURLs:e=>e.opdsURLs})},methods:{...te(N,["loadOPDSURLs"])}},Yt={key:0,id:"opds"};function Wt(e,n,a,d,t,o){const l=A("OPDSUrl"),u=A("PlaceholderLoading");return C(),B(ht,{"max-width":"30em"},{activator:k(({props:b})=>[s(ze,Q({id:"opdsButton",icon:"",size:"small",variant:"plain"},b,{onClick:e.loadOPDSURLs}),{default:k(()=>[s(W,null,{default:k(()=>[E(P(t.mdiRss),1)]),_:1}),n[0]||(n[0]=E(" OPDS "))]),_:2},1040,["onClick"])]),default:k(()=>[e.opdsURLs?(C(),Y("div",Yt,[x("h2",null,[s(W,{size:"x=small",class:"inline"},{default:k(()=>[E(P(t.mdiRss),1)]),_:1}),n[1]||(n[1]=E(" OPDS "))]),s(l,{title:"v1.2","url-path":e.opdsURLs.v1},null,8,["url-path"]),s(l,{title:"v2.0","url-path":e.opdsURLs.v2,subtitle:"Experimental and not widely or well supported by clients"},null,8,["url-path"])])):(C(),B(u,{key:1}))]),_:1})}const qt=U(Ft,[["render",Wt],["__scopeId","data-v-5646b9a1"]]),Xt={name:"RepoFooter",data(){return{mdiOpenInNew:$e,mdiSourceRepository:ot}}},Gt={id:"repo",href:"https://github.com/ajslater/codex",title:"Codex Source Repository",target:"_blank"};function Zt(e,n,a,d,t,o){return C(),Y("a",Gt,[s(W,{id:"repoIcon",size:"x-small"},{default:k(()=>[E(P(t.mdiSourceRepository),1)]),_:1}),n[0]||(n[0]=E(" repository")),s(W,{color:e.$vuetify.theme.current.colors.iconsInactive,size:"x-small"},{default:k(()=>[E(P(t.mdiOpenInNew),1)]),_:1},8,["color"])])}const jt=U(Xt,[["render",Zt],["__scopeId","data-v-fae4fb39"]]),Kt=ae({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...de(),...oe(),...ve(),...Oe(),...me(),...se({tag:"footer"}),...ue()},"VFooter"),Ye=ne()({name:"VFooter",props:Kt(),setup(e,n){let{slots:a}=n;const d=Me(),{themeClasses:t}=ce(e),{backgroundColorClasses:o,backgroundColorStyles:l}=J(Z(e,"color")),{borderClasses:u}=he(e),{elevationClasses:b}=fe(e),{roundedClasses:_}=ge(e),c=M(32),{resizeRef:f}=nt(m=>{m.length&&(c.value=m[0].target.clientHeight)}),v=y(()=>e.height==="auto"?c.value:parseInt(e.height,10));return G(()=>e.app,()=>{const m=Le({id:e.name,order:y(()=>parseInt(e.order,10)),position:y(()=>"bottom"),layoutSize:v,elementSize:y(()=>e.height==="auto"?void 0:v.value),active:y(()=>e.app),absolute:Z(e,"absolute")});Ae(()=>{d.value=m.layoutItemStyles.value})}),le(()=>s(e.tag,{ref:f,class:["v-footer",t.value,o.value,u.value,b.value,_.value,e.class],style:[l.value,e.app?d.value:{height:F(e.height)},e.style]},a)),{}}}),Qt={name:"VersionFooter",data(){return{mdiOpenInNew:$e,mdiContentCopy:lt}},computed:{...ee(N,{versions:e=>e.versions}),...Ne(re,["isUserAdmin"]),outdated:function(){return this.isUserAdmin&&this.semverGreaterThan(this.versions.latest>this.versions.installed)},versionTitle:function(){return this.outdated?`v${this.versions.latest} is available`:"up to date"}},created(){this.loadVersions()},methods:{...te(N,["loadVersions"]),semverGreaterThan(e,n){try{if(!e||!n)return!1;const a=e.split("."),d=n.split(".");for(const[t,o]of a.entries())if(+o>+d[t])return!0}catch(a){console.debug("compare codex versions",e,">",n,a)}return!1}}},Jt={id:"version"},ea={key:0,id:"latest"};function ta(e,n,a,d,t,o){return C(),B(Ye,{id:"version-footer",title:o.versionTitle},{default:k(()=>[x("div",Jt,"codex v"+P(e.versions.installed),1),o.outdated?(C(),Y("div",ea," codex v"+P(e.versions.latest)+" is available ",1)):O("",!0)]),_:1},8,["title"])}const aa=U(Qt,[["render",ta],["__scopeId","data-v-4787569d"]]);function oa(e){let{rootEl:n,isSticky:a,layoutItemStyles:d}=e;const t=M(!1),o=M(0),l=y(()=>{const _=typeof t.value=="boolean"?"top":t.value;return[a.value?{top:"auto",bottom:"auto",height:void 0}:void 0,t.value?{[_]:F(o.value)}:{top:d.value.top}]});Ue(()=>{X(a,_=>{_?window.addEventListener("scroll",b,{passive:!0}):window.removeEventListener("scroll",b)},{immediate:!0})}),He(()=>{window.removeEventListener("scroll",b)});let u=0;function b(){const _=u>window.scrollY?"up":"down",c=n.value.getBoundingClientRect(),f=parseFloat(d.value.top??0),v=window.scrollY-Math.max(0,o.value-f),m=c.height+Math.max(o.value,f)-window.scrollY-window.innerHeight,p=parseFloat(getComputedStyle(n.value).getPropertyValue("--v-body-scroll-y"))||0;c.height<window.innerHeight-f?(t.value="top",o.value=f):_==="up"&&t.value==="bottom"||_==="down"&&t.value==="top"?(o.value=window.scrollY+c.top-p,t.value=!0):_==="down"&&m<=0?(o.value=0,t.value="bottom"):_==="up"&&v<=0&&(p?t.value!=="top"&&(o.value=-v+p+f,t.value="top"):(o.value=c.top+v,t.value="top")),u=window.scrollY}return{isStuck:t,stickyStyles:l}}const na=100,la=20;function Ce(e){return(e<0?-1:1)*Math.sqrt(Math.abs(e))*1.41421356237}function Te(e){if(e.length<2)return 0;if(e.length===2)return e[1].t===e[0].t?0:(e[1].d-e[0].d)/(e[1].t-e[0].t);let n=0;for(let a=e.length-1;a>0;a--){if(e[a].t===e[a-1].t)continue;const d=Ce(n),t=(e[a].d-e[a-1].d)/(e[a].t-e[a-1].t);n+=(t-d)*Math.abs(t),a===e.length-1&&(n*=.5)}return Ce(n)*1e3}function sa(){const e={};function n(t){Array.from(t.changedTouches).forEach(o=>{(e[o.identifier]??(e[o.identifier]=new st(la))).push([t.timeStamp,o])})}function a(t){Array.from(t.changedTouches).forEach(o=>{delete e[o.identifier]})}function d(t){var _;const o=(_=e[t])==null?void 0:_.values().reverse();if(!o)throw new Error(`No samples for touch id ${t}`);const l=o[0],u=[],b=[];for(const c of o){if(l[0]-c[0]>na)break;u.push({t:c[0],d:c[1].clientX}),b.push({t:c[0],d:c[1].clientY})}return{x:Te(u),y:Te(b),get direction(){const{x:c,y:f}=this,[v,m]=[Math.abs(c),Math.abs(f)];return v>m&&c>=0?"right":v>m&&c<=0?"left":m>v&&f>=0?"down":m>v&&f<=0?"up":ia()}}}return{addMovement:n,endTouch:a,getVelocity:d}}function ia(){throw new Error}function ra(e){let{el:n,isActive:a,isTemporary:d,width:t,touchless:o,position:l}=e;Ue(()=>{window.addEventListener("touchstart",R,{passive:!0}),window.addEventListener("touchmove",D,{passive:!1}),window.addEventListener("touchend",L,{passive:!0})}),He(()=>{window.removeEventListener("touchstart",R),window.removeEventListener("touchmove",D),window.removeEventListener("touchend",L)});const u=y(()=>["left","right"].includes(l.value)),{addMovement:b,endTouch:_,getVelocity:c}=sa();let f=!1;const v=M(!1),m=M(0),p=M(0);let T;function I(i,r){return(l.value==="left"?i:l.value==="right"?document.documentElement.clientWidth-i:l.value==="top"?i:l.value==="bottom"?document.documentElement.clientHeight-i:z())-(r?t.value:0)}function $(i){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const h=l.value==="left"?(i-p.value)/t.value:l.value==="right"?(document.documentElement.clientWidth-i-p.value)/t.value:l.value==="top"?(i-p.value)/t.value:l.value==="bottom"?(document.documentElement.clientHeight-i-p.value)/t.value:z();return r?Math.max(0,Math.min(1,h)):h}function R(i){if(o.value)return;const r=i.changedTouches[0].clientX,h=i.changedTouches[0].clientY,g=25,S=l.value==="left"?r<g:l.value==="right"?r>document.documentElement.clientWidth-g:l.value==="top"?h<g:l.value==="bottom"?h>document.documentElement.clientHeight-g:z(),w=a.value&&(l.value==="left"?r<t.value:l.value==="right"?r>document.documentElement.clientWidth-t.value:l.value==="top"?h<t.value:l.value==="bottom"?h>document.documentElement.clientHeight-t.value:z());(S||w||a.value&&d.value)&&(T=[r,h],p.value=I(u.value?r:h,a.value),m.value=$(u.value?r:h),f=p.value>-20&&p.value<80,_(i),b(i))}function D(i){const r=i.changedTouches[0].clientX,h=i.changedTouches[0].clientY;if(f){if(!i.cancelable){f=!1;return}const S=Math.abs(r-T[0]),w=Math.abs(h-T[1]);(u.value?S>w&&S>3:w>S&&w>3)?(v.value=!0,f=!1):(u.value?w:S)>3&&(f=!1)}if(!v.value)return;i.preventDefault(),b(i);const g=$(u.value?r:h,!1);m.value=Math.max(0,Math.min(1,g)),g>1?p.value=I(u.value?r:h,!0):g<0&&(p.value=I(u.value?r:h,!1))}function L(i){if(f=!1,!v.value)return;b(i),v.value=!1;const r=c(i.changedTouches[0].identifier),h=Math.abs(r.x),g=Math.abs(r.y);(u.value?h>g&&h>400:g>h&&g>3)?a.value=r.direction===({left:"right",right:"left",top:"down",bottom:"up"}[l.value]||z()):a.value=m.value>.5}const q=y(()=>v.value?{transform:l.value==="left"?`translateX(calc(-100% + ${m.value*t.value}px))`:l.value==="right"?`translateX(calc(100% - ${m.value*t.value}px))`:l.value==="top"?`translateY(calc(-100% + ${m.value*t.value}px))`:l.value==="bottom"?`translateY(calc(100% - ${m.value*t.value}px))`:z(),transition:"none"}:void 0);return G(v,()=>{var h,g;const i=((h=n.value)==null?void 0:h.style.transform)??null,r=((g=n.value)==null?void 0:g.style.transition)??null;Ae(()=>{var S,w,H,j;(w=n.value)==null||w.style.setProperty("transform",((S=q.value)==null?void 0:S.transform)||"none"),(j=n.value)==null||j.style.setProperty("transition",((H=q.value)==null?void 0:H.transition)||null)}),it(()=>{var S,w;(S=n.value)==null||S.style.setProperty("transform",i),(w=n.value)==null||w.style.setProperty("transition",r)})}),{isDragging:v,dragProgress:m,dragStyles:q}}function z(){throw new Error}const ua=["start","end","left","right","top","bottom"],ca=ae({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>ua.includes(e)},sticky:Boolean,...de(),...oe(),...ft(),...rt({mobile:null}),...ve(),...Oe(),...me(),...se({tag:"nav"}),...ue()},"VNavigationDrawer"),da=ne()({name:"VNavigationDrawer",props:ca(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,n){let{attrs:a,emit:d,slots:t}=n;const{isRtl:o}=Ee(),{themeClasses:l}=ce(e),{borderClasses:u}=he(e),{backgroundColorClasses:b,backgroundColorStyles:_}=J(Z(e,"color")),{elevationClasses:c}=fe(e),{displayClasses:f,mobile:v}=ut(e),{roundedClasses:m}=ge(e),p=gt(),T=ct(e,"modelValue",null,V=>!!V),{ssrBootStyles:I}=St(),{scopeId:$}=yt(),R=Me(),D=M(!1),{runOpenDelay:L,runCloseDelay:q}=_t(e,V=>{D.value=V}),i=y(()=>e.rail&&e.expandOnHover&&D.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),r=y(()=>bt(e.location,o.value)),h=y(()=>e.persistent),g=y(()=>!e.permanent&&(v.value||e.temporary)),S=y(()=>e.sticky&&!g.value&&r.value!=="bottom");G(()=>e.expandOnHover&&e.rail!=null,()=>{X(D,V=>d("update:rail",!V))}),G(()=>!e.disableResizeWatcher,()=>{X(g,V=>!e.permanent&&mt(()=>T.value=!V))}),G(()=>!e.disableRouteWatcher&&!!p,()=>{X(p.currentRoute,()=>g.value&&(T.value=!1))}),X(()=>e.permanent,V=>{V&&(T.value=!0)}),e.modelValue==null&&!g.value&&(T.value=e.permanent||!v.value);const{isDragging:w,dragProgress:H}=ra({el:R,isActive:T,isTemporary:g,width:i,touchless:Z(e,"touchless"),position:r}),j=y(()=>{const V=g.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):i.value;return w.value?V*H.value:V}),We=y(()=>["top","bottom"].includes(e.location)?0:i.value),{layoutItemStyles:ye,layoutItemScrimStyles:qe}=Le({id:e.name,order:y(()=>parseInt(e.order,10)),position:r,layoutSize:j,elementSize:We,active:y(()=>T.value||w.value),disableTransitions:y(()=>w.value),absolute:y(()=>e.absolute||S.value&&typeof be.value!="string")}),{isStuck:be,stickyStyles:Xe}=oa({rootEl:R,isSticky:S,layoutItemStyles:ye}),_e=J(y(()=>typeof e.scrim=="string"?e.scrim:null)),Ge=y(()=>({...w.value?{opacity:H.value*.2,transition:"none"}:void 0,...qe.value}));return Re({VList:{bgColor:"transparent"}}),le(()=>{const V=t.image||e.image;return s(vt,null,[s(e.tag,Q({ref:R,onMouseenter:L,onMouseleave:q,class:["v-navigation-drawer",`v-navigation-drawer--${r.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":D.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":g.value,"v-navigation-drawer--persistent":h.value,"v-navigation-drawer--active":T.value,"v-navigation-drawer--sticky":S.value},l.value,b.value,u.value,f.value,c.value,m.value,e.class],style:[_.value,ye.value,I.value,Xe.value,e.style,["top","bottom"].includes(r.value)?{height:"auto"}:{}]},$,a),{default:()=>{var pe,we,Se;return[V&&s("div",{key:"image",class:"v-navigation-drawer__img"},[t.image?s(K,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:e.image}}},t.image):s(Fe,{key:"image-img",alt:"",cover:!0,height:"inherit",src:e.image},null)]),t.prepend&&s("div",{class:"v-navigation-drawer__prepend"},[(pe=t.prepend)==null?void 0:pe.call(t)]),s("div",{class:"v-navigation-drawer__content"},[(we=t.default)==null?void 0:we.call(t)]),t.append&&s("div",{class:"v-navigation-drawer__append"},[(Se=t.append)==null?void 0:Se.call(t)])]}}),s(dt,{name:"fade-transition"},{default:()=>[g.value&&(w.value||T.value)&&!!e.scrim&&s("div",Q({class:["v-navigation-drawer__scrim",_e.backgroundColorClasses.value],style:[Ge.value,_e.backgroundColorStyles.value],onClick:()=>{h.value||(T.value=!1)}},$),null)]})])}),{isStuck:be}}}),va=Pe(De(()=>Be(()=>import("./admin-menu-BHOUwxhf.js"),__vite__mapDeps([8,1,2,9,3,4,5,6,10,11,12,13,14,15,16,17,18,19])))),ma={name:"SettingsDrawer",components:{AuthMenu:Ct,OPDSDialog:qt,RepoFooter:jt,VersionFooter:aa},props:{title:{type:String,required:!0}},data(){return{AdminMenu:va}},computed:{...Ne(re,["isUserAdmin","isAuthorized"]),...ee(N,{isSettingsDrawerOpen:e=>e.isSettingsDrawerOpen}),open:{get(){return this.isSettingsDrawerOpen||!this.isAuthorized},set(e){this.setSettingsDrawerOpen(e)}}},methods:{...te(N,["setSettingsDrawerOpen"])}},ha={class:"settingsDrawerContainer"},fa={id:"topBlock"},ga={class:"settingsHeader"},ya={id:"scrollFooter",class:"footer"};function ba(e,n,a,d,t,o){const l=A("AuthMenu"),u=A("OPDSDialog"),b=A("RepoFooter"),_=A("VersionFooter");return C(),B(da,{modelValue:o.open,"onUpdate:modelValue":n[0]||(n[0]=c=>o.open=c),"disable-route-watcher":"",location:"right",touchless:""},{append:k(()=>[s(Ye,{id:"bottomFooter",class:"footer"},{default:k(()=>[s(_)]),_:1})]),default:k(()=>[x("div",ha,[x("div",fa,[x("header",ga,[x("h3",null,P(a.title),1)]),s(ie),e.isAuthorized?Ve(e.$slots,"panel",{key:0},void 0,!0):O("",!0),e.isAuthorized?(C(),B(ie,{key:1})):O("",!0),s(l),e.isUserAdmin?(C(),B(xe(t.AdminMenu),{key:2})):O("",!0),s(ie)]),x("div",ya,[e.isAuthorized?(C(),B(u,{key:0})):O("",!0),s(b)])])]),_:3},8,["modelValue"])}const xa=U(ma,[["render",ba],["__scopeId","data-v-0412ab42"]]);export{Pa as S,Rt as V,Da as a,xa as b,Dt as c,da as d};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/admin-settings-button-progress-BAk-B1sR.js","assets/main-BVKrDunc.js","assets/main-BZ73p_WW.css","assets/VDialog-Db4tJYqR.js","assets/transition-DWVQ2EZ3.js","assets/transition-5LRFTPo5.css","assets/VDialog-DXQz0Ylp.css","assets/admin-settings-button-progress-DUUQfVsZ.css","assets/admin-menu-Jfmp_Yd8.js","assets/change-password-dialog-DJtOQw7K.js","assets/VTextField-X5yAw35c.js","assets/VSelectionControl-CxhDNufT.js","assets/VSelectionControl-CiViEYoC.css","assets/VTextField-Crc3gdNh.css","assets/change-password-dialog-C_EOKOn9.css","assets/VSlideGroup-DRbthp6q.js","assets/VSlideGroup-BtXPhMOT.css","assets/index-ClGiHwWc.js","assets/index-CL_6g4tJ.css","assets/admin-menu-B9bzD6hV.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as U,o as C,c as B,a9 as Ze,B as je,w as k,ak as Te,i as Q,aq as Pe,ar as De,bc as Ke,y as ee,H as re,m as te,u as N,r as L,a as s,b as E,C as P,D as xe,E as O,P as Qe,au as Be,p as ae,Y as oe,g as ne,h as le,aQ as ue,t as Z,aR as ce,aS as Ee,aU as M,f as y,l as Re,q as F,bd as $e,be as Je,bf as et,A as Y,L as x,K as tt,aN as at,$ as Ie,bg as ot,bh as Oe,e as Me,bi as nt,bj as G,bk as Ae,bl as Le,bm as lt,v as Ne,bn as Ue,aV as X,bo as He,bp as st,bq as it,br as rt,bs as ut,k as ct,bt as dt,F as vt,aX as mt}from"./main-BVKrDunc.js";import{V as ze,x as de,v as ve,e as me,y as he,w as fe,g as ge,r as Fe,h as K,i as ht,z as ft,A as gt,u as yt,B as bt,D as _t}from"./VDialog-Db4tJYqR.js";import{V as W,a as se,c as J}from"./transition-DWVQ2EZ3.js";import{c as pt,i as wt}from"./VSelectionControl-CxhDNufT.js";import{P as St,a as kt}from"./unauthorized-CEGD20tR.js";import{c as Ct}from"./copy-to-clipboard-DoUvDJVx.js";import{a as ie}from"./VSlideGroup-DRbthp6q.js";import{u as Vt}from"./VTextField-X5yAw35c.js";const Tt={name:"ScaleButton",props:{scale:{type:Boolean,default:!1}},computed:{breakPoint(){return this.$vuetify.display.xs},density(){return this.breakPoint?"compact":"default"}}};function Pt(e,n,a,d,t,o){return C(),B(ze,{density:o.density},Ze({_:2},[je(e.$slots,(l,u)=>({name:u,fn:k(b=>[Te(e.$slots,u,Q({props:l},b))])}))]),1032,["density"])}const Dt=U(Tt,[["render",Pt]]),ke=Pe(De(()=>Be(()=>import("./admin-settings-button-progress-BAk-B1sR.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])))),xt={name:"SettingsDrawerButton",components:{AdminSettingsButtonProgress:ke,ScaleButton:Dt},data(){return{mdiMenu:Ke,AdminSettingsButtonProgress:ke}},computed:{...ee(re,["isUserAdmin"])},methods:{...te(N,["setSettingsDrawerOpen"]),onClick(){this.setSettingsDrawerOpen(!0)}}};function Bt(e,n,a,d,t,o){const l=L("ScaleButton");return C(),B(l,{id:"settingsDrawerButton",variant:"plain",icon:"",title:"Settings",onClick:Qe(o.onClick,["prevent"])},{default:k(()=>[s(W,null,{default:k(()=>[E(P(t.mdiMenu),1)]),_:1}),e.isUserAdmin?(C(),B(xe(t.AdminSettingsButtonProgress),{key:0})):O("",!0)]),_:1},8,["onClick"])}const Pa=U(xt,[["render",Bt],["__scopeId","data-v-cdf6ad8a"]]),Et=ae({text:String,...oe(),...se()},"VToolbarTitle"),Rt=ne()({name:"VToolbarTitle",props:Et(),setup(e,n){let{slots:a}=n;return le(()=>{const d=!!(a.default||a.text||e.text);return s(e.tag,{class:["v-toolbar-title",e.class],style:e.style},{default:()=>{var t;return[d&&s("div",{class:"v-toolbar-title__placeholder"},[a.text?a.text():e.text,(t=a.default)==null?void 0:t.call(a)])]}})}),{}}}),$t=[null,"prominent","default","comfortable","compact"],It=ae({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>$t.includes(e)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...de(),...oe(),...ve(),...me(),...se({tag:"header"}),...ue()},"VToolbar"),Da=ne()({name:"VToolbar",props:It(),setup(e,n){var m;let{slots:a}=n;const{backgroundColorClasses:d,backgroundColorStyles:t}=J(Z(e,"color")),{borderClasses:o}=he(e),{elevationClasses:l}=fe(e),{roundedClasses:u}=ge(e),{themeClasses:b}=ce(e),{rtlClasses:_}=Ee(),c=M(!!(e.extended||(m=a.extension)!=null&&m.call(a))),f=y(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),v=y(()=>c.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return Re({VBtn:{variant:"text"}}),le(()=>{var I;const p=!!(e.title||a.title),V=!!(a.image||e.image),$=(I=a.extension)==null?void 0:I.call(a);return c.value=!!(e.extended||$),s(e.tag,{class:["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},d.value,o.value,l.value,u.value,b.value,_.value,e.class],style:[t.value,e.style]},{default:()=>[V&&s("div",{key:"image",class:"v-toolbar__image"},[a.image?s(K,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},a.image):s(Fe,{key:"image-img",cover:!0,src:e.image},null)]),s(K,{defaults:{VTabs:{height:F(f.value)}}},{default:()=>{var R,D,A;return[s("div",{class:"v-toolbar__content",style:{height:F(f.value)}},[a.prepend&&s("div",{class:"v-toolbar__prepend"},[(R=a.prepend)==null?void 0:R.call(a)]),p&&s(Rt,{key:"title",text:e.title},{text:a.title}),(D=a.default)==null?void 0:D.call(a),a.append&&s("div",{class:"v-toolbar__append"},[(A=a.append)==null?void 0:A.call(a)])])]}}),s(K,{defaults:{VTabs:{height:F(v.value)}}},{default:()=>[s(pt,null,{default:()=>[c.value&&s("div",{class:"v-toolbar__extension",style:{height:F(v.value)}},[$])]})]})]})}),{contentHeight:f,extensionHeight:v}}}),Ot={name:"OPDSUrl",props:{title:{type:String,required:!0},subtitle:{type:String,default:void 0},urlPath:{type:String,required:!0}},data(){return{mdiRss:$e,showTooltip:{show:!1}}},computed:{clipBoardEnabled(){return location.protocol=="https:"},clipBoardIcon(){return this.showTooltip.show?Je:et},tooltip(){return this.clipBoardEnabled},url(){return window.origin+this.urlPath}},methods:{onClickURL(){this.clipBoardEnabled&&Ct(this.url,this.showTooltip)}}},Mt=["title"],At={key:0},Lt={class:"copied"},Nt={key:1,class:"subtitle"},Ut={class:"opdsUrl"};function Ht(e,n,a,d,t,o){return C(),Y("div",{class:"opdsVersion",title:o.tooltip,onClick:n[0]||(n[0]=(...l)=>o.onClickURL&&o.onClickURL(...l))},[x("h3",null,[E(P(a.title)+" ",1),o.clipBoardEnabled?(C(),Y("span",At,[s(W,{class:"clipBoardIcon",size:"small"},{default:k(()=>[E(P(o.clipBoardIcon),1)]),_:1}),s(wt,null,{default:k(()=>[tt(x("span",Lt,"Copied",512),[[at,t.showTooltip.show]])]),_:1})])):O("",!0),a.subtitle?(C(),Y("span",Nt,P(a.subtitle),1)):O("",!0)]),x("div",Ut,P(o.url),1)],8,Mt)}const zt=U(Ot,[["render",Ht],["__scopeId","data-v-b8e2453a"]]),Ft={name:"OPDSDialog",components:{OPDSUrl:zt,PlaceholderLoading:St},data(){return{mdiRss:$e}},computed:{...ee(N,{opdsURLs:e=>e.opdsURLs})},methods:{...te(N,["loadOPDSURLs"])}},Yt={key:0,id:"opds"};function Wt(e,n,a,d,t,o){const l=L("OPDSUrl"),u=L("PlaceholderLoading");return C(),B(ht,{"max-width":"30em"},{activator:k(({props:b})=>[s(ze,Q({id:"opdsButton",icon:"",size:"small",variant:"plain"},b,{onClick:e.loadOPDSURLs}),{default:k(()=>[s(W,null,{default:k(()=>[E(P(t.mdiRss),1)]),_:1}),n[0]||(n[0]=E(" OPDS "))]),_:2},1040,["onClick"])]),default:k(()=>[e.opdsURLs?(C(),Y("div",Yt,[x("h2",null,[s(W,{size:"x=small",class:"inline"},{default:k(()=>[E(P(t.mdiRss),1)]),_:1}),n[1]||(n[1]=E(" OPDS "))]),s(l,{title:"v1.2","url-path":e.opdsURLs.v1},null,8,["url-path"]),s(l,{title:"v2.0","url-path":e.opdsURLs.v2,subtitle:"Experimental and not widely or well supported by clients"},null,8,["url-path"])])):(C(),B(u,{key:1}))]),_:1})}const qt=U(Ft,[["render",Wt],["__scopeId","data-v-5646b9a1"]]),Xt={name:"RepoFooter",data(){return{mdiOpenInNew:Ie,mdiSourceRepository:ot}}},Gt={id:"repo",href:"https://github.com/ajslater/codex",title:"Codex Source Repository",target:"_blank"};function Zt(e,n,a,d,t,o){return C(),Y("a",Gt,[s(W,{id:"repoIcon",size:"x-small"},{default:k(()=>[E(P(t.mdiSourceRepository),1)]),_:1}),n[0]||(n[0]=E(" repository")),s(W,{color:e.$vuetify.theme.current.colors.iconsInactive,size:"x-small"},{default:k(()=>[E(P(t.mdiOpenInNew),1)]),_:1},8,["color"])])}const jt=U(Xt,[["render",Zt],["__scopeId","data-v-fae4fb39"]]),Kt=ae({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...de(),...oe(),...ve(),...Oe(),...me(),...se({tag:"footer"}),...ue()},"VFooter"),Ye=ne()({name:"VFooter",props:Kt(),setup(e,n){let{slots:a}=n;const d=Me(),{themeClasses:t}=ce(e),{backgroundColorClasses:o,backgroundColorStyles:l}=J(Z(e,"color")),{borderClasses:u}=he(e),{elevationClasses:b}=fe(e),{roundedClasses:_}=ge(e),c=M(32),{resizeRef:f}=nt(m=>{m.length&&(c.value=m[0].target.clientHeight)}),v=y(()=>e.height==="auto"?c.value:parseInt(e.height,10));return G(()=>e.app,()=>{const m=Ae({id:e.name,order:y(()=>parseInt(e.order,10)),position:y(()=>"bottom"),layoutSize:v,elementSize:y(()=>e.height==="auto"?void 0:v.value),active:y(()=>e.app),absolute:Z(e,"absolute")});Le(()=>{d.value=m.layoutItemStyles.value})}),le(()=>s(e.tag,{ref:f,class:["v-footer",t.value,o.value,u.value,b.value,_.value,e.class],style:[l.value,e.app?d.value:{height:F(e.height)},e.style]},a)),{}}}),Qt={name:"VersionFooter",data(){return{mdiOpenInNew:Ie,mdiContentCopy:lt}},computed:{...ee(N,{versions:e=>e.versions}),...Ne(re,["isUserAdmin"]),outdated:function(){return this.isUserAdmin&&this.semverGreaterThan(this.versions.latest>this.versions.installed)},versionTitle:function(){return this.outdated?`v${this.versions.latest} is available`:"up to date"}},created(){this.loadVersions()},methods:{...te(N,["loadVersions"]),semverGreaterThan(e,n){try{if(!e||!n)return!1;const a=e.split("."),d=n.split(".");for(const[t,o]of a.entries())if(+o>+d[t])return!0}catch(a){console.debug("compare codex versions",e,">",n,a)}return!1}}},Jt={id:"version"},ea={key:0,id:"latest"};function ta(e,n,a,d,t,o){return C(),B(Ye,{id:"version-footer",title:o.versionTitle},{default:k(()=>[x("div",Jt,"codex v"+P(e.versions.installed),1),o.outdated?(C(),Y("div",ea," codex v"+P(e.versions.latest)+" is available ",1)):O("",!0)]),_:1},8,["title"])}const aa=U(Qt,[["render",ta],["__scopeId","data-v-4787569d"]]);function oa(e){let{rootEl:n,isSticky:a,layoutItemStyles:d}=e;const t=M(!1),o=M(0),l=y(()=>{const _=typeof t.value=="boolean"?"top":t.value;return[a.value?{top:"auto",bottom:"auto",height:void 0}:void 0,t.value?{[_]:F(o.value)}:{top:d.value.top}]});Ue(()=>{X(a,_=>{_?window.addEventListener("scroll",b,{passive:!0}):window.removeEventListener("scroll",b)},{immediate:!0})}),He(()=>{window.removeEventListener("scroll",b)});let u=0;function b(){const _=u>window.scrollY?"up":"down",c=n.value.getBoundingClientRect(),f=parseFloat(d.value.top??0),v=window.scrollY-Math.max(0,o.value-f),m=c.height+Math.max(o.value,f)-window.scrollY-window.innerHeight,p=parseFloat(getComputedStyle(n.value).getPropertyValue("--v-body-scroll-y"))||0;c.height<window.innerHeight-f?(t.value="top",o.value=f):_==="up"&&t.value==="bottom"||_==="down"&&t.value==="top"?(o.value=window.scrollY+c.top-p,t.value=!0):_==="down"&&m<=0?(o.value=0,t.value="bottom"):_==="up"&&v<=0&&(p?t.value!=="top"&&(o.value=-v+p+f,t.value="top"):(o.value=c.top+v,t.value="top")),u=window.scrollY}return{isStuck:t,stickyStyles:l}}const na=100,la=20;function Ce(e){return(e<0?-1:1)*Math.sqrt(Math.abs(e))*1.41421356237}function Ve(e){if(e.length<2)return 0;if(e.length===2)return e[1].t===e[0].t?0:(e[1].d-e[0].d)/(e[1].t-e[0].t);let n=0;for(let a=e.length-1;a>0;a--){if(e[a].t===e[a-1].t)continue;const d=Ce(n),t=(e[a].d-e[a-1].d)/(e[a].t-e[a-1].t);n+=(t-d)*Math.abs(t),a===e.length-1&&(n*=.5)}return Ce(n)*1e3}function sa(){const e={};function n(t){Array.from(t.changedTouches).forEach(o=>{(e[o.identifier]??(e[o.identifier]=new st(la))).push([t.timeStamp,o])})}function a(t){Array.from(t.changedTouches).forEach(o=>{delete e[o.identifier]})}function d(t){var _;const o=(_=e[t])==null?void 0:_.values().reverse();if(!o)throw new Error(`No samples for touch id ${t}`);const l=o[0],u=[],b=[];for(const c of o){if(l[0]-c[0]>na)break;u.push({t:c[0],d:c[1].clientX}),b.push({t:c[0],d:c[1].clientY})}return{x:Ve(u),y:Ve(b),get direction(){const{x:c,y:f}=this,[v,m]=[Math.abs(c),Math.abs(f)];return v>m&&c>=0?"right":v>m&&c<=0?"left":m>v&&f>=0?"down":m>v&&f<=0?"up":ia()}}}return{addMovement:n,endTouch:a,getVelocity:d}}function ia(){throw new Error}function ra(e){let{el:n,isActive:a,isTemporary:d,width:t,touchless:o,position:l}=e;Ue(()=>{window.addEventListener("touchstart",R,{passive:!0}),window.addEventListener("touchmove",D,{passive:!1}),window.addEventListener("touchend",A,{passive:!0})}),He(()=>{window.removeEventListener("touchstart",R),window.removeEventListener("touchmove",D),window.removeEventListener("touchend",A)});const u=y(()=>["left","right"].includes(l.value)),{addMovement:b,endTouch:_,getVelocity:c}=sa();let f=!1;const v=M(!1),m=M(0),p=M(0);let V;function $(i,r){return(l.value==="left"?i:l.value==="right"?document.documentElement.clientWidth-i:l.value==="top"?i:l.value==="bottom"?document.documentElement.clientHeight-i:z())-(r?t.value:0)}function I(i){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const h=l.value==="left"?(i-p.value)/t.value:l.value==="right"?(document.documentElement.clientWidth-i-p.value)/t.value:l.value==="top"?(i-p.value)/t.value:l.value==="bottom"?(document.documentElement.clientHeight-i-p.value)/t.value:z();return r?Math.max(0,Math.min(1,h)):h}function R(i){if(o.value)return;const r=i.changedTouches[0].clientX,h=i.changedTouches[0].clientY,g=25,S=l.value==="left"?r<g:l.value==="right"?r>document.documentElement.clientWidth-g:l.value==="top"?h<g:l.value==="bottom"?h>document.documentElement.clientHeight-g:z(),w=a.value&&(l.value==="left"?r<t.value:l.value==="right"?r>document.documentElement.clientWidth-t.value:l.value==="top"?h<t.value:l.value==="bottom"?h>document.documentElement.clientHeight-t.value:z());(S||w||a.value&&d.value)&&(V=[r,h],p.value=$(u.value?r:h,a.value),m.value=I(u.value?r:h),f=p.value>-20&&p.value<80,_(i),b(i))}function D(i){const r=i.changedTouches[0].clientX,h=i.changedTouches[0].clientY;if(f){if(!i.cancelable){f=!1;return}const S=Math.abs(r-V[0]),w=Math.abs(h-V[1]);(u.value?S>w&&S>3:w>S&&w>3)?(v.value=!0,f=!1):(u.value?w:S)>3&&(f=!1)}if(!v.value)return;i.preventDefault(),b(i);const g=I(u.value?r:h,!1);m.value=Math.max(0,Math.min(1,g)),g>1?p.value=$(u.value?r:h,!0):g<0&&(p.value=$(u.value?r:h,!1))}function A(i){if(f=!1,!v.value)return;b(i),v.value=!1;const r=c(i.changedTouches[0].identifier),h=Math.abs(r.x),g=Math.abs(r.y);(u.value?h>g&&h>400:g>h&&g>3)?a.value=r.direction===({left:"right",right:"left",top:"down",bottom:"up"}[l.value]||z()):a.value=m.value>.5}const q=y(()=>v.value?{transform:l.value==="left"?`translateX(calc(-100% + ${m.value*t.value}px))`:l.value==="right"?`translateX(calc(100% - ${m.value*t.value}px))`:l.value==="top"?`translateY(calc(-100% + ${m.value*t.value}px))`:l.value==="bottom"?`translateY(calc(100% - ${m.value*t.value}px))`:z(),transition:"none"}:void 0);return G(v,()=>{var h,g;const i=((h=n.value)==null?void 0:h.style.transform)??null,r=((g=n.value)==null?void 0:g.style.transition)??null;Le(()=>{var S,w,H,j;(w=n.value)==null||w.style.setProperty("transform",((S=q.value)==null?void 0:S.transform)||"none"),(j=n.value)==null||j.style.setProperty("transition",((H=q.value)==null?void 0:H.transition)||null)}),it(()=>{var S,w;(S=n.value)==null||S.style.setProperty("transform",i),(w=n.value)==null||w.style.setProperty("transition",r)})}),{isDragging:v,dragProgress:m,dragStyles:q}}function z(){throw new Error}const ua=["start","end","left","right","top","bottom"],ca=ae({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>ua.includes(e)},sticky:Boolean,...de(),...oe(),...ft(),...rt({mobile:null}),...ve(),...Oe(),...me(),...se({tag:"nav"}),...ue()},"VNavigationDrawer"),da=ne()({name:"VNavigationDrawer",props:ca(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,n){let{attrs:a,emit:d,slots:t}=n;const{isRtl:o}=Ee(),{themeClasses:l}=ce(e),{borderClasses:u}=he(e),{backgroundColorClasses:b,backgroundColorStyles:_}=J(Z(e,"color")),{elevationClasses:c}=fe(e),{displayClasses:f,mobile:v}=ut(e),{roundedClasses:m}=ge(e),p=gt(),V=ct(e,"modelValue",null,T=>!!T),{ssrBootStyles:$}=Vt(),{scopeId:I}=yt(),R=Me(),D=M(!1),{runOpenDelay:A,runCloseDelay:q}=_t(e,T=>{D.value=T}),i=y(()=>e.rail&&e.expandOnHover&&D.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),r=y(()=>bt(e.location,o.value)),h=y(()=>e.persistent),g=y(()=>!e.permanent&&(v.value||e.temporary)),S=y(()=>e.sticky&&!g.value&&r.value!=="bottom");G(()=>e.expandOnHover&&e.rail!=null,()=>{X(D,T=>d("update:rail",!T))}),G(()=>!e.disableResizeWatcher,()=>{X(g,T=>!e.permanent&&mt(()=>V.value=!T))}),G(()=>!e.disableRouteWatcher&&!!p,()=>{X(p.currentRoute,()=>g.value&&(V.value=!1))}),X(()=>e.permanent,T=>{T&&(V.value=!0)}),e.modelValue==null&&!g.value&&(V.value=e.permanent||!v.value);const{isDragging:w,dragProgress:H}=ra({el:R,isActive:V,isTemporary:g,width:i,touchless:Z(e,"touchless"),position:r}),j=y(()=>{const T=g.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):i.value;return w.value?T*H.value:T}),We=y(()=>["top","bottom"].includes(e.location)?0:i.value),{layoutItemStyles:ye,layoutItemScrimStyles:qe}=Ae({id:e.name,order:y(()=>parseInt(e.order,10)),position:r,layoutSize:j,elementSize:We,active:y(()=>V.value||w.value),disableTransitions:y(()=>w.value),absolute:y(()=>e.absolute||S.value&&typeof be.value!="string")}),{isStuck:be,stickyStyles:Xe}=oa({rootEl:R,isSticky:S,layoutItemStyles:ye}),_e=J(y(()=>typeof e.scrim=="string"?e.scrim:null)),Ge=y(()=>({...w.value?{opacity:H.value*.2,transition:"none"}:void 0,...qe.value}));return Re({VList:{bgColor:"transparent"}}),le(()=>{const T=t.image||e.image;return s(vt,null,[s(e.tag,Q({ref:R,onMouseenter:A,onMouseleave:q,class:["v-navigation-drawer",`v-navigation-drawer--${r.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":D.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":g.value,"v-navigation-drawer--persistent":h.value,"v-navigation-drawer--active":V.value,"v-navigation-drawer--sticky":S.value},l.value,b.value,u.value,f.value,c.value,m.value,e.class],style:[_.value,ye.value,$.value,Xe.value,e.style,["top","bottom"].includes(r.value)?{height:"auto"}:{}]},I,a),{default:()=>{var pe,we,Se;return[T&&s("div",{key:"image",class:"v-navigation-drawer__img"},[t.image?s(K,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:e.image}}},t.image):s(Fe,{key:"image-img",alt:"",cover:!0,height:"inherit",src:e.image},null)]),t.prepend&&s("div",{class:"v-navigation-drawer__prepend"},[(pe=t.prepend)==null?void 0:pe.call(t)]),s("div",{class:"v-navigation-drawer__content"},[(we=t.default)==null?void 0:we.call(t)]),t.append&&s("div",{class:"v-navigation-drawer__append"},[(Se=t.append)==null?void 0:Se.call(t)])]}}),s(dt,{name:"fade-transition"},{default:()=>[g.value&&(w.value||V.value)&&!!e.scrim&&s("div",Q({class:["v-navigation-drawer__scrim",_e.backgroundColorClasses.value],style:[Ge.value,_e.backgroundColorStyles.value],onClick:()=>{h.value||(V.value=!1)}},I),null)]})])}),{isStuck:be}}}),va=Pe(De(()=>Be(()=>import("./admin-menu-Jfmp_Yd8.js"),__vite__mapDeps([8,1,2,9,3,4,5,6,10,11,12,13,14,15,16,17,18,19])))),ma={name:"SettingsDrawer",components:{AuthMenu:kt,OPDSDialog:qt,RepoFooter:jt,VersionFooter:aa},props:{title:{type:String,required:!0}},data(){return{AdminMenu:va}},computed:{...Ne(re,["isUserAdmin","isAuthorized"]),...ee(N,{isSettingsDrawerOpen:e=>e.isSettingsDrawerOpen}),open:{get(){return this.isSettingsDrawerOpen||!this.isAuthorized},set(e){this.setSettingsDrawerOpen(e)}}},methods:{...te(N,["setSettingsDrawerOpen"])}},ha={class:"settingsDrawerContainer"},fa={id:"topBlock"},ga={class:"settingsHeader"},ya={id:"scrollFooter",class:"footer"};function ba(e,n,a,d,t,o){const l=L("AuthMenu"),u=L("OPDSDialog"),b=L("RepoFooter"),_=L("VersionFooter");return C(),B(da,{modelValue:o.open,"onUpdate:modelValue":n[0]||(n[0]=c=>o.open=c),"disable-route-watcher":"",location:"right",touchless:""},{append:k(()=>[s(Ye,{id:"bottomFooter",class:"footer"},{default:k(()=>[s(_)]),_:1})]),default:k(()=>[x("div",ha,[x("div",fa,[x("header",ga,[x("h3",null,P(a.title),1)]),s(ie),e.isAuthorized?Te(e.$slots,"panel",{key:0},void 0,!0):O("",!0),e.isAuthorized?(C(),B(ie,{key:1})):O("",!0),s(l),e.isUserAdmin?(C(),B(xe(t.AdminMenu),{key:2})):O("",!0),s(ie)]),x("div",ya,[e.isAuthorized?(C(),B(u,{key:0})):O("",!0),s(b)])])]),_:3},8,["modelValue"])}const xa=U(ma,[["render",ba],["__scopeId","data-v-0412ab42"]]);export{Pa as S,Rt as V,Da as a,xa as b,Dt as c,da as d};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/admin-settings-button-progress-
|
|
2
|
-
import{_ as U,o as C,c as B,a7 as Ze,B as je,w as k,ai as Ve,i as Q,ao as Pe,ap as De,b8 as Ke,y as ee,H as re,m as te,u as N,r as A,a as s,b as E,C as P,D as xe,E as O,N as Qe,as as Be,p as ae,W as oe,g as ne,h as le,aP as ue,t as Z,aQ as ce,aR as Ee,aT as M,f as y,l as Re,q as F,b9 as Ie,ba as Je,bb as et,A as Y,L as x,K as tt,aM as at,Y as $e,bc as ot,bd as Oe,e as Me,be as nt,bf as G,bg as Le,bh as Ae,bi as lt,v as Ne,bj as Ue,aU as X,bk as He,bl as st,bm as it,bn as rt,bo as ut,k as ct,bp as dt,F as vt,aW as mt}from"./main-H14uUxuN.js";import{V as ze,t as de,q as ve,e as me,v as he,r as fe,g as ge,h as K,i as ht,w as ft,x as gt,u as yt,y as bt,z as _t}from"./VDialog-DbN2FfmF.js";import{V as W,a as se,c as J}from"./transition-CQVFPpmZ.js";import{c as pt,i as wt}from"./VSelectionControl-B42mmzLA.js";import{b as Fe,u as St}from"./VTextField-D9pqgz_R.js";import{P as kt,a as Ct}from"./unauthorized-Cfxq6rru.js";import{c as Tt}from"./copy-to-clipboard-DoUvDJVx.js";import{a as ie}from"./VSlideGroup-BtfHoWCn.js";const Vt={name:"ScaleButton",props:{scale:{type:Boolean,default:!1}},computed:{breakPoint(){return this.$vuetify.display.xs},density(){return this.breakPoint?"compact":"default"}}};function Pt(e,n,a,d,t,o){return C(),B(ze,{density:o.density},Ze({_:2},[je(e.$slots,(l,u)=>({name:u,fn:k(b=>[Ve(e.$slots,u,Q({props:l},b))])}))]),1032,["density"])}const Dt=U(Vt,[["render",Pt]]),ke=Pe(De(()=>Be(()=>import("./admin-settings-button-progress-DHIl0C8k.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])))),xt={name:"SettingsDrawerButton",components:{AdminSettingsButtonProgress:ke,ScaleButton:Dt},data(){return{mdiMenu:Ke,AdminSettingsButtonProgress:ke}},computed:{...ee(re,["isUserAdmin"])},methods:{...te(N,["setSettingsDrawerOpen"]),onClick(){this.setSettingsDrawerOpen(!0)}}};function Bt(e,n,a,d,t,o){const l=A("ScaleButton");return C(),B(l,{id:"settingsDrawerButton",variant:"plain",icon:"",title:"Settings",onClick:Qe(o.onClick,["prevent"])},{default:k(()=>[s(W,null,{default:k(()=>[E(P(t.mdiMenu),1)]),_:1}),e.isUserAdmin?(C(),B(xe(t.AdminSettingsButtonProgress),{key:0})):O("",!0)]),_:1},8,["onClick"])}const Pa=U(xt,[["render",Bt],["__scopeId","data-v-cdf6ad8a"]]),Et=ae({text:String,...oe(),...se()},"VToolbarTitle"),Rt=ne()({name:"VToolbarTitle",props:Et(),setup(e,n){let{slots:a}=n;return le(()=>{const d=!!(a.default||a.text||e.text);return s(e.tag,{class:["v-toolbar-title",e.class],style:e.style},{default:()=>{var t;return[d&&s("div",{class:"v-toolbar-title__placeholder"},[a.text?a.text():e.text,(t=a.default)==null?void 0:t.call(a)])]}})}),{}}}),It=[null,"prominent","default","comfortable","compact"],$t=ae({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>It.includes(e)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...de(),...oe(),...ve(),...me(),...se({tag:"header"}),...ue()},"VToolbar"),Da=ne()({name:"VToolbar",props:$t(),setup(e,n){var m;let{slots:a}=n;const{backgroundColorClasses:d,backgroundColorStyles:t}=J(Z(e,"color")),{borderClasses:o}=he(e),{elevationClasses:l}=fe(e),{roundedClasses:u}=ge(e),{themeClasses:b}=ce(e),{rtlClasses:_}=Ee(),c=M(!!(e.extended||(m=a.extension)!=null&&m.call(a))),f=y(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),v=y(()=>c.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return Re({VBtn:{variant:"text"}}),le(()=>{var $;const p=!!(e.title||a.title),T=!!(a.image||e.image),I=($=a.extension)==null?void 0:$.call(a);return c.value=!!(e.extended||I),s(e.tag,{class:["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},d.value,o.value,l.value,u.value,b.value,_.value,e.class],style:[t.value,e.style]},{default:()=>[T&&s("div",{key:"image",class:"v-toolbar__image"},[a.image?s(K,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},a.image):s(Fe,{key:"image-img",cover:!0,src:e.image},null)]),s(K,{defaults:{VTabs:{height:F(f.value)}}},{default:()=>{var R,D,L;return[s("div",{class:"v-toolbar__content",style:{height:F(f.value)}},[a.prepend&&s("div",{class:"v-toolbar__prepend"},[(R=a.prepend)==null?void 0:R.call(a)]),p&&s(Rt,{key:"title",text:e.title},{text:a.title}),(D=a.default)==null?void 0:D.call(a),a.append&&s("div",{class:"v-toolbar__append"},[(L=a.append)==null?void 0:L.call(a)])])]}}),s(K,{defaults:{VTabs:{height:F(v.value)}}},{default:()=>[s(pt,null,{default:()=>[c.value&&s("div",{class:"v-toolbar__extension",style:{height:F(v.value)}},[I])]})]})]})}),{contentHeight:f,extensionHeight:v}}}),Ot={name:"OPDSUrl",props:{title:{type:String,required:!0},subtitle:{type:String,default:void 0},urlPath:{type:String,required:!0}},data(){return{mdiRss:Ie,showTooltip:{show:!1}}},computed:{clipBoardEnabled(){return location.protocol=="https:"},clipBoardIcon(){return this.showTooltip.show?Je:et},tooltip(){return this.clipBoardEnabled},url(){return window.origin+this.urlPath}},methods:{onClickURL(){this.clipBoardEnabled&&Tt(this.url,this.showTooltip)}}},Mt=["title"],Lt={key:0},At={class:"copied"},Nt={key:1,class:"subtitle"},Ut={class:"opdsUrl"};function Ht(e,n,a,d,t,o){return C(),Y("div",{class:"opdsVersion",title:o.tooltip,onClick:n[0]||(n[0]=(...l)=>o.onClickURL&&o.onClickURL(...l))},[x("h3",null,[E(P(a.title)+" ",1),o.clipBoardEnabled?(C(),Y("span",Lt,[s(W,{class:"clipBoardIcon",size:"small"},{default:k(()=>[E(P(o.clipBoardIcon),1)]),_:1}),s(wt,null,{default:k(()=>[tt(x("span",At,"Copied",512),[[at,t.showTooltip.show]])]),_:1})])):O("",!0),a.subtitle?(C(),Y("span",Nt,P(a.subtitle),1)):O("",!0)]),x("div",Ut,P(o.url),1)],8,Mt)}const zt=U(Ot,[["render",Ht],["__scopeId","data-v-b8e2453a"]]),Ft={name:"OPDSDialog",components:{OPDSUrl:zt,PlaceholderLoading:kt},data(){return{mdiRss:Ie}},computed:{...ee(N,{opdsURLs:e=>e.opdsURLs})},methods:{...te(N,["loadOPDSURLs"])}},Yt={key:0,id:"opds"};function Wt(e,n,a,d,t,o){const l=A("OPDSUrl"),u=A("PlaceholderLoading");return C(),B(ht,{"max-width":"30em"},{activator:k(({props:b})=>[s(ze,Q({id:"opdsButton",icon:"",size:"small",variant:"plain"},b,{onClick:e.loadOPDSURLs}),{default:k(()=>[s(W,null,{default:k(()=>[E(P(t.mdiRss),1)]),_:1}),n[0]||(n[0]=E(" OPDS "))]),_:2},1040,["onClick"])]),default:k(()=>[e.opdsURLs?(C(),Y("div",Yt,[x("h2",null,[s(W,{size:"x=small",class:"inline"},{default:k(()=>[E(P(t.mdiRss),1)]),_:1}),n[1]||(n[1]=E(" OPDS "))]),s(l,{title:"v1.2","url-path":e.opdsURLs.v1},null,8,["url-path"]),s(l,{title:"v2.0","url-path":e.opdsURLs.v2,subtitle:"Experimental and not widely or well supported by clients"},null,8,["url-path"])])):(C(),B(u,{key:1}))]),_:1})}const qt=U(Ft,[["render",Wt],["__scopeId","data-v-5646b9a1"]]),Xt={name:"RepoFooter",data(){return{mdiOpenInNew:$e,mdiSourceRepository:ot}}},Gt={id:"repo",href:"https://github.com/ajslater/codex",title:"Codex Source Repository",target:"_blank"};function Zt(e,n,a,d,t,o){return C(),Y("a",Gt,[s(W,{id:"repoIcon",size:"x-small"},{default:k(()=>[E(P(t.mdiSourceRepository),1)]),_:1}),n[0]||(n[0]=E(" repository")),s(W,{color:e.$vuetify.theme.current.colors.iconsInactive,size:"x-small"},{default:k(()=>[E(P(t.mdiOpenInNew),1)]),_:1},8,["color"])])}const jt=U(Xt,[["render",Zt],["__scopeId","data-v-fae4fb39"]]),Kt=ae({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...de(),...oe(),...ve(),...Oe(),...me(),...se({tag:"footer"}),...ue()},"VFooter"),Ye=ne()({name:"VFooter",props:Kt(),setup(e,n){let{slots:a}=n;const d=Me(),{themeClasses:t}=ce(e),{backgroundColorClasses:o,backgroundColorStyles:l}=J(Z(e,"color")),{borderClasses:u}=he(e),{elevationClasses:b}=fe(e),{roundedClasses:_}=ge(e),c=M(32),{resizeRef:f}=nt(m=>{m.length&&(c.value=m[0].target.clientHeight)}),v=y(()=>e.height==="auto"?c.value:parseInt(e.height,10));return G(()=>e.app,()=>{const m=Le({id:e.name,order:y(()=>parseInt(e.order,10)),position:y(()=>"bottom"),layoutSize:v,elementSize:y(()=>e.height==="auto"?void 0:v.value),active:y(()=>e.app),absolute:Z(e,"absolute")});Ae(()=>{d.value=m.layoutItemStyles.value})}),le(()=>s(e.tag,{ref:f,class:["v-footer",t.value,o.value,u.value,b.value,_.value,e.class],style:[l.value,e.app?d.value:{height:F(e.height)},e.style]},a)),{}}}),Qt={name:"VersionFooter",data(){return{mdiOpenInNew:$e,mdiContentCopy:lt}},computed:{...ee(N,{versions:e=>e.versions}),...Ne(re,["isUserAdmin"]),outdated:function(){return this.isUserAdmin&&this.semverGreaterThan(this.versions.latest>this.versions.installed)},versionTitle:function(){return this.outdated?`v${this.versions.latest} is available`:"up to date"}},created(){this.loadVersions()},methods:{...te(N,["loadVersions"]),semverGreaterThan(e,n){try{if(!e||!n)return!1;const a=e.split("."),d=n.split(".");for(const[t,o]of a.entries())if(+o>+d[t])return!0}catch(a){console.debug("compare codex versions",e,">",n,a)}return!1}}},Jt={id:"version"},ea={key:0,id:"latest"};function ta(e,n,a,d,t,o){return C(),B(Ye,{id:"version-footer",title:o.versionTitle},{default:k(()=>[x("div",Jt,"codex v"+P(e.versions.installed),1),o.outdated?(C(),Y("div",ea," codex v"+P(e.versions.latest)+" is available ",1)):O("",!0)]),_:1},8,["title"])}const aa=U(Qt,[["render",ta],["__scopeId","data-v-4787569d"]]);function oa(e){let{rootEl:n,isSticky:a,layoutItemStyles:d}=e;const t=M(!1),o=M(0),l=y(()=>{const _=typeof t.value=="boolean"?"top":t.value;return[a.value?{top:"auto",bottom:"auto",height:void 0}:void 0,t.value?{[_]:F(o.value)}:{top:d.value.top}]});Ue(()=>{X(a,_=>{_?window.addEventListener("scroll",b,{passive:!0}):window.removeEventListener("scroll",b)},{immediate:!0})}),He(()=>{window.removeEventListener("scroll",b)});let u=0;function b(){const _=u>window.scrollY?"up":"down",c=n.value.getBoundingClientRect(),f=parseFloat(d.value.top??0),v=window.scrollY-Math.max(0,o.value-f),m=c.height+Math.max(o.value,f)-window.scrollY-window.innerHeight,p=parseFloat(getComputedStyle(n.value).getPropertyValue("--v-body-scroll-y"))||0;c.height<window.innerHeight-f?(t.value="top",o.value=f):_==="up"&&t.value==="bottom"||_==="down"&&t.value==="top"?(o.value=window.scrollY+c.top-p,t.value=!0):_==="down"&&m<=0?(o.value=0,t.value="bottom"):_==="up"&&v<=0&&(p?t.value!=="top"&&(o.value=-v+p+f,t.value="top"):(o.value=c.top+v,t.value="top")),u=window.scrollY}return{isStuck:t,stickyStyles:l}}const na=100,la=20;function Ce(e){return(e<0?-1:1)*Math.sqrt(Math.abs(e))*1.41421356237}function Te(e){if(e.length<2)return 0;if(e.length===2)return e[1].t===e[0].t?0:(e[1].d-e[0].d)/(e[1].t-e[0].t);let n=0;for(let a=e.length-1;a>0;a--){if(e[a].t===e[a-1].t)continue;const d=Ce(n),t=(e[a].d-e[a-1].d)/(e[a].t-e[a-1].t);n+=(t-d)*Math.abs(t),a===e.length-1&&(n*=.5)}return Ce(n)*1e3}function sa(){const e={};function n(t){Array.from(t.changedTouches).forEach(o=>{(e[o.identifier]??(e[o.identifier]=new st(la))).push([t.timeStamp,o])})}function a(t){Array.from(t.changedTouches).forEach(o=>{delete e[o.identifier]})}function d(t){var _;const o=(_=e[t])==null?void 0:_.values().reverse();if(!o)throw new Error(`No samples for touch id ${t}`);const l=o[0],u=[],b=[];for(const c of o){if(l[0]-c[0]>na)break;u.push({t:c[0],d:c[1].clientX}),b.push({t:c[0],d:c[1].clientY})}return{x:Te(u),y:Te(b),get direction(){const{x:c,y:f}=this,[v,m]=[Math.abs(c),Math.abs(f)];return v>m&&c>=0?"right":v>m&&c<=0?"left":m>v&&f>=0?"down":m>v&&f<=0?"up":ia()}}}return{addMovement:n,endTouch:a,getVelocity:d}}function ia(){throw new Error}function ra(e){let{el:n,isActive:a,isTemporary:d,width:t,touchless:o,position:l}=e;Ue(()=>{window.addEventListener("touchstart",R,{passive:!0}),window.addEventListener("touchmove",D,{passive:!1}),window.addEventListener("touchend",L,{passive:!0})}),He(()=>{window.removeEventListener("touchstart",R),window.removeEventListener("touchmove",D),window.removeEventListener("touchend",L)});const u=y(()=>["left","right"].includes(l.value)),{addMovement:b,endTouch:_,getVelocity:c}=sa();let f=!1;const v=M(!1),m=M(0),p=M(0);let T;function I(i,r){return(l.value==="left"?i:l.value==="right"?document.documentElement.clientWidth-i:l.value==="top"?i:l.value==="bottom"?document.documentElement.clientHeight-i:z())-(r?t.value:0)}function $(i){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const h=l.value==="left"?(i-p.value)/t.value:l.value==="right"?(document.documentElement.clientWidth-i-p.value)/t.value:l.value==="top"?(i-p.value)/t.value:l.value==="bottom"?(document.documentElement.clientHeight-i-p.value)/t.value:z();return r?Math.max(0,Math.min(1,h)):h}function R(i){if(o.value)return;const r=i.changedTouches[0].clientX,h=i.changedTouches[0].clientY,g=25,S=l.value==="left"?r<g:l.value==="right"?r>document.documentElement.clientWidth-g:l.value==="top"?h<g:l.value==="bottom"?h>document.documentElement.clientHeight-g:z(),w=a.value&&(l.value==="left"?r<t.value:l.value==="right"?r>document.documentElement.clientWidth-t.value:l.value==="top"?h<t.value:l.value==="bottom"?h>document.documentElement.clientHeight-t.value:z());(S||w||a.value&&d.value)&&(T=[r,h],p.value=I(u.value?r:h,a.value),m.value=$(u.value?r:h),f=p.value>-20&&p.value<80,_(i),b(i))}function D(i){const r=i.changedTouches[0].clientX,h=i.changedTouches[0].clientY;if(f){if(!i.cancelable){f=!1;return}const S=Math.abs(r-T[0]),w=Math.abs(h-T[1]);(u.value?S>w&&S>3:w>S&&w>3)?(v.value=!0,f=!1):(u.value?w:S)>3&&(f=!1)}if(!v.value)return;i.preventDefault(),b(i);const g=$(u.value?r:h,!1);m.value=Math.max(0,Math.min(1,g)),g>1?p.value=I(u.value?r:h,!0):g<0&&(p.value=I(u.value?r:h,!1))}function L(i){if(f=!1,!v.value)return;b(i),v.value=!1;const r=c(i.changedTouches[0].identifier),h=Math.abs(r.x),g=Math.abs(r.y);(u.value?h>g&&h>400:g>h&&g>3)?a.value=r.direction===({left:"right",right:"left",top:"down",bottom:"up"}[l.value]||z()):a.value=m.value>.5}const q=y(()=>v.value?{transform:l.value==="left"?`translateX(calc(-100% + ${m.value*t.value}px))`:l.value==="right"?`translateX(calc(100% - ${m.value*t.value}px))`:l.value==="top"?`translateY(calc(-100% + ${m.value*t.value}px))`:l.value==="bottom"?`translateY(calc(100% - ${m.value*t.value}px))`:z(),transition:"none"}:void 0);return G(v,()=>{var h,g;const i=((h=n.value)==null?void 0:h.style.transform)??null,r=((g=n.value)==null?void 0:g.style.transition)??null;Ae(()=>{var S,w,H,j;(w=n.value)==null||w.style.setProperty("transform",((S=q.value)==null?void 0:S.transform)||"none"),(j=n.value)==null||j.style.setProperty("transition",((H=q.value)==null?void 0:H.transition)||null)}),it(()=>{var S,w;(S=n.value)==null||S.style.setProperty("transform",i),(w=n.value)==null||w.style.setProperty("transition",r)})}),{isDragging:v,dragProgress:m,dragStyles:q}}function z(){throw new Error}const ua=["start","end","left","right","top","bottom"],ca=ae({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>ua.includes(e)},sticky:Boolean,...de(),...oe(),...ft(),...rt({mobile:null}),...ve(),...Oe(),...me(),...se({tag:"nav"}),...ue()},"VNavigationDrawer"),da=ne()({name:"VNavigationDrawer",props:ca(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,n){let{attrs:a,emit:d,slots:t}=n;const{isRtl:o}=Ee(),{themeClasses:l}=ce(e),{borderClasses:u}=he(e),{backgroundColorClasses:b,backgroundColorStyles:_}=J(Z(e,"color")),{elevationClasses:c}=fe(e),{displayClasses:f,mobile:v}=ut(e),{roundedClasses:m}=ge(e),p=gt(),T=ct(e,"modelValue",null,V=>!!V),{ssrBootStyles:I}=St(),{scopeId:$}=yt(),R=Me(),D=M(!1),{runOpenDelay:L,runCloseDelay:q}=_t(e,V=>{D.value=V}),i=y(()=>e.rail&&e.expandOnHover&&D.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),r=y(()=>bt(e.location,o.value)),h=y(()=>e.persistent),g=y(()=>!e.permanent&&(v.value||e.temporary)),S=y(()=>e.sticky&&!g.value&&r.value!=="bottom");G(()=>e.expandOnHover&&e.rail!=null,()=>{X(D,V=>d("update:rail",!V))}),G(()=>!e.disableResizeWatcher,()=>{X(g,V=>!e.permanent&&mt(()=>T.value=!V))}),G(()=>!e.disableRouteWatcher&&!!p,()=>{X(p.currentRoute,()=>g.value&&(T.value=!1))}),X(()=>e.permanent,V=>{V&&(T.value=!0)}),e.modelValue==null&&!g.value&&(T.value=e.permanent||!v.value);const{isDragging:w,dragProgress:H}=ra({el:R,isActive:T,isTemporary:g,width:i,touchless:Z(e,"touchless"),position:r}),j=y(()=>{const V=g.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):i.value;return w.value?V*H.value:V}),We=y(()=>["top","bottom"].includes(e.location)?0:i.value),{layoutItemStyles:ye,layoutItemScrimStyles:qe}=Le({id:e.name,order:y(()=>parseInt(e.order,10)),position:r,layoutSize:j,elementSize:We,active:y(()=>T.value||w.value),disableTransitions:y(()=>w.value),absolute:y(()=>e.absolute||S.value&&typeof be.value!="string")}),{isStuck:be,stickyStyles:Xe}=oa({rootEl:R,isSticky:S,layoutItemStyles:ye}),_e=J(y(()=>typeof e.scrim=="string"?e.scrim:null)),Ge=y(()=>({...w.value?{opacity:H.value*.2,transition:"none"}:void 0,...qe.value}));return Re({VList:{bgColor:"transparent"}}),le(()=>{const V=t.image||e.image;return s(vt,null,[s(e.tag,Q({ref:R,onMouseenter:L,onMouseleave:q,class:["v-navigation-drawer",`v-navigation-drawer--${r.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":D.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":g.value,"v-navigation-drawer--persistent":h.value,"v-navigation-drawer--active":T.value,"v-navigation-drawer--sticky":S.value},l.value,b.value,u.value,f.value,c.value,m.value,e.class],style:[_.value,ye.value,I.value,Xe.value,e.style,["top","bottom"].includes(r.value)?{height:"auto"}:{}]},$,a),{default:()=>{var pe,we,Se;return[V&&s("div",{key:"image",class:"v-navigation-drawer__img"},[t.image?s(K,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:e.image}}},t.image):s(Fe,{key:"image-img",alt:"",cover:!0,height:"inherit",src:e.image},null)]),t.prepend&&s("div",{class:"v-navigation-drawer__prepend"},[(pe=t.prepend)==null?void 0:pe.call(t)]),s("div",{class:"v-navigation-drawer__content"},[(we=t.default)==null?void 0:we.call(t)]),t.append&&s("div",{class:"v-navigation-drawer__append"},[(Se=t.append)==null?void 0:Se.call(t)])]}}),s(dt,{name:"fade-transition"},{default:()=>[g.value&&(w.value||T.value)&&!!e.scrim&&s("div",Q({class:["v-navigation-drawer__scrim",_e.backgroundColorClasses.value],style:[Ge.value,_e.backgroundColorStyles.value],onClick:()=>{h.value||(T.value=!1)}},$),null)]})])}),{isStuck:be}}}),va=Pe(De(()=>Be(()=>import("./admin-menu-BHOUwxhf.js"),__vite__mapDeps([8,1,2,9,3,4,5,6,10,11,12,13,14,15,16,17,18,19])))),ma={name:"SettingsDrawer",components:{AuthMenu:Ct,OPDSDialog:qt,RepoFooter:jt,VersionFooter:aa},props:{title:{type:String,required:!0}},data(){return{AdminMenu:va}},computed:{...Ne(re,["isUserAdmin","isAuthorized"]),...ee(N,{isSettingsDrawerOpen:e=>e.isSettingsDrawerOpen}),open:{get(){return this.isSettingsDrawerOpen||!this.isAuthorized},set(e){this.setSettingsDrawerOpen(e)}}},methods:{...te(N,["setSettingsDrawerOpen"])}},ha={class:"settingsDrawerContainer"},fa={id:"topBlock"},ga={class:"settingsHeader"},ya={id:"scrollFooter",class:"footer"};function ba(e,n,a,d,t,o){const l=A("AuthMenu"),u=A("OPDSDialog"),b=A("RepoFooter"),_=A("VersionFooter");return C(),B(da,{modelValue:o.open,"onUpdate:modelValue":n[0]||(n[0]=c=>o.open=c),"disable-route-watcher":"",location:"right",touchless:""},{append:k(()=>[s(Ye,{id:"bottomFooter",class:"footer"},{default:k(()=>[s(_)]),_:1})]),default:k(()=>[x("div",ha,[x("div",fa,[x("header",ga,[x("h3",null,P(a.title),1)]),s(ie),e.isAuthorized?Ve(e.$slots,"panel",{key:0},void 0,!0):O("",!0),e.isAuthorized?(C(),B(ie,{key:1})):O("",!0),s(l),e.isUserAdmin?(C(),B(xe(t.AdminMenu),{key:2})):O("",!0),s(ie)]),x("div",ya,[e.isAuthorized?(C(),B(u,{key:0})):O("",!0),s(b)])])]),_:3},8,["modelValue"])}const xa=U(ma,[["render",ba],["__scopeId","data-v-0412ab42"]]);export{Pa as S,Rt as V,Da as a,xa as b,Dt as c,da as d};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/admin-settings-button-progress-BAk-B1sR.js","assets/main-BVKrDunc.js","assets/main-BZ73p_WW.css","assets/VDialog-Db4tJYqR.js","assets/transition-DWVQ2EZ3.js","assets/transition-5LRFTPo5.css","assets/VDialog-DXQz0Ylp.css","assets/admin-settings-button-progress-DUUQfVsZ.css","assets/admin-menu-Jfmp_Yd8.js","assets/change-password-dialog-DJtOQw7K.js","assets/VTextField-X5yAw35c.js","assets/VSelectionControl-CxhDNufT.js","assets/VSelectionControl-CiViEYoC.css","assets/VTextField-Crc3gdNh.css","assets/change-password-dialog-C_EOKOn9.css","assets/VSlideGroup-DRbthp6q.js","assets/VSlideGroup-BtXPhMOT.css","assets/index-ClGiHwWc.js","assets/index-CL_6g4tJ.css","assets/admin-menu-B9bzD6hV.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as U,o as C,c as B,a9 as Ze,B as je,w as k,ak as Te,i as Q,aq as Pe,ar as De,bc as Ke,y as ee,H as re,m as te,u as N,r as L,a as s,b as E,C as P,D as xe,E as O,P as Qe,au as Be,p as ae,Y as oe,g as ne,h as le,aQ as ue,t as Z,aR as ce,aS as Ee,aU as M,f as y,l as Re,q as F,bd as $e,be as Je,bf as et,A as Y,L as x,K as tt,aN as at,$ as Ie,bg as ot,bh as Oe,e as Me,bi as nt,bj as G,bk as Ae,bl as Le,bm as lt,v as Ne,bn as Ue,aV as X,bo as He,bp as st,bq as it,br as rt,bs as ut,k as ct,bt as dt,F as vt,aX as mt}from"./main-BVKrDunc.js";import{V as ze,x as de,v as ve,e as me,y as he,w as fe,g as ge,r as Fe,h as K,i as ht,z as ft,A as gt,u as yt,B as bt,D as _t}from"./VDialog-Db4tJYqR.js";import{V as W,a as se,c as J}from"./transition-DWVQ2EZ3.js";import{c as pt,i as wt}from"./VSelectionControl-CxhDNufT.js";import{P as St,a as kt}from"./unauthorized-CEGD20tR.js";import{c as Ct}from"./copy-to-clipboard-DoUvDJVx.js";import{a as ie}from"./VSlideGroup-DRbthp6q.js";import{u as Vt}from"./VTextField-X5yAw35c.js";const Tt={name:"ScaleButton",props:{scale:{type:Boolean,default:!1}},computed:{breakPoint(){return this.$vuetify.display.xs},density(){return this.breakPoint?"compact":"default"}}};function Pt(e,n,a,d,t,o){return C(),B(ze,{density:o.density},Ze({_:2},[je(e.$slots,(l,u)=>({name:u,fn:k(b=>[Te(e.$slots,u,Q({props:l},b))])}))]),1032,["density"])}const Dt=U(Tt,[["render",Pt]]),ke=Pe(De(()=>Be(()=>import("./admin-settings-button-progress-BAk-B1sR.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])))),xt={name:"SettingsDrawerButton",components:{AdminSettingsButtonProgress:ke,ScaleButton:Dt},data(){return{mdiMenu:Ke,AdminSettingsButtonProgress:ke}},computed:{...ee(re,["isUserAdmin"])},methods:{...te(N,["setSettingsDrawerOpen"]),onClick(){this.setSettingsDrawerOpen(!0)}}};function Bt(e,n,a,d,t,o){const l=L("ScaleButton");return C(),B(l,{id:"settingsDrawerButton",variant:"plain",icon:"",title:"Settings",onClick:Qe(o.onClick,["prevent"])},{default:k(()=>[s(W,null,{default:k(()=>[E(P(t.mdiMenu),1)]),_:1}),e.isUserAdmin?(C(),B(xe(t.AdminSettingsButtonProgress),{key:0})):O("",!0)]),_:1},8,["onClick"])}const Pa=U(xt,[["render",Bt],["__scopeId","data-v-cdf6ad8a"]]),Et=ae({text:String,...oe(),...se()},"VToolbarTitle"),Rt=ne()({name:"VToolbarTitle",props:Et(),setup(e,n){let{slots:a}=n;return le(()=>{const d=!!(a.default||a.text||e.text);return s(e.tag,{class:["v-toolbar-title",e.class],style:e.style},{default:()=>{var t;return[d&&s("div",{class:"v-toolbar-title__placeholder"},[a.text?a.text():e.text,(t=a.default)==null?void 0:t.call(a)])]}})}),{}}}),$t=[null,"prominent","default","comfortable","compact"],It=ae({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>$t.includes(e)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...de(),...oe(),...ve(),...me(),...se({tag:"header"}),...ue()},"VToolbar"),Da=ne()({name:"VToolbar",props:It(),setup(e,n){var m;let{slots:a}=n;const{backgroundColorClasses:d,backgroundColorStyles:t}=J(Z(e,"color")),{borderClasses:o}=he(e),{elevationClasses:l}=fe(e),{roundedClasses:u}=ge(e),{themeClasses:b}=ce(e),{rtlClasses:_}=Ee(),c=M(!!(e.extended||(m=a.extension)!=null&&m.call(a))),f=y(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),v=y(()=>c.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return Re({VBtn:{variant:"text"}}),le(()=>{var I;const p=!!(e.title||a.title),V=!!(a.image||e.image),$=(I=a.extension)==null?void 0:I.call(a);return c.value=!!(e.extended||$),s(e.tag,{class:["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},d.value,o.value,l.value,u.value,b.value,_.value,e.class],style:[t.value,e.style]},{default:()=>[V&&s("div",{key:"image",class:"v-toolbar__image"},[a.image?s(K,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},a.image):s(Fe,{key:"image-img",cover:!0,src:e.image},null)]),s(K,{defaults:{VTabs:{height:F(f.value)}}},{default:()=>{var R,D,A;return[s("div",{class:"v-toolbar__content",style:{height:F(f.value)}},[a.prepend&&s("div",{class:"v-toolbar__prepend"},[(R=a.prepend)==null?void 0:R.call(a)]),p&&s(Rt,{key:"title",text:e.title},{text:a.title}),(D=a.default)==null?void 0:D.call(a),a.append&&s("div",{class:"v-toolbar__append"},[(A=a.append)==null?void 0:A.call(a)])])]}}),s(K,{defaults:{VTabs:{height:F(v.value)}}},{default:()=>[s(pt,null,{default:()=>[c.value&&s("div",{class:"v-toolbar__extension",style:{height:F(v.value)}},[$])]})]})]})}),{contentHeight:f,extensionHeight:v}}}),Ot={name:"OPDSUrl",props:{title:{type:String,required:!0},subtitle:{type:String,default:void 0},urlPath:{type:String,required:!0}},data(){return{mdiRss:$e,showTooltip:{show:!1}}},computed:{clipBoardEnabled(){return location.protocol=="https:"},clipBoardIcon(){return this.showTooltip.show?Je:et},tooltip(){return this.clipBoardEnabled},url(){return window.origin+this.urlPath}},methods:{onClickURL(){this.clipBoardEnabled&&Ct(this.url,this.showTooltip)}}},Mt=["title"],At={key:0},Lt={class:"copied"},Nt={key:1,class:"subtitle"},Ut={class:"opdsUrl"};function Ht(e,n,a,d,t,o){return C(),Y("div",{class:"opdsVersion",title:o.tooltip,onClick:n[0]||(n[0]=(...l)=>o.onClickURL&&o.onClickURL(...l))},[x("h3",null,[E(P(a.title)+" ",1),o.clipBoardEnabled?(C(),Y("span",At,[s(W,{class:"clipBoardIcon",size:"small"},{default:k(()=>[E(P(o.clipBoardIcon),1)]),_:1}),s(wt,null,{default:k(()=>[tt(x("span",Lt,"Copied",512),[[at,t.showTooltip.show]])]),_:1})])):O("",!0),a.subtitle?(C(),Y("span",Nt,P(a.subtitle),1)):O("",!0)]),x("div",Ut,P(o.url),1)],8,Mt)}const zt=U(Ot,[["render",Ht],["__scopeId","data-v-b8e2453a"]]),Ft={name:"OPDSDialog",components:{OPDSUrl:zt,PlaceholderLoading:St},data(){return{mdiRss:$e}},computed:{...ee(N,{opdsURLs:e=>e.opdsURLs})},methods:{...te(N,["loadOPDSURLs"])}},Yt={key:0,id:"opds"};function Wt(e,n,a,d,t,o){const l=L("OPDSUrl"),u=L("PlaceholderLoading");return C(),B(ht,{"max-width":"30em"},{activator:k(({props:b})=>[s(ze,Q({id:"opdsButton",icon:"",size:"small",variant:"plain"},b,{onClick:e.loadOPDSURLs}),{default:k(()=>[s(W,null,{default:k(()=>[E(P(t.mdiRss),1)]),_:1}),n[0]||(n[0]=E(" OPDS "))]),_:2},1040,["onClick"])]),default:k(()=>[e.opdsURLs?(C(),Y("div",Yt,[x("h2",null,[s(W,{size:"x=small",class:"inline"},{default:k(()=>[E(P(t.mdiRss),1)]),_:1}),n[1]||(n[1]=E(" OPDS "))]),s(l,{title:"v1.2","url-path":e.opdsURLs.v1},null,8,["url-path"]),s(l,{title:"v2.0","url-path":e.opdsURLs.v2,subtitle:"Experimental and not widely or well supported by clients"},null,8,["url-path"])])):(C(),B(u,{key:1}))]),_:1})}const qt=U(Ft,[["render",Wt],["__scopeId","data-v-5646b9a1"]]),Xt={name:"RepoFooter",data(){return{mdiOpenInNew:Ie,mdiSourceRepository:ot}}},Gt={id:"repo",href:"https://github.com/ajslater/codex",title:"Codex Source Repository",target:"_blank"};function Zt(e,n,a,d,t,o){return C(),Y("a",Gt,[s(W,{id:"repoIcon",size:"x-small"},{default:k(()=>[E(P(t.mdiSourceRepository),1)]),_:1}),n[0]||(n[0]=E(" repository")),s(W,{color:e.$vuetify.theme.current.colors.iconsInactive,size:"x-small"},{default:k(()=>[E(P(t.mdiOpenInNew),1)]),_:1},8,["color"])])}const jt=U(Xt,[["render",Zt],["__scopeId","data-v-fae4fb39"]]),Kt=ae({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...de(),...oe(),...ve(),...Oe(),...me(),...se({tag:"footer"}),...ue()},"VFooter"),Ye=ne()({name:"VFooter",props:Kt(),setup(e,n){let{slots:a}=n;const d=Me(),{themeClasses:t}=ce(e),{backgroundColorClasses:o,backgroundColorStyles:l}=J(Z(e,"color")),{borderClasses:u}=he(e),{elevationClasses:b}=fe(e),{roundedClasses:_}=ge(e),c=M(32),{resizeRef:f}=nt(m=>{m.length&&(c.value=m[0].target.clientHeight)}),v=y(()=>e.height==="auto"?c.value:parseInt(e.height,10));return G(()=>e.app,()=>{const m=Ae({id:e.name,order:y(()=>parseInt(e.order,10)),position:y(()=>"bottom"),layoutSize:v,elementSize:y(()=>e.height==="auto"?void 0:v.value),active:y(()=>e.app),absolute:Z(e,"absolute")});Le(()=>{d.value=m.layoutItemStyles.value})}),le(()=>s(e.tag,{ref:f,class:["v-footer",t.value,o.value,u.value,b.value,_.value,e.class],style:[l.value,e.app?d.value:{height:F(e.height)},e.style]},a)),{}}}),Qt={name:"VersionFooter",data(){return{mdiOpenInNew:Ie,mdiContentCopy:lt}},computed:{...ee(N,{versions:e=>e.versions}),...Ne(re,["isUserAdmin"]),outdated:function(){return this.isUserAdmin&&this.semverGreaterThan(this.versions.latest>this.versions.installed)},versionTitle:function(){return this.outdated?`v${this.versions.latest} is available`:"up to date"}},created(){this.loadVersions()},methods:{...te(N,["loadVersions"]),semverGreaterThan(e,n){try{if(!e||!n)return!1;const a=e.split("."),d=n.split(".");for(const[t,o]of a.entries())if(+o>+d[t])return!0}catch(a){console.debug("compare codex versions",e,">",n,a)}return!1}}},Jt={id:"version"},ea={key:0,id:"latest"};function ta(e,n,a,d,t,o){return C(),B(Ye,{id:"version-footer",title:o.versionTitle},{default:k(()=>[x("div",Jt,"codex v"+P(e.versions.installed),1),o.outdated?(C(),Y("div",ea," codex v"+P(e.versions.latest)+" is available ",1)):O("",!0)]),_:1},8,["title"])}const aa=U(Qt,[["render",ta],["__scopeId","data-v-4787569d"]]);function oa(e){let{rootEl:n,isSticky:a,layoutItemStyles:d}=e;const t=M(!1),o=M(0),l=y(()=>{const _=typeof t.value=="boolean"?"top":t.value;return[a.value?{top:"auto",bottom:"auto",height:void 0}:void 0,t.value?{[_]:F(o.value)}:{top:d.value.top}]});Ue(()=>{X(a,_=>{_?window.addEventListener("scroll",b,{passive:!0}):window.removeEventListener("scroll",b)},{immediate:!0})}),He(()=>{window.removeEventListener("scroll",b)});let u=0;function b(){const _=u>window.scrollY?"up":"down",c=n.value.getBoundingClientRect(),f=parseFloat(d.value.top??0),v=window.scrollY-Math.max(0,o.value-f),m=c.height+Math.max(o.value,f)-window.scrollY-window.innerHeight,p=parseFloat(getComputedStyle(n.value).getPropertyValue("--v-body-scroll-y"))||0;c.height<window.innerHeight-f?(t.value="top",o.value=f):_==="up"&&t.value==="bottom"||_==="down"&&t.value==="top"?(o.value=window.scrollY+c.top-p,t.value=!0):_==="down"&&m<=0?(o.value=0,t.value="bottom"):_==="up"&&v<=0&&(p?t.value!=="top"&&(o.value=-v+p+f,t.value="top"):(o.value=c.top+v,t.value="top")),u=window.scrollY}return{isStuck:t,stickyStyles:l}}const na=100,la=20;function Ce(e){return(e<0?-1:1)*Math.sqrt(Math.abs(e))*1.41421356237}function Ve(e){if(e.length<2)return 0;if(e.length===2)return e[1].t===e[0].t?0:(e[1].d-e[0].d)/(e[1].t-e[0].t);let n=0;for(let a=e.length-1;a>0;a--){if(e[a].t===e[a-1].t)continue;const d=Ce(n),t=(e[a].d-e[a-1].d)/(e[a].t-e[a-1].t);n+=(t-d)*Math.abs(t),a===e.length-1&&(n*=.5)}return Ce(n)*1e3}function sa(){const e={};function n(t){Array.from(t.changedTouches).forEach(o=>{(e[o.identifier]??(e[o.identifier]=new st(la))).push([t.timeStamp,o])})}function a(t){Array.from(t.changedTouches).forEach(o=>{delete e[o.identifier]})}function d(t){var _;const o=(_=e[t])==null?void 0:_.values().reverse();if(!o)throw new Error(`No samples for touch id ${t}`);const l=o[0],u=[],b=[];for(const c of o){if(l[0]-c[0]>na)break;u.push({t:c[0],d:c[1].clientX}),b.push({t:c[0],d:c[1].clientY})}return{x:Ve(u),y:Ve(b),get direction(){const{x:c,y:f}=this,[v,m]=[Math.abs(c),Math.abs(f)];return v>m&&c>=0?"right":v>m&&c<=0?"left":m>v&&f>=0?"down":m>v&&f<=0?"up":ia()}}}return{addMovement:n,endTouch:a,getVelocity:d}}function ia(){throw new Error}function ra(e){let{el:n,isActive:a,isTemporary:d,width:t,touchless:o,position:l}=e;Ue(()=>{window.addEventListener("touchstart",R,{passive:!0}),window.addEventListener("touchmove",D,{passive:!1}),window.addEventListener("touchend",A,{passive:!0})}),He(()=>{window.removeEventListener("touchstart",R),window.removeEventListener("touchmove",D),window.removeEventListener("touchend",A)});const u=y(()=>["left","right"].includes(l.value)),{addMovement:b,endTouch:_,getVelocity:c}=sa();let f=!1;const v=M(!1),m=M(0),p=M(0);let V;function $(i,r){return(l.value==="left"?i:l.value==="right"?document.documentElement.clientWidth-i:l.value==="top"?i:l.value==="bottom"?document.documentElement.clientHeight-i:z())-(r?t.value:0)}function I(i){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const h=l.value==="left"?(i-p.value)/t.value:l.value==="right"?(document.documentElement.clientWidth-i-p.value)/t.value:l.value==="top"?(i-p.value)/t.value:l.value==="bottom"?(document.documentElement.clientHeight-i-p.value)/t.value:z();return r?Math.max(0,Math.min(1,h)):h}function R(i){if(o.value)return;const r=i.changedTouches[0].clientX,h=i.changedTouches[0].clientY,g=25,S=l.value==="left"?r<g:l.value==="right"?r>document.documentElement.clientWidth-g:l.value==="top"?h<g:l.value==="bottom"?h>document.documentElement.clientHeight-g:z(),w=a.value&&(l.value==="left"?r<t.value:l.value==="right"?r>document.documentElement.clientWidth-t.value:l.value==="top"?h<t.value:l.value==="bottom"?h>document.documentElement.clientHeight-t.value:z());(S||w||a.value&&d.value)&&(V=[r,h],p.value=$(u.value?r:h,a.value),m.value=I(u.value?r:h),f=p.value>-20&&p.value<80,_(i),b(i))}function D(i){const r=i.changedTouches[0].clientX,h=i.changedTouches[0].clientY;if(f){if(!i.cancelable){f=!1;return}const S=Math.abs(r-V[0]),w=Math.abs(h-V[1]);(u.value?S>w&&S>3:w>S&&w>3)?(v.value=!0,f=!1):(u.value?w:S)>3&&(f=!1)}if(!v.value)return;i.preventDefault(),b(i);const g=I(u.value?r:h,!1);m.value=Math.max(0,Math.min(1,g)),g>1?p.value=$(u.value?r:h,!0):g<0&&(p.value=$(u.value?r:h,!1))}function A(i){if(f=!1,!v.value)return;b(i),v.value=!1;const r=c(i.changedTouches[0].identifier),h=Math.abs(r.x),g=Math.abs(r.y);(u.value?h>g&&h>400:g>h&&g>3)?a.value=r.direction===({left:"right",right:"left",top:"down",bottom:"up"}[l.value]||z()):a.value=m.value>.5}const q=y(()=>v.value?{transform:l.value==="left"?`translateX(calc(-100% + ${m.value*t.value}px))`:l.value==="right"?`translateX(calc(100% - ${m.value*t.value}px))`:l.value==="top"?`translateY(calc(-100% + ${m.value*t.value}px))`:l.value==="bottom"?`translateY(calc(100% - ${m.value*t.value}px))`:z(),transition:"none"}:void 0);return G(v,()=>{var h,g;const i=((h=n.value)==null?void 0:h.style.transform)??null,r=((g=n.value)==null?void 0:g.style.transition)??null;Le(()=>{var S,w,H,j;(w=n.value)==null||w.style.setProperty("transform",((S=q.value)==null?void 0:S.transform)||"none"),(j=n.value)==null||j.style.setProperty("transition",((H=q.value)==null?void 0:H.transition)||null)}),it(()=>{var S,w;(S=n.value)==null||S.style.setProperty("transform",i),(w=n.value)==null||w.style.setProperty("transition",r)})}),{isDragging:v,dragProgress:m,dragStyles:q}}function z(){throw new Error}const ua=["start","end","left","right","top","bottom"],ca=ae({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>ua.includes(e)},sticky:Boolean,...de(),...oe(),...ft(),...rt({mobile:null}),...ve(),...Oe(),...me(),...se({tag:"nav"}),...ue()},"VNavigationDrawer"),da=ne()({name:"VNavigationDrawer",props:ca(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,n){let{attrs:a,emit:d,slots:t}=n;const{isRtl:o}=Ee(),{themeClasses:l}=ce(e),{borderClasses:u}=he(e),{backgroundColorClasses:b,backgroundColorStyles:_}=J(Z(e,"color")),{elevationClasses:c}=fe(e),{displayClasses:f,mobile:v}=ut(e),{roundedClasses:m}=ge(e),p=gt(),V=ct(e,"modelValue",null,T=>!!T),{ssrBootStyles:$}=Vt(),{scopeId:I}=yt(),R=Me(),D=M(!1),{runOpenDelay:A,runCloseDelay:q}=_t(e,T=>{D.value=T}),i=y(()=>e.rail&&e.expandOnHover&&D.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),r=y(()=>bt(e.location,o.value)),h=y(()=>e.persistent),g=y(()=>!e.permanent&&(v.value||e.temporary)),S=y(()=>e.sticky&&!g.value&&r.value!=="bottom");G(()=>e.expandOnHover&&e.rail!=null,()=>{X(D,T=>d("update:rail",!T))}),G(()=>!e.disableResizeWatcher,()=>{X(g,T=>!e.permanent&&mt(()=>V.value=!T))}),G(()=>!e.disableRouteWatcher&&!!p,()=>{X(p.currentRoute,()=>g.value&&(V.value=!1))}),X(()=>e.permanent,T=>{T&&(V.value=!0)}),e.modelValue==null&&!g.value&&(V.value=e.permanent||!v.value);const{isDragging:w,dragProgress:H}=ra({el:R,isActive:V,isTemporary:g,width:i,touchless:Z(e,"touchless"),position:r}),j=y(()=>{const T=g.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):i.value;return w.value?T*H.value:T}),We=y(()=>["top","bottom"].includes(e.location)?0:i.value),{layoutItemStyles:ye,layoutItemScrimStyles:qe}=Ae({id:e.name,order:y(()=>parseInt(e.order,10)),position:r,layoutSize:j,elementSize:We,active:y(()=>V.value||w.value),disableTransitions:y(()=>w.value),absolute:y(()=>e.absolute||S.value&&typeof be.value!="string")}),{isStuck:be,stickyStyles:Xe}=oa({rootEl:R,isSticky:S,layoutItemStyles:ye}),_e=J(y(()=>typeof e.scrim=="string"?e.scrim:null)),Ge=y(()=>({...w.value?{opacity:H.value*.2,transition:"none"}:void 0,...qe.value}));return Re({VList:{bgColor:"transparent"}}),le(()=>{const T=t.image||e.image;return s(vt,null,[s(e.tag,Q({ref:R,onMouseenter:A,onMouseleave:q,class:["v-navigation-drawer",`v-navigation-drawer--${r.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":D.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":g.value,"v-navigation-drawer--persistent":h.value,"v-navigation-drawer--active":V.value,"v-navigation-drawer--sticky":S.value},l.value,b.value,u.value,f.value,c.value,m.value,e.class],style:[_.value,ye.value,$.value,Xe.value,e.style,["top","bottom"].includes(r.value)?{height:"auto"}:{}]},I,a),{default:()=>{var pe,we,Se;return[T&&s("div",{key:"image",class:"v-navigation-drawer__img"},[t.image?s(K,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:e.image}}},t.image):s(Fe,{key:"image-img",alt:"",cover:!0,height:"inherit",src:e.image},null)]),t.prepend&&s("div",{class:"v-navigation-drawer__prepend"},[(pe=t.prepend)==null?void 0:pe.call(t)]),s("div",{class:"v-navigation-drawer__content"},[(we=t.default)==null?void 0:we.call(t)]),t.append&&s("div",{class:"v-navigation-drawer__append"},[(Se=t.append)==null?void 0:Se.call(t)])]}}),s(dt,{name:"fade-transition"},{default:()=>[g.value&&(w.value||V.value)&&!!e.scrim&&s("div",Q({class:["v-navigation-drawer__scrim",_e.backgroundColorClasses.value],style:[Ge.value,_e.backgroundColorStyles.value],onClick:()=>{h.value||(V.value=!1)}},I),null)]})])}),{isStuck:be}}}),va=Pe(De(()=>Be(()=>import("./admin-menu-Jfmp_Yd8.js"),__vite__mapDeps([8,1,2,9,3,4,5,6,10,11,12,13,14,15,16,17,18,19])))),ma={name:"SettingsDrawer",components:{AuthMenu:kt,OPDSDialog:qt,RepoFooter:jt,VersionFooter:aa},props:{title:{type:String,required:!0}},data(){return{AdminMenu:va}},computed:{...Ne(re,["isUserAdmin","isAuthorized"]),...ee(N,{isSettingsDrawerOpen:e=>e.isSettingsDrawerOpen}),open:{get(){return this.isSettingsDrawerOpen||!this.isAuthorized},set(e){this.setSettingsDrawerOpen(e)}}},methods:{...te(N,["setSettingsDrawerOpen"])}},ha={class:"settingsDrawerContainer"},fa={id:"topBlock"},ga={class:"settingsHeader"},ya={id:"scrollFooter",class:"footer"};function ba(e,n,a,d,t,o){const l=L("AuthMenu"),u=L("OPDSDialog"),b=L("RepoFooter"),_=L("VersionFooter");return C(),B(da,{modelValue:o.open,"onUpdate:modelValue":n[0]||(n[0]=c=>o.open=c),"disable-route-watcher":"",location:"right",touchless:""},{append:k(()=>[s(Ye,{id:"bottomFooter",class:"footer"},{default:k(()=>[s(_)]),_:1})]),default:k(()=>[x("div",ha,[x("div",fa,[x("header",ga,[x("h3",null,P(a.title),1)]),s(ie),e.isAuthorized?Te(e.$slots,"panel",{key:0},void 0,!0):O("",!0),e.isAuthorized?(C(),B(ie,{key:1})):O("",!0),s(l),e.isUserAdmin?(C(),B(xe(t.AdminMenu),{key:2})):O("",!0),s(ie)]),x("div",ya,[e.isAuthorized?(C(),B(u,{key:0})):O("",!0),s(b)])])]),_:3},8,["modelValue"])}const xa=U(ma,[["render",ba],["__scopeId","data-v-0412ab42"]]);export{Pa as S,Rt as V,Da as a,xa as b,Dt as c,da as d};
|
|
Binary file
|
|
Binary file
|
codex/static_root/assets/{stats-tab-BAYTqQNg.5f715428c394.css → stats-tab-BlXGStge.9fdb0106124d.css}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
.statBlock[data-v-4bb3ecd9]{display:inline-block;vertical-align:top;margin-bottom:20px;margin-right:40px}h3[data-v-4bb3ecd9]{margin-top:1em;text-align:center}.highlight-table[data-v-4bb3ecd9]{color:rgb(var(--v-theme-textSecondary))}.highlight-table tbody[data-v-4bb3ecd9]:nth-child(2n){background-color:rgb(var(--v-theme-background))!important}tr td[data-v-4bb3ecd9]:nth-child(2){text-align:right}.subtitleRow[data-v-4bb3ecd9]{height:28px!important;font-weight:700!important;background-color:rgb(var(--v-theme-surface))!important}.indent[data-v-4bb3ecd9]{padding-left:2em!important}#schemaDoc[data-v-
|
|
1
|
+
.statBlock[data-v-4bb3ecd9]{display:inline-block;vertical-align:top;margin-bottom:20px;margin-right:40px}h3[data-v-4bb3ecd9]{margin-top:1em;text-align:center}.highlight-table[data-v-4bb3ecd9]{color:rgb(var(--v-theme-textSecondary))}.highlight-table tbody[data-v-4bb3ecd9]:nth-child(2n){background-color:rgb(var(--v-theme-background))!important}tr td[data-v-4bb3ecd9]:nth-child(2){text-align:right}.subtitleRow[data-v-4bb3ecd9]{height:28px!important;font-weight:700!important;background-color:rgb(var(--v-theme-surface))!important}.indent[data-v-4bb3ecd9]{padding-left:2em!important}#schemaDoc[data-v-00c3cd2c]{font-size:small;color:rgb(var(--v-theme-textSecondary));background-color:rgb(var(--v-theme-background))}#schemaDoc>td[data-v-00c3cd2c]{border-bottom:none!important}
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.statBlock[data-v-4bb3ecd9]{display:inline-block;vertical-align:top;margin-bottom:20px;margin-right:40px}h3[data-v-4bb3ecd9]{margin-top:1em;text-align:center}.highlight-table[data-v-4bb3ecd9]{color:rgb(var(--v-theme-textSecondary))}.highlight-table tbody[data-v-4bb3ecd9]:nth-child(2n){background-color:rgb(var(--v-theme-background))!important}tr td[data-v-4bb3ecd9]:nth-child(2){text-align:right}.subtitleRow[data-v-4bb3ecd9]{height:28px!important;font-weight:700!important;background-color:rgb(var(--v-theme-surface))!important}.indent[data-v-4bb3ecd9]{padding-left:2em!important}#schemaDoc[data-v-
|
|
1
|
+
.statBlock[data-v-4bb3ecd9]{display:inline-block;vertical-align:top;margin-bottom:20px;margin-right:40px}h3[data-v-4bb3ecd9]{margin-top:1em;text-align:center}.highlight-table[data-v-4bb3ecd9]{color:rgb(var(--v-theme-textSecondary))}.highlight-table tbody[data-v-4bb3ecd9]:nth-child(2n){background-color:rgb(var(--v-theme-background))!important}tr td[data-v-4bb3ecd9]:nth-child(2){text-align:right}.subtitleRow[data-v-4bb3ecd9]{height:28px!important;font-weight:700!important;background-color:rgb(var(--v-theme-surface))!important}.indent[data-v-4bb3ecd9]{padding-left:2em!important}#schemaDoc[data-v-00c3cd2c]{font-size:small;color:rgb(var(--v-theme-textSecondary));background-color:rgb(var(--v-theme-background))}#schemaDoc>td[data-v-00c3cd2c]{border-bottom:none!important}
|
|
Binary file
|
|
Binary file
|
codex/static_root/assets/{stats-tab-C7iJCFa5.f1039eba03c2.js → stats-tab-bqSPLvTp.05106cb03ef0.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as g,
|
|
1
|
+
import{_ as g,U as j,o as c,A as u,L as l,C as b,a as d,w as k,F as p,B as h,n as w,ak as I,y,u as K,x as _,be as L,bf as B,ch as P,z as T,m as E,r as C,E as x,a$ as D,ci as N,cj as R,ck as V,b as v}from"./main-BVKrDunc.js";import{V as G}from"./VTable-Cbq-yJos.js";import{C as U}from"./confirm-dialog-CME4gKSZ.js";import{c as z}from"./copy-to-clipboard-DoUvDJVx.js";import"./transition-DWVQ2EZ3.js";import"./VDialog-Db4tJYqR.js";const F={name:"StatsTable",props:{title:{type:String,required:!0},items:{type:Object,required:!0}},data(){return{}},methods:{valueTable(e){return e&&typeof e=="object"?e:{}},tdClasses(e){return{indent:e[0]==="+"}},tdLabel(e){return e.replace(/^\+/,"")},nf(e){return typeof e=="number"?j.format(e):e}}},$={class:"statBlock"},H={key:0},M={colspan:"2",class:"subtitleRow"},q={key:1},X={class:"indent"};function Y(e,s,t,r,o,a){return c(),u("div",$,[l("h3",null,b(t.title),1),d(G,{class:"highlight-table"},{default:k(()=>[(c(!0),u(p,null,h(Object.entries(t.items),([n,i])=>(c(),u("tbody",{key:n},[typeof i=="object"?(c(),u("tr",H,[l("th",M,b(n),1)])):(c(),u("tr",q,[l("td",{class:w(a.tdClasses(n))},b(a.tdLabel(n)),3),l("td",null,b(a.nf(i)),1)])),(c(!0),u(p,null,h(Object.entries(a.valueTable(i)),([f,m])=>(c(),u("tr",{key:f},[l("td",X,b(f),1),l("td",null,b(a.nf(m)),1)]))),128))]))),128)),I(e.$slots,"default",{},void 0,!0)]),_:3})])}const J=g(F,[["render",Y],["__scopeId","data-v-4bb3ecd9"]]),A={topGroup:D,orderBy:N,fitTo:R,readingDirection:V},O={authGroupCount:"Authorization Groups",libraryCount:"Libraries",userAnonymousCount:"Anonymous Users",userRegisteredCount:"Registered Users"};Object.freeze(O);Object.freeze(A);const S=new Set(["storyArcNumbersCount","identifierTypesCount","contributorPersonsCount","contributorRolesCount"]);Object.freeze(S);const Q={name:"AdminTasksTab",components:{ConfirmDialog:U,StatsTable:J},data(){return{showTooltip:{show:!1},schemaHref:window.CODEX.API_V3_PATH+"#/api/api_v3_admin_stats_retrieve"}},computed:{...y(K,{}),...y(_,{stats:e=>e.stats}),clipBoardEnabled(){return location.prototcal=="https:"},apiTooltip(){return this.clipBoardEnabled},clipBoardIcon(){return this.showTooltip?L:B},platformTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.platform)){const o=this.keyToLabel(t),a=t==="system"?`${r.name} ${r.release}`:r;e[o]=a}return e},configTable(){var t;const e={};let s="";for(const[r,o]of Object.entries((t=this.stats)==null?void 0:t.config)){let a;if(r=="apiKey"){s=o;continue}else a=O[r];e[a]=o}return e["API Key"]=s,e},userSettingsTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.sessions)){const o={},a=A[t];for(const[i,f]of Object.entries(r)){let m;a?m=a[P(i)]:m=i,o[m]=f}const n=this.keyToLabel(t);e[n]=o}return e},browserGroupsTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.groups)){let o=this.keyToLabel(t);o!=="Series"&&(o+="s"),e[o]=r}return e},fileTypesTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.fileTypes)){const o=t==="unknown"?T(t):this.keyToLabel(t).toUpperCase();e[o]=r}return e},metadataTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.metadata)){let o=t==="countryCount"?"Countries":this.keyToLabel(t)+"s";S.has(t)&&(o=o.replace(/^\w+ /,"+")),e[o]=r}return e}},created(){this.loadStats()},methods:{...E(_,["loadStats","updateAPIKey"]),regenAPIKey(){this.updateAPIKey().then(this.loadStats).catch(console.warn)},onClickAPIKey(){this.clipBoardEnabled&&z(this.stats.config.apiKey,this.showTooltip)},keyToLabel(e){return e=e.replace(/Count$/,""),T(e)}}},W={key:0,id:"stats"},Z={id:"schemaDoc"},ee={colspan:"2"},te=["href"],se={colspan:"2"};function ae(e,s,t,r,o,a){const n=C("StatsTable"),i=C("ConfirmDialog");return e.stats?(c(),u("div",W,[d(n,{title:"Platform",items:a.platformTable},null,8,["items"]),d(n,{title:"Config",items:a.configTable},{default:k(()=>[l("tbody",null,[l("tr",Z,[l("td",ee,[s[0]||(s[0]=v(" The only endpoint accessible by API Key is ")),l("a",{href:o.schemaHref,target:"_blank"},"/admin/stats",8,te)])]),l("tr",null,[l("td",se,[d(i,{"button-text":"Regenerate API Key","title-text":"Regenerate",text:"API Key","confirm-text":"Regenerate",onConfirm:a.regenAPIKey},null,8,["onConfirm"])])])])]),_:1},8,["items"]),d(n,{title:"User Settings",items:a.userSettingsTable},null,8,["items"]),d(n,{title:"Browser Groups",items:a.browserGroupsTable},null,8,["items"]),d(n,{title:"File Types",items:a.fileTypesTable},null,8,["items"]),d(n,{title:"Metadata",items:a.metadataTable},null,8,["items"])])):x("",!0)}const ue=g(Q,[["render",ae],["__scopeId","data-v-00c3cd2c"]]);export{ue as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as g,
|
|
1
|
+
import{_ as g,U as j,o as c,A as u,L as l,C as b,a as d,w as k,F as p,B as h,n as w,ak as I,y,u as K,x as _,be as L,bf as B,ch as P,z as T,m as E,r as C,E as x,a$ as D,ci as N,cj as R,ck as V,b as v}from"./main-BVKrDunc.js";import{V as G}from"./VTable-Cbq-yJos.js";import{C as U}from"./confirm-dialog-CME4gKSZ.js";import{c as z}from"./copy-to-clipboard-DoUvDJVx.js";import"./transition-DWVQ2EZ3.js";import"./VDialog-Db4tJYqR.js";const F={name:"StatsTable",props:{title:{type:String,required:!0},items:{type:Object,required:!0}},data(){return{}},methods:{valueTable(e){return e&&typeof e=="object"?e:{}},tdClasses(e){return{indent:e[0]==="+"}},tdLabel(e){return e.replace(/^\+/,"")},nf(e){return typeof e=="number"?j.format(e):e}}},$={class:"statBlock"},H={key:0},M={colspan:"2",class:"subtitleRow"},q={key:1},X={class:"indent"};function Y(e,s,t,r,o,a){return c(),u("div",$,[l("h3",null,b(t.title),1),d(G,{class:"highlight-table"},{default:k(()=>[(c(!0),u(p,null,h(Object.entries(t.items),([n,i])=>(c(),u("tbody",{key:n},[typeof i=="object"?(c(),u("tr",H,[l("th",M,b(n),1)])):(c(),u("tr",q,[l("td",{class:w(a.tdClasses(n))},b(a.tdLabel(n)),3),l("td",null,b(a.nf(i)),1)])),(c(!0),u(p,null,h(Object.entries(a.valueTable(i)),([f,m])=>(c(),u("tr",{key:f},[l("td",X,b(f),1),l("td",null,b(a.nf(m)),1)]))),128))]))),128)),I(e.$slots,"default",{},void 0,!0)]),_:3})])}const J=g(F,[["render",Y],["__scopeId","data-v-4bb3ecd9"]]),A={topGroup:D,orderBy:N,fitTo:R,readingDirection:V},O={authGroupCount:"Authorization Groups",libraryCount:"Libraries",userAnonymousCount:"Anonymous Users",userRegisteredCount:"Registered Users"};Object.freeze(O);Object.freeze(A);const S=new Set(["storyArcNumbersCount","identifierTypesCount","contributorPersonsCount","contributorRolesCount"]);Object.freeze(S);const Q={name:"AdminTasksTab",components:{ConfirmDialog:U,StatsTable:J},data(){return{showTooltip:{show:!1},schemaHref:window.CODEX.API_V3_PATH+"#/api/api_v3_admin_stats_retrieve"}},computed:{...y(K,{}),...y(_,{stats:e=>e.stats}),clipBoardEnabled(){return location.prototcal=="https:"},apiTooltip(){return this.clipBoardEnabled},clipBoardIcon(){return this.showTooltip?L:B},platformTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.platform)){const o=this.keyToLabel(t),a=t==="system"?`${r.name} ${r.release}`:r;e[o]=a}return e},configTable(){var t;const e={};let s="";for(const[r,o]of Object.entries((t=this.stats)==null?void 0:t.config)){let a;if(r=="apiKey"){s=o;continue}else a=O[r];e[a]=o}return e["API Key"]=s,e},userSettingsTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.sessions)){const o={},a=A[t];for(const[i,f]of Object.entries(r)){let m;a?m=a[P(i)]:m=i,o[m]=f}const n=this.keyToLabel(t);e[n]=o}return e},browserGroupsTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.groups)){let o=this.keyToLabel(t);o!=="Series"&&(o+="s"),e[o]=r}return e},fileTypesTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.fileTypes)){const o=t==="unknown"?T(t):this.keyToLabel(t).toUpperCase();e[o]=r}return e},metadataTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.metadata)){let o=t==="countryCount"?"Countries":this.keyToLabel(t)+"s";S.has(t)&&(o=o.replace(/^\w+ /,"+")),e[o]=r}return e}},created(){this.loadStats()},methods:{...E(_,["loadStats","updateAPIKey"]),regenAPIKey(){this.updateAPIKey().then(this.loadStats).catch(console.warn)},onClickAPIKey(){this.clipBoardEnabled&&z(this.stats.config.apiKey,this.showTooltip)},keyToLabel(e){return e=e.replace(/Count$/,""),T(e)}}},W={key:0,id:"stats"},Z={id:"schemaDoc"},ee={colspan:"2"},te=["href"],se={colspan:"2"};function ae(e,s,t,r,o,a){const n=C("StatsTable"),i=C("ConfirmDialog");return e.stats?(c(),u("div",W,[d(n,{title:"Platform",items:a.platformTable},null,8,["items"]),d(n,{title:"Config",items:a.configTable},{default:k(()=>[l("tbody",null,[l("tr",Z,[l("td",ee,[s[0]||(s[0]=v(" The only endpoint accessible by API Key is ")),l("a",{href:o.schemaHref,target:"_blank"},"/admin/stats",8,te)])]),l("tr",null,[l("td",se,[d(i,{"button-text":"Regenerate API Key","title-text":"Regenerate",text:"API Key","confirm-text":"Regenerate",onConfirm:a.regenAPIKey},null,8,["onConfirm"])])])])]),_:1},8,["items"]),d(n,{title:"User Settings",items:a.userSettingsTable},null,8,["items"]),d(n,{title:"Browser Groups",items:a.browserGroupsTable},null,8,["items"]),d(n,{title:"File Types",items:a.fileTypesTable},null,8,["items"]),d(n,{title:"Metadata",items:a.metadataTable},null,8,["items"])])):x("",!0)}const ue=g(Q,[["render",ae],["__scopeId","data-v-00c3cd2c"]]);export{ue as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as f,y as v,u as p,m as _,x as k,r as b,A as s,L as i,C as o,F as l,B as n,o as e,n as y,c as d,w as g,b as C}from"./main-BVKrDunc.js";import{C as x}from"./confirm-dialog-CME4gKSZ.js";import{V as R}from"./VDialog-Db4tJYqR.js";import"./transition-DWVQ2EZ3.js";const S=[{title:"Libraries",tasks:[{value:"poll",title:"Poll All Libraries",desc:"Update Libraries if changes detected"},{value:"poll_force",title:"Force Update All Libraries",desc:"Forcibly update all comics in all libraries",confirm:"This can take a long time"},{value:"force_update_all_failed_imports",title:"Update All Failed Imports",desc:"Forcibly update all failed imports in all libraries",confirm:"This can take a long time"},{value:"watchdog_sync",title:"Sync Watchdog with DB",desc:"Ensure the Watchdog file watcher is enabled per database preferences for each library"}]},{title:"Covers",tasks:[{value:"purge_comic_covers",title:"Remove Comic Covers",desc:"from every library",confirm:"Are you sure?"},{value:"create_all_comic_covers",title:"Create All Comic Covers",desc:"Pre-generate covers for every comic in every library and all custom covers",confirm:"Are you sure?"},{value:"force_update_groups",title:"Update Group Timestamps",desc:"Force the update of group timestamps. Will bust the browser cache for browser views and covers."}]},{title:"Search Index",tasks:[{value:"search_index_update",title:"Update Search Index",desc:"with recently changed comics"},{value:"search_index_optimize",title:"Optimize Search Index",desc:"Merge Search Index for optimal lookup time. Runs nightly."},{value:"search_index_rebuild",title:"Rebuild Search Index",desc:"Delete and rebuild the search index from scratch",confirm:"This can take a long time"},{value:"search_index_remove_stale",title:"Remove Stale Index Entries",desc:"Remove search index entries that are no longer in the library."},{value:"search_index_abort",title:"Abort Search Indexing",desc:"Aborts search index update and remove tasks."},{value:"search_index_clear",title:"Clear Search Index",desc:"of all entries"},{value:"db_fts_integrity_check",title:"Integrity Check Search Index",desc:"Repairs Search Index on failure. Runs nightly"},{value:"db_fts_rebuild",title:"Repair Search Index",desc:"Probably faster than Rebuild if integrity check fails."}]},{title:"Database",tasks:[{value:"db_vacuum",title:"Optimize & Compact Database",desc:"Run the sqlite3 OPTIMIZE and VACUUM pragmas. Runs nightly"},{value:"db_backup",title:"Backup Database",desc:"Runs nightly"},{value:"db_foreign_key_check",title:"Remove Illegal Foreign Keys",desc:"Check for and remove illegal foreign keys. Mark affected comics for update. Runs nightly."},{value:"db_integrity_check",title:"Check Database Integrity",desc:"Check logs for results. Runs nightly.",confirm:"Can take a while on large databases, Are you sure?"}]},{title:"Codex Software",tasks:[{value:"codex_latest_version",title:"Check for Codex Latest Version",desc:"Check PyPi for the latest version of Codex"},{value:"codex_update",title:"Update Codex",desc:"If Codex updates to a new version, it will restart",confirm:"Are you sure?"},{value:"codex_restart",title:"Restart Codex Server",desc:"Immediately",confirm:"Are you sure?"},{value:"codex_shutdown",title:"Shutdown Codex Server",desc:"Immediately",confirm:"Are you sure?"}]},{title:"Notify",tasks:[{value:"notify_library_changed",title:"Notify Library Changed ",desc:"Signal all clients that the libraries have changed and the browser should fetch new data."},{value:"notify_librarian_status",title:"Notify Librarian Status",desc:"Signal Admin clients to fetch librarian status."}]},{title:"Cleanup",tasks:[{value:"cleanup_fks",title:"Remove Orphan Tags",desc:"After deleting comics, unused linked objects remain in case new comics use them. Runs nightly."},{value:"cleanup_db_custom_covers",title:"Remove Orphan Database Custom Covers",desc:"Remove Custom Covers from the db that no longer represent custom cover images on disk. Runs nightly."},{value:"cleanup_sessions",title:"Cleanup Sessions",desc:"Remove corrupt and expired sessions. Runs nightly."},{value:"cleanup_covers",title:"Remove Orphan Cover Thumbnails",desc:"no longer have source comics or custom images. Runs nightly."},{value:"cleanup_bookmarks",title:"Remove Orphan Bookmarks",desc:"Owned by no session or user. Runs nightly."},{value:"adopt_folders",title:"Adopt Orphan Folders",desc:"Move orphaned folders from the top of the folder tree to under their correct parent. Runs nightly and at startup."},{value:"librarian_clear_status",title:"Clear Librarian Statuses",desc:"Mark all Librarian tasks finished."},{value:"janitor_nightly",title:"Run Nightly Maintenance",desc:"Runs several tasks above that also run nightly.",confirm:"Launches several tasks that run nightly anyway."}]}],w={name:"AdminTasksTab",components:{ConfirmDialog:x},data(){return{tasks:S}},computed:{...v(p,{formSuccess:t=>t.form.success,formErrors:t=>t.form.errors})},methods:{..._(k,["librarianTask"])}},I={id:"tasks"},A={key:0,id:"success"},T={key:1,id:"error"},L={key:2,id:"noRecentTask"},D={class:"taskBox"},B={class:"taskDesc"};function F(t,c,O,E,u,U){const h=b("ConfirmDialog");return e(),s("div",I,[i("div",null,[c[0]||(c[0]=i("span",{id:"lastTaskLabel"},"Last Task Queued:",-1)),i("span",null,[t.formSuccess?(e(),s("span",A,o(t.formSuccess),1)):t.formErrors&&t.formErrors.length>0?(e(),s("span",T,[(e(!0),s(l,null,n(t.formErrors,r=>(e(),s("span",{key:r},o(r),1))),128))])):(e(),s("span",L,"No recent task"))])]),(e(!0),s(l,null,n(u.tasks,r=>(e(),s("div",{key:r.title,"fixed-header":"",class:"taskGroup"},[i("h3",null,o(r.title),1),(e(!0),s(l,null,n(r.tasks,a=>(e(),s("div",{key:a.value,class:y(["trow",{selected:!1}])},[i("div",D,[a.confirm?(e(),d(h,{key:0,"button-text":a.title,"title-text":a.title,text:a.confirm,block:!0,"confirm-text":"Confirm",onConfirm:m=>t.librarianTask(a.value,a.title)},null,8,["button-text","title-text","text","onConfirm"])):(e(),d(R,{key:1,block:"",onClick:m=>t.librarianTask(a.value,a.title)},{default:g(()=>[C(o(a.title),1)]),_:2},1032,["onClick"])),i("div",B,o(a.desc),1)])]))),128))]))),128))])}const $=f(w,[["render",F],["__scopeId","data-v-c5281d1b"]]);export{$ as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as f,y as v,u as p,m as _,x as k,r as b,A as s,L as i,C as o,F as l,B as n,o as e,n as y,c as d,w as g,b as C}from"./main-BVKrDunc.js";import{C as x}from"./confirm-dialog-CME4gKSZ.js";import{V as R}from"./VDialog-Db4tJYqR.js";import"./transition-DWVQ2EZ3.js";const S=[{title:"Libraries",tasks:[{value:"poll",title:"Poll All Libraries",desc:"Update Libraries if changes detected"},{value:"poll_force",title:"Force Update All Libraries",desc:"Forcibly update all comics in all libraries",confirm:"This can take a long time"},{value:"force_update_all_failed_imports",title:"Update All Failed Imports",desc:"Forcibly update all failed imports in all libraries",confirm:"This can take a long time"},{value:"watchdog_sync",title:"Sync Watchdog with DB",desc:"Ensure the Watchdog file watcher is enabled per database preferences for each library"}]},{title:"Covers",tasks:[{value:"purge_comic_covers",title:"Remove Comic Covers",desc:"from every library",confirm:"Are you sure?"},{value:"create_all_comic_covers",title:"Create All Comic Covers",desc:"Pre-generate covers for every comic in every library and all custom covers",confirm:"Are you sure?"},{value:"force_update_groups",title:"Update Group Timestamps",desc:"Force the update of group timestamps. Will bust the browser cache for browser views and covers."}]},{title:"Search Index",tasks:[{value:"search_index_update",title:"Update Search Index",desc:"with recently changed comics"},{value:"search_index_optimize",title:"Optimize Search Index",desc:"Merge Search Index for optimal lookup time. Runs nightly."},{value:"search_index_rebuild",title:"Rebuild Search Index",desc:"Delete and rebuild the search index from scratch",confirm:"This can take a long time"},{value:"search_index_remove_stale",title:"Remove Stale Index Entries",desc:"Remove search index entries that are no longer in the library."},{value:"search_index_abort",title:"Abort Search Indexing",desc:"Aborts search index update and remove tasks."},{value:"search_index_clear",title:"Clear Search Index",desc:"of all entries"},{value:"db_fts_integrity_check",title:"Integrity Check Search Index",desc:"Repairs Search Index on failure. Runs nightly"},{value:"db_fts_rebuild",title:"Repair Search Index",desc:"Probably faster than Rebuild if integrity check fails."}]},{title:"Database",tasks:[{value:"db_vacuum",title:"Optimize & Compact Database",desc:"Run the sqlite3 OPTIMIZE and VACUUM pragmas. Runs nightly"},{value:"db_backup",title:"Backup Database",desc:"Runs nightly"},{value:"db_foreign_key_check",title:"Remove Illegal Foreign Keys",desc:"Check for and remove illegal foreign keys. Mark affected comics for update. Runs nightly."},{value:"db_integrity_check",title:"Check Database Integrity",desc:"Check logs for results. Runs nightly.",confirm:"Can take a while on large databases, Are you sure?"}]},{title:"Codex Software",tasks:[{value:"codex_latest_version",title:"Check for Codex Latest Version",desc:"Check PyPi for the latest version of Codex"},{value:"codex_update",title:"Update Codex",desc:"If Codex updates to a new version, it will restart",confirm:"Are you sure?"},{value:"codex_restart",title:"Restart Codex Server",desc:"Immediately",confirm:"Are you sure?"},{value:"codex_shutdown",title:"Shutdown Codex Server",desc:"Immediately",confirm:"Are you sure?"}]},{title:"Notify",tasks:[{value:"notify_library_changed",title:"Notify Library Changed ",desc:"Signal all clients that the libraries have changed and the browser should fetch new data."},{value:"notify_librarian_status",title:"Notify Librarian Status",desc:"Signal Admin clients to fetch librarian status."}]},{title:"Cleanup",tasks:[{value:"cleanup_fks",title:"Remove Orphan Tags",desc:"After deleting comics, unused linked objects remain in case new comics use them. Runs nightly."},{value:"cleanup_db_custom_covers",title:"Remove Orphan Database Custom Covers",desc:"Remove Custom Covers from the db that no longer represent custom cover images on disk. Runs nightly."},{value:"cleanup_sessions",title:"Cleanup Sessions",desc:"Remove corrupt and expired sessions. Runs nightly."},{value:"cleanup_covers",title:"Remove Orphan Cover Thumbnails",desc:"no longer have source comics or custom images. Runs nightly."},{value:"cleanup_bookmarks",title:"Remove Orphan Bookmarks",desc:"Owned by no session or user. Runs nightly."},{value:"adopt_folders",title:"Adopt Orphan Folders",desc:"Move orphaned folders from the top of the folder tree to under their correct parent. Runs nightly and at startup."},{value:"librarian_clear_status",title:"Clear Librarian Statuses",desc:"Mark all Librarian tasks finished."},{value:"janitor_nightly",title:"Run Nightly Maintenance",desc:"Runs several tasks above that also run nightly.",confirm:"Launches several tasks that run nightly anyway."}]}],w={name:"AdminTasksTab",components:{ConfirmDialog:x},data(){return{tasks:S}},computed:{...v(p,{formSuccess:t=>t.form.success,formErrors:t=>t.form.errors})},methods:{..._(k,["librarianTask"])}},I={id:"tasks"},A={key:0,id:"success"},T={key:1,id:"error"},L={key:2,id:"noRecentTask"},D={class:"taskBox"},B={class:"taskDesc"};function F(t,c,O,E,u,U){const h=b("ConfirmDialog");return e(),s("div",I,[i("div",null,[c[0]||(c[0]=i("span",{id:"lastTaskLabel"},"Last Task Queued:",-1)),i("span",null,[t.formSuccess?(e(),s("span",A,o(t.formSuccess),1)):t.formErrors&&t.formErrors.length>0?(e(),s("span",T,[(e(!0),s(l,null,n(t.formErrors,r=>(e(),s("span",{key:r},o(r),1))),128))])):(e(),s("span",L,"No recent task"))])]),(e(!0),s(l,null,n(u.tasks,r=>(e(),s("div",{key:r.title,"fixed-header":"",class:"taskGroup"},[i("h3",null,o(r.title),1),(e(!0),s(l,null,n(r.tasks,a=>(e(),s("div",{key:a.value,class:y(["trow",{selected:!1}])},[i("div",D,[a.confirm?(e(),d(h,{key:0,"button-text":a.title,"title-text":a.title,text:a.confirm,block:!0,"confirm-text":"Confirm",onConfirm:m=>t.librarianTask(a.value,a.title)},null,8,["button-text","title-text","text","onConfirm"])):(e(),d(R,{key:1,block:"",onClick:m=>t.librarianTask(a.value,a.title)},{default:g(()=>[C(o(a.title),1)]),_:2},1032,["onClick"])),i("div",B,o(a.desc),1)])]))),128))]))),128))])}const $=f(w,[["render",F],["__scopeId","data-v-c5281d1b"]]);export{$ as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#lastTaskLabel[data-v-c5281d1b]{margin-right:1em}#success[data-v-c5281d1b]{color:rgb(var(--v-theme-success))}#error[data-v-c5281d1b]{color:rgb(var(--v-theme-error))}#noRecentTask[data-v-c5281d1b]{color:rgb(var(--v-theme-textDisabled))}.taskGroup[data-v-c5281d1b]{margin-top:1em}.taskBox[data-v-c5281d1b]{padding:12px;margin:10px;border-radius:5px;background-color:rgb(var(--v-theme-surface-light))}.taskDesc[data-v-c5281d1b]{vertical-align:top;color:rgb(var(--v-theme-textSecondary));padding-top:.25em}#tasks[data-v-c5281d1b]{max-width:512px;margin-left:auto;margin-right:auto}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
A@dp^��v��T��u��HJ�*���|���"�W�af��]A��T�Z�]U
|
|
1
|
+
A@dp^��v��T��u��HJ�*���|���"�W�af��]A��T�Z�]U�>@�J������:1�=���m-eB�Bp��fHI�?��BX(�a�%
|
|
2
2
|
���P�� U�����Vh���ċo��jL_��\j�����g��Z* �@��W
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#lastTaskLabel[data-v-c5281d1b]{margin-right:1em}#success[data-v-c5281d1b]{color:rgb(var(--v-theme-success))}#error[data-v-c5281d1b]{color:rgb(var(--v-theme-error))}#noRecentTask[data-v-c5281d1b]{color:rgb(var(--v-theme-textDisabled))}.taskGroup[data-v-c5281d1b]{margin-top:1em}.taskBox[data-v-c5281d1b]{padding:12px;margin:10px;border-radius:5px;background-color:rgb(var(--v-theme-surface-light))}.taskDesc[data-v-c5281d1b]{vertical-align:top;color:rgb(var(--v-theme-textSecondary));padding-top:.25em}#tasks[data-v-c5281d1b]{max-width:512px;margin-left:auto;margin-right:auto}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
A@dp^��v��T��u��HJ�*���|���"�W�af��]A��T�Z�]U
|
|
1
|
+
A@dp^��v��T��u��HJ�*���|���"�W�af��]A��T�Z�]U�>@�J������:1�=���m-eB�Bp��fHI�?��BX(�a�%
|
|
2
2
|
���P�� U�����Vh���ċo��jL_��\j�����g��Z* �@��W
|
|
Binary file
|
codex/static_root/assets/{transition-CQVFPpmZ.ba35e475243a.js → transition-DWVQ2EZ3.0bdfaa37b937.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as v,ce as S,f as C,cn as z,
|
|
1
|
+
import{p as v,ce as S,f as C,cn as z,cv as $,cA as E,cB as Y,cC as j,cD as M,cl as O,q as d,a2 as F,Y as X,aQ as q,g as A,e as G,aR as K,cE as Q,t as U,h as J,cF as Z,cG as ee,a as te,s as ne,cH as k,cc as ie,i as se,cb as ae,bt as oe}from"./main-BVKrDunc.js";const re=[null,"default","comfortable","compact"],_e=v({density:{type:String,default:"default",validator:e=>re.includes(e)}},"density");function be(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S();return{densityClasses:C(()=>`${t}--density-${e.density}`)}}const ce=v({tag:{type:String,default:"div"}},"tag");function N(e){return $(()=>{const t=[],n={};if(e.value.background)if(E(e.value.background)){if(n.backgroundColor=e.value.background,!e.value.text&&Y(e.value.background)){const i=j(e.value.background);if(i.a==null||i.a===1){const s=M(i);n.color=s,n.caretColor=s}}}else t.push(`bg-${e.value.background}`);return e.value.text&&(E(e.value.text)?(n.color=e.value.text,n.caretColor=e.value.text):t.push(`text-${e.value.text}`)),{colorClasses:t,colorStyles:n}})}function le(e,t){const n=C(()=>({text:z(e)?e.value:t?e[t]:null})),{colorClasses:i,colorStyles:s}=N(n);return{textColorClasses:i,textColorStyles:s}}function we(e,t){const n=C(()=>({background:z(e)?e.value:t?e[t]:null})),{colorClasses:i,colorStyles:s}=N(n);return{backgroundColorClasses:i,backgroundColorStyles:s}}const ue=["x-small","small","default","large","x-large"],de=v({size:{type:[String,Number],default:"default"}},"size");function me(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S();return $(()=>{let n,i;return O(ue,e.size)?n=`${t}--size-${e.size}`:e.size&&(i={width:d(e.size),height:d(e.size)}),{sizeClasses:n,sizeStyles:i}})}const pe=v({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:F,...X(),...de(),...ce({tag:"i"}),...q()},"VIcon"),Te=A()({name:"VIcon",props:pe(),setup(e,t){let{attrs:n,slots:i}=t;const s=G(),{themeClasses:a}=K(e),{iconData:o}=Q(C(()=>s.value||e.icon)),{sizeClasses:r}=me(e),{textColorClasses:u,textColorStyles:h}=le(U(e,"color"));return J(()=>{var p,f;const m=(p=i.default)==null?void 0:p.call(i);m&&(s.value=(f=Z(m).filter(b=>b.type===ee&&b.children&&typeof b.children=="string")[0])==null?void 0:f.children);const l=!!(n.onClick||n.onClickOnce);return te(o.value.component,{tag:e.tag,icon:o.value.icon,class:["v-icon","notranslate",a.value,r.value,u.value,{"v-icon--clickable":l,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class],style:[r.value?void 0:{fontSize:d(e.size),height:d(e.size),width:d(e.size)},h.value,e.style],role:l?"button":void 0,"aria-hidden":!l,tabindex:l?e.disabled?-1:0:void 0},{default:()=>[m]})}),{}}}),Ee=v({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function ke(e){return{dimensionStyles:C(()=>{const n={},i=d(e.height),s=d(e.maxHeight),a=d(e.maxWidth),o=d(e.minHeight),r=d(e.minWidth),u=d(e.width);return i!=null&&(n.height=i),s!=null&&(n.maxHeight=s),a!=null&&(n.maxWidth=a),o!=null&&(n.minHeight=o),r!=null&&(n.minWidth=r),u!=null&&(n.width=u),n})}}const w=Symbol("rippleStop"),fe=80;function x(e,t){e.style.transform=t,e.style.webkitTransform=t}function T(e){return e.constructor.name==="TouchEvent"}function P(e){return e.constructor.name==="KeyboardEvent"}const he=function(e,t){var l;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=0,s=0;if(!P(e)){const p=t.getBoundingClientRect(),f=T(e)?e.touches[e.touches.length-1]:e;i=f.clientX-p.left,s=f.clientY-p.top}let a=0,o=.3;(l=t._ripple)!=null&&l.circle?(o=.15,a=t.clientWidth/2,a=n.center?a:a+Math.sqrt((i-a)**2+(s-a)**2)/4):a=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const r=`${(t.clientWidth-a*2)/2}px`,u=`${(t.clientHeight-a*2)/2}px`,h=n.center?r:`${i-a}px`,m=n.center?u:`${s-a}px`;return{radius:a,scale:o,x:h,y:m,centerX:r,centerY:u}},_={show(e,t){var f;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((f=t==null?void 0:t._ripple)!=null&&f.enabled))return;const i=document.createElement("span"),s=document.createElement("span");i.appendChild(s),i.className="v-ripple__container",n.class&&(i.className+=` ${n.class}`);const{radius:a,scale:o,x:r,y:u,centerX:h,centerY:m}=he(e,t,n),l=`${a*2}px`;s.className="v-ripple__animation",s.style.width=l,s.style.height=l,t.appendChild(i);const p=window.getComputedStyle(t);p&&p.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),s.classList.add("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--visible"),x(s,`translate(${r}, ${u}) scale3d(${o},${o},${o})`),s.dataset.activated=String(performance.now()),setTimeout(()=>{s.classList.remove("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--in"),x(s,`translate(${h}, ${m}) scale3d(1,1,1)`)},0)},hide(e){var a;if(!((a=e==null?void 0:e._ripple)!=null&&a.enabled))return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=t[t.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const i=performance.now()-Number(n.dataset.activated),s=Math.max(250-i,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var r;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((r=n.parentNode)==null?void 0:r.parentNode)===e&&e.removeChild(n.parentNode)},300)},s)}};function H(e){return typeof e>"u"||!!e}function g(e){const t={},n=e.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||e[w])){if(e[w]=!0,T(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||P(e),n._ripple.class&&(t.class=n._ripple.class),T(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{_.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{var i;(i=n==null?void 0:n._ripple)!=null&&i.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},fe)}else _.show(e,n,t)}}function L(e){e[w]=!0}function c(e){const t=e.currentTarget;if(t!=null&&t._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{c(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),_.hide(t)}}function R(e){const t=e.currentTarget;t!=null&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let y=!1;function W(e){!y&&(e.keyCode===k.enter||e.keyCode===k.space)&&(y=!0,g(e))}function V(e){y=!1,c(e)}function B(e){y&&(y=!1,c(e))}function I(e,t,n){const{value:i,modifiers:s}=t,a=H(i);if(a||_.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=a,e._ripple.centered=s.center,e._ripple.circle=s.circle,ne(i)&&i.class&&(e._ripple.class=i.class),a&&!n){if(s.stop){e.addEventListener("touchstart",L,{passive:!0}),e.addEventListener("mousedown",L);return}e.addEventListener("touchstart",g,{passive:!0}),e.addEventListener("touchend",c,{passive:!0}),e.addEventListener("touchmove",R,{passive:!0}),e.addEventListener("touchcancel",c),e.addEventListener("mousedown",g),e.addEventListener("mouseup",c),e.addEventListener("mouseleave",c),e.addEventListener("keydown",W),e.addEventListener("keyup",V),e.addEventListener("blur",B),e.addEventListener("dragstart",c,{passive:!0})}else!a&&n&&D(e)}function D(e){e.removeEventListener("mousedown",g),e.removeEventListener("touchstart",g),e.removeEventListener("touchend",c),e.removeEventListener("touchmove",R),e.removeEventListener("touchcancel",c),e.removeEventListener("mouseup",c),e.removeEventListener("mouseleave",c),e.removeEventListener("keydown",W),e.removeEventListener("keyup",V),e.removeEventListener("dragstart",c),e.removeEventListener("blur",B)}function ve(e,t){I(e,t,!1)}function ge(e){delete e._ripple,D(e)}function ye(e,t){if(t.value===t.oldValue)return;const n=H(t.oldValue);I(e,t,n)}const xe={mounted:ve,unmounted:ge,updated:ye},Le=v({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:e=>e!==!0}},"transition"),Se=(e,t)=>{let{slots:n}=t;const{transition:i,disabled:s,group:a,...o}=e,{component:r=a?ae:oe,...u}=typeof i=="object"?i:{};return ie(r,se(typeof i=="string"?{name:s?"":i}:u,typeof i=="string"?{}:Object.fromEntries(Object.entries({disabled:s,group:a}).filter(h=>{let[m,l]=h;return l!==void 0})),o),n)};export{Se as M,xe as R,Te as V,ce as a,be as b,we as c,Ee as d,Le as e,ke as f,de as g,me as h,N as i,_e as m,le as u};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as v,ce as S,f as C,cn as z,
|
|
1
|
+
import{p as v,ce as S,f as C,cn as z,cv as $,cA as E,cB as Y,cC as j,cD as M,cl as O,q as d,a2 as F,Y as X,aQ as q,g as A,e as G,aR as K,cE as Q,t as U,h as J,cF as Z,cG as ee,a as te,s as ne,cH as k,cc as ie,i as se,cb as ae,bt as oe}from"./main-BVKrDunc.js";const re=[null,"default","comfortable","compact"],_e=v({density:{type:String,default:"default",validator:e=>re.includes(e)}},"density");function be(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S();return{densityClasses:C(()=>`${t}--density-${e.density}`)}}const ce=v({tag:{type:String,default:"div"}},"tag");function N(e){return $(()=>{const t=[],n={};if(e.value.background)if(E(e.value.background)){if(n.backgroundColor=e.value.background,!e.value.text&&Y(e.value.background)){const i=j(e.value.background);if(i.a==null||i.a===1){const s=M(i);n.color=s,n.caretColor=s}}}else t.push(`bg-${e.value.background}`);return e.value.text&&(E(e.value.text)?(n.color=e.value.text,n.caretColor=e.value.text):t.push(`text-${e.value.text}`)),{colorClasses:t,colorStyles:n}})}function le(e,t){const n=C(()=>({text:z(e)?e.value:t?e[t]:null})),{colorClasses:i,colorStyles:s}=N(n);return{textColorClasses:i,textColorStyles:s}}function we(e,t){const n=C(()=>({background:z(e)?e.value:t?e[t]:null})),{colorClasses:i,colorStyles:s}=N(n);return{backgroundColorClasses:i,backgroundColorStyles:s}}const ue=["x-small","small","default","large","x-large"],de=v({size:{type:[String,Number],default:"default"}},"size");function me(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S();return $(()=>{let n,i;return O(ue,e.size)?n=`${t}--size-${e.size}`:e.size&&(i={width:d(e.size),height:d(e.size)}),{sizeClasses:n,sizeStyles:i}})}const pe=v({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:F,...X(),...de(),...ce({tag:"i"}),...q()},"VIcon"),Te=A()({name:"VIcon",props:pe(),setup(e,t){let{attrs:n,slots:i}=t;const s=G(),{themeClasses:a}=K(e),{iconData:o}=Q(C(()=>s.value||e.icon)),{sizeClasses:r}=me(e),{textColorClasses:u,textColorStyles:h}=le(U(e,"color"));return J(()=>{var p,f;const m=(p=i.default)==null?void 0:p.call(i);m&&(s.value=(f=Z(m).filter(b=>b.type===ee&&b.children&&typeof b.children=="string")[0])==null?void 0:f.children);const l=!!(n.onClick||n.onClickOnce);return te(o.value.component,{tag:e.tag,icon:o.value.icon,class:["v-icon","notranslate",a.value,r.value,u.value,{"v-icon--clickable":l,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class],style:[r.value?void 0:{fontSize:d(e.size),height:d(e.size),width:d(e.size)},h.value,e.style],role:l?"button":void 0,"aria-hidden":!l,tabindex:l?e.disabled?-1:0:void 0},{default:()=>[m]})}),{}}}),Ee=v({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function ke(e){return{dimensionStyles:C(()=>{const n={},i=d(e.height),s=d(e.maxHeight),a=d(e.maxWidth),o=d(e.minHeight),r=d(e.minWidth),u=d(e.width);return i!=null&&(n.height=i),s!=null&&(n.maxHeight=s),a!=null&&(n.maxWidth=a),o!=null&&(n.minHeight=o),r!=null&&(n.minWidth=r),u!=null&&(n.width=u),n})}}const w=Symbol("rippleStop"),fe=80;function x(e,t){e.style.transform=t,e.style.webkitTransform=t}function T(e){return e.constructor.name==="TouchEvent"}function P(e){return e.constructor.name==="KeyboardEvent"}const he=function(e,t){var l;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=0,s=0;if(!P(e)){const p=t.getBoundingClientRect(),f=T(e)?e.touches[e.touches.length-1]:e;i=f.clientX-p.left,s=f.clientY-p.top}let a=0,o=.3;(l=t._ripple)!=null&&l.circle?(o=.15,a=t.clientWidth/2,a=n.center?a:a+Math.sqrt((i-a)**2+(s-a)**2)/4):a=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const r=`${(t.clientWidth-a*2)/2}px`,u=`${(t.clientHeight-a*2)/2}px`,h=n.center?r:`${i-a}px`,m=n.center?u:`${s-a}px`;return{radius:a,scale:o,x:h,y:m,centerX:r,centerY:u}},_={show(e,t){var f;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((f=t==null?void 0:t._ripple)!=null&&f.enabled))return;const i=document.createElement("span"),s=document.createElement("span");i.appendChild(s),i.className="v-ripple__container",n.class&&(i.className+=` ${n.class}`);const{radius:a,scale:o,x:r,y:u,centerX:h,centerY:m}=he(e,t,n),l=`${a*2}px`;s.className="v-ripple__animation",s.style.width=l,s.style.height=l,t.appendChild(i);const p=window.getComputedStyle(t);p&&p.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),s.classList.add("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--visible"),x(s,`translate(${r}, ${u}) scale3d(${o},${o},${o})`),s.dataset.activated=String(performance.now()),setTimeout(()=>{s.classList.remove("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--in"),x(s,`translate(${h}, ${m}) scale3d(1,1,1)`)},0)},hide(e){var a;if(!((a=e==null?void 0:e._ripple)!=null&&a.enabled))return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=t[t.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const i=performance.now()-Number(n.dataset.activated),s=Math.max(250-i,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var r;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((r=n.parentNode)==null?void 0:r.parentNode)===e&&e.removeChild(n.parentNode)},300)},s)}};function H(e){return typeof e>"u"||!!e}function g(e){const t={},n=e.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||e[w])){if(e[w]=!0,T(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||P(e),n._ripple.class&&(t.class=n._ripple.class),T(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{_.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{var i;(i=n==null?void 0:n._ripple)!=null&&i.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},fe)}else _.show(e,n,t)}}function L(e){e[w]=!0}function c(e){const t=e.currentTarget;if(t!=null&&t._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{c(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),_.hide(t)}}function R(e){const t=e.currentTarget;t!=null&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let y=!1;function W(e){!y&&(e.keyCode===k.enter||e.keyCode===k.space)&&(y=!0,g(e))}function V(e){y=!1,c(e)}function B(e){y&&(y=!1,c(e))}function I(e,t,n){const{value:i,modifiers:s}=t,a=H(i);if(a||_.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=a,e._ripple.centered=s.center,e._ripple.circle=s.circle,ne(i)&&i.class&&(e._ripple.class=i.class),a&&!n){if(s.stop){e.addEventListener("touchstart",L,{passive:!0}),e.addEventListener("mousedown",L);return}e.addEventListener("touchstart",g,{passive:!0}),e.addEventListener("touchend",c,{passive:!0}),e.addEventListener("touchmove",R,{passive:!0}),e.addEventListener("touchcancel",c),e.addEventListener("mousedown",g),e.addEventListener("mouseup",c),e.addEventListener("mouseleave",c),e.addEventListener("keydown",W),e.addEventListener("keyup",V),e.addEventListener("blur",B),e.addEventListener("dragstart",c,{passive:!0})}else!a&&n&&D(e)}function D(e){e.removeEventListener("mousedown",g),e.removeEventListener("touchstart",g),e.removeEventListener("touchend",c),e.removeEventListener("touchmove",R),e.removeEventListener("touchcancel",c),e.removeEventListener("mouseup",c),e.removeEventListener("mouseleave",c),e.removeEventListener("keydown",W),e.removeEventListener("keyup",V),e.removeEventListener("dragstart",c),e.removeEventListener("blur",B)}function ve(e,t){I(e,t,!1)}function ge(e){delete e._ripple,D(e)}function ye(e,t){if(t.value===t.oldValue)return;const n=H(t.oldValue);I(e,t,n)}const xe={mounted:ve,unmounted:ge,updated:ye},Le=v({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:e=>e!==!0}},"transition"),Se=(e,t)=>{let{slots:n}=t;const{transition:i,disabled:s,group:a,...o}=e,{component:r=a?ae:oe,...u}=typeof i=="object"?i:{};return ie(r,se(typeof i=="string"?{name:s?"":i}:u,typeof i=="string"?{}:Object.fromEntries(Object.entries({disabled:s,group:a}).filter(h=>{let[m,l]=h;return l!==void 0})),o),n)};export{Se as M,xe as R,Te as V,ce as a,be as b,we as c,Ee as d,Le as e,ke as f,de as g,me as h,N as i,_e as m,le as u};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a8 as de,v as H,J as ue,_ as b,r as m,o as u,c,p as T,g as N,k as K,e as ce,bu as me,f as j,bv as fe,h as z,bw as ge,a as o,i as V,F as J,G as he,y as P,u as pe,H as y,ag as ve,m as Q,w as g,ab as F,E as A,b as ye,bx as we,A as _e,P as ke,a2 as be,Y,aQ as Se,aR as Ve,t as Ce,bs as Le,q as Pe,a9 as Ae,B as Be,ak as xe,by as Ee,ao as Me,L as Ie}from"./main-BVKrDunc.js";import{C as W,E as De,h as R,L as $e,F as X,i as Fe,r as Ue,V as Re}from"./VDialog-Db4tJYqR.js";import{a as Te}from"./change-password-dialog-DJtOQw7K.js";import{S as Ne,V as U,a as ze,u as We}from"./VTextField-X5yAw35c.js";import{f as Oe,j as Ke,u as je,g as q,k as G,e as qe,c as Ge}from"./VSelectionControl-CxhDNufT.js";import{V as Z,d as ee,g as He,c as Je,f as te,a as Qe}from"./transition-DWVQ2EZ3.js";const Ye={name:"AdminBrowserLink",components:{CodexListItem:W},data(){return{mdiBookshelf:de}},computed:{...H(ue,["lastRoute"])}};function Xe(e,s,i,t,a,r){const l=m("CodexListItem");return u(),c(l,{to:e.lastRoute,"prepend-icon":a.mdiBookshelf,title:"Browser"},null,8,["to","prepend-icon"])}const Ze=b(Ye,[["render",Xe]]),et=T({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...Oe(),...Ke()},"VSwitch"),tt=N()({name:"VSwitch",inheritAttrs:!1,props:et(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,s){let{attrs:i,slots:t}=s;const a=K(e,"indeterminate"),r=K(e,"modelValue"),{loaderClasses:l}=De(e),{isFocused:d,focus:n,blur:w}=je(e),_=ce(),C=me&&window.matchMedia("(forced-colors: active)").matches,B=j(()=>typeof e.loading=="string"&&e.loading!==""?e.loading:e.color),x=fe(),E=j(()=>e.id||`switch-${x}`);function k(){a.value&&(a.value=!1)}function L(h){var p,v;h.stopPropagation(),h.preventDefault(),(v=(p=_.value)==null?void 0:p.input)==null||v.click()}return z(()=>{const[h,p]=ge(i),v=q.filterProps(e),se=G.filterProps(e);return o(q,V({class:["v-switch",{"v-switch--flat":e.flat},{"v-switch--inset":e.inset},{"v-switch--indeterminate":a.value},l.value,e.class]},h,v,{modelValue:r.value,"onUpdate:modelValue":M=>r.value=M,id:E.value,focused:d.value,style:e.style}),{...t,default:M=>{let{id:oe,messagesId:ae,isDisabled:ne,isReadonly:ie,isValid:O}=M;const I={model:r,isValid:O};return o(G,V({ref:_},se,{modelValue:r.value,"onUpdate:modelValue":[S=>r.value=S,k],id:oe.value,"aria-describedby":ae.value,type:"checkbox","aria-checked":a.value?"mixed":void 0,disabled:ne.value,readonly:ie.value,onFocus:n,onBlur:w},p),{...t,default:S=>{let{backgroundColorClasses:D,backgroundColorStyles:f}=S;return o("div",{class:["v-switch__track",C?void 0:D.value],style:f.value,onClick:L},[t["track-true"]&&o("div",{key:"prepend",class:"v-switch__track-true"},[t["track-true"](I)]),t["track-false"]&&o("div",{key:"append",class:"v-switch__track-false"},[t["track-false"](I)])])},input:S=>{let{inputNode:D,icon:f,backgroundColorClasses:re,backgroundColorStyles:le}=S;return o(J,null,[D,o("div",{class:["v-switch__thumb",{"v-switch__thumb--filled":f||e.loading},e.inset||C?void 0:re.value],style:e.inset?void 0:le.value},[t.thumb?o(R,{defaults:{VIcon:{icon:f,size:"x-small"}}},{default:()=>[t.thumb({...I,icon:f})]}):o(qe,null,{default:()=>[e.loading?o($e,{name:"v-switch",active:!0,color:O.value===!1?void 0:B.value},{default:$=>t.loader?t.loader($):o(X,{active:$.isActive,color:$.color,indeterminate:!0,size:"16",width:"2"},null)}):f&&o(Z,{key:String(f),icon:f,size:"x-small"},null)]})])])}})}})}),{}}}),st={name:"AuthLoginDialog",components:{SubmitFooter:Ne,CodexListItem:W},data(){return{rules:{username:[e=>!!e||"Username is required"],password:[e=>e?this.registerMode&&e.length<this.MIN_PASSWORD_LEN?`Password must be ${this.MIN_PASSWORD_LEN} characters long`:!0:"Password is required"],passwordConfirm:[e=>e===this.credentials.password||"Passwords must match"]},formModel:{},credentials:{username:"",password:"",passwordConfirm:""},submitButtonEnabled:!1,registerMode:!1,mdiLogin:he}},computed:{...P(pe,{formErrors:e=>e.form.errors,formSuccess:e=>e.form.success}),...P(y,{adminFlags:e=>e.adminFlags,MIN_PASSWORD_LEN:e=>e.MIN_PASSWORD_LEN}),...ve(y,["showLoginDialog"]),submitButtonLabel(){return this.registerMode?"Register":"Login"},loginLabel(){let e="Login";return this.adminFlags.registration&&(e+=" or Register"),e}},watch:{showLoginDialog(e){e&&(this.loadAdminFlags(),this.$refs.form&&this.$refs.form.reset())},credentials:{handler(){const e=this.$refs.form;e?e.validate().then(({valid:s})=>(this.submitButtonEnabled=s,this.submitButtonEnabled)).catch(console.error):this.submitButtonEnabled=!1},deep:!0}},mounted(){window.addEventListener("keyup",this._keyUpListener)},beforeUnmount(){window.removeEventListener("keyup",this._keyUpListener)},methods:{...Q(y,["loadAdminFlags","login","register"]),doAuth(e){return this[e](this.credentials).then(()=>(this.showLoginDialog=this.formErrors&&this.formErrors.length>0,this.showLoginDialog)).catch(console.error)},submit(){this.$refs.form.validate().then(({valid:s})=>{if(!s)return;const i=this.registerMode?"register":"login";return this.doAuth(i)}).catch(console.error)},_keyUpListener(e){e.stopImmediatePropagation()}}};function ot(e,s,i,t,a,r){const l=m("CodexListItem"),d=m("SubmitFooter");return u(),c(Fe,{modelValue:e.showLoginDialog,"onUpdate:modelValue":s[7]||(s[7]=n=>e.showLoginDialog=n),origin:"center-top",transition:"slide-y-transition","max-width":"20em"},{activator:g(({props:n})=>[o(l,V(n,{"prepend-icon":a.mdiLogin,title:r.loginLabel}),null,16,["prepend-icon","title"])]),default:g(()=>[o(ze,{id:"authDialog",ref:"form"},{default:g(()=>[o(U,{modelValue:a.credentials.username,"onUpdate:modelValue":s[0]||(s[0]=n=>a.credentials.username=n),autocomplete:"username",label:"Username",rules:a.rules.username,clearable:"",autofocus:"",onKeydown:s[1]||(s[1]=F(n=>e.$refs.password.focus(),["enter"]))},null,8,["modelValue","rules"]),o(U,{ref:"password",modelValue:a.credentials.password,"onUpdate:modelValue":s[2]||(s[2]=n=>a.credentials.password=n),autocomplete:a.registerMode?"new-password":"current-password",label:"Password",rules:a.rules.password,clearable:"",type:"password",onKeydown:s[3]||(s[3]=F(n=>{a.registerMode?e.$refs.passwordConfirm.focus():r.submit()},["enter"]))},null,8,["modelValue","autocomplete","rules"]),o(Ge,null,{default:g(()=>[a.registerMode?(u(),c(U,{key:0,ref:"passwordConfirm",modelValue:a.credentials.passwordConfirm,"onUpdate:modelValue":s[4]||(s[4]=n=>a.credentials.passwordConfirm=n),autocomplete:"new-password",label:"Confirm Password",rules:a.rules.passwordConfirm,clearable:"",type:"password",onKeydown:F(r.submit,["enter"])},null,8,["modelValue","rules","onKeydown"])):A("",!0)]),_:1}),e.adminFlags.registration?(u(),c(tt,{key:0,modelValue:a.registerMode,"onUpdate:modelValue":s[5]||(s[5]=n=>a.registerMode=n),label:"Register"},{default:g(()=>s[8]||(s[8]=[ye(" Register ")])),_:1},8,["modelValue"])):A("",!0),o(d,{verb:a.registerMode?"Register":"Login",table:"",disabled:!a.submitButtonEnabled,onSubmit:r.submit,onCancel:s[6]||(s[6]=n=>e.showLoginDialog=!1)},null,8,["verb","disabled","onSubmit"])]),_:1},512)]),_:1},8,["modelValue"])}const at=b(st,[["render",ot],["__scopeId","data-v-8afb3788"]]),nt={name:"AuthMenu",components:{AuthLoginDialog:at,ChangePasswordDialog:Te,CodexListItem:W},props:{showChangePassword:{type:Boolean,default:!0}},data(){return{mdiLogout:we}},computed:{...P(y,{user:e=>e.user}),logoutTitle(){return`Logout ${this.user.username}`}},methods:{...Q(y,["logout"])}},it={key:0};function rt(e,s,i,t,a,r){const l=m("CodexListItem"),d=m("ChangePasswordDialog"),n=m("AuthLoginDialog");return e.user?(u(),_e("div",it,[o(l,{"prepend-icon":a.mdiLogout,title:r.logoutTitle,onClick:ke(e.logout,["stop"])},null,8,["prepend-icon","title","onClick"]),i.showChangePassword?(u(),c(d,{key:0,user:e.user},null,8,["user"])):A("",!0)])):(u(),c(n,{key:1}))}const lt=b(nt,[["render",rt]]),dt={name:"PlaceholderLoading",props:{indeterminate:{type:Boolean,default:!0}}};function ut(e,s,i,t,a,r){return u(),c(X,V({"aria-label":"loading",class:"codexProgressCircular",indeterminate:i.indeterminate},e.$attrs),null,16,["indeterminate"])}const ct=b(dt,[["render",ut],["__scopeId","data-v-7bb4cf22"]]),mt=T({actionText:String,bgColor:String,color:String,icon:be,image:String,justify:{type:String,default:"center"},headline:String,title:String,text:String,textWidth:{type:[Number,String],default:500},href:String,to:String,...Y(),...ee(),...He({size:void 0}),...Se()},"VEmptyState"),ft=N()({name:"VEmptyState",props:mt(),emits:{"click:action":e=>!0},setup(e,s){let{emit:i,slots:t}=s;const{themeClasses:a}=Ve(e),{backgroundColorClasses:r,backgroundColorStyles:l}=Je(Ce(e,"bgColor")),{dimensionStyles:d}=te(e),{displayClasses:n}=Le();function w(_){i("click:action",_)}return z(()=>{var L,h,p;const _=!!(t.actions||e.actionText),C=!!(t.headline||e.headline),B=!!(t.title||e.title),x=!!(t.text||e.text),E=!!(t.media||e.image||e.icon),k=e.size||(e.image?200:96);return o("div",{class:["v-empty-state",{[`v-empty-state--${e.justify}`]:!0},a.value,r.value,n.value,e.class],style:[l.value,d.value,e.style]},[E&&o("div",{key:"media",class:"v-empty-state__media"},[t.media?o(R,{key:"media-defaults",defaults:{VImg:{src:e.image,height:k},VIcon:{size:k,icon:e.icon}}},{default:()=>[t.media()]}):o(J,null,[e.image?o(Ue,{key:"image",src:e.image,height:k},null):e.icon?o(Z,{key:"icon",color:e.color,size:k,icon:e.icon},null):void 0])]),C&&o("div",{key:"headline",class:"v-empty-state__headline"},[((L=t.headline)==null?void 0:L.call(t))??e.headline]),B&&o("div",{key:"title",class:"v-empty-state__title"},[((h=t.title)==null?void 0:h.call(t))??e.title]),x&&o("div",{key:"text",class:"v-empty-state__text",style:{maxWidth:Pe(e.textWidth)}},[((p=t.text)==null?void 0:p.call(t))??e.text]),t.default&&o("div",{key:"content",class:"v-empty-state__content"},[t.default()]),_&&o("div",{key:"actions",class:"v-empty-state__actions"},[o(R,{defaults:{VBtn:{class:"v-empty-state__action-btn",color:e.color??"surface-variant",text:e.actionText}}},{default:()=>{var v;return[((v=t.actions)==null?void 0:v.call(t,{props:{onClick:w}}))??o(Re,{onClick:w},null)]}})])])}),{}}}),gt={name:"EmptyState"};function ht(e,s,i,t,a,r){return u(),c(ft,{class:"empty"},Ae({_:2},[Be(e.$slots,(l,d)=>({name:d,fn:g(n=>[xe(e.$slots,d,V({props:l},n),void 0,!0)])}))]),1024)}const pt=b(gt,[["render",ht],["__scopeId","data-v-c7e33c8c"]]),vt=T({scrollable:Boolean,...Y(),...ee(),...Qe({tag:"main"})},"VMain"),yt=N()({name:"VMain",props:vt(),setup(e,s){let{slots:i}=s;const{dimensionStyles:t}=te(e),{mainStyles:a}=Ee(),{ssrBootStyles:r}=We();return z(()=>o(e.tag,{class:["v-main",{"v-main--scrollable":e.scrollable},e.class],style:[a.value,r.value,t.value,e.style]},{default:()=>{var l,d;return[e.scrollable?o("div",{class:"v-main__scroller"},[(l=i.default)==null?void 0:l.call(i)]):(d=i.default)==null?void 0:d.call(i)]}})),{}}}),wt={name:"UnauthorizedEmptyState",components:{AdminBrowserLink:Ze,AuthMenu:lt,PlaceholderLoading:ct,EmptyState:pt},props:{admin:{type:Boolean,default:!1}},data(){return{mdiLockOutline:Me}},computed:{...H(y,["isAuthChecked","isAuthorized","isUserAdmin"]),...P(y,{showAdminBrowserLink(e){var s,i,t;return((t=(i=(s=this.$router.currentRoute)==null?void 0:s.value)==null?void 0:i.name)==null?void 0:t.startsWith("admin"))&&e.adminFlags.nonUsers},text(e){return e.adminFlags.registration?"":"Registration is disabled"}})}},_t={class:"login"};function kt(e,s,i,t,a,r){const l=m("AdminBrowserLink"),d=m("AuthMenu"),n=m("EmptyState"),w=m("PlaceholderLoading");return u(),c(yt,{id:"unauthorized"},{default:g(()=>[e.isAuthChecked?(u(),c(n,{key:0,class:"empty",headline:"Unauthorized",text:e.text,icon:a.mdiLockOutline},{default:g(()=>[Ie("div",_t,[e.showAdminBrowserLink?(u(),c(l,{key:0})):A("",!0),o(d,{"show-change-password":!1})])]),_:1},8,["text","icon"])):(u(),c(w,{key:1,id:"unauthorizedPlaceholder"}))]),_:1})}const At=b(wt,[["render",kt],["__scopeId","data-v-a56ad455"]]);export{Ze as A,pt as E,ct as P,At as U,yt as V,lt as a};
|
|
Binary file
|
|
Binary file
|