codex 1.6.17__py3-none-any.whl → 1.6.18__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/librarian/janitor/janitor.py +12 -4
- codex/librarian/janitor/latest_version.py +54 -0
- codex/librarian/janitor/status.py +1 -0
- codex/librarian/janitor/tasks.py +14 -7
- codex/librarian/janitor/update.py +21 -2
- codex/librarian/janitor/vacuum.py +1 -2
- codex/librarian/watchdog/emitter.py +12 -14
- codex/librarian/watchdog/events.py +1 -1
- codex/librarian/watchdog/observers.py +4 -4
- codex/serializers/browser/mixins.py +1 -2
- codex/settings/settings.py +4 -1
- codex/signals/django_signals.py +0 -9
- codex/static_root/assets/VCheckbox-D_kRyvnz.981ece08698f.js +1 -0
- codex/static_root/assets/VCheckbox-D_kRyvnz.981ece08698f.js.br +0 -0
- codex/static_root/assets/VCheckbox-D_kRyvnz.981ece08698f.js.gz +0 -0
- codex/static_root/assets/VCheckbox-D_kRyvnz.js +1 -0
- codex/static_root/assets/VCheckbox-D_kRyvnz.js.br +0 -0
- codex/static_root/assets/VCheckbox-D_kRyvnz.js.gz +0 -0
- codex/static_root/assets/VCheckboxBtn-CasNFNDK.3c20f8d4f5d9.js +1 -0
- codex/static_root/assets/VCheckboxBtn-CasNFNDK.3c20f8d4f5d9.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-CasNFNDK.3c20f8d4f5d9.js.gz +0 -0
- codex/static_root/assets/VCheckboxBtn-CasNFNDK.js +1 -0
- codex/static_root/assets/VCheckboxBtn-CasNFNDK.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-CasNFNDK.js.gz +0 -0
- codex/static_root/assets/VCombobox-BemG8ph3.afde3fec668d.js +1 -0
- codex/static_root/assets/VCombobox-BemG8ph3.afde3fec668d.js.br +0 -0
- codex/static_root/assets/VCombobox-BemG8ph3.afde3fec668d.js.gz +0 -0
- codex/static_root/assets/VCombobox-BemG8ph3.js +1 -0
- codex/static_root/assets/VCombobox-BemG8ph3.js.br +0 -0
- codex/static_root/assets/VCombobox-BemG8ph3.js.gz +0 -0
- codex/static_root/assets/VDialog-DOm1w6bL.3a8bac3e555f.js +1 -0
- codex/static_root/assets/VDialog-DOm1w6bL.3a8bac3e555f.js.br +0 -0
- codex/static_root/assets/VDialog-DOm1w6bL.3a8bac3e555f.js.gz +0 -0
- codex/static_root/assets/VDialog-DOm1w6bL.js +1 -0
- codex/static_root/assets/VDialog-DOm1w6bL.js.br +0 -0
- codex/static_root/assets/VDialog-DOm1w6bL.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-BIAAQEIk.536cfca15bf5.js +1 -0
- codex/static_root/assets/VExpansionPanels-BIAAQEIk.536cfca15bf5.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-BIAAQEIk.536cfca15bf5.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-BIAAQEIk.js +1 -0
- codex/static_root/assets/VExpansionPanels-BIAAQEIk.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-BIAAQEIk.js.gz +0 -0
- codex/static_root/assets/VRadioGroup-CQd2B2cC.5484da094948.js +1 -0
- codex/static_root/assets/VRadioGroup-CQd2B2cC.5484da094948.js.br +0 -0
- codex/static_root/assets/VRadioGroup-CQd2B2cC.5484da094948.js.gz +0 -0
- codex/static_root/assets/VRadioGroup-CQd2B2cC.js +1 -0
- codex/static_root/assets/VRadioGroup-CQd2B2cC.js.br +0 -0
- codex/static_root/assets/VRadioGroup-CQd2B2cC.js.gz +0 -0
- codex/static_root/assets/VSelect-DhYHkIlU.fcb6b4997b19.js +1 -0
- codex/static_root/assets/VSelect-DhYHkIlU.fcb6b4997b19.js.br +0 -0
- codex/static_root/assets/VSelect-DhYHkIlU.fcb6b4997b19.js.gz +0 -0
- codex/static_root/assets/VSelect-DhYHkIlU.js +1 -0
- codex/static_root/assets/VSelect-DhYHkIlU.js.br +0 -0
- codex/static_root/assets/VSelect-DhYHkIlU.js.gz +0 -0
- codex/static_root/assets/VSelectionControl-DZ7Z3QaY.753a2564123a.js +1 -0
- codex/static_root/assets/VSelectionControl-DZ7Z3QaY.753a2564123a.js.br +0 -0
- codex/static_root/assets/VSelectionControl-DZ7Z3QaY.753a2564123a.js.gz +0 -0
- codex/static_root/assets/VSelectionControl-DZ7Z3QaY.js +1 -0
- codex/static_root/assets/VSelectionControl-DZ7Z3QaY.js.br +0 -0
- codex/static_root/assets/VSelectionControl-DZ7Z3QaY.js.gz +0 -0
- codex/static_root/assets/{VSlideGroup-B9zEPv1H.627ca1e091fb.js → VSlideGroup-BfZo3lM5.0ffb08d15ccd.js} +1 -1
- codex/static_root/assets/VSlideGroup-BfZo3lM5.0ffb08d15ccd.js.br +0 -0
- codex/static_root/assets/VSlideGroup-BfZo3lM5.0ffb08d15ccd.js.gz +0 -0
- codex/static_root/assets/{VSlideGroup-B9zEPv1H.js → VSlideGroup-BfZo3lM5.js} +1 -1
- codex/static_root/assets/VSlideGroup-BfZo3lM5.js.br +0 -0
- codex/static_root/assets/VSlideGroup-BfZo3lM5.js.gz +0 -0
- codex/static_root/assets/{VTable-D85UV0cA.c9b0d82847a0.js → VTable-xJS8rtC3.456750dc5d3f.js} +1 -1
- codex/static_root/assets/VTable-xJS8rtC3.456750dc5d3f.js.br +0 -0
- codex/static_root/assets/VTable-xJS8rtC3.456750dc5d3f.js.gz +0 -0
- codex/static_root/assets/{VTable-D85UV0cA.js → VTable-xJS8rtC3.js} +1 -1
- codex/static_root/assets/VTable-xJS8rtC3.js.br +0 -0
- codex/static_root/assets/VTable-xJS8rtC3.js.gz +0 -0
- codex/static_root/assets/VTextField-CWKnATIB.7e07951afd27.js +1 -0
- codex/static_root/assets/VTextField-CWKnATIB.7e07951afd27.js.br +0 -0
- codex/static_root/assets/VTextField-CWKnATIB.7e07951afd27.js.gz +0 -0
- codex/static_root/assets/VTextField-CWKnATIB.js +1 -0
- codex/static_root/assets/VTextField-CWKnATIB.js.br +0 -0
- codex/static_root/assets/VTextField-CWKnATIB.js.gz +0 -0
- codex/static_root/assets/{VWindowItem-BOT7VsDv.061276a5a285.js → VWindowItem-COG2FuUz.12a198f11fe7.js} +1 -1
- codex/static_root/assets/VWindowItem-COG2FuUz.12a198f11fe7.js.br +0 -0
- codex/static_root/assets/VWindowItem-COG2FuUz.12a198f11fe7.js.gz +0 -0
- codex/static_root/assets/{VWindowItem-BOT7VsDv.js → VWindowItem-COG2FuUz.js} +1 -1
- codex/static_root/assets/VWindowItem-COG2FuUz.js.br +0 -0
- codex/static_root/assets/VWindowItem-COG2FuUz.js.gz +0 -0
- codex/static_root/assets/admin-Dl2A7cx-.5fbd345dbc05.js +1 -0
- codex/static_root/assets/admin-Dl2A7cx-.5fbd345dbc05.js.br +0 -0
- codex/static_root/assets/admin-Dl2A7cx-.5fbd345dbc05.js.gz +0 -0
- codex/static_root/assets/admin-Dl2A7cx-.js +1 -0
- codex/static_root/assets/admin-Dl2A7cx-.js.br +0 -0
- codex/static_root/assets/admin-Dl2A7cx-.js.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-Bs2wgKj3.3cb33056e994.css +1 -0
- codex/static_root/assets/admin-drawer-panel-Bs2wgKj3.3cb33056e994.css.br +0 -0
- codex/static_root/assets/admin-drawer-panel-Bs2wgKj3.3cb33056e994.css.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-Bs2wgKj3.css +1 -0
- codex/static_root/assets/admin-drawer-panel-Bs2wgKj3.css.br +0 -0
- codex/static_root/assets/admin-drawer-panel-Bs2wgKj3.css.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-D4CYCd_H.fd8dcc769daf.js +30 -0
- codex/static_root/assets/admin-drawer-panel-D4CYCd_H.fd8dcc769daf.js.br +0 -0
- codex/static_root/assets/admin-drawer-panel-D4CYCd_H.fd8dcc769daf.js.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-D4CYCd_H.js +30 -0
- codex/static_root/assets/admin-drawer-panel-D4CYCd_H.js.br +0 -0
- codex/static_root/assets/admin-drawer-panel-D4CYCd_H.js.gz +0 -0
- codex/static_root/assets/{browser-DWoo5pGT.29bee2bbd49b.css → browser-Binc3n9H.313722d27ca3.css} +1 -1
- codex/static_root/assets/browser-Binc3n9H.313722d27ca3.css.br +0 -0
- codex/static_root/assets/browser-Binc3n9H.313722d27ca3.css.gz +0 -0
- codex/static_root/assets/{browser-DWoo5pGT.css → browser-Binc3n9H.css} +1 -1
- codex/static_root/assets/browser-Binc3n9H.css.br +0 -0
- codex/static_root/assets/browser-Binc3n9H.css.gz +0 -0
- codex/static_root/assets/browser-DOhldfGx.43465be961b0.js +1 -0
- codex/static_root/assets/browser-DOhldfGx.43465be961b0.js.br +0 -0
- codex/static_root/assets/browser-DOhldfGx.43465be961b0.js.gz +0 -0
- codex/static_root/assets/browser-DOhldfGx.js +1 -0
- codex/static_root/assets/browser-DOhldfGx.js.br +0 -0
- codex/static_root/assets/browser-DOhldfGx.js.gz +0 -0
- codex/static_root/assets/change-password-dialog-Cebek1-c.aff2975e31f8.css +1 -0
- codex/static_root/assets/change-password-dialog-Cebek1-c.aff2975e31f8.css.br +0 -0
- codex/static_root/assets/change-password-dialog-Cebek1-c.aff2975e31f8.css.gz +0 -0
- codex/static_root/assets/change-password-dialog-Cebek1-c.css +1 -0
- codex/static_root/assets/change-password-dialog-Cebek1-c.css.br +0 -0
- codex/static_root/assets/change-password-dialog-Cebek1-c.css.gz +0 -0
- codex/static_root/assets/change-password-dialog-CrIdNi1F.9451b8d8e301.js +1 -0
- codex/static_root/assets/change-password-dialog-CrIdNi1F.9451b8d8e301.js.br +0 -0
- codex/static_root/assets/change-password-dialog-CrIdNi1F.9451b8d8e301.js.gz +0 -0
- codex/static_root/assets/change-password-dialog-CrIdNi1F.js +1 -0
- codex/static_root/assets/change-password-dialog-CrIdNi1F.js.br +0 -0
- codex/static_root/assets/change-password-dialog-CrIdNi1F.js.gz +0 -0
- codex/static_root/assets/confirm-dialog-B8T3Aamf.5d5b5715840a.js +1 -0
- codex/static_root/assets/confirm-dialog-B8T3Aamf.5d5b5715840a.js.br +0 -0
- codex/static_root/assets/confirm-dialog-B8T3Aamf.5d5b5715840a.js.gz +0 -0
- codex/static_root/assets/confirm-dialog-B8T3Aamf.js +1 -0
- codex/static_root/assets/confirm-dialog-B8T3Aamf.js.br +0 -0
- codex/static_root/assets/confirm-dialog-B8T3Aamf.js.gz +0 -0
- codex/static_root/assets/{datetime-column-BdnHcY-4.12fb4188de00.js → datetime-column-DJjaMFv9.d281fe18446a.js} +1 -1
- codex/static_root/assets/datetime-column-DJjaMFv9.d281fe18446a.js.br +0 -0
- codex/static_root/assets/datetime-column-DJjaMFv9.d281fe18446a.js.gz +0 -0
- codex/static_root/assets/{datetime-column-BdnHcY-4.js → datetime-column-DJjaMFv9.js} +1 -1
- codex/static_root/assets/datetime-column-DJjaMFv9.js.br +0 -0
- codex/static_root/assets/datetime-column-DJjaMFv9.js.gz +0 -0
- codex/static_root/assets/{filter-BL9RMUvn.b92d240c4512.js → filter-DMpQdE_u.8d88bbf01ae8.js} +1 -1
- codex/static_root/assets/filter-DMpQdE_u.8d88bbf01ae8.js.br +0 -0
- codex/static_root/assets/filter-DMpQdE_u.8d88bbf01ae8.js.gz +0 -0
- codex/static_root/assets/{filter-BL9RMUvn.js → filter-DMpQdE_u.js} +1 -1
- codex/static_root/assets/filter-DMpQdE_u.js.br +0 -0
- codex/static_root/assets/filter-DMpQdE_u.js.gz +0 -0
- codex/static_root/assets/flag-tab-C2TvU4CO.7b424d4fedb2.js +1 -0
- codex/static_root/assets/flag-tab-C2TvU4CO.7b424d4fedb2.js.br +0 -0
- codex/static_root/assets/flag-tab-C2TvU4CO.7b424d4fedb2.js.gz +0 -0
- codex/static_root/assets/flag-tab-C2TvU4CO.js +1 -0
- codex/static_root/assets/flag-tab-C2TvU4CO.js.br +0 -0
- codex/static_root/assets/flag-tab-C2TvU4CO.js.gz +0 -0
- codex/static_root/assets/group-tab-BOX6rJuK.58304d7d9f28.js +1 -0
- codex/static_root/assets/group-tab-BOX6rJuK.58304d7d9f28.js.br +0 -0
- codex/static_root/assets/group-tab-BOX6rJuK.58304d7d9f28.js.gz +0 -0
- codex/static_root/assets/group-tab-BOX6rJuK.js +1 -0
- codex/static_root/assets/group-tab-BOX6rJuK.js.br +0 -0
- codex/static_root/assets/group-tab-BOX6rJuK.js.gz +0 -0
- codex/static_root/assets/http-error-E90fvnsx.103df54057a6.js +1 -0
- codex/static_root/assets/http-error-E90fvnsx.103df54057a6.js.br +0 -0
- codex/static_root/assets/http-error-E90fvnsx.103df54057a6.js.gz +0 -0
- codex/static_root/assets/http-error-E90fvnsx.js +1 -0
- codex/static_root/assets/http-error-E90fvnsx.js.br +0 -0
- codex/static_root/assets/http-error-E90fvnsx.js.gz +0 -0
- codex/static_root/assets/{library-tab-VMgJSPRy.5e7d6c6baff6.css → library-tab-Bh7ErAk7.7c44200ee727.css} +1 -1
- codex/static_root/assets/library-tab-Bh7ErAk7.7c44200ee727.css.br +2 -0
- codex/static_root/assets/library-tab-Bh7ErAk7.7c44200ee727.css.gz +0 -0
- codex/static_root/assets/{library-tab-VMgJSPRy.css → library-tab-Bh7ErAk7.css} +1 -1
- codex/static_root/assets/library-tab-Bh7ErAk7.css.br +2 -0
- codex/static_root/assets/library-tab-Bh7ErAk7.css.gz +0 -0
- codex/static_root/assets/library-tab-DoLAFv6A.e504e9181e22.js +1 -0
- codex/static_root/assets/library-tab-DoLAFv6A.e504e9181e22.js.br +0 -0
- codex/static_root/assets/library-tab-DoLAFv6A.e504e9181e22.js.gz +0 -0
- codex/static_root/assets/library-tab-DoLAFv6A.js +1 -0
- codex/static_root/assets/library-tab-DoLAFv6A.js.br +0 -0
- codex/static_root/assets/library-tab-DoLAFv6A.js.gz +0 -0
- codex/static_root/assets/main-BnyyRHtu.383bd5bdf135.js +6 -0
- codex/static_root/assets/main-BnyyRHtu.383bd5bdf135.js.br +0 -0
- codex/static_root/assets/main-BnyyRHtu.383bd5bdf135.js.gz +0 -0
- codex/static_root/assets/main-BnyyRHtu.js +6 -0
- codex/static_root/assets/main-BnyyRHtu.js.br +0 -0
- codex/static_root/assets/main-BnyyRHtu.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-B-H-BgUh.0485a41335d7.js +1 -0
- codex/static_root/assets/pagination-toolbar-B-H-BgUh.0485a41335d7.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-B-H-BgUh.0485a41335d7.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-B-H-BgUh.js +1 -0
- codex/static_root/assets/pagination-toolbar-B-H-BgUh.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-B-H-BgUh.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-BzruZPpu.397ad4e3d029.css +1 -0
- codex/static_root/assets/pagination-toolbar-BzruZPpu.397ad4e3d029.css.br +0 -0
- codex/static_root/assets/pagination-toolbar-BzruZPpu.397ad4e3d029.css.gz +0 -0
- codex/static_root/assets/pagination-toolbar-BzruZPpu.css +1 -0
- codex/static_root/assets/pagination-toolbar-BzruZPpu.css.br +0 -0
- codex/static_root/assets/pagination-toolbar-BzruZPpu.css.gz +0 -0
- codex/static_root/assets/{pdf-doc-BDi_S8C8.ec2572c47556.js → pdf-doc-C_RhfgHE.3d82cd502628.js} +16 -16
- codex/static_root/assets/pdf-doc-C_RhfgHE.3d82cd502628.js.br +0 -0
- codex/static_root/assets/pdf-doc-C_RhfgHE.3d82cd502628.js.gz +0 -0
- codex/static_root/assets/{pdf-doc-BDi_S8C8.js → pdf-doc-C_RhfgHE.js} +16 -16
- codex/static_root/assets/pdf-doc-C_RhfgHE.js.br +0 -0
- codex/static_root/assets/pdf-doc-C_RhfgHE.js.gz +0 -0
- codex/static_root/assets/pdf-doc-CkC2e3rI.css +1 -0
- codex/static_root/assets/pdf-doc-CkC2e3rI.css.br +0 -0
- codex/static_root/assets/pdf-doc-CkC2e3rI.css.gz +0 -0
- codex/static_root/assets/pdf-doc-CkC2e3rI.da75c385ebd0.css +1 -0
- codex/static_root/assets/pdf-doc-CkC2e3rI.da75c385ebd0.css.br +0 -0
- codex/static_root/assets/pdf-doc-CkC2e3rI.da75c385ebd0.css.gz +0 -0
- codex/static_root/assets/reader-DkEfQBw-.5e7781a737e6.css +1 -0
- codex/static_root/assets/reader-DkEfQBw-.5e7781a737e6.css.br +0 -0
- codex/static_root/assets/reader-DkEfQBw-.5e7781a737e6.css.gz +0 -0
- codex/static_root/assets/reader-DkEfQBw-.css +1 -0
- codex/static_root/assets/reader-DkEfQBw-.css.br +0 -0
- codex/static_root/assets/reader-DkEfQBw-.css.gz +0 -0
- codex/static_root/assets/reader-K27K1JrT.faa6edbda846.js +2 -0
- codex/static_root/assets/reader-K27K1JrT.faa6edbda846.js.br +0 -0
- codex/static_root/assets/reader-K27K1JrT.faa6edbda846.js.gz +0 -0
- codex/static_root/assets/reader-K27K1JrT.js +2 -0
- codex/static_root/assets/reader-K27K1JrT.js.br +0 -0
- codex/static_root/assets/reader-K27K1JrT.js.gz +0 -0
- codex/static_root/assets/relation-chips-CfHz9Cgt.ce0ab88180d5.js +1 -0
- codex/static_root/assets/relation-chips-CfHz9Cgt.ce0ab88180d5.js.br +0 -0
- codex/static_root/assets/relation-chips-CfHz9Cgt.ce0ab88180d5.js.gz +0 -0
- codex/static_root/assets/relation-chips-CfHz9Cgt.js +1 -0
- codex/static_root/assets/relation-chips-CfHz9Cgt.js.br +0 -0
- codex/static_root/assets/relation-chips-CfHz9Cgt.js.gz +0 -0
- codex/static_root/assets/settings-drawer-CF0z39tG.bb0427409b01.js +2 -0
- codex/static_root/assets/settings-drawer-CF0z39tG.bb0427409b01.js.br +0 -0
- codex/static_root/assets/settings-drawer-CF0z39tG.bb0427409b01.js.gz +0 -0
- codex/static_root/assets/settings-drawer-CF0z39tG.js +2 -0
- codex/static_root/assets/settings-drawer-CF0z39tG.js.br +0 -0
- codex/static_root/assets/settings-drawer-CF0z39tG.js.gz +0 -0
- codex/static_root/assets/{stats-tab-Dd3GXeM3.9473f148a600.css → stats-tab-BXGisn5N.9b7a71e7fe28.css} +1 -1
- codex/static_root/assets/stats-tab-BXGisn5N.9b7a71e7fe28.css.br +0 -0
- codex/static_root/assets/stats-tab-BXGisn5N.9b7a71e7fe28.css.gz +0 -0
- codex/static_root/assets/{stats-tab-Dd3GXeM3.css → stats-tab-BXGisn5N.css} +1 -1
- codex/static_root/assets/stats-tab-BXGisn5N.css.br +0 -0
- codex/static_root/assets/stats-tab-BXGisn5N.css.gz +0 -0
- codex/static_root/assets/stats-tab-m4jtc5tB.fe5a865d950f.js +1 -0
- codex/static_root/assets/stats-tab-m4jtc5tB.fe5a865d950f.js.br +0 -0
- codex/static_root/assets/stats-tab-m4jtc5tB.fe5a865d950f.js.gz +0 -0
- codex/static_root/assets/stats-tab-m4jtc5tB.js +1 -0
- codex/static_root/assets/stats-tab-m4jtc5tB.js.br +0 -0
- codex/static_root/assets/stats-tab-m4jtc5tB.js.gz +0 -0
- codex/static_root/assets/task-tab-Bn04U_1c.3b343f42f0a9.js +1 -0
- codex/static_root/assets/task-tab-Bn04U_1c.3b343f42f0a9.js.br +0 -0
- codex/static_root/assets/task-tab-Bn04U_1c.3b343f42f0a9.js.gz +0 -0
- codex/static_root/assets/task-tab-Bn04U_1c.js +1 -0
- codex/static_root/assets/task-tab-Bn04U_1c.js.br +0 -0
- codex/static_root/assets/task-tab-Bn04U_1c.js.gz +0 -0
- codex/static_root/assets/unauthorized-CFFrmehB.25307184f821.js +1 -0
- codex/static_root/assets/unauthorized-CFFrmehB.25307184f821.js.br +0 -0
- codex/static_root/assets/unauthorized-CFFrmehB.25307184f821.js.gz +0 -0
- codex/static_root/assets/unauthorized-CFFrmehB.js +1 -0
- codex/static_root/assets/unauthorized-CFFrmehB.js.br +0 -0
- codex/static_root/assets/unauthorized-CFFrmehB.js.gz +0 -0
- codex/static_root/assets/{unauthorized-CQL7W5pA.75124be66863.css → unauthorized-muDsv-rC.2166ec8b3a32.css} +1 -1
- codex/static_root/assets/unauthorized-muDsv-rC.2166ec8b3a32.css.br +0 -0
- codex/static_root/assets/unauthorized-muDsv-rC.2166ec8b3a32.css.gz +0 -0
- codex/static_root/assets/{unauthorized-CQL7W5pA.css → unauthorized-muDsv-rC.css} +1 -1
- codex/static_root/assets/unauthorized-muDsv-rC.css.br +0 -0
- codex/static_root/assets/unauthorized-muDsv-rC.css.gz +0 -0
- codex/static_root/assets/user-tab-Bc0BOX75.96057d32f1e9.js +1 -0
- codex/static_root/assets/user-tab-Bc0BOX75.96057d32f1e9.js.br +0 -0
- codex/static_root/assets/user-tab-Bc0BOX75.96057d32f1e9.js.gz +0 -0
- codex/static_root/assets/user-tab-Bc0BOX75.js +1 -0
- codex/static_root/assets/user-tab-Bc0BOX75.js.br +0 -0
- codex/static_root/assets/user-tab-Bc0BOX75.js.gz +0 -0
- codex/static_root/js/choices-admin.1a20a5648f20.json +1 -0
- codex/static_root/js/choices-admin.1a20a5648f20.json.br +0 -0
- codex/static_root/js/choices-admin.1a20a5648f20.json.gz +0 -0
- codex/static_root/js/choices-admin.json +1 -1
- codex/static_root/js/choices-admin.json.br +0 -0
- codex/static_root/js/choices-admin.json.gz +0 -0
- codex/static_root/{manifest.9e3c56e33cdb.json → manifest.5127f11299cc.json} +226 -226
- codex/static_root/manifest.5127f11299cc.json.br +0 -0
- codex/static_root/manifest.5127f11299cc.json.gz +0 -0
- codex/static_root/manifest.json +226 -226
- codex/static_root/manifest.json.br +0 -0
- codex/static_root/manifest.json.gz +0 -0
- codex/static_root/staticfiles.json +1 -1
- codex/templates/pwa/serviceworker.js +4 -4
- codex/version.py +0 -63
- codex/views/admin/tasks.py +2 -0
- codex/views/bookmark.py +16 -23
- codex/views/const.py +1 -2
- codex/views/reader/books.py +2 -2
- codex/views/reader/init.py +2 -1
- codex/views/version.py +10 -2
- {codex-1.6.17.dist-info → codex-1.6.18.dist-info}/METADATA +8 -8
- {codex-1.6.17.dist-info → codex-1.6.18.dist-info}/RECORD +290 -289
- codex/static_root/assets/VCheckbox-D8eqoc1z.62941f086d95.js +0 -1
- codex/static_root/assets/VCheckbox-D8eqoc1z.62941f086d95.js.br +0 -0
- codex/static_root/assets/VCheckbox-D8eqoc1z.62941f086d95.js.gz +0 -0
- codex/static_root/assets/VCheckbox-D8eqoc1z.js +0 -1
- codex/static_root/assets/VCheckbox-D8eqoc1z.js.br +0 -0
- codex/static_root/assets/VCheckbox-D8eqoc1z.js.gz +0 -0
- codex/static_root/assets/VCheckboxBtn-BaQC30AI.ea98c97505c2.js +0 -1
- codex/static_root/assets/VCheckboxBtn-BaQC30AI.ea98c97505c2.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-BaQC30AI.ea98c97505c2.js.gz +0 -0
- codex/static_root/assets/VCheckboxBtn-BaQC30AI.js +0 -1
- codex/static_root/assets/VCheckboxBtn-BaQC30AI.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-BaQC30AI.js.gz +0 -0
- codex/static_root/assets/VCombobox-BTG361j0.b2b9962de820.js +0 -1
- codex/static_root/assets/VCombobox-BTG361j0.b2b9962de820.js.br +0 -0
- codex/static_root/assets/VCombobox-BTG361j0.b2b9962de820.js.gz +0 -0
- codex/static_root/assets/VCombobox-BTG361j0.js +0 -1
- codex/static_root/assets/VCombobox-BTG361j0.js.br +0 -0
- codex/static_root/assets/VCombobox-BTG361j0.js.gz +0 -0
- codex/static_root/assets/VDialog-BWXBR7iM.80372742901b.js +0 -1
- codex/static_root/assets/VDialog-BWXBR7iM.80372742901b.js.br +0 -0
- codex/static_root/assets/VDialog-BWXBR7iM.80372742901b.js.gz +0 -0
- codex/static_root/assets/VDialog-BWXBR7iM.js +0 -1
- codex/static_root/assets/VDialog-BWXBR7iM.js.br +0 -0
- codex/static_root/assets/VDialog-BWXBR7iM.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-W4VN2Ykh.a3bf34bd9c01.js +0 -1
- codex/static_root/assets/VExpansionPanels-W4VN2Ykh.a3bf34bd9c01.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-W4VN2Ykh.a3bf34bd9c01.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-W4VN2Ykh.js +0 -1
- codex/static_root/assets/VExpansionPanels-W4VN2Ykh.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-W4VN2Ykh.js.gz +0 -0
- codex/static_root/assets/VRadioGroup-B8chw_xV.768aef5d30cd.js +0 -1
- codex/static_root/assets/VRadioGroup-B8chw_xV.768aef5d30cd.js.br +0 -0
- codex/static_root/assets/VRadioGroup-B8chw_xV.768aef5d30cd.js.gz +0 -0
- codex/static_root/assets/VRadioGroup-B8chw_xV.js +0 -1
- codex/static_root/assets/VRadioGroup-B8chw_xV.js.br +0 -0
- codex/static_root/assets/VRadioGroup-B8chw_xV.js.gz +0 -0
- codex/static_root/assets/VSelect-BpWdXMPq.1921062294e6.js +0 -1
- codex/static_root/assets/VSelect-BpWdXMPq.1921062294e6.js.br +0 -0
- codex/static_root/assets/VSelect-BpWdXMPq.1921062294e6.js.gz +0 -0
- codex/static_root/assets/VSelect-BpWdXMPq.js +0 -1
- codex/static_root/assets/VSelect-BpWdXMPq.js.br +0 -0
- codex/static_root/assets/VSelect-BpWdXMPq.js.gz +0 -0
- codex/static_root/assets/VSelectionControl-FmTy_2ch.7e005af872d4.js +0 -1
- codex/static_root/assets/VSelectionControl-FmTy_2ch.7e005af872d4.js.br +0 -0
- codex/static_root/assets/VSelectionControl-FmTy_2ch.7e005af872d4.js.gz +0 -0
- codex/static_root/assets/VSelectionControl-FmTy_2ch.js +0 -1
- codex/static_root/assets/VSelectionControl-FmTy_2ch.js.br +0 -0
- codex/static_root/assets/VSelectionControl-FmTy_2ch.js.gz +0 -0
- codex/static_root/assets/VSlideGroup-B9zEPv1H.627ca1e091fb.js.br +0 -0
- codex/static_root/assets/VSlideGroup-B9zEPv1H.627ca1e091fb.js.gz +0 -0
- codex/static_root/assets/VSlideGroup-B9zEPv1H.js.br +0 -0
- codex/static_root/assets/VSlideGroup-B9zEPv1H.js.gz +0 -0
- codex/static_root/assets/VTable-D85UV0cA.c9b0d82847a0.js.br +0 -0
- codex/static_root/assets/VTable-D85UV0cA.c9b0d82847a0.js.gz +0 -0
- codex/static_root/assets/VTable-D85UV0cA.js.br +0 -0
- codex/static_root/assets/VTable-D85UV0cA.js.gz +0 -0
- codex/static_root/assets/VTextField-DAe7a2au.04013b823a64.js +0 -1
- codex/static_root/assets/VTextField-DAe7a2au.04013b823a64.js.br +0 -0
- codex/static_root/assets/VTextField-DAe7a2au.04013b823a64.js.gz +0 -0
- codex/static_root/assets/VTextField-DAe7a2au.js +0 -1
- codex/static_root/assets/VTextField-DAe7a2au.js.br +0 -0
- codex/static_root/assets/VTextField-DAe7a2au.js.gz +0 -0
- codex/static_root/assets/VWindowItem-BOT7VsDv.061276a5a285.js.br +0 -0
- codex/static_root/assets/VWindowItem-BOT7VsDv.061276a5a285.js.gz +0 -0
- codex/static_root/assets/VWindowItem-BOT7VsDv.js.br +0 -0
- codex/static_root/assets/VWindowItem-BOT7VsDv.js.gz +0 -0
- codex/static_root/assets/admin-DCoV7mGR.d949114bed68.js +0 -1
- codex/static_root/assets/admin-DCoV7mGR.d949114bed68.js.br +0 -0
- codex/static_root/assets/admin-DCoV7mGR.d949114bed68.js.gz +0 -0
- codex/static_root/assets/admin-DCoV7mGR.js +0 -1
- codex/static_root/assets/admin-DCoV7mGR.js.br +0 -0
- codex/static_root/assets/admin-DCoV7mGR.js.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-COV3Ru1J.b0cd2b71000c.css +0 -1
- codex/static_root/assets/admin-drawer-panel-COV3Ru1J.b0cd2b71000c.css.br +0 -0
- codex/static_root/assets/admin-drawer-panel-COV3Ru1J.b0cd2b71000c.css.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-COV3Ru1J.css +0 -1
- codex/static_root/assets/admin-drawer-panel-COV3Ru1J.css.br +0 -0
- codex/static_root/assets/admin-drawer-panel-COV3Ru1J.css.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-Dmnn03CQ.52ea4aad3985.js +0 -30
- codex/static_root/assets/admin-drawer-panel-Dmnn03CQ.52ea4aad3985.js.br +0 -0
- codex/static_root/assets/admin-drawer-panel-Dmnn03CQ.52ea4aad3985.js.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-Dmnn03CQ.js +0 -30
- codex/static_root/assets/admin-drawer-panel-Dmnn03CQ.js.br +0 -0
- codex/static_root/assets/admin-drawer-panel-Dmnn03CQ.js.gz +0 -0
- codex/static_root/assets/browser--OxfD4LA.d6c438cacb9a.js +0 -1
- codex/static_root/assets/browser--OxfD4LA.d6c438cacb9a.js.br +0 -0
- codex/static_root/assets/browser--OxfD4LA.d6c438cacb9a.js.gz +0 -0
- codex/static_root/assets/browser--OxfD4LA.js +0 -1
- codex/static_root/assets/browser--OxfD4LA.js.br +0 -0
- codex/static_root/assets/browser--OxfD4LA.js.gz +0 -0
- codex/static_root/assets/browser-DWoo5pGT.29bee2bbd49b.css.br +0 -0
- codex/static_root/assets/browser-DWoo5pGT.29bee2bbd49b.css.gz +0 -0
- codex/static_root/assets/browser-DWoo5pGT.css.br +0 -0
- codex/static_root/assets/browser-DWoo5pGT.css.gz +0 -0
- codex/static_root/assets/change-password-dialog-Bosys_6j.036c0eea895d.css +0 -1
- codex/static_root/assets/change-password-dialog-Bosys_6j.036c0eea895d.css.br +0 -0
- codex/static_root/assets/change-password-dialog-Bosys_6j.036c0eea895d.css.gz +0 -0
- codex/static_root/assets/change-password-dialog-Bosys_6j.css +0 -1
- codex/static_root/assets/change-password-dialog-Bosys_6j.css.br +0 -0
- codex/static_root/assets/change-password-dialog-Bosys_6j.css.gz +0 -0
- codex/static_root/assets/change-password-dialog-HW0jK0gr.bbc3ed89fb31.js +0 -1
- codex/static_root/assets/change-password-dialog-HW0jK0gr.bbc3ed89fb31.js.br +0 -0
- codex/static_root/assets/change-password-dialog-HW0jK0gr.bbc3ed89fb31.js.gz +0 -0
- codex/static_root/assets/change-password-dialog-HW0jK0gr.js +0 -1
- codex/static_root/assets/change-password-dialog-HW0jK0gr.js.br +0 -0
- codex/static_root/assets/change-password-dialog-HW0jK0gr.js.gz +0 -0
- codex/static_root/assets/confirm-dialog-BJlNq6ku.42441ece74ab.js +0 -1
- codex/static_root/assets/confirm-dialog-BJlNq6ku.42441ece74ab.js.br +0 -0
- codex/static_root/assets/confirm-dialog-BJlNq6ku.42441ece74ab.js.gz +0 -0
- codex/static_root/assets/confirm-dialog-BJlNq6ku.js +0 -1
- codex/static_root/assets/confirm-dialog-BJlNq6ku.js.br +0 -0
- codex/static_root/assets/confirm-dialog-BJlNq6ku.js.gz +0 -0
- codex/static_root/assets/datetime-column-BdnHcY-4.12fb4188de00.js.br +0 -0
- codex/static_root/assets/datetime-column-BdnHcY-4.12fb4188de00.js.gz +0 -0
- codex/static_root/assets/datetime-column-BdnHcY-4.js.br +0 -0
- codex/static_root/assets/datetime-column-BdnHcY-4.js.gz +0 -0
- codex/static_root/assets/filter-BL9RMUvn.b92d240c4512.js.br +0 -0
- codex/static_root/assets/filter-BL9RMUvn.b92d240c4512.js.gz +0 -0
- codex/static_root/assets/filter-BL9RMUvn.js.br +0 -0
- codex/static_root/assets/filter-BL9RMUvn.js.gz +0 -0
- codex/static_root/assets/flag-tab-BWJ5tGcV.6f4c1dd9d1bb.js +0 -1
- codex/static_root/assets/flag-tab-BWJ5tGcV.6f4c1dd9d1bb.js.br +0 -0
- codex/static_root/assets/flag-tab-BWJ5tGcV.6f4c1dd9d1bb.js.gz +0 -0
- codex/static_root/assets/flag-tab-BWJ5tGcV.js +0 -1
- codex/static_root/assets/flag-tab-BWJ5tGcV.js.br +0 -0
- codex/static_root/assets/flag-tab-BWJ5tGcV.js.gz +0 -0
- codex/static_root/assets/group-tab-CQiGzI43.d88e38af13b4.js +0 -1
- codex/static_root/assets/group-tab-CQiGzI43.d88e38af13b4.js.br +0 -0
- codex/static_root/assets/group-tab-CQiGzI43.d88e38af13b4.js.gz +0 -0
- codex/static_root/assets/group-tab-CQiGzI43.js +0 -1
- codex/static_root/assets/group-tab-CQiGzI43.js.br +0 -0
- codex/static_root/assets/group-tab-CQiGzI43.js.gz +0 -0
- codex/static_root/assets/http-error-B0-GHW9C.81a3af2c7f7c.js +0 -1
- codex/static_root/assets/http-error-B0-GHW9C.81a3af2c7f7c.js.br +0 -0
- codex/static_root/assets/http-error-B0-GHW9C.81a3af2c7f7c.js.gz +0 -0
- codex/static_root/assets/http-error-B0-GHW9C.js +0 -1
- codex/static_root/assets/http-error-B0-GHW9C.js.br +0 -0
- codex/static_root/assets/http-error-B0-GHW9C.js.gz +0 -0
- codex/static_root/assets/library-tab-VMgJSPRy.5e7d6c6baff6.css.br +0 -0
- codex/static_root/assets/library-tab-VMgJSPRy.5e7d6c6baff6.css.gz +0 -0
- codex/static_root/assets/library-tab-VMgJSPRy.css.br +0 -0
- codex/static_root/assets/library-tab-VMgJSPRy.css.gz +0 -0
- codex/static_root/assets/library-tab-czIX7PK1.540a657518c8.js +0 -1
- codex/static_root/assets/library-tab-czIX7PK1.540a657518c8.js.br +0 -0
- codex/static_root/assets/library-tab-czIX7PK1.540a657518c8.js.gz +0 -0
- codex/static_root/assets/library-tab-czIX7PK1.js +0 -1
- codex/static_root/assets/library-tab-czIX7PK1.js.br +0 -0
- codex/static_root/assets/library-tab-czIX7PK1.js.gz +0 -0
- codex/static_root/assets/main-C0t41OAE.9c108cc29c65.js +0 -6
- codex/static_root/assets/main-C0t41OAE.9c108cc29c65.js.br +0 -0
- codex/static_root/assets/main-C0t41OAE.9c108cc29c65.js.gz +0 -0
- codex/static_root/assets/main-C0t41OAE.js +0 -6
- codex/static_root/assets/main-C0t41OAE.js.br +0 -0
- codex/static_root/assets/main-C0t41OAE.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-BNiqJX4c.c62f4bb07236.js +0 -1
- codex/static_root/assets/pagination-toolbar-BNiqJX4c.c62f4bb07236.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-BNiqJX4c.c62f4bb07236.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-BNiqJX4c.js +0 -1
- codex/static_root/assets/pagination-toolbar-BNiqJX4c.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-BNiqJX4c.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-D6v3_jVe.4f0e62bbb1e5.css +0 -1
- codex/static_root/assets/pagination-toolbar-D6v3_jVe.4f0e62bbb1e5.css.br +0 -0
- codex/static_root/assets/pagination-toolbar-D6v3_jVe.4f0e62bbb1e5.css.gz +0 -0
- codex/static_root/assets/pagination-toolbar-D6v3_jVe.css +0 -1
- codex/static_root/assets/pagination-toolbar-D6v3_jVe.css.br +0 -0
- codex/static_root/assets/pagination-toolbar-D6v3_jVe.css.gz +0 -0
- codex/static_root/assets/pdf-doc-BDi_S8C8.ec2572c47556.js.br +0 -0
- codex/static_root/assets/pdf-doc-BDi_S8C8.ec2572c47556.js.gz +0 -0
- codex/static_root/assets/pdf-doc-BDi_S8C8.js.br +0 -0
- codex/static_root/assets/pdf-doc-BDi_S8C8.js.gz +0 -0
- codex/static_root/assets/pdf-doc-CMzaSV_K.8cd4b3e65f9a.css +0 -1
- codex/static_root/assets/pdf-doc-CMzaSV_K.8cd4b3e65f9a.css.br +0 -0
- codex/static_root/assets/pdf-doc-CMzaSV_K.8cd4b3e65f9a.css.gz +0 -0
- codex/static_root/assets/pdf-doc-CMzaSV_K.css +0 -1
- codex/static_root/assets/pdf-doc-CMzaSV_K.css.br +0 -0
- codex/static_root/assets/pdf-doc-CMzaSV_K.css.gz +0 -0
- codex/static_root/assets/reader-BORfYc0l.css +0 -1
- codex/static_root/assets/reader-BORfYc0l.css.br +0 -0
- codex/static_root/assets/reader-BORfYc0l.css.gz +0 -0
- codex/static_root/assets/reader-BORfYc0l.e66ce0ded0b6.css +0 -1
- codex/static_root/assets/reader-BORfYc0l.e66ce0ded0b6.css.br +0 -0
- codex/static_root/assets/reader-BORfYc0l.e66ce0ded0b6.css.gz +0 -0
- codex/static_root/assets/reader-Dg5VFhMO.d0ece6c59cb6.js +0 -2
- codex/static_root/assets/reader-Dg5VFhMO.d0ece6c59cb6.js.br +0 -0
- codex/static_root/assets/reader-Dg5VFhMO.d0ece6c59cb6.js.gz +0 -0
- codex/static_root/assets/reader-Dg5VFhMO.js +0 -2
- codex/static_root/assets/reader-Dg5VFhMO.js.br +0 -0
- codex/static_root/assets/reader-Dg5VFhMO.js.gz +0 -0
- codex/static_root/assets/relation-chips-nc41xEEd.eadca8fe8606.js +0 -1
- codex/static_root/assets/relation-chips-nc41xEEd.eadca8fe8606.js.br +0 -0
- codex/static_root/assets/relation-chips-nc41xEEd.eadca8fe8606.js.gz +0 -0
- codex/static_root/assets/relation-chips-nc41xEEd.js +0 -1
- codex/static_root/assets/relation-chips-nc41xEEd.js.br +0 -0
- codex/static_root/assets/relation-chips-nc41xEEd.js.gz +0 -0
- codex/static_root/assets/settings-drawer-ChnWWcfy.627fb9c17389.js +0 -2
- codex/static_root/assets/settings-drawer-ChnWWcfy.627fb9c17389.js.br +0 -0
- codex/static_root/assets/settings-drawer-ChnWWcfy.627fb9c17389.js.gz +0 -0
- codex/static_root/assets/settings-drawer-ChnWWcfy.js +0 -2
- codex/static_root/assets/settings-drawer-ChnWWcfy.js.br +0 -0
- codex/static_root/assets/settings-drawer-ChnWWcfy.js.gz +0 -0
- codex/static_root/assets/stats-tab-Dd3GXeM3.9473f148a600.css.br +0 -0
- codex/static_root/assets/stats-tab-Dd3GXeM3.9473f148a600.css.gz +0 -0
- codex/static_root/assets/stats-tab-Dd3GXeM3.css.br +0 -0
- codex/static_root/assets/stats-tab-Dd3GXeM3.css.gz +0 -0
- codex/static_root/assets/stats-tab-Ep3dyw2f.1c5c48751a8d.js +0 -1
- codex/static_root/assets/stats-tab-Ep3dyw2f.1c5c48751a8d.js.br +0 -0
- codex/static_root/assets/stats-tab-Ep3dyw2f.1c5c48751a8d.js.gz +0 -0
- codex/static_root/assets/stats-tab-Ep3dyw2f.js +0 -1
- codex/static_root/assets/stats-tab-Ep3dyw2f.js.br +0 -0
- codex/static_root/assets/stats-tab-Ep3dyw2f.js.gz +0 -0
- codex/static_root/assets/task-tab-CZM8h2Cr.d61b2f38a5c7.js +0 -1
- codex/static_root/assets/task-tab-CZM8h2Cr.d61b2f38a5c7.js.br +0 -0
- codex/static_root/assets/task-tab-CZM8h2Cr.d61b2f38a5c7.js.gz +0 -0
- codex/static_root/assets/task-tab-CZM8h2Cr.js +0 -1
- codex/static_root/assets/task-tab-CZM8h2Cr.js.br +0 -0
- codex/static_root/assets/task-tab-CZM8h2Cr.js.gz +0 -0
- codex/static_root/assets/unauthorized-CQL7W5pA.75124be66863.css.br +0 -0
- codex/static_root/assets/unauthorized-CQL7W5pA.75124be66863.css.gz +0 -0
- codex/static_root/assets/unauthorized-CQL7W5pA.css.br +0 -0
- codex/static_root/assets/unauthorized-CQL7W5pA.css.gz +0 -0
- codex/static_root/assets/unauthorized-DnNuMsHM.2e4595f10736.js +0 -1
- codex/static_root/assets/unauthorized-DnNuMsHM.2e4595f10736.js.br +0 -0
- codex/static_root/assets/unauthorized-DnNuMsHM.2e4595f10736.js.gz +0 -0
- codex/static_root/assets/unauthorized-DnNuMsHM.js +0 -1
- codex/static_root/assets/unauthorized-DnNuMsHM.js.br +0 -0
- codex/static_root/assets/unauthorized-DnNuMsHM.js.gz +0 -0
- codex/static_root/assets/user-tab-CmdeTcr_.e7929862d979.js +0 -1
- codex/static_root/assets/user-tab-CmdeTcr_.e7929862d979.js.br +0 -0
- codex/static_root/assets/user-tab-CmdeTcr_.e7929862d979.js.gz +0 -0
- codex/static_root/assets/user-tab-CmdeTcr_.js +0 -1
- codex/static_root/assets/user-tab-CmdeTcr_.js.br +0 -0
- codex/static_root/assets/user-tab-CmdeTcr_.js.gz +0 -0
- codex/static_root/js/choices-admin.1eca6d2c22cf.json +0 -1
- codex/static_root/js/choices-admin.1eca6d2c22cf.json.br +0 -0
- codex/static_root/js/choices-admin.1eca6d2c22cf.json.gz +0 -0
- codex/static_root/manifest.9e3c56e33cdb.json.br +0 -0
- codex/static_root/manifest.9e3c56e33cdb.json.gz +0 -0
- {codex-1.6.17.dist-info → codex-1.6.18.dist-info}/LICENSE +0 -0
- {codex-1.6.17.dist-info → codex-1.6.18.dist-info}/WHEEL +0 -0
- {codex-1.6.17.dist-info → codex-1.6.18.dist-info}/entry_points.txt +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as b,aK as Ce,aL as Te,aM as ce,aN as ke,Z as f,$ as l,Y as p,a0 as h,T as i,aq as I,aO as a,aE as w,aF as O,aG as S,V as F,ak as u,aP as k,aQ as de,aR as ue,aS as me,aD as V,q as P,W as v,X as T,aT as U,aU as Y,aI as B,aV as D,aW as Ve,ap as Me,aX as $e,aY as M,aZ as re,a_ as se,a$ as Pe,b0 as oe,b1 as Fe,F as G,N as q,b2 as Ie,aw as Z,b3 as xe,P as E,b4 as De,b5 as Ne,au as Oe,S as z,b6 as Re,b7 as He,b8 as J,b9 as Ae,ba as Le,al as A,bb as Ue,bc as Ge,h as Q,ao as qe,bd as Ee,av as ze,be as je,ay as We,az as x,ax as Ye,bf as Qe,aB as Ke,bg as Xe,l as Ze,bh as he,bi as Je,bj as et,bk as tt,bl as rt,bm as pe,bn as j,bo as ae,bp as st,bq as fe,br as _e,bs as ge,bt as ot,bu as at,bv as nt,bw as it,bx as lt,by as ct,bz as dt,bA as ut,bB as mt}from"./admin-drawer-panel-Dmnn03CQ.js";import{V as ht}from"./VTable-D85UV0cA.js";import{V as pt}from"./VDialog-BWXBR7iM.js";import{u as g,f as K,g as ft,a as _t,c as gt}from"./main-C0t41OAE.js";import{V as L}from"./VCheckbox-D8eqoc1z.js";import{b as bt,a as W,V as ne,c as yt,S as vt}from"./settings-drawer-ChnWWcfy.js";import{M as St,p as wt,B as Bt,g as Ct,V as X,N as ie,t as Tt,T as N,a as kt,P as Vt,b as Mt,c as $t}from"./pagination-toolbar-BNiqJX4c.js";import{C as Pt}from"./confirm-dialog-BJlNq6ku.js";import{V as Ft}from"./VSelect-BpWdXMPq.js";import{E as It,P as xt,V as be,U as Dt}from"./unauthorized-DnNuMsHM.js";import{V as Nt}from"./VCombobox-BTG361j0.js";import{V as Ot}from"./VTextField-DAe7a2au.js";import"./VCheckboxBtn-BaQC30AI.js";import"./VSelectionControl-FmTy_2ch.js";import"./copy-to-clipboard-DoUvDJVx.js";import"./VSlideGroup-B9zEPv1H.js";import"./change-password-dialog-HW0jK0gr.js";import"./filter-BL9RMUvn.js";const Rt=[["characters","CSV","category"],["community_rating","Decimal","communityrating"],["contributor","CSV","author, creator, credit, person, people"],["country","String"],["created_at","DateTime","created"],["critical_rating","Decimal","criticalrating"],["day","Integer"],["date","Date"],["decade","Integer"],["file_type","String","filetype, type"],["genres","CSV","genre"],["identifier","CSV","id, nss"],["identifier_type","CSV","id_type, idtype, nid"],["imprint","String"],["issue","String","(Combined issue_number and issue_suffix)"],["issue_number","Decimal","number"],["issue_suffix","String"],["language","String"],["location","CSV","location"],["maturity_rating","String"],["monochrome","String","blackandwhite"],["month","Integer"],["reading_direction","String","direction"],["name","String","title"],["notes","String"],["original_format","String","format, orginalformat"],["path","String","filename, folder, folders"],["page_count","Integer","pages, pagecount"],["publisher","String"],["reading_direction","String","direction"],["review","String"],["scan_info","String","scan, scaninfo"],["series","String"],["series_groups","CSV","seriesgroups"],["size","Integer"],["stories","CSV","story"],["story_arcs","CSV","storyarcs"],["summary","String","comments, description"],["tags","CSV","tag"],["tagger","String"],["teams","CSV","team"],["updated_at","Date","updated"],["volume","String"],["web","String"],["year","Integer"]],Ht={name:"SearchHelp",components:{CloseButton:Ce,DrawerItem:Te},data(){return{mdiOpenInNew:ce,mdiArchiveSearchOutline:ke,dialog:!1,FIELD_ROWS:Rt}}},_=e=>(de("data-v-975ceadc"),e=e(),ue(),e),At={id:"searchHelp"},Lt=_(()=>a("h1",null,"Search Help",-1)),Ut={id:"fieldTableContainer"},Gt=_(()=>a("h2",null,"Search Fields",-1)),qt=_(()=>a("thead",null,[a("tr",null,[a("th",null,"Field"),a("th",null,"Type"),a("th",null,"Aliases")])],-1)),Et={class:"aliasCol"},zt={id:"textContainer"},jt=_(()=>a("h2",null,"Whoosh Query Parser",-1)),Wt={href:"https://whoosh.readthedocs.io/en/latest/querylang.html",target:"_blank"},Yt=_(()=>a("h2",null,"Operators",-1)),Qt=_(()=>a("code",null,"and",-1)),Kt=_(()=>a("code",null,"or",-1)),Xt=_(()=>a("code",null,"not",-1)),Zt=_(()=>a("code",null,"andnot",-1)),Jt=_(()=>a("code",null,"andmaybe",-1)),er=_(()=>a("code",null,"require",-1)),tr=_(()=>a("h2",null,"Searching Fields",-1)),rr=_(()=>a("p",null,[u(" Like Codex's filter selector menu, but more powerful. You may search on individual comic metadata fields. using a search token like "),a("code",null,"field:value"),u(". ")],-1)),sr=_(()=>a("h3",null,"Dates and DateTimes",-1)),or={href:"https://whoosh.readthedocs.io/en/latest/dates.html#parsing-date-queries",target:"_blank"},ar=_(()=>a("code",null,"YYYYMMDD",-1)),nr=_(()=>a("code",null,"YYYMMDDHHmmSS",-1)),ir=_(()=>a("h3",null,"Single Quote complex field Queries",-1)),lr=_(()=>a("p",null,[u(" Use "),a("em",null,"single"),u(" quotes to tell Codex that a complex or natural language phrase should be applied to a specific field ")],-1)),cr=_(()=>a("code",null," created:'this year' ",-1)),dr=_(()=>a("h3",null,"Size Byte Multipliers",-1)),ur=_(()=>a("p",null,[u(" The size field can make use of convenient byte multiplier suffixes like "),a("code",null,"kb"),u(" and "),a("code",null,"mb"),u(" as well as binary suffixes like "),a("code",null,"gib"),u(" and "),a("code",null,"tib"),u(". ")],-1)),mr=_(()=>a("h3",null,"Ranges of Fields",-1)),hr=_(()=>a("p",null,[u(" Whoosh uses brackets and the "),a("em",null,"uppercase"),u(" "),a("code",null,"TO"),u(" operator to delineate a range search. ")],-1)),pr=_(()=>a("code",null,"updated:[last sunday TO 10am]",-1)),fr=_(()=>a("p",null," You may leave out the upper or lower bound or use >, <, >=, <= operators. ",-1)),_r=_(()=>a("code",null,"size:<50mb",-1)),gr=_(()=>a("h3",null,"Multi Value Fields",-1)),br=_(()=>a("p",null,[u(" Fields marked type "),a("code",null,"CSV"),u(" in the table to the left may contain comma separated values. This filters by all the supplied values. Multi Value tokens look like: "),a("code",null,"field:term1,term2,term3")],-1)),yr=_(()=>a("h2",null,"Grouped Queries",-1)),vr=_(()=>a("p",null,"Whoosh allows grouping of queries with parenthesis.",-1)),Sr=_(()=>a("h2",null,"Example Search",-1)),wr=_(()=>a("p",null," This example search is more convoluted than most searches but uses many features for demonstration: ",-1)),Br=_(()=>a("code",null,' (Holmes and Tesla date:>=1999-1-2 size:[10mib TO 1gb] Gadzooks) or "Captain Nemo" -Quartermain ',-1)),Cr=_(()=>a("p",{style:{"margin-top":"1em"}},' Search for comics that contain Holmes and Tesla published after the second day of 1999 that are between 10 Mebibytes and 10 Gigabytes that also contain the word "Gadzooks" but also all comics with the the phrase "Captain Nemo" but no comics will contain the word "Quartermain". ',-1)),Tr=_(()=>a("h2",null,"Group and Sorting Behavior",-1)),kr=_(()=>a("p",null," If the search field is empty and then you supply a search query for the first time, Codex navigates you to the to All Issues view and your sets your Sorted By selection to Search Score. If you prefer a different view you may change the group and sort selections after your you make your first search. ",-1)),Vr=_(()=>a("h2",null,"Filter Behavior",-1)),Mr=_(()=>a("p",null,[u(" Codex applies "),a("em",null,"both"),u(" the Filter selection menu filters "),a("em",null,"and"),u(" the search query field filters to the search. Be sure to clear the filter selector or the search field if you prefer to apply only one of them. ")],-1)),$r=_(()=>a("h2",null,"Faster Browsing and Searching",-1)),Pr=_(()=>a("p",null,' Browsing large collections using the group tree and filter dropdown is relatively fast. Searching with the search bar will always be slower. To aid search speed there is a setting for limiting search results which can help with large collections. To see all results, choose Search Result Limit: "Unlimited". ',-1));function Fr(e,t,s,d,o,r){const n=f("DrawerItem"),c=f("CloseButton");return l(),p(pt,{modelValue:o.dialog,"onUpdate:modelValue":t[2]||(t[2]=m=>o.dialog=m),"content-class":"browserSearchHelp",fullscreen:"",scrim:!1,transition:"dialog-bottom-transition"},{activator:h(({props:m})=>[i(n,I(m,{"prepend-icon":o.mdiArchiveSearchOutline,title:"Search Help"}),null,16,["prepend-icon"])]),default:h(()=>[a("div",At,[i(c,{class:"closeButton",title:"Close Help (esc)",size:"x-large",onClick:t[0]||(t[0]=m=>o.dialog=!1)}),Lt,a("div",Ut,[Gt,i(ht,{id:"fieldTable",class:"highlight-table"},{default:h(()=>[qt,a("tbody",null,[(l(!0),w(F,null,O(o.FIELD_ROWS,m=>(l(),w("tr",{key:m[0]},[a("td",null,S(m[0]),1),a("td",null,S(m[1]),1),a("td",Et,S(m[2]||""),1)]))),128))])]),_:1})]),a("div",zt,[jt,a("p",null,[u(" Codex uses the Whoosh search engine to execute your text search queries. Whoosh operates much like other familiar search engines. As such, only some special features are documented on this page. To understand its full power, users are encouraged to read the "),a("a",Wt,[u("Whoosh Query Language "),i(k,{size:"small"},{default:h(()=>[u(S(o.mdiOpenInNew),1)]),_:1})]),u(" documentation. ")]),Yt,u(" Whoosh has the "),Qt,u(", "),Kt,u(", "),Xt,u(", "),Zt,u(", "),Jt,u(", and "),er,u(" operators. "),tr,rr,sr,a("p",null,[u(" Whoosh parses Dates and DateTime values liberally. Read "),a("a",or,[u("Whoosh Parsing Date Queries "),i(k,{size:"small"},{default:h(()=>[u(S(o.mdiOpenInNew),1)]),_:1})]),u(" documentation for what formats and natural language phrases are accepted. If the format you try fails, the "),ar,u(" and "),nr,u(" formats are reliable. ")]),ir,lr,cr,dr,ur,mr,hr,pr,u(". "),fr,_r,u(". "),gr,br,yr,vr,Sr,wr,Br,Cr,Tr,kr,Vr,Mr,$r,Pr]),i(c,{class:"closeButton",title:"Close Help (esc)",size:"x-large",onClick:t[1]||(t[1]=m=>o.dialog=!1)})])]),_:1},8,["modelValue"])}const Ir=b(Ht,[["render",Fr],["__scopeId","data-v-975ceadc"]]),xr="rpisv",Dr={name:"BrowserSettingsPanel",components:{SearchHelp:Ir},data(){return{mdiReload:me,openDelay:2e3}},computed:{...V(P,["isAuthorized"]),...v(P,{isUserAuthorized:e=>!!e.user}),...v(g,{groupChoices:e=>{var t,s;return((s=(t=e.choices)==null?void 0:t.static)==null?void 0:s.settingsGroup)||{}},showSettings:e=>{var t;return((t=e.settings)==null?void 0:t.show)||{}},twentyFourHourTime:e=>{var t;return((t=e.settings)==null?void 0:t.twentyFourHourTime)||!1},twentyFourHourTimeTitle:e=>{var t,s,d;return((d=(s=(t=e.choices)==null?void 0:t.static)==null?void 0:s.twentyFourHourTime)==null?void 0:d.title)||""},dynamicCovers:e=>{var t;return((t=e.settings)==null?void 0:t.dynamicCovers)||!1},customCovers:e=>{var t;return((t=e.settings)==null?void 0:t.customCovers)||!1}}),showShowSettings(){var e,t;return xr.includes((t=(e=this.$route)==null?void 0:e.params)==null?void 0:t.group)}},methods:{...T(g,["setSettings"]),setShow(e,t){const s={show:{[e]:t===!0}};this.setSettings(s)},set24HourTime(e){const t={twentyFourHourTime:e===!0};this.setSettings(t)},setDynamicCovers(e){const t={dynamicCovers:e===!0};this.setSettings(t)},setCustomCovers(e){const t={customCovers:e===!0};this.setSettings(t)}}},ye=e=>(de("data-v-7305feeb"),e=e(),ue(),e),Nr={key:0,id:"showSettings"},Or=ye(()=>a("h4",{class:"settingsHeader"},"Show Group Levels",-1)),Rr=ye(()=>a("h4",{class:"settingsHeader"},"Covers",-1));function Hr(e,t,s,d,o,r){const n=f("SearchHelp");return l(),w(F,null,[r.showShowSettings?U((l(),w("div",Nr,[Or,(l(!0),w(F,null,O(e.groupChoices,c=>(l(),p(L,{key:c.title,class:"browserGroupCheckbox",density:"compact","hide-details":"auto","model-value":e.showSettings[c.value],"true-value":!0,label:`Show ${c.title}`,"onUpdate:modelValue":m=>r.setShow(c.value,m)},null,8,["model-value","label","onUpdate:modelValue"]))),128))])),[[Y,{openDelay:o.openDelay,text:"Show these groups when navigating the browse tree"}]]):B("",!0),i(D),a("div",null,[Rr,U(i(L,{class:"browserGroupCheckbox",density:"compact","hide-details":"auto","model-value":e.dynamicCovers,"true-value":!0,label:"Dynamic Covers","onUpdate:modelValue":t[0]||(t[0]=c=>r.setDynamicCovers(c))},null,8,["model-value"]),[[Y,{openDelay:o.openDelay,text:"Choose covers by filters, search, and order"}]]),U(i(L,{class:"browserGroupCheckbox",density:"compact","hide-details":"auto","model-value":e.customCovers,"true-value":!0,label:"Custom Covers","onUpdate:modelValue":t[1]||(t[1]=c=>r.setCustomCovers(c))},null,8,["model-value"]),[[Y,{openDelay:o.openDelay,text:"Overlay custom covers if the admin has set them."}]])]),i(D),i(n),i(D),i(L,{class:"browserGroupCheckbox",density:"compact","hide-details":"auto","model-value":e.twentyFourHourTime,"true-value":!0,indeterminate:"",label:"Force 24 Hour Time","onUpdate:modelValue":t[2]||(t[2]=c=>r.set24HourTime(c))},null,8,["model-value"]),i(D)],64)}const Ar=b(Dr,[["render",Hr],["__scopeId","data-v-7305feeb"]]),Lr={name:"BrowserSettingsDrawer",components:{SettingsDrawer:bt,BrowserSettingsPanel:Ar}};function Ur(e,t,s,d,o,r){const n=f("BrowserSettingsPanel"),c=f("SettingsDrawer");return l(),p(c,{title:"Browser",temporary:"","disable-resize-watcher":""},{panel:h(()=>[i(n)]),_:1})}const Gr=b(Lr,[["render",Ur]]),qr={name:"BrowserContainerMenu",components:{ConfirmDialog:Pt},props:{item:{type:Object,required:!0}},data(){return{mdiDotsVertical:Ve,showMenu:!1}},computed:{...v(g,{groupNames:e=>e.choices.static.groupNames}),verb(){return this.item.finished?"Unread":"Read"},confirmText(){return`Mark ${this.verb}`},markReadText(){const e=["Mark"];this.item.group!="c"&&e.push("Entire");let t=this.groupNames[this.item.group];return this.item.group!=="s"&&(t=t.slice(0,-1)),e.push(t,this.verb),e.join(" ")},itemName(){return this.item.name?this.item.name:"(Empty)"}},methods:{...T(g,["setBookmarkFinished"]),toggleRead:function(){this.setBookmarkFinished(this.item,!this.item.finished),this.showMenu=!1}}},Er={class:"background-soft-highlight"};function zr(e,t,s,d,o,r){const n=f("ConfirmDialog");return l(),p(Ft,{modelValue:o.showMenu,"onUpdate:modelValue":t[2]||(t[2]=c=>o.showMenu=c),"offset-y":"",top:""},{activator:h(({props:c})=>[i(Me,I({"aria-label":"action menu",class:"browserCardMenuIcon cardControlButton",icon:"",title:"Action Menu",variant:"text"},c,{onClick:t[0]||(t[0]=$e(()=>{},["prevent"]))}),{default:h(()=>[i(k,null,{default:h(()=>[u(S(o.mdiDotsVertical),1)]),_:1})]),_:2},1040)]),default:h(()=>[a("div",Er,[s.item.group==="c"?(l(),p(M,{key:0,title:r.markReadText,onClick:r.toggleRead},null,8,["title","onClick"])):(l(),p(n,{key:1,"button-text":r.markReadText,"title-text":r.markReadText,"confirm-text":r.confirmText,"object-name":r.itemName,onConfirm:r.toggleRead,onCancel:t[1]||(t[1]=c=>o.showMenu=!1)},null,8,["button-text","title-text","confirm-text","object-name","onConfirm"]))])]),_:1},8,["modelValue"])}const jr=b(qr,[["render",zr]]),Wr={name:"BrowserCardControls",components:{BrowserCardMenu:jr,MetadataButton:St},props:{item:{type:Object,required:!0},eyeOpen:{type:Boolean,required:!0}},data(){return{mdiEye:re,mdiEyeOff:se}},computed:{eyeIcon:function(){return this.eyeOpen?re:se}}},Yr={class:"cardControls"};function Qr(e,t,s,d,o,r){const n=f("MetadataButton"),c=f("BrowserCardMenu");return l(),w("div",Yr,[s.item.group==="c"?(l(),p(k,{key:0,class:"eye"},{default:h(()=>[u(S(r.eyeIcon),1)]),_:1})):B("",!0),i(n,{group:s.item.group,book:s.item,children:s.item.childCount},null,8,["group","book","children"]),i(c,{item:s.item},null,8,["item"])])}const Kr=b(Wr,[["render",Qr],["__scopeId","data-v-6f2c700a"]]),Xr=new Set(["community_rating","critical_rating"]),Zr=new Set(["date"]),Jr=new Set(["bookmark_updated_at","created_at","updated_at"]),es={name:"OrderByCaption",props:{item:{type:Object,required:!0}},computed:{...v(g,{orderBy:e=>e.settings.orderBy,twentyFourHourTime:e=>e.settings.twentyFourHourTime,topGroup:e=>e.settings.topGroup}),orderValue(){let e=this.item.orderValue;try{if(this.orderBy===void 0||this.orderBy===null||this.orderBy==="sort_name"&&(this.item.group!=="c"||this.topGroup!=="f")||this.orderBy==="filename"&&this.item.group==="f"||this.orderBy==="story_arc_number"&&this.item.group==="a"||e===null||e===void 0)e="";else if(Zr.has(this.orderBy)){const t=new Date(e);e=Pe.format(t)}else this.orderBy=="search_score"?e=oe.format(Math.round(Number.parseFloat(e)*10)):Jr.has(this.orderBy)?e=Fe(e,this.twentyFourHourTime,!0):this.orderBy=="page_count"?e=`${oe.format(e)} pages`:this.orderBy=="size"?e=wt(Number.parseInt(e,10)):Xr.has(this.orderBy)&&(e=`★ ${e}`)}catch(t){console.debug(t)}return e}}},ts=["innerHTML"];function rs(e,t,s,d,o,r){return r.orderValue?(l(),w("div",{key:0,class:"orderCaption text-caption",innerHTML:r.orderValue},null,8,ts)):B("",!0)}const ss=b(es,[["render",rs],["__scopeId","data-v-81602057"]]),os={name:"BrowserCardSubtitle",props:{item:{type:Object,required:!0}},computed:{...v(g,{orderByName:e=>e.settings.orderBy=="sort_name",topGroup:e=>e.settings.topGroup,showSeries:e=>e.settings.show.s,showVolume:e=>e.settings.show.v,zeroPad:e=>e.page.zeroPad}),seriesName(){return(this.topGroup==="a"||this.orderByName&&!this.showSeries)&&["c","v"].includes(this.item.group)&&this.item.seriesName?this.item.seriesName:!1},volumeName(){return(this.topGroup==="a"||this.orderByName&&!this.showVolume)&&this.item.group==="c"&&this.item.volumeName?K(this.item.volumeName):!1},headerName:function(){let e;switch(this.item.group){case"i":e=this.item.publisherName;break;case"v":e=this.item.seriesName;break;case"c":e=this.$route.params.group==="f"?ft(this.item,this.zeroPad):_t(this.item,this.zeroPad);break;default:e=""}return e&&this.item.ids&&this.item.ids.length>1?"(Multiple)":e},displayName:function(){return this.item.group==="v"?K(this.item.name):this.item.name},linkLabel:function(){let e="";return e+=this.item.group==="c"?"Read":"Browse to",e+=" "+this.headerName,e}}},as={class:"browserLink cardSubtitle text-caption"},ns={key:0,class:"seriesCaption"},is={key:1,class:"volumeCaption"},ls={key:2,class:"headerName"},cs={class:"displayName"};function ds(e,t,s,d,o,r){return l(),w("div",as,[r.seriesName?(l(),w("div",ns,S(r.seriesName),1)):B("",!0),r.volumeName?(l(),w("div",is,S(r.volumeName),1)):B("",!0),r.headerName?(l(),w("div",ls,S(r.headerName),1)):B("",!0),a("div",cs,S(r.displayName),1)])}const us=b(os,[["render",ds],["__scopeId","data-v-a9a0493b"]]),ms=["iPad","iPhone","iPod"],ve="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0||window.matchMedia("(any-hover: none)").matches,hs=ms.some(e=>navigator.userAgent.includes(e))||ve&&navigator.userAgent.includes("Mac OS"),ps=G({modelValue:Boolean,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},...q(),...Ie(),...Z(),...xe({transition:"fade-transition"})},"VLazy"),fs=E()({name:"VLazy",directives:{intersect:De},props:ps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:s}=t;const{dimensionStyles:d}=Ne(e),o=Oe(e,"modelValue");function r(n){o.value||(o.value=n)}return z(()=>U(i(e.tag,{class:["v-lazy",e.class],style:[d.value,e.style]},{default:()=>[o.value&&i(He,{transition:e.transition,appear:!0},{default:()=>{var n;return[(n=s.default)==null?void 0:n.call(s)]}})]}),[[Re("intersect"),{handler:r,options:e.options},null]])),{}}}),le=100,_s=-170,gs={name:"BrowserCard",components:{BookCover:Bt,BrowserCardControls:Kr,BrowserCardSubtitle:us,OrderByCaption:ss},props:{item:{type:Object,required:!0}},data(){return{doubleTapHovered:!ve||hs}},computed:{...v(g,{importMetadata:e=>e.page.adminFlags.importMetadata}),linkLabel(){let e="";return e+=this.item.group==="c"?"Read":"Browse to",e+=" "+this.item.name,e},ids(){return this.item.ids.join(",")},toRoute(){return this.doubleTapHovered?this.item.group==="c"?Ct(this.item,this.importMetadata):{name:"browser",params:{group:this.item.group,pks:this.ids,page:1},query:{ts:this.item.mtime}}:{}},progressBGOpacity(){return this.item.progress?.1:0}},mounted(){this.scrollToMe()},methods:{scrollToMe:function(){if(!this.$route.hash||this.$route.hash.split("-")[1]!==String(this.ids))return;const e=this.$el;if(!e){console.warn("No element found to scroll to!");return}setTimeout(function(){e.scrollIntoView(),setTimeout(function(){window.scrollBy(0,_s)},le)},le)}}},bs={class:"browserCardTop"},ys={class:"cardFooter"};function vs(e,t,s,d,o,r){const n=f("BookCover"),c=f("BrowserCardControls"),m=f("router-link"),y=f("BrowserCardSubtitle"),C=f("OrderByCaption");return l(),p(fs,{id:`card-${r.ids}`,transition:"scale-transition"},{default:h(()=>[a("div",{class:"browserCardCoverWrapper",onClick:t[0]||(t[0]=$=>o.doubleTapHovered=!0)},[a("div",bs,[i(n,{group:s.item.group,pks:s.item.ids,mtime:s.item.mtime,"child-count":s.item.childCount,finished:s.item.finished},null,8,["group","pks","mtime","child-count","finished"]),i(m,{class:"cardCoverOverlay",to:r.toRoute,"aria-label":r.linkLabel},{default:h(()=>[i(c,{item:s.item,"eye-open":!!r.toRoute},null,8,["item","eye-open"])]),_:1},8,["to","aria-label"])]),i(J,{class:"bookCoverProgress","bg-opacity":r.progressBGOpacity,"model-value":s.item.progress,"aria-label":`${s.item.progress}% read`,rounded:"",height:"2"},null,8,["bg-opacity","model-value","aria-label"]),a("footer",ys,[i(y,{item:s.item},null,8,["item"]),i(C,{item:s.item},null,8,["item"])])])]),_:1},8,["id"])}const Ss=b(gs,[["render",vs],["__scopeId","data-v-635f5a8b"]]),ws={name:"BrowserEmptyResults",components:{EmptyState:It},data(){return{mdiOpenInNew:ce}},computed:{...V(P,["isAuthorized","isUserAdmin"]),...v(P,{registration:e=>e.adminFlags.registration}),...V(g,["isFiltersClearable"]),...v(g,{librariesExist:e=>e.page.librariesExist}),empty(){let e={};return this.librariesExist?(e.headline="No Comics Found",e.title="For these filter and search settings",e.icon=Ae):(e.headline="No Libraries Exist",this.isUserAdmin?e.title="Use the top right ☰ menu to navigate to the admin panel and add a comic library":this.isAuthorized?e.title="An administrator must add some comics libraries":e.title="Use the top right ☰ menu to log in as an administrator to add libraries",e.icon=Le),e},showLinkToReadmeAdmin(){return!this.librariesExist&&this.isUserAdmin},actionText(){return this.isFiltersClearable?"Clear Filters and Search":""}},methods:{...T(g,["clearFilters"])}},Bs={key:0},Cs={href:"https://github.com/ajslater/codex#-administration",target:"_blank"};function Ts(e,t,s,d,o,r){const n=f("EmptyState");return l(),p(n,{class:"browserEmpty",headline:r.empty.headline,title:r.empty.title,icon:r.empty.icon,"action-text":r.actionText,"onClick:action":t[0]||(t[0]=c=>e.clearFilters(!0))},{default:h(()=>[r.showLinkToReadmeAdmin?(l(),w("div",Bs,[u(" See the "),a("a",Cs,[u("README "),i(k,null,{default:h(()=>[u(S(o.mdiOpenInNew),1)]),_:1})]),u(" for help ")])):B("",!0)]),_:1},8,["headline","title","icon","action-text"])}const ks=b(ws,[["render",Ts]]),Vs={name:"BrowserMain",components:{BrowserCard:Ss,BrowserEmptyState:ks,PlaceholderLoading:xt},computed:{...v(P,{nonUsers:e=>e.adminFlags.nonUsers}),...V(P,["isAuthorized"]),...V(g,["isSearchMode"]),...v(g,{librariesExist:e=>e.page.librariesExist,showPlaceHolder(e){return this.nonUsers===void 0||this.isAuthorized&&(this.librariesExist==null||!e.browserPageLoaded)},cards:e=>[...e.page.groups??[],...e.page.books??[]],numPages:e=>e.page.numPages,query:e=>e.settings.q,isSearchOpen:e=>e.isSearchOpen}),browsePaneClasses(){return{padFooter:this.numPages>1,browsePaneSearch:this.isSearchOpen}},showBrowseItems(){return this.cards&&this.cards.length>0&&this.isAuthorized&&!this.showPlaceHolder},searchLimitMessage(){let e="";if(!this.query)return e;const t=+this.$route.params.page,s=100*t;return this.showPlaceHolder?e+=`Searching for ${s} entries...`:this.numPages>t&&(e+=`Search results truncated to ${s} entries.`,e+=" Advance the page to look for more."),e}}},Ms={key:0,id:"browsePaneContainer"},$s={key:3,id:"searchLimitMessage",title:"You may change this in the settings drawer"};function Ps(e,t,s,d,o,r){const n=f("BrowserCard"),c=f("PlaceholderLoading"),m=f("BrowserEmptyState");return l(),p(be,{id:"browsePane",class:A(r.browsePaneClasses)},{default:h(()=>[r.showBrowseItems?(l(),w("div",Ms,[(l(!0),w(F,null,O(e.cards,y=>(l(),p(n,{key:`${y.group}${y.ids}`,item:y},null,8,["item"]))),128))])):e.showPlaceHolder?(l(),p(c,{key:1,class:"placeholder"})):(l(),p(m,{key:2})),r.searchLimitMessage?(l(),w("div",$s,S(r.searchLimitMessage),1)):B("",!0)]),_:1},8,["class"])}const Fs=b(Vs,[["render",Ps],["__scopeId","data-v-142eedfa"]]),Is=G({divider:[Number,String],...q()},"VBreadcrumbsDivider"),xs=E()({name:"VBreadcrumbsDivider",props:Is(),setup(e,t){let{slots:s}=t;return z(()=>{var d;return i("li",{class:["v-breadcrumbs-divider",e.class],style:e.style},[((d=s==null?void 0:s.default)==null?void 0:d.call(s))??e.divider])}),{}}}),Ds=G({active:Boolean,activeClass:String,activeColor:String,color:String,disabled:Boolean,title:String,...q(),...Ue(),...Z({tag:"li"})},"VBreadcrumbsItem"),Se=E()({name:"VBreadcrumbsItem",props:Ds(),setup(e,t){let{slots:s,attrs:d}=t;const o=Ge(e,d),r=Q(()=>{var y;return e.active||((y=o.isActive)==null?void 0:y.value)}),n=Q(()=>r.value?e.activeColor:e.color),{textColorClasses:c,textColorStyles:m}=qe(n);return z(()=>i(e.tag,{class:["v-breadcrumbs-item",{"v-breadcrumbs-item--active":r.value,"v-breadcrumbs-item--disabled":e.disabled,[`${e.activeClass}`]:r.value&&e.activeClass},c.value,e.class],style:[m.value,e.style],"aria-current":r.value?"page":void 0},{default:()=>{var y,C;return[o.isLink.value?i("a",{class:"v-breadcrumbs-item--link",href:o.href.value,"aria-current":r.value?"page":void 0,onClick:o.navigate},[((C=s.default)==null?void 0:C.call(s))??e.title]):((y=s.default)==null?void 0:y.call(s))??e.title]}})),{}}}),Ns=G({activeClass:String,activeColor:String,bgColor:String,color:String,disabled:Boolean,divider:{type:String,default:"/"},icon:Ee,items:{type:Array,default:()=>[]},...q(),...ze(),...je(),...Z({tag:"ul"})},"VBreadcrumbs"),Os=E()({name:"VBreadcrumbs",props:Ns(),setup(e,t){let{slots:s}=t;const{backgroundColorClasses:d,backgroundColorStyles:o}=We(x(e,"bgColor")),{densityClasses:r}=Ye(e),{roundedClasses:n}=Qe(e);Ke({VBreadcrumbsDivider:{divider:x(e,"divider")},VBreadcrumbsItem:{activeClass:x(e,"activeClass"),activeColor:x(e,"activeColor"),color:x(e,"color"),disabled:x(e,"disabled")}});const c=Q(()=>e.items.map(m=>typeof m=="string"?{item:{title:m},raw:m}:{item:m,raw:m}));return z(()=>{const m=!!(s.prepend||e.icon);return i(e.tag,{class:["v-breadcrumbs",d.value,r.value,n.value,e.class],style:[o.value,e.style]},{default:()=>{var y;return[m&&i("li",{key:"prepend",class:"v-breadcrumbs__prepend"},[s.prepend?i(Xe,{key:"prepend-defaults",disabled:!e.icon,defaults:{VIcon:{icon:e.icon,start:!0}}},s.prepend):i(k,{key:"prepend-icon",start:!0,icon:e.icon},null)]),c.value.map((C,$,ee)=>{var te;let{item:R,raw:Be}=C;return i(F,null,[((te=s.item)==null?void 0:te.call(s,{item:R,index:$}))??i(Se,I({key:$,disabled:$>=ee.length-1},typeof R=="string"?{title:R}:R),{default:s.title?()=>{var H;return(H=s.title)==null?void 0:H.call(s,{item:R,index:$})}:void 0}),$<ee.length-1&&i(xs,null,{default:s.divider?()=>{var H;return(H=s.divider)==null?void 0:H.call(s,{item:Be,index:$})}:void 0})])}),(y=s.default)==null?void 0:y.call(s)]}})}),{}}}),Rs={f:"Folder",a:"Story Arc",r:"Top",p:"Publisher",i:"Imprint",s:"Series",v:"Volume"},Hs={f:Je,r:he,p:et,i:tt,s:rt},As={name:"BrowserBreadcrumbs",computed:{...v(g,{breadcrumbs(e){const t=[],s=e.settings.breadcrumbs.slice(0,e.settings.breadcrumbs.length-1);if(!s)return t;let d="";for(const o of s){const r=this.getTo(o,d),n=o.name?o.name:"",c=o.group,m=this.getIcon(o.pks,n,c),y=o.pks==="0"?"Top":Rs[c],C={to:r,title:n,icon:m,tooltip:y};t.push(C),d=o.pks}return t}})},methods:{getTo(e,t){const s=Ze(e);delete s.name;const d={name:"browser",params:s};return t&&(d.hash=`#card-${t}`),d},getIcon(e,t,s){let d;return"rfa".indexOf(s)!=-1&&e==="0"?d=he:t?d="":d=Hs[s],d}}},Ls={key:1};function Us(e,t,s,d,o,r){return l(),p(Os,{id:"browserBreadcrumbs",density:"compact",items:e.breadcrumbs},{item:h(({item:n})=>[i(Se,{to:n.to,title:n.tooltip},{default:h(()=>[n.icon?(l(),p(k,{key:0},{default:h(()=>[u(S(n.icon),1)]),_:2},1024)):(l(),w("span",Ls,S(n.title),1))]),_:2},1032,["to","title"])]),_:1},8,["items"])}const Gs=b(As,[["render",Us],["__scopeId","data-v-b8e7faf5"]]),qs={name:"BrowserHeader",components:{Breadcrumbs:Gs}};function Es(e,t,s,d,o,r){const n=f("Breadcrumbs");return l(),p(W,{id:"breadcrumbsToolbar",height:24,class:"titleToolbar",elevation:"8"},{default:h(()=>[i(n)]),_:1})}const zs=b(qs,[["render",Es],["__scopeId","data-v-fd83bc5e"]]),js={name:"BrowserHeader",data(){return{mdiReload:me}},head(){return{meta:[{hid:"description",name:"description",content:["browse comics",this.longBrowserTitlePrefix,this.longBrowseTitleMain,this.longBrowseTitleSuffix].filter(Boolean).join(" ")}]}},computed:{...v(g,{browserTitle:e=>{var t;return(t=e.page)==null?void 0:t.title},groupNames:e=>e.choices.static.groupNames,modelGroup:e=>e.page.modelGroup}),...V(P,["isUserAdmin"]),title(){let e;if(Number(this.$route.params.pks)===0)e="All";else if(this.browserTitle){let t=[];const{groupName:s,groupCount:d}=this.browserTitle,r=this.$route.params.group==="v"?K(s):s;if(r&&t.push(r),d){const n=`of ${d}`;t.push(n)}e=t.join(" ")}else e="";return e},subtitle(){return this.$route.params.group==="f"?"":this.groupNames[this.modelGroup]}}};function Ws(e,t,s,d,o,r){return l(),p(W,{id:"browserToolbarTitle",height:24,"extension-height":24,elevation:"8"},pe({default:h(()=>[i(ne,{id:"browserTitle",class:"browserTitle"},{default:h(()=>[u(S(r.title),1)]),_:1})]),_:2},[r.subtitle?{name:"extension",fn:h(()=>[i(ne,{id:"browserSubtitle",class:"browserTitle"},{default:h(()=>[u(S(r.subtitle),1)]),_:1})]),key:"0"}:void 0]),1024)}const Ys=b(js,[["render",Ws],["__scopeId","data-v-1f8ac575"]]),Qs=10,Ks={name:"BrowserSearchCombobox",data(){return{mdiMagnify:j,menu:!1,query:"",items:[""]}},computed:{...v(g,{stateQ:e=>e.settings.q})},watch:{stateQ(e){this.query=e,this.addToMenu(e)}},beforeMount(){this.query=this.stateQ},methods:{...T(g,["setSettings","startSearchHideTimeout","clearSearchHideTimeout"]),addToMenu(e){if(!e||this.items.includes(e))return;const t=this.items[0]===""?[]:this.items;t.unshift(e),this.items=t.slice(0,Qs)},doSearch(e=!1){this.menu=!1;const s={q:this.query?this.query.trim():""};e&&(s.orderBy="sort_name",s.orderReverse=!1,this.doBlur()),this.setSettings(s)},doBlur(){this.menu=!1,(this.query?this.query.trim():"")||this.startSearchHideTimeout()}}};function Xs(e,t,s,d,o,r){return l(),p(Nt,{id:"searchbox",ref:"searchbox",modelValue:o.query,"onUpdate:modelValue":t[0]||(t[0]=n=>o.query=n),menu:o.menu,"onUpdate:menu":t[1]||(t[1]=n=>o.menu=n),items:o.items,autofocus:"","aria-label":"search",clearable:"",density:"compact","full-width":"","hide-details":"auto","hide-selected":"","menu-props":{maxHeight:void 0},"no-filter":"","prepend-inner-icon":o.mdiMagnify,variant:"solo","onClick:clear":t[2]||(t[2]=n=>r.doSearch(!0)),"onClick:prependInner":r.doSearch,onKeydown:e.clearSearchHideTimeout,onKeyup:[ae(r.doSearch,["enter"]),ae(r.doBlur,["esc"])],onFocus:e.clearSearchHideTimeout,onBlur:r.doBlur},null,8,["modelValue","menu","items","prepend-inner-icon","onClick:prependInner","onKeydown","onKeyup","onFocus","onBlur"])}const Zs=b(Ks,[["render",Xs]]),Js={name:"BrowserSearchToolbar",components:{BrowserSearchCombobox:Zs},computed:{...v(g,{isSearchOpen:e=>e.isSearchOpen})}};function eo(e,t,s,d,o,r){const n=f("BrowserSearchCombobox");return l(),p(st,null,{default:h(()=>[e.isSearchOpen?(l(),p(W,{key:0,density:"compact",height:64},{default:h(()=>[i(X,{id:"searchToolbarItems"},{default:h(()=>[i(n)]),_:1})]),_:1})):B("",!0)]),_:1})}const to=b(Js,[["render",eo],["__scopeId","data-v-4900943a"]]),ro={name:"BrowserFilterSubMenu",props:{name:{type:String,required:!0}},emits:["selected"],data(){return{mdiChevronLeft:fe,mdiCloseCircleOutline:_e,query:""}},computed:{...v(g,{choices(e){return e.choices.dynamic[this.name]},readingDirectionTitles:e=>e.choices.static.readingDirection,identifierTypeTitles:e=>e.choices.static.identifierType,filter(e){return e.settings.filters[this.name]}}),...ge(g,["filterMode"]),hasNone(){for(const e of this.choices)if(ie.has(e)||e instanceof Object&&ie.has(e.pk))return!0;return!1},vuetifyItems(){return Tt(this.choices,this.query)},title(){return gt(this.name)},lowerTitle(){return this.title.toLowerCase()},filterMenuIcon(){return this.filter&&this.filter.length>0?ot:at},isClearable(){var e;return(e=this.filter)==null?void 0:e.length}},methods:{...T(g,["clearOneFilter","identifierTypeTitle","loadAvailableFilterChoices","loadFilterChoices"]),setUIFilterMode(e){this.filterMode=e,this.query="",e!=="base"&&typeof this.choices!="object"&&this.loadFilterChoices(e)},selected(e){const t={filters:{[this.name]:e}};this.$emit("selected",t)},itemTitle:function(e){return this.name==="readingDirection"?this.readingDirectionTitles[e.value]:this.name==="identifierType"?this.identifierTypeTitle(e.title):e.title},async _loadSubAvailableFilterChoices(){return this.loadAvailableFilterChoices().then(()=>this.loadFilterChoices(this.name))},onClear(){return this.clearOneFilter(this.name).then(()=>this._loadSubAvailableFilterChoices())}}},so={key:0},oo={class:"filterHeader"};function ao(e,t,s,d,o,r){return l(),w("div",null,[i(nt,{"hide-on-leave":""},{default:h(()=>[e.filterMode==="base"?(l(),p(M,{key:0,density:"compact",variant:"plain",title:r.title,"append-icon":r.filterMenuIcon,onClick:t[0]||(t[0]=n=>r.setUIFilterMode(s.name))},null,8,["title","append-icon"])):B("",!0)]),_:1}),i(lt,{"hide-on-leave":""},{default:h(()=>[e.filterMode===s.name?(l(),w("div",so,[a("header",oo,[i(M,{class:"filterHeaderTitle","prepend-icon":o.mdiChevronLeft,title:r.lowerTitle,onClick:t[1]||(t[1]=n=>r.setUIFilterMode("base"))},null,8,["prepend-icon","title"]),r.isClearable?(l(),p(M,{key:0,density:"compact",class:"clearFilter",title:"Clear Filter","append-icon":o.mdiCloseCircleOutline,onClick:r.onClear},null,8,["append-icon","onClick"])):B("",!0),typeof e.choices=="object"?(l(),p(Ot,{key:1,modelValue:o.query,"onUpdate:modelValue":t[2]||(t[2]=n=>o.query=n),placeholder:"Filter","full-width":"",density:"compact",filled:"",rounded:"","hide-details":"auto",onFocus:t[3]||(t[3]=n=>e.filterMode=s.name)},null,8,["modelValue"])):(l(),p(J,{key:2,class:"filterValuesProgress",rounded:"",indeterminate:""}))]),typeof e.choices=="object"?(l(),p(it,{key:0,"model-value":e.filter,class:"filterGroup overflow-y-auto",density:"compact",multiple:"",items:r.vuetifyItems,"onUpdate:selected":r.selected},{default:h(()=>[r.hasNone?(l(),p(M,{key:-1,title:"None",value:-1,class:"noneItem",density:"compact",variant:"plain"})):B("",!0),(l(!0),w(F,null,O(r.vuetifyItems,n=>(l(),p(M,{key:n.value,title:r.itemTitle(n),value:n.value,density:"compact",variant:"plain"},null,8,["title","value"]))),128))]),_:1},8,["model-value","items","onUpdate:selected"])):B("",!0)])):B("",!0)]),_:1})])}const no=b(ro,[["render",ao],["__scopeId","data-v-f1f62462"]]),io={name:"BrowserFilterBySelect",components:{BrowserFilterSubMenu:no,ToolbarSelect:N},extends:N,data(){return{mdiCloseCircleOutline:_e,mdiFilterMultipleOutline:ct,menu:!1}},computed:{...V(g,["filterByChoicesMaxLen","isDynamicFiltersSelected","isFiltersClearable"]),...v(g,{bookmarkChoices:e=>e.choices.static.bookmark,bookmarkFilter:e=>e.settings.filters.bookmark||e.choices.static.bookmark[0],filters:e=>e.settings.filters,filterMenuClass:function(e){let t="filterMenu";return e.filterMode!=="base"&&(t+="Hidden"),t},dynamicChoiceNames:function(e){if(e.choices.dynamic===void 0)return;const t=[];for(const[s,d]of Object.entries(e.choices.dynamic))d&&t.push(s);return t}}),...ge(g,["filterMode"]),padRight(){return this.$vuetify.display.xs&&!this.bookmarkFilter}},methods:{...T(g,["clearFilters","loadAvailableFilterChoices","setSettings"]),onUpdateModelValue(e){const t={filters:{bookmark:e}};this.onSubMenuSelected(t)},onSubMenuSelected(e){this.menu=!1,this.setSettings(e),this.filterMode="base"},onClear(){return this.clearFilters().then(()=>this.loadAvailableFilterChoices()).catch(()=>{console.error("clear filters")})},onMenu(e){e&&this.dynamicChoiceNames===void 0&&this.loadAvailableFilterChoices()}}},lo={class:"codexSelection"};function co(e,t,s,d,o,r){const n=f("BrowserFilterSubMenu"),c=f("ToolbarSelect");return l(),p(c,{menu:o.menu,"onUpdate:menu":[t[0]||(t[0]=m=>o.menu=m),r.onMenu],class:A(["filterBySelect",{filterBySelectXSmall:r.padRight}]),"select-label":"filter by",items:e.bookmarkChoices,"menu-props":{contentClass:e.filterMenuClass,maxHeight:void 0},"model-value":e.bookmarkFilter,"max-select-len":e.filterByChoicesMaxLen-1,"onUpdate:modelValue":r.onUpdateModelValue},{selection:h(({item:m})=>[a("span",lo,S(m.title),1),e.isDynamicFiltersSelected?(l(),p(k,{key:0,class:"filterSuffix",size:"x-small"},{default:h(()=>[u(S(o.mdiFilterMultipleOutline),1)]),_:1})):B("",!0)]),"prepend-item":h(()=>[e.isFiltersClearable?(l(),p(M,{key:0,density:"compact",variant:"plain",class:"clearFilter",title:"Clear All Filters","append-icon":o.mdiCloseCircleOutline,onClick:r.onClear},null,8,["append-icon","onClick"])):B("",!0)]),"append-item":h(()=>[i(D),e.dynamicChoiceNames===void 0?(l(),p(M,{key:0,density:"compact",variant:"plain"},{default:h(()=>[i(J,{indeterminate:"",rounded:""})]),_:1})):e.dynamicChoiceNames.length>0?(l(!0),w(F,{key:1},O(e.dynamicChoiceNames,m=>(l(),p(n,{key:m,name:m,onSelected:r.onSubMenuSelected},null,8,["name","onSelected"]))),128)):(l(),p(M,{key:2,class:"noChoices",density:"compact",variant:"plain",title:"No filters available"}))]),_:1},8,["menu","class","items","menu-props","model-value","max-select-len","onUpdate:modelValue","onUpdate:menu"])}const uo=b(io,[["render",co],["__scopeId","data-v-0d876944"]]),mo={name:"BrowseOrderBySelect",components:{ToolbarSelect:N},extends:N,computed:{...V(g,["orderByChoices","orderByChoicesMaxLen"]),...v(g,{orderBySetting:e=>e.settings.orderBy}),reverseValues(){const e=new Set;for(const t of this.orderByChoices)t.reverse&&e.add(t.value);return e},orderBy:{get(){return this.orderBySetting},set(e){const t={orderBy:e,orderReverse:this.reverseValues.has(e)};this.setSettings(t)}}},methods:{...T(g,["setSettings"])}};function ho(e,t,s,d,o,r){const n=f("ToolbarSelect");return l(),p(n,I({modelValue:r.orderBy,"onUpdate:modelValue":t[0]||(t[0]=c=>r.orderBy=c),class:"orderBySelect","select-label":"order by",items:e.orderByChoices,"max-select-len":e.orderByChoicesMaxLen-4},e.$attrs),null,16,["modelValue","items","max-select-len"])}const po=b(mo,[["render",ho]]),fo={name:"ToolbarButton",components:{ScaleButton:yt}};function _o(e,t,s,d,o,r){const n=f("ScaleButton");return l(),p(n,{variant:"plain",class:"toolbarButton"},pe({_:2},[O(e.$slots,(c,m)=>({name:m,fn:h(y=>[dt(e.$slots,m,I({props:c},y))])}))]),1024)}const we=b(fo,[["render",_o]]),go={name:"BrowseOrderReverseButton",components:{ToolbarButton:we},data(){return{mdiSortVariant:ut}},computed:{...v(g,{orderReverseSetting:e=>e.settings.orderReverse}),title(){return this.orderReverseSetting?"order descending":"order ascending"},iconClasses(){return{inverted:!this.orderReverseSetting}}},methods:{...T(g,["setSettings"]),toggleOrderReverse(){const e={orderReverse:!this.orderReverseSetting};this.setSettings(e)}}};function bo(e,t,s,d,o,r){const n=f("ToolbarButton");return l(),p(n,{class:"orderReverseButton",icon:"",title:r.title,onClick:r.toggleOrderReverse},{default:h(()=>[i(k,{class:A(r.iconClasses)},{default:h(()=>[u(S(o.mdiSortVariant),1)]),_:1},8,["class"])]),_:1},8,["title","onClick"])}const yo=b(go,[["render",bo],["__scopeId","data-v-42884e89"]]),vo={name:"BrowseOrderReverseButton",components:{ToolbarButton:we},data(){return{mdiMagnify:j}},computed:{...v(g,{isSearchOpen:e=>e.isSearchOpen,isQuery:e=>!!e.settings.q})},methods:{...T(g,["setIsSearchOpen"])}};function So(e,t,s,d,o,r){const n=f("ToolbarButton");return e.isSearchOpen?B("",!0):(l(),p(n,I({key:0,class:"searchButton",icon:o.mdiMagnify},e.$attrs,{title:"Search",onClick:t[0]||(t[0]=c=>e.setIsSearchOpen(!0))}),null,16,["icon"]))}const wo=b(vo,[["render",So]]),Bo=new Set(["a","f"]),Co={name:"BrowserTopGroupSelect",components:{ToolbarSelect:N},extends:N,data(){return{DIVIDED_VALUES:Bo}},computed:{...v(g,{topGroupSetting:e=>e.settings.topGroup}),...V(g,["topGroupChoices","topGroupChoicesMaxLen"]),topGroup:{get(){return this.topGroupSetting},set(e){const t={topGroup:e};this.setSettings(t)}}},methods:{...T(g,["setSettings"])}};function To(e,t,s,d,o,r){const n=f("ToolbarSelect");return l(),p(n,{modelValue:r.topGroup,"onUpdate:modelValue":t[0]||(t[0]=c=>r.topGroup=c),class:"topGroupSelect","select-label":"top group",items:e.topGroupChoices,"max-select-len":e.topGroupChoicesMaxLen-2.25},{item:h(({item:c,props:m})=>[o.DIVIDED_VALUES.has(c.value)?(l(),p(D,{key:0})):B("",!0),i(M,I(m,{density:"compact",variant:"plain",title:c.title,value:c.value}),null,16,["title","value"])]),_:1},8,["modelValue","items","max-select-len"])}const ko=b(Co,[["render",To]]),Vo={name:"BrowserTopToolbar",components:{BrowserFilterBySelect:uo,BrowserSearchButton:wo,BrowserTopGroupSelect:ko,BrowserOrderBySelect:po,BrowserOrderReverseButton:yo,SettingsDrawerButton:vt},data(){return{mdiMagnify:j,mdiFamilyTree:mt,browseMode:"filter"}}};function Mo(e,t,s,d,o,r){const n=f("BrowserTopGroupSelect"),c=f("BrowserFilterBySelect"),m=f("BrowserOrderBySelect"),y=f("BrowserOrderReverseButton"),C=f("BrowserSearchButton"),$=f("SettingsDrawerButton");return l(),p(W,{id:"browserToolbarTop",density:"compact",height:48},{default:h(()=>[i(X,{id:"browserToolbarLeftItems"},{default:h(()=>[i(n),i(c),i(m),i(y),i(C)]),_:1}),i(kt),i(X,null,{default:h(()=>[i($)]),_:1})]),_:1})}const $o=b(Vo,[["render",Mo],["__scopeId","data-v-42686e3a"]]),Po={name:"BrowserHeadToolbars",components:{BrowserBreadcrumbsToolbar:zs,BrowserSearchToolbar:to,BrowserTopToolbar:$o,BrowserTitleToolbar:Ys}},Fo={id:"codexHeadToolbarWrapper"};function Io(e,t,s,d,o,r){const n=f("BrowserTopToolbar"),c=f("BrowserSearchToolbar"),m=f("BrowserBreadcrumbsToolbar"),y=f("BrowserTitleToolbar");return l(),w("header",Fo,[i(n,{class:"codexHeadToolbar"}),i(c,{class:"codexHeadToolbar"}),i(m,{class:"codexHeadToolbar"}),i(y,{class:"codexHeadToolbar"})])}const xo=b(Po,[["render",Io],["__scopeId","data-v-508c4760"]]),Do={name:"BrowserNavButton",components:{PaginationNavButton:Vt},props:{back:{type:Boolean,required:!0},more:{type:Boolean,default:!1}},data(){return{mdiChevronLeft:fe,mdiMagnify:j,routeParams:this.$route.params,page:+this.$route.params.page}},computed:{...V(g,["isSearchMode"]),...v(g,{numPages:e=>e.page.numPages}),increment(){return this.back?-1:1},toPage(){return this.page+this.increment},title(){return this.showMore?"Search for More":"Page "+this.toPage},toRoute(){const e=this.toPage;return{params:{...this.routeParams,page:e}}},classes(){return{leftButton:this.back,rightButton:!this.back}},disabled(){return this.back&&this.page<=1||!this.back&&this.page>=this.numPages},showMore(){return this.more&&this.isSearchMode&&this.toPage===this.numPages}},watch:{$route(e){this.params=e.params,this.page=+e.params.page}}};function No(e,t,s,d,o,r){const n=f("PaginationNavButton");return l(),p(n,{key:r.toRoute,class:A(r.classes),disabled:r.disabled,title:r.title,to:r.toRoute},{default:h(()=>[r.showMore?(l(),p(k,{key:0},{default:h(()=>[u(S(o.mdiMagnify),1)]),_:1})):B("",!0),i(k,{class:A({flipHoriz:!s.back})},{default:h(()=>[u(S(o.mdiChevronLeft),1)]),_:1},8,["class"])]),_:1},8,["class","disabled","title","to"])}const Oo=b(Do,[["render",No],["__scopeId","data-v-372671b3"]]),Ro={name:"BrowserNavToolbar",components:{BrowserNavButton:Oo,PaginationSlider:Mt,PaginationToolbar:$t},computed:{...v(g,{numPages:e=>e.page.numPages})},methods:{...T(g,["routeToPage"]),onUpdate(e){this.routeToPage(e)}}};function Ho(e,t,s,d,o,r){const n=f("BrowserNavButton"),c=f("PaginationSlider"),m=f("PaginationToolbar");return e.numPages>1?(l(),p(m,{key:0},{default:h(()=>[i(n,{back:!0}),i(c,{"model-value":+e.$route.params.page,min:1,max:e.numPages,step:1,"onUpdate:modelValue":t[0]||(t[0]=y=>e.routeToPage(y))},null,8,["model-value","max"]),i(n,{back:!1,more:!0})]),_:1})):B("",!0)}const Ao=b(Ro,[["render",Ho]]),Lo={name:"MainBrowser",components:{BrowserHeadToolbars:xo,BrowserMain:Fs,BrowserNavToolbar:Ao,BrowserSettingsDrawer:Gr,Unauthorized:Dt},computed:{...v(P,{user:e=>e.user}),...V(P,["isAuthorized"])},watch:{$route(e){var t;window.scrollTo(0,0),this.setPageMtime((t=e==null?void 0:e.query)==null?void 0:t.ts),this.loadBrowserPage()},user(){this.loadSettings()},isAuthorized(){this.loadSettings()}},created(){this.loadSettings()},methods:{...T(g,["loadBrowserPage","loadSettings","setPageMtime"])}};function Uo(e,t,s,d,o,r){const n=f("BrowserHeadToolbars"),c=f("BrowserMain"),m=f("BrowserNavToolbar"),y=f("BrowserSettingsDrawer"),C=f("Unauthorized");return e.isAuthorized?(l(),p(be,{key:0,id:"browser"},{default:h(()=>[i(n),i(c),i(m),i(y)]),_:1})):(l(),p(C,{key:1}))}const na=b(Lo,[["render",Uo],["__scopeId","data-v-4a8fba7b"]]);export{na as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as b,aK as Ce,aL as Te,aM as ce,aN as ke,Z as f,$ as l,Y as p,a0 as h,T as i,aq as I,aO as a,aE as w,aF as O,aG as S,V as F,ak as u,aP as k,aQ as de,aR as ue,aS as me,aD as V,q as P,W as v,X as T,aT as U,aU as Y,aI as B,aV as D,aW as Ve,ap as Me,aX as $e,aY as M,aZ as re,a_ as se,a$ as Pe,b0 as oe,b1 as Fe,F as G,N as q,b2 as Ie,aw as Z,b3 as xe,P as E,b4 as De,b5 as Ne,au as Oe,S as z,b6 as Re,b7 as He,b8 as J,b9 as Ae,ba as Le,al as A,bb as Ue,bc as Ge,h as Q,ao as qe,bd as Ee,av as ze,be as je,ay as We,az as x,ax as Ye,bf as Qe,aB as Ke,bg as Xe,l as Ze,bh as he,bi as Je,bj as et,bk as tt,bl as rt,bm as pe,bn as j,bo as ae,bp as st,bq as fe,br as _e,bs as ge,bt as ot,bu as at,bv as nt,bw as it,bx as lt,by as ct,bz as dt,bA as ut,bB as mt}from"./admin-drawer-panel-Dmnn03CQ.js";import{V as ht}from"./VTable-D85UV0cA.js";import{V as pt}from"./VDialog-BWXBR7iM.js";import{u as g,f as K,g as ft,a as _t,c as gt}from"./main-C0t41OAE.js";import{V as L}from"./VCheckbox-D8eqoc1z.js";import{b as bt,a as W,V as ne,c as yt,S as vt}from"./settings-drawer-ChnWWcfy.js";import{M as St,p as wt,B as Bt,g as Ct,V as X,N as ie,t as Tt,T as N,a as kt,P as Vt,b as Mt,c as $t}from"./pagination-toolbar-BNiqJX4c.js";import{C as Pt}from"./confirm-dialog-BJlNq6ku.js";import{V as Ft}from"./VSelect-BpWdXMPq.js";import{E as It,P as xt,V as be,U as Dt}from"./unauthorized-DnNuMsHM.js";import{V as Nt}from"./VCombobox-BTG361j0.js";import{V as Ot}from"./VTextField-DAe7a2au.js";import"./VCheckboxBtn-BaQC30AI.js";import"./VSelectionControl-FmTy_2ch.js";import"./copy-to-clipboard-DoUvDJVx.js";import"./VSlideGroup-B9zEPv1H.js";import"./change-password-dialog-HW0jK0gr.js";import"./filter-BL9RMUvn.js";const Rt=[["characters","CSV","category"],["community_rating","Decimal","communityrating"],["contributor","CSV","author, creator, credit, person, people"],["country","String"],["created_at","DateTime","created"],["critical_rating","Decimal","criticalrating"],["day","Integer"],["date","Date"],["decade","Integer"],["file_type","String","filetype, type"],["genres","CSV","genre"],["identifier","CSV","id, nss"],["identifier_type","CSV","id_type, idtype, nid"],["imprint","String"],["issue","String","(Combined issue_number and issue_suffix)"],["issue_number","Decimal","number"],["issue_suffix","String"],["language","String"],["location","CSV","location"],["maturity_rating","String"],["monochrome","String","blackandwhite"],["month","Integer"],["reading_direction","String","direction"],["name","String","title"],["notes","String"],["original_format","String","format, orginalformat"],["path","String","filename, folder, folders"],["page_count","Integer","pages, pagecount"],["publisher","String"],["reading_direction","String","direction"],["review","String"],["scan_info","String","scan, scaninfo"],["series","String"],["series_groups","CSV","seriesgroups"],["size","Integer"],["stories","CSV","story"],["story_arcs","CSV","storyarcs"],["summary","String","comments, description"],["tags","CSV","tag"],["tagger","String"],["teams","CSV","team"],["updated_at","Date","updated"],["volume","String"],["web","String"],["year","Integer"]],Ht={name:"SearchHelp",components:{CloseButton:Ce,DrawerItem:Te},data(){return{mdiOpenInNew:ce,mdiArchiveSearchOutline:ke,dialog:!1,FIELD_ROWS:Rt}}},_=e=>(de("data-v-975ceadc"),e=e(),ue(),e),At={id:"searchHelp"},Lt=_(()=>a("h1",null,"Search Help",-1)),Ut={id:"fieldTableContainer"},Gt=_(()=>a("h2",null,"Search Fields",-1)),qt=_(()=>a("thead",null,[a("tr",null,[a("th",null,"Field"),a("th",null,"Type"),a("th",null,"Aliases")])],-1)),Et={class:"aliasCol"},zt={id:"textContainer"},jt=_(()=>a("h2",null,"Whoosh Query Parser",-1)),Wt={href:"https://whoosh.readthedocs.io/en/latest/querylang.html",target:"_blank"},Yt=_(()=>a("h2",null,"Operators",-1)),Qt=_(()=>a("code",null,"and",-1)),Kt=_(()=>a("code",null,"or",-1)),Xt=_(()=>a("code",null,"not",-1)),Zt=_(()=>a("code",null,"andnot",-1)),Jt=_(()=>a("code",null,"andmaybe",-1)),er=_(()=>a("code",null,"require",-1)),tr=_(()=>a("h2",null,"Searching Fields",-1)),rr=_(()=>a("p",null,[u(" Like Codex's filter selector menu, but more powerful. You may search on individual comic metadata fields. using a search token like "),a("code",null,"field:value"),u(". ")],-1)),sr=_(()=>a("h3",null,"Dates and DateTimes",-1)),or={href:"https://whoosh.readthedocs.io/en/latest/dates.html#parsing-date-queries",target:"_blank"},ar=_(()=>a("code",null,"YYYYMMDD",-1)),nr=_(()=>a("code",null,"YYYMMDDHHmmSS",-1)),ir=_(()=>a("h3",null,"Single Quote complex field Queries",-1)),lr=_(()=>a("p",null,[u(" Use "),a("em",null,"single"),u(" quotes to tell Codex that a complex or natural language phrase should be applied to a specific field ")],-1)),cr=_(()=>a("code",null," created:'this year' ",-1)),dr=_(()=>a("h3",null,"Size Byte Multipliers",-1)),ur=_(()=>a("p",null,[u(" The size field can make use of convenient byte multiplier suffixes like "),a("code",null,"kb"),u(" and "),a("code",null,"mb"),u(" as well as binary suffixes like "),a("code",null,"gib"),u(" and "),a("code",null,"tib"),u(". ")],-1)),mr=_(()=>a("h3",null,"Ranges of Fields",-1)),hr=_(()=>a("p",null,[u(" Whoosh uses brackets and the "),a("em",null,"uppercase"),u(" "),a("code",null,"TO"),u(" operator to delineate a range search. ")],-1)),pr=_(()=>a("code",null,"updated:[last sunday TO 10am]",-1)),fr=_(()=>a("p",null," You may leave out the upper or lower bound or use >, <, >=, <= operators. ",-1)),_r=_(()=>a("code",null,"size:<50mb",-1)),gr=_(()=>a("h3",null,"Multi Value Fields",-1)),br=_(()=>a("p",null,[u(" Fields marked type "),a("code",null,"CSV"),u(" in the table to the left may contain comma separated values. This filters by all the supplied values. Multi Value tokens look like: "),a("code",null,"field:term1,term2,term3")],-1)),yr=_(()=>a("h2",null,"Grouped Queries",-1)),vr=_(()=>a("p",null,"Whoosh allows grouping of queries with parenthesis.",-1)),Sr=_(()=>a("h2",null,"Example Search",-1)),wr=_(()=>a("p",null," This example search is more convoluted than most searches but uses many features for demonstration: ",-1)),Br=_(()=>a("code",null,' (Holmes and Tesla date:>=1999-1-2 size:[10mib TO 1gb] Gadzooks) or "Captain Nemo" -Quartermain ',-1)),Cr=_(()=>a("p",{style:{"margin-top":"1em"}},' Search for comics that contain Holmes and Tesla published after the second day of 1999 that are between 10 Mebibytes and 10 Gigabytes that also contain the word "Gadzooks" but also all comics with the the phrase "Captain Nemo" but no comics will contain the word "Quartermain". ',-1)),Tr=_(()=>a("h2",null,"Group and Sorting Behavior",-1)),kr=_(()=>a("p",null," If the search field is empty and then you supply a search query for the first time, Codex navigates you to the to All Issues view and your sets your Sorted By selection to Search Score. If you prefer a different view you may change the group and sort selections after your you make your first search. ",-1)),Vr=_(()=>a("h2",null,"Filter Behavior",-1)),Mr=_(()=>a("p",null,[u(" Codex applies "),a("em",null,"both"),u(" the Filter selection menu filters "),a("em",null,"and"),u(" the search query field filters to the search. Be sure to clear the filter selector or the search field if you prefer to apply only one of them. ")],-1)),$r=_(()=>a("h2",null,"Faster Browsing and Searching",-1)),Pr=_(()=>a("p",null,' Browsing large collections using the group tree and filter dropdown is relatively fast. Searching with the search bar will always be slower. To aid search speed there is a setting for limiting search results which can help with large collections. To see all results, choose Search Result Limit: "Unlimited". ',-1));function Fr(e,t,s,d,o,r){const n=f("DrawerItem"),c=f("CloseButton");return l(),p(pt,{modelValue:o.dialog,"onUpdate:modelValue":t[2]||(t[2]=m=>o.dialog=m),"content-class":"browserSearchHelp",fullscreen:"",scrim:!1,transition:"dialog-bottom-transition"},{activator:h(({props:m})=>[i(n,I(m,{"prepend-icon":o.mdiArchiveSearchOutline,title:"Search Help"}),null,16,["prepend-icon"])]),default:h(()=>[a("div",At,[i(c,{class:"closeButton",title:"Close Help (esc)",size:"x-large",onClick:t[0]||(t[0]=m=>o.dialog=!1)}),Lt,a("div",Ut,[Gt,i(ht,{id:"fieldTable",class:"highlight-table"},{default:h(()=>[qt,a("tbody",null,[(l(!0),w(F,null,O(o.FIELD_ROWS,m=>(l(),w("tr",{key:m[0]},[a("td",null,S(m[0]),1),a("td",null,S(m[1]),1),a("td",Et,S(m[2]||""),1)]))),128))])]),_:1})]),a("div",zt,[jt,a("p",null,[u(" Codex uses the Whoosh search engine to execute your text search queries. Whoosh operates much like other familiar search engines. As such, only some special features are documented on this page. To understand its full power, users are encouraged to read the "),a("a",Wt,[u("Whoosh Query Language "),i(k,{size:"small"},{default:h(()=>[u(S(o.mdiOpenInNew),1)]),_:1})]),u(" documentation. ")]),Yt,u(" Whoosh has the "),Qt,u(", "),Kt,u(", "),Xt,u(", "),Zt,u(", "),Jt,u(", and "),er,u(" operators. "),tr,rr,sr,a("p",null,[u(" Whoosh parses Dates and DateTime values liberally. Read "),a("a",or,[u("Whoosh Parsing Date Queries "),i(k,{size:"small"},{default:h(()=>[u(S(o.mdiOpenInNew),1)]),_:1})]),u(" documentation for what formats and natural language phrases are accepted. If the format you try fails, the "),ar,u(" and "),nr,u(" formats are reliable. ")]),ir,lr,cr,dr,ur,mr,hr,pr,u(". "),fr,_r,u(". "),gr,br,yr,vr,Sr,wr,Br,Cr,Tr,kr,Vr,Mr,$r,Pr]),i(c,{class:"closeButton",title:"Close Help (esc)",size:"x-large",onClick:t[1]||(t[1]=m=>o.dialog=!1)})])]),_:1},8,["modelValue"])}const Ir=b(Ht,[["render",Fr],["__scopeId","data-v-975ceadc"]]),xr="rpisv",Dr={name:"BrowserSettingsPanel",components:{SearchHelp:Ir},data(){return{mdiReload:me,openDelay:2e3}},computed:{...V(P,["isAuthorized"]),...v(P,{isUserAuthorized:e=>!!e.user}),...v(g,{groupChoices:e=>{var t,s;return((s=(t=e.choices)==null?void 0:t.static)==null?void 0:s.settingsGroup)||{}},showSettings:e=>{var t;return((t=e.settings)==null?void 0:t.show)||{}},twentyFourHourTime:e=>{var t;return((t=e.settings)==null?void 0:t.twentyFourHourTime)||!1},twentyFourHourTimeTitle:e=>{var t,s,d;return((d=(s=(t=e.choices)==null?void 0:t.static)==null?void 0:s.twentyFourHourTime)==null?void 0:d.title)||""},dynamicCovers:e=>{var t;return((t=e.settings)==null?void 0:t.dynamicCovers)||!1},customCovers:e=>{var t;return((t=e.settings)==null?void 0:t.customCovers)||!1}}),showShowSettings(){var e,t;return xr.includes((t=(e=this.$route)==null?void 0:e.params)==null?void 0:t.group)}},methods:{...T(g,["setSettings"]),setShow(e,t){const s={show:{[e]:t===!0}};this.setSettings(s)},set24HourTime(e){const t={twentyFourHourTime:e===!0};this.setSettings(t)},setDynamicCovers(e){const t={dynamicCovers:e===!0};this.setSettings(t)},setCustomCovers(e){const t={customCovers:e===!0};this.setSettings(t)}}},ye=e=>(de("data-v-7305feeb"),e=e(),ue(),e),Nr={key:0,id:"showSettings"},Or=ye(()=>a("h4",{class:"settingsHeader"},"Show Group Levels",-1)),Rr=ye(()=>a("h4",{class:"settingsHeader"},"Covers",-1));function Hr(e,t,s,d,o,r){const n=f("SearchHelp");return l(),w(F,null,[r.showShowSettings?U((l(),w("div",Nr,[Or,(l(!0),w(F,null,O(e.groupChoices,c=>(l(),p(L,{key:c.title,class:"browserGroupCheckbox",density:"compact","hide-details":"auto","model-value":e.showSettings[c.value],"true-value":!0,label:`Show ${c.title}`,"onUpdate:modelValue":m=>r.setShow(c.value,m)},null,8,["model-value","label","onUpdate:modelValue"]))),128))])),[[Y,{openDelay:o.openDelay,text:"Show these groups when navigating the browse tree"}]]):B("",!0),i(D),a("div",null,[Rr,U(i(L,{class:"browserGroupCheckbox",density:"compact","hide-details":"auto","model-value":e.dynamicCovers,"true-value":!0,label:"Dynamic Covers","onUpdate:modelValue":t[0]||(t[0]=c=>r.setDynamicCovers(c))},null,8,["model-value"]),[[Y,{openDelay:o.openDelay,text:"Choose covers by filters, search, and order"}]]),U(i(L,{class:"browserGroupCheckbox",density:"compact","hide-details":"auto","model-value":e.customCovers,"true-value":!0,label:"Custom Covers","onUpdate:modelValue":t[1]||(t[1]=c=>r.setCustomCovers(c))},null,8,["model-value"]),[[Y,{openDelay:o.openDelay,text:"Overlay custom covers if the admin has set them."}]])]),i(D),i(n),i(D),i(L,{class:"browserGroupCheckbox",density:"compact","hide-details":"auto","model-value":e.twentyFourHourTime,"true-value":!0,indeterminate:"",label:"Force 24 Hour Time","onUpdate:modelValue":t[2]||(t[2]=c=>r.set24HourTime(c))},null,8,["model-value"]),i(D)],64)}const Ar=b(Dr,[["render",Hr],["__scopeId","data-v-7305feeb"]]),Lr={name:"BrowserSettingsDrawer",components:{SettingsDrawer:bt,BrowserSettingsPanel:Ar}};function Ur(e,t,s,d,o,r){const n=f("BrowserSettingsPanel"),c=f("SettingsDrawer");return l(),p(c,{title:"Browser",temporary:"","disable-resize-watcher":""},{panel:h(()=>[i(n)]),_:1})}const Gr=b(Lr,[["render",Ur]]),qr={name:"BrowserContainerMenu",components:{ConfirmDialog:Pt},props:{item:{type:Object,required:!0}},data(){return{mdiDotsVertical:Ve,showMenu:!1}},computed:{...v(g,{groupNames:e=>e.choices.static.groupNames}),verb(){return this.item.finished?"Unread":"Read"},confirmText(){return`Mark ${this.verb}`},markReadText(){const e=["Mark"];this.item.group!="c"&&e.push("Entire");let t=this.groupNames[this.item.group];return this.item.group!=="s"&&(t=t.slice(0,-1)),e.push(t,this.verb),e.join(" ")},itemName(){return this.item.name?this.item.name:"(Empty)"}},methods:{...T(g,["setBookmarkFinished"]),toggleRead:function(){this.setBookmarkFinished(this.item,!this.item.finished),this.showMenu=!1}}},Er={class:"background-soft-highlight"};function zr(e,t,s,d,o,r){const n=f("ConfirmDialog");return l(),p(Ft,{modelValue:o.showMenu,"onUpdate:modelValue":t[2]||(t[2]=c=>o.showMenu=c),"offset-y":"",top:""},{activator:h(({props:c})=>[i(Me,I({"aria-label":"action menu",class:"browserCardMenuIcon cardControlButton",icon:"",title:"Action Menu",variant:"text"},c,{onClick:t[0]||(t[0]=$e(()=>{},["prevent"]))}),{default:h(()=>[i(k,null,{default:h(()=>[u(S(o.mdiDotsVertical),1)]),_:1})]),_:2},1040)]),default:h(()=>[a("div",Er,[s.item.group==="c"?(l(),p(M,{key:0,title:r.markReadText,onClick:r.toggleRead},null,8,["title","onClick"])):(l(),p(n,{key:1,"button-text":r.markReadText,"title-text":r.markReadText,"confirm-text":r.confirmText,"object-name":r.itemName,onConfirm:r.toggleRead,onCancel:t[1]||(t[1]=c=>o.showMenu=!1)},null,8,["button-text","title-text","confirm-text","object-name","onConfirm"]))])]),_:1},8,["modelValue"])}const jr=b(qr,[["render",zr]]),Wr={name:"BrowserCardControls",components:{BrowserCardMenu:jr,MetadataButton:St},props:{item:{type:Object,required:!0},eyeOpen:{type:Boolean,required:!0}},data(){return{mdiEye:re,mdiEyeOff:se}},computed:{eyeIcon:function(){return this.eyeOpen?re:se}}},Yr={class:"cardControls"};function Qr(e,t,s,d,o,r){const n=f("MetadataButton"),c=f("BrowserCardMenu");return l(),w("div",Yr,[s.item.group==="c"?(l(),p(k,{key:0,class:"eye"},{default:h(()=>[u(S(r.eyeIcon),1)]),_:1})):B("",!0),i(n,{group:s.item.group,book:s.item,children:s.item.childCount},null,8,["group","book","children"]),i(c,{item:s.item},null,8,["item"])])}const Kr=b(Wr,[["render",Qr],["__scopeId","data-v-6f2c700a"]]),Xr=new Set(["community_rating","critical_rating"]),Zr=new Set(["date"]),Jr=new Set(["bookmark_updated_at","created_at","updated_at"]),es={name:"OrderByCaption",props:{item:{type:Object,required:!0}},computed:{...v(g,{orderBy:e=>e.settings.orderBy,twentyFourHourTime:e=>e.settings.twentyFourHourTime,topGroup:e=>e.settings.topGroup}),orderValue(){let e=this.item.orderValue;try{if(this.orderBy===void 0||this.orderBy===null||this.orderBy==="sort_name"&&(this.item.group!=="c"||this.topGroup!=="f")||this.orderBy==="filename"&&this.item.group==="f"||this.orderBy==="story_arc_number"&&this.item.group==="a"||e===null||e===void 0)e="";else if(Zr.has(this.orderBy)){const t=new Date(e);e=Pe.format(t)}else this.orderBy=="search_score"?e=oe.format(Math.round(Number.parseFloat(e)*10)):Jr.has(this.orderBy)?e=Fe(e,this.twentyFourHourTime,!0):this.orderBy=="page_count"?e=`${oe.format(e)} pages`:this.orderBy=="size"?e=wt(Number.parseInt(e,10)):Xr.has(this.orderBy)&&(e=`★ ${e}`)}catch(t){console.debug(t)}return e}}},ts=["innerHTML"];function rs(e,t,s,d,o,r){return r.orderValue?(l(),w("div",{key:0,class:"orderCaption text-caption",innerHTML:r.orderValue},null,8,ts)):B("",!0)}const ss=b(es,[["render",rs],["__scopeId","data-v-81602057"]]),os={name:"BrowserCardSubtitle",props:{item:{type:Object,required:!0}},computed:{...v(g,{orderByName:e=>e.settings.orderBy=="sort_name",topGroup:e=>e.settings.topGroup,showSeries:e=>e.settings.show.s,showVolume:e=>e.settings.show.v,zeroPad:e=>e.page.zeroPad}),seriesName(){return(this.topGroup==="a"||this.orderByName&&!this.showSeries)&&["c","v"].includes(this.item.group)&&this.item.seriesName?this.item.seriesName:!1},volumeName(){return(this.topGroup==="a"||this.orderByName&&!this.showVolume)&&this.item.group==="c"&&this.item.volumeName?K(this.item.volumeName):!1},headerName:function(){let e;switch(this.item.group){case"i":e=this.item.publisherName;break;case"v":e=this.item.seriesName;break;case"c":e=this.$route.params.group==="f"?ft(this.item,this.zeroPad):_t(this.item,this.zeroPad);break;default:e=""}return e&&this.item.ids&&this.item.ids.length>1?"(Multiple)":e},displayName:function(){return this.item.group==="v"?K(this.item.name):this.item.name},linkLabel:function(){let e="";return e+=this.item.group==="c"?"Read":"Browse to",e+=" "+this.headerName,e}}},as={class:"browserLink cardSubtitle text-caption"},ns={key:0,class:"seriesCaption"},is={key:1,class:"volumeCaption"},ls={key:2,class:"headerName"},cs={class:"displayName"};function ds(e,t,s,d,o,r){return l(),w("div",as,[r.seriesName?(l(),w("div",ns,S(r.seriesName),1)):B("",!0),r.volumeName?(l(),w("div",is,S(r.volumeName),1)):B("",!0),r.headerName?(l(),w("div",ls,S(r.headerName),1)):B("",!0),a("div",cs,S(r.displayName),1)])}const us=b(os,[["render",ds],["__scopeId","data-v-a9a0493b"]]),ms=["iPad","iPhone","iPod"],ve="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0||window.matchMedia("(any-hover: none)").matches,hs=ms.some(e=>navigator.userAgent.includes(e))||ve&&navigator.userAgent.includes("Mac OS"),ps=G({modelValue:Boolean,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},...q(),...Ie(),...Z(),...xe({transition:"fade-transition"})},"VLazy"),fs=E()({name:"VLazy",directives:{intersect:De},props:ps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:s}=t;const{dimensionStyles:d}=Ne(e),o=Oe(e,"modelValue");function r(n){o.value||(o.value=n)}return z(()=>U(i(e.tag,{class:["v-lazy",e.class],style:[d.value,e.style]},{default:()=>[o.value&&i(He,{transition:e.transition,appear:!0},{default:()=>{var n;return[(n=s.default)==null?void 0:n.call(s)]}})]}),[[Re("intersect"),{handler:r,options:e.options},null]])),{}}}),le=100,_s=-170,gs={name:"BrowserCard",components:{BookCover:Bt,BrowserCardControls:Kr,BrowserCardSubtitle:us,OrderByCaption:ss},props:{item:{type:Object,required:!0}},data(){return{doubleTapHovered:!ve||hs}},computed:{...v(g,{importMetadata:e=>e.page.adminFlags.importMetadata}),linkLabel(){let e="";return e+=this.item.group==="c"?"Read":"Browse to",e+=" "+this.item.name,e},ids(){return this.item.ids.join(",")},toRoute(){return this.doubleTapHovered?this.item.group==="c"?Ct(this.item,this.importMetadata):{name:"browser",params:{group:this.item.group,pks:this.ids,page:1},query:{ts:this.item.mtime}}:{}},progressBGOpacity(){return this.item.progress?.1:0}},mounted(){this.scrollToMe()},methods:{scrollToMe:function(){if(!this.$route.hash||this.$route.hash.split("-")[1]!==String(this.ids))return;const e=this.$el;if(!e){console.warn("No element found to scroll to!");return}setTimeout(function(){e.scrollIntoView(),setTimeout(function(){window.scrollBy(0,_s)},le)},le)}}},bs={class:"browserCardTop"},ys={class:"cardFooter"};function vs(e,t,s,d,o,r){const n=f("BookCover"),c=f("BrowserCardControls"),m=f("router-link"),y=f("BrowserCardSubtitle"),C=f("OrderByCaption");return l(),p(fs,{id:`card-${r.ids}`,transition:"scale-transition"},{default:h(()=>[a("div",{class:"browserCardCoverWrapper",onClick:t[0]||(t[0]=$=>o.doubleTapHovered=!0)},[a("div",bs,[i(n,{group:s.item.group,pks:s.item.ids,mtime:s.item.mtime,"child-count":s.item.childCount,finished:s.item.finished},null,8,["group","pks","mtime","child-count","finished"]),i(m,{class:"cardCoverOverlay",to:r.toRoute,"aria-label":r.linkLabel},{default:h(()=>[i(c,{item:s.item,"eye-open":!!r.toRoute},null,8,["item","eye-open"])]),_:1},8,["to","aria-label"])]),i(J,{class:"bookCoverProgress","bg-opacity":r.progressBGOpacity,"model-value":s.item.progress,"aria-label":`${s.item.progress}% read`,rounded:"",height:"2"},null,8,["bg-opacity","model-value","aria-label"]),a("footer",ys,[i(y,{item:s.item},null,8,["item"]),i(C,{item:s.item},null,8,["item"])])])]),_:1},8,["id"])}const Ss=b(gs,[["render",vs],["__scopeId","data-v-635f5a8b"]]),ws={name:"BrowserEmptyResults",components:{EmptyState:It},data(){return{mdiOpenInNew:ce}},computed:{...V(P,["isAuthorized","isUserAdmin"]),...v(P,{registration:e=>e.adminFlags.registration}),...V(g,["isFiltersClearable"]),...v(g,{librariesExist:e=>e.page.librariesExist}),empty(){let e={};return this.librariesExist?(e.headline="No Comics Found",e.title="For these filter and search settings",e.icon=Ae):(e.headline="No Libraries Exist",this.isUserAdmin?e.title="Use the top right ☰ menu to navigate to the admin panel and add a comic library":this.isAuthorized?e.title="An administrator must add some comics libraries":e.title="Use the top right ☰ menu to log in as an administrator to add libraries",e.icon=Le),e},showLinkToReadmeAdmin(){return!this.librariesExist&&this.isUserAdmin},actionText(){return this.isFiltersClearable?"Clear Filters and Search":""}},methods:{...T(g,["clearFilters"])}},Bs={key:0},Cs={href:"https://github.com/ajslater/codex#-administration",target:"_blank"};function Ts(e,t,s,d,o,r){const n=f("EmptyState");return l(),p(n,{class:"browserEmpty",headline:r.empty.headline,title:r.empty.title,icon:r.empty.icon,"action-text":r.actionText,"onClick:action":t[0]||(t[0]=c=>e.clearFilters(!0))},{default:h(()=>[r.showLinkToReadmeAdmin?(l(),w("div",Bs,[u(" See the "),a("a",Cs,[u("README "),i(k,null,{default:h(()=>[u(S(o.mdiOpenInNew),1)]),_:1})]),u(" for help ")])):B("",!0)]),_:1},8,["headline","title","icon","action-text"])}const ks=b(ws,[["render",Ts]]),Vs={name:"BrowserMain",components:{BrowserCard:Ss,BrowserEmptyState:ks,PlaceholderLoading:xt},computed:{...v(P,{nonUsers:e=>e.adminFlags.nonUsers}),...V(P,["isAuthorized"]),...V(g,["isSearchMode"]),...v(g,{librariesExist:e=>e.page.librariesExist,showPlaceHolder(e){return this.nonUsers===void 0||this.isAuthorized&&(this.librariesExist==null||!e.browserPageLoaded)},cards:e=>[...e.page.groups??[],...e.page.books??[]],numPages:e=>e.page.numPages,query:e=>e.settings.q,isSearchOpen:e=>e.isSearchOpen}),browsePaneClasses(){return{padFooter:this.numPages>1,browsePaneSearch:this.isSearchOpen}},showBrowseItems(){return this.cards&&this.cards.length>0&&this.isAuthorized&&!this.showPlaceHolder},searchLimitMessage(){let e="";if(!this.query)return e;const t=+this.$route.params.page,s=100*t;return this.showPlaceHolder?e+=`Searching for ${s} entries...`:this.numPages>t&&(e+=`Search results truncated to ${s} entries.`,e+=" Advance the page to look for more."),e}}},Ms={key:0,id:"browsePaneContainer"},$s={key:3,id:"searchLimitMessage",title:"You may change this in the settings drawer"};function Ps(e,t,s,d,o,r){const n=f("BrowserCard"),c=f("PlaceholderLoading"),m=f("BrowserEmptyState");return l(),p(be,{id:"browsePane",class:A(r.browsePaneClasses)},{default:h(()=>[r.showBrowseItems?(l(),w("div",Ms,[(l(!0),w(F,null,O(e.cards,y=>(l(),p(n,{key:`${y.group}${y.ids}`,item:y},null,8,["item"]))),128))])):e.showPlaceHolder?(l(),p(c,{key:1,class:"placeholder"})):(l(),p(m,{key:2})),r.searchLimitMessage?(l(),w("div",$s,S(r.searchLimitMessage),1)):B("",!0)]),_:1},8,["class"])}const Fs=b(Vs,[["render",Ps],["__scopeId","data-v-142eedfa"]]),Is=G({divider:[Number,String],...q()},"VBreadcrumbsDivider"),xs=E()({name:"VBreadcrumbsDivider",props:Is(),setup(e,t){let{slots:s}=t;return z(()=>{var d;return i("li",{class:["v-breadcrumbs-divider",e.class],style:e.style},[((d=s==null?void 0:s.default)==null?void 0:d.call(s))??e.divider])}),{}}}),Ds=G({active:Boolean,activeClass:String,activeColor:String,color:String,disabled:Boolean,title:String,...q(),...Ue(),...Z({tag:"li"})},"VBreadcrumbsItem"),Se=E()({name:"VBreadcrumbsItem",props:Ds(),setup(e,t){let{slots:s,attrs:d}=t;const o=Ge(e,d),r=Q(()=>{var y;return e.active||((y=o.isActive)==null?void 0:y.value)}),n=Q(()=>r.value?e.activeColor:e.color),{textColorClasses:c,textColorStyles:m}=qe(n);return z(()=>i(e.tag,{class:["v-breadcrumbs-item",{"v-breadcrumbs-item--active":r.value,"v-breadcrumbs-item--disabled":e.disabled,[`${e.activeClass}`]:r.value&&e.activeClass},c.value,e.class],style:[m.value,e.style],"aria-current":r.value?"page":void 0},{default:()=>{var y,C;return[o.isLink.value?i("a",{class:"v-breadcrumbs-item--link",href:o.href.value,"aria-current":r.value?"page":void 0,onClick:o.navigate},[((C=s.default)==null?void 0:C.call(s))??e.title]):((y=s.default)==null?void 0:y.call(s))??e.title]}})),{}}}),Ns=G({activeClass:String,activeColor:String,bgColor:String,color:String,disabled:Boolean,divider:{type:String,default:"/"},icon:Ee,items:{type:Array,default:()=>[]},...q(),...ze(),...je(),...Z({tag:"ul"})},"VBreadcrumbs"),Os=E()({name:"VBreadcrumbs",props:Ns(),setup(e,t){let{slots:s}=t;const{backgroundColorClasses:d,backgroundColorStyles:o}=We(x(e,"bgColor")),{densityClasses:r}=Ye(e),{roundedClasses:n}=Qe(e);Ke({VBreadcrumbsDivider:{divider:x(e,"divider")},VBreadcrumbsItem:{activeClass:x(e,"activeClass"),activeColor:x(e,"activeColor"),color:x(e,"color"),disabled:x(e,"disabled")}});const c=Q(()=>e.items.map(m=>typeof m=="string"?{item:{title:m},raw:m}:{item:m,raw:m}));return z(()=>{const m=!!(s.prepend||e.icon);return i(e.tag,{class:["v-breadcrumbs",d.value,r.value,n.value,e.class],style:[o.value,e.style]},{default:()=>{var y;return[m&&i("li",{key:"prepend",class:"v-breadcrumbs__prepend"},[s.prepend?i(Xe,{key:"prepend-defaults",disabled:!e.icon,defaults:{VIcon:{icon:e.icon,start:!0}}},s.prepend):i(k,{key:"prepend-icon",start:!0,icon:e.icon},null)]),c.value.map((C,$,ee)=>{var te;let{item:R,raw:Be}=C;return i(F,null,[((te=s.item)==null?void 0:te.call(s,{item:R,index:$}))??i(Se,I({key:$,disabled:$>=ee.length-1},typeof R=="string"?{title:R}:R),{default:s.title?()=>{var H;return(H=s.title)==null?void 0:H.call(s,{item:R,index:$})}:void 0}),$<ee.length-1&&i(xs,null,{default:s.divider?()=>{var H;return(H=s.divider)==null?void 0:H.call(s,{item:Be,index:$})}:void 0})])}),(y=s.default)==null?void 0:y.call(s)]}})}),{}}}),Rs={f:"Folder",a:"Story Arc",r:"Top",p:"Publisher",i:"Imprint",s:"Series",v:"Volume"},Hs={f:Je,r:he,p:et,i:tt,s:rt},As={name:"BrowserBreadcrumbs",computed:{...v(g,{breadcrumbs(e){const t=[],s=e.settings.breadcrumbs.slice(0,e.settings.breadcrumbs.length-1);if(!s)return t;let d="";for(const o of s){const r=this.getTo(o,d),n=o.name?o.name:"",c=o.group,m=this.getIcon(o.pks,n,c),y=o.pks==="0"?"Top":Rs[c],C={to:r,title:n,icon:m,tooltip:y};t.push(C),d=o.pks}return t}})},methods:{getTo(e,t){const s=Ze(e);delete s.name;const d={name:"browser",params:s};return t&&(d.hash=`#card-${t}`),d},getIcon(e,t,s){let d;return"rfa".indexOf(s)!=-1&&e==="0"?d=he:t?d="":d=Hs[s],d}}},Ls={key:1};function Us(e,t,s,d,o,r){return l(),p(Os,{id:"browserBreadcrumbs",density:"compact",items:e.breadcrumbs},{item:h(({item:n})=>[i(Se,{to:n.to,title:n.tooltip},{default:h(()=>[n.icon?(l(),p(k,{key:0},{default:h(()=>[u(S(n.icon),1)]),_:2},1024)):(l(),w("span",Ls,S(n.title),1))]),_:2},1032,["to","title"])]),_:1},8,["items"])}const Gs=b(As,[["render",Us],["__scopeId","data-v-b8e7faf5"]]),qs={name:"BrowserHeader",components:{Breadcrumbs:Gs}};function Es(e,t,s,d,o,r){const n=f("Breadcrumbs");return l(),p(W,{id:"breadcrumbsToolbar",height:24,class:"titleToolbar",elevation:"8"},{default:h(()=>[i(n)]),_:1})}const zs=b(qs,[["render",Es],["__scopeId","data-v-fd83bc5e"]]),js={name:"BrowserHeader",data(){return{mdiReload:me}},head(){return{meta:[{hid:"description",name:"description",content:["browse comics",this.longBrowserTitlePrefix,this.longBrowseTitleMain,this.longBrowseTitleSuffix].filter(Boolean).join(" ")}]}},computed:{...v(g,{browserTitle:e=>{var t;return(t=e.page)==null?void 0:t.title},groupNames:e=>e.choices.static.groupNames,modelGroup:e=>e.page.modelGroup}),...V(P,["isUserAdmin"]),title(){let e;if(Number(this.$route.params.pks)===0)e="All";else if(this.browserTitle){let t=[];const{groupName:s,groupCount:d}=this.browserTitle,r=this.$route.params.group==="v"?K(s):s;if(r&&t.push(r),d){const n=`of ${d}`;t.push(n)}e=t.join(" ")}else e="";return e},subtitle(){return this.$route.params.group==="f"?"":this.groupNames[this.modelGroup]}}};function Ws(e,t,s,d,o,r){return l(),p(W,{id:"browserToolbarTitle",height:24,"extension-height":24,elevation:"8"},pe({default:h(()=>[i(ne,{id:"browserTitle",class:"browserTitle"},{default:h(()=>[u(S(r.title),1)]),_:1})]),_:2},[r.subtitle?{name:"extension",fn:h(()=>[i(ne,{id:"browserSubtitle",class:"browserTitle"},{default:h(()=>[u(S(r.subtitle),1)]),_:1})]),key:"0"}:void 0]),1024)}const Ys=b(js,[["render",Ws],["__scopeId","data-v-1f8ac575"]]),Qs=10,Ks={name:"BrowserSearchCombobox",data(){return{mdiMagnify:j,menu:!1,query:"",items:[""]}},computed:{...v(g,{stateQ:e=>e.settings.q})},watch:{stateQ(e){this.query=e,this.addToMenu(e)}},beforeMount(){this.query=this.stateQ},methods:{...T(g,["setSettings","startSearchHideTimeout","clearSearchHideTimeout"]),addToMenu(e){if(!e||this.items.includes(e))return;const t=this.items[0]===""?[]:this.items;t.unshift(e),this.items=t.slice(0,Qs)},doSearch(e=!1){this.menu=!1;const s={q:this.query?this.query.trim():""};e&&(s.orderBy="sort_name",s.orderReverse=!1,this.doBlur()),this.setSettings(s)},doBlur(){this.menu=!1,(this.query?this.query.trim():"")||this.startSearchHideTimeout()}}};function Xs(e,t,s,d,o,r){return l(),p(Nt,{id:"searchbox",ref:"searchbox",modelValue:o.query,"onUpdate:modelValue":t[0]||(t[0]=n=>o.query=n),menu:o.menu,"onUpdate:menu":t[1]||(t[1]=n=>o.menu=n),items:o.items,autofocus:"","aria-label":"search",clearable:"",density:"compact","full-width":"","hide-details":"auto","hide-selected":"","menu-props":{maxHeight:void 0},"no-filter":"","prepend-inner-icon":o.mdiMagnify,variant:"solo","onClick:clear":t[2]||(t[2]=n=>r.doSearch(!0)),"onClick:prependInner":r.doSearch,onKeydown:e.clearSearchHideTimeout,onKeyup:[ae(r.doSearch,["enter"]),ae(r.doBlur,["esc"])],onFocus:e.clearSearchHideTimeout,onBlur:r.doBlur},null,8,["modelValue","menu","items","prepend-inner-icon","onClick:prependInner","onKeydown","onKeyup","onFocus","onBlur"])}const Zs=b(Ks,[["render",Xs]]),Js={name:"BrowserSearchToolbar",components:{BrowserSearchCombobox:Zs},computed:{...v(g,{isSearchOpen:e=>e.isSearchOpen})}};function eo(e,t,s,d,o,r){const n=f("BrowserSearchCombobox");return l(),p(st,null,{default:h(()=>[e.isSearchOpen?(l(),p(W,{key:0,density:"compact",height:64},{default:h(()=>[i(X,{id:"searchToolbarItems"},{default:h(()=>[i(n)]),_:1})]),_:1})):B("",!0)]),_:1})}const to=b(Js,[["render",eo],["__scopeId","data-v-4900943a"]]),ro={name:"BrowserFilterSubMenu",props:{name:{type:String,required:!0}},emits:["selected"],data(){return{mdiChevronLeft:fe,mdiCloseCircleOutline:_e,query:""}},computed:{...v(g,{choices(e){return e.choices.dynamic[this.name]},readingDirectionTitles:e=>e.choices.static.readingDirection,identifierTypeTitles:e=>e.choices.static.identifierType,filter(e){return e.settings.filters[this.name]}}),...ge(g,["filterMode"]),hasNone(){for(const e of this.choices)if(ie.has(e)||e instanceof Object&&ie.has(e.pk))return!0;return!1},vuetifyItems(){return Tt(this.choices,this.query)},title(){return gt(this.name)},lowerTitle(){return this.title.toLowerCase()},filterMenuIcon(){return this.filter&&this.filter.length>0?ot:at},isClearable(){var e;return(e=this.filter)==null?void 0:e.length}},methods:{...T(g,["clearOneFilter","identifierTypeTitle","loadAvailableFilterChoices","loadFilterChoices"]),setUIFilterMode(e){this.filterMode=e,this.query="",e!=="base"&&typeof this.choices!="object"&&this.loadFilterChoices(e)},selected(e){const t={filters:{[this.name]:e}};this.$emit("selected",t)},itemTitle:function(e){return this.name==="readingDirection"?this.readingDirectionTitles[e.value]:this.name==="identifierType"?this.identifierTypeTitle(e.title):e.title},async _loadSubAvailableFilterChoices(){return this.loadAvailableFilterChoices().then(()=>this.loadFilterChoices(this.name))},onClear(){return this.clearOneFilter(this.name).then(()=>this._loadSubAvailableFilterChoices())}}},so={key:0},oo={class:"filterHeader"};function ao(e,t,s,d,o,r){return l(),w("div",null,[i(nt,{"hide-on-leave":""},{default:h(()=>[e.filterMode==="base"?(l(),p(M,{key:0,density:"compact",variant:"plain",title:r.title,"append-icon":r.filterMenuIcon,onClick:t[0]||(t[0]=n=>r.setUIFilterMode(s.name))},null,8,["title","append-icon"])):B("",!0)]),_:1}),i(lt,{"hide-on-leave":""},{default:h(()=>[e.filterMode===s.name?(l(),w("div",so,[a("header",oo,[i(M,{class:"filterHeaderTitle","prepend-icon":o.mdiChevronLeft,title:r.lowerTitle,onClick:t[1]||(t[1]=n=>r.setUIFilterMode("base"))},null,8,["prepend-icon","title"]),r.isClearable?(l(),p(M,{key:0,density:"compact",class:"clearFilter",title:"Clear Filter","append-icon":o.mdiCloseCircleOutline,onClick:r.onClear},null,8,["append-icon","onClick"])):B("",!0),typeof e.choices=="object"?(l(),p(Ot,{key:1,modelValue:o.query,"onUpdate:modelValue":t[2]||(t[2]=n=>o.query=n),placeholder:"Filter","full-width":"",density:"compact",filled:"",rounded:"","hide-details":"auto",onFocus:t[3]||(t[3]=n=>e.filterMode=s.name)},null,8,["modelValue"])):(l(),p(J,{key:2,class:"filterValuesProgress",rounded:"",indeterminate:""}))]),typeof e.choices=="object"?(l(),p(it,{key:0,"model-value":e.filter,class:"filterGroup overflow-y-auto",density:"compact",multiple:"",items:r.vuetifyItems,"onUpdate:selected":r.selected},{default:h(()=>[r.hasNone?(l(),p(M,{key:-1,title:"None",value:-1,class:"noneItem",density:"compact",variant:"plain"})):B("",!0),(l(!0),w(F,null,O(r.vuetifyItems,n=>(l(),p(M,{key:n.value,title:r.itemTitle(n),value:n.value,density:"compact",variant:"plain"},null,8,["title","value"]))),128))]),_:1},8,["model-value","items","onUpdate:selected"])):B("",!0)])):B("",!0)]),_:1})])}const no=b(ro,[["render",ao],["__scopeId","data-v-f1f62462"]]),io={name:"BrowserFilterBySelect",components:{BrowserFilterSubMenu:no,ToolbarSelect:N},extends:N,data(){return{mdiCloseCircleOutline:_e,mdiFilterMultipleOutline:ct,menu:!1}},computed:{...V(g,["filterByChoicesMaxLen","isDynamicFiltersSelected","isFiltersClearable"]),...v(g,{bookmarkChoices:e=>e.choices.static.bookmark,bookmarkFilter:e=>e.settings.filters.bookmark||e.choices.static.bookmark[0],filters:e=>e.settings.filters,filterMenuClass:function(e){let t="filterMenu";return e.filterMode!=="base"&&(t+="Hidden"),t},dynamicChoiceNames:function(e){if(e.choices.dynamic===void 0)return;const t=[];for(const[s,d]of Object.entries(e.choices.dynamic))d&&t.push(s);return t}}),...ge(g,["filterMode"]),padRight(){return this.$vuetify.display.xs&&!this.bookmarkFilter}},methods:{...T(g,["clearFilters","loadAvailableFilterChoices","setSettings"]),onUpdateModelValue(e){const t={filters:{bookmark:e}};this.onSubMenuSelected(t)},onSubMenuSelected(e){this.menu=!1,this.setSettings(e),this.filterMode="base"},onClear(){return this.clearFilters().then(()=>this.loadAvailableFilterChoices()).catch(()=>{console.error("clear filters")})},onMenu(e){e&&this.dynamicChoiceNames===void 0&&this.loadAvailableFilterChoices()}}},lo={class:"codexSelection"};function co(e,t,s,d,o,r){const n=f("BrowserFilterSubMenu"),c=f("ToolbarSelect");return l(),p(c,{menu:o.menu,"onUpdate:menu":[t[0]||(t[0]=m=>o.menu=m),r.onMenu],class:A(["filterBySelect",{filterBySelectXSmall:r.padRight}]),"select-label":"filter by",items:e.bookmarkChoices,"menu-props":{contentClass:e.filterMenuClass,maxHeight:void 0},"model-value":e.bookmarkFilter,"max-select-len":e.filterByChoicesMaxLen-1,"onUpdate:modelValue":r.onUpdateModelValue},{selection:h(({item:m})=>[a("span",lo,S(m.title),1),e.isDynamicFiltersSelected?(l(),p(k,{key:0,class:"filterSuffix",size:"x-small"},{default:h(()=>[u(S(o.mdiFilterMultipleOutline),1)]),_:1})):B("",!0)]),"prepend-item":h(()=>[e.isFiltersClearable?(l(),p(M,{key:0,density:"compact",variant:"plain",class:"clearFilter",title:"Clear All Filters","append-icon":o.mdiCloseCircleOutline,onClick:r.onClear},null,8,["append-icon","onClick"])):B("",!0)]),"append-item":h(()=>[i(D),e.dynamicChoiceNames===void 0?(l(),p(M,{key:0,density:"compact",variant:"plain"},{default:h(()=>[i(J,{indeterminate:"",rounded:""})]),_:1})):e.dynamicChoiceNames.length>0?(l(!0),w(F,{key:1},O(e.dynamicChoiceNames,m=>(l(),p(n,{key:m,name:m,onSelected:r.onSubMenuSelected},null,8,["name","onSelected"]))),128)):(l(),p(M,{key:2,class:"noChoices",density:"compact",variant:"plain",title:"No filters available"}))]),_:1},8,["menu","class","items","menu-props","model-value","max-select-len","onUpdate:modelValue","onUpdate:menu"])}const uo=b(io,[["render",co],["__scopeId","data-v-0d876944"]]),mo={name:"BrowseOrderBySelect",components:{ToolbarSelect:N},extends:N,computed:{...V(g,["orderByChoices","orderByChoicesMaxLen"]),...v(g,{orderBySetting:e=>e.settings.orderBy}),reverseValues(){const e=new Set;for(const t of this.orderByChoices)t.reverse&&e.add(t.value);return e},orderBy:{get(){return this.orderBySetting},set(e){const t={orderBy:e,orderReverse:this.reverseValues.has(e)};this.setSettings(t)}}},methods:{...T(g,["setSettings"])}};function ho(e,t,s,d,o,r){const n=f("ToolbarSelect");return l(),p(n,I({modelValue:r.orderBy,"onUpdate:modelValue":t[0]||(t[0]=c=>r.orderBy=c),class:"orderBySelect","select-label":"order by",items:e.orderByChoices,"max-select-len":e.orderByChoicesMaxLen-4},e.$attrs),null,16,["modelValue","items","max-select-len"])}const po=b(mo,[["render",ho]]),fo={name:"ToolbarButton",components:{ScaleButton:yt}};function _o(e,t,s,d,o,r){const n=f("ScaleButton");return l(),p(n,{variant:"plain",class:"toolbarButton"},pe({_:2},[O(e.$slots,(c,m)=>({name:m,fn:h(y=>[dt(e.$slots,m,I({props:c},y))])}))]),1024)}const we=b(fo,[["render",_o]]),go={name:"BrowseOrderReverseButton",components:{ToolbarButton:we},data(){return{mdiSortVariant:ut}},computed:{...v(g,{orderReverseSetting:e=>e.settings.orderReverse}),title(){return this.orderReverseSetting?"order descending":"order ascending"},iconClasses(){return{inverted:!this.orderReverseSetting}}},methods:{...T(g,["setSettings"]),toggleOrderReverse(){const e={orderReverse:!this.orderReverseSetting};this.setSettings(e)}}};function bo(e,t,s,d,o,r){const n=f("ToolbarButton");return l(),p(n,{class:"orderReverseButton",icon:"",title:r.title,onClick:r.toggleOrderReverse},{default:h(()=>[i(k,{class:A(r.iconClasses)},{default:h(()=>[u(S(o.mdiSortVariant),1)]),_:1},8,["class"])]),_:1},8,["title","onClick"])}const yo=b(go,[["render",bo],["__scopeId","data-v-42884e89"]]),vo={name:"BrowseOrderReverseButton",components:{ToolbarButton:we},data(){return{mdiMagnify:j}},computed:{...v(g,{isSearchOpen:e=>e.isSearchOpen,isQuery:e=>!!e.settings.q})},methods:{...T(g,["setIsSearchOpen"])}};function So(e,t,s,d,o,r){const n=f("ToolbarButton");return e.isSearchOpen?B("",!0):(l(),p(n,I({key:0,class:"searchButton",icon:o.mdiMagnify},e.$attrs,{title:"Search",onClick:t[0]||(t[0]=c=>e.setIsSearchOpen(!0))}),null,16,["icon"]))}const wo=b(vo,[["render",So]]),Bo=new Set(["a","f"]),Co={name:"BrowserTopGroupSelect",components:{ToolbarSelect:N},extends:N,data(){return{DIVIDED_VALUES:Bo}},computed:{...v(g,{topGroupSetting:e=>e.settings.topGroup}),...V(g,["topGroupChoices","topGroupChoicesMaxLen"]),topGroup:{get(){return this.topGroupSetting},set(e){const t={topGroup:e};this.setSettings(t)}}},methods:{...T(g,["setSettings"])}};function To(e,t,s,d,o,r){const n=f("ToolbarSelect");return l(),p(n,{modelValue:r.topGroup,"onUpdate:modelValue":t[0]||(t[0]=c=>r.topGroup=c),class:"topGroupSelect","select-label":"top group",items:e.topGroupChoices,"max-select-len":e.topGroupChoicesMaxLen-2.25},{item:h(({item:c,props:m})=>[o.DIVIDED_VALUES.has(c.value)?(l(),p(D,{key:0})):B("",!0),i(M,I(m,{density:"compact",variant:"plain",title:c.title,value:c.value}),null,16,["title","value"])]),_:1},8,["modelValue","items","max-select-len"])}const ko=b(Co,[["render",To]]),Vo={name:"BrowserTopToolbar",components:{BrowserFilterBySelect:uo,BrowserSearchButton:wo,BrowserTopGroupSelect:ko,BrowserOrderBySelect:po,BrowserOrderReverseButton:yo,SettingsDrawerButton:vt},data(){return{mdiMagnify:j,mdiFamilyTree:mt,browseMode:"filter"}}};function Mo(e,t,s,d,o,r){const n=f("BrowserTopGroupSelect"),c=f("BrowserFilterBySelect"),m=f("BrowserOrderBySelect"),y=f("BrowserOrderReverseButton"),C=f("BrowserSearchButton"),$=f("SettingsDrawerButton");return l(),p(W,{id:"browserToolbarTop",density:"compact",height:48},{default:h(()=>[i(X,{id:"browserToolbarLeftItems"},{default:h(()=>[i(n),i(c),i(m),i(y),i(C)]),_:1}),i(kt),i(X,null,{default:h(()=>[i($)]),_:1})]),_:1})}const $o=b(Vo,[["render",Mo],["__scopeId","data-v-42686e3a"]]),Po={name:"BrowserHeadToolbars",components:{BrowserBreadcrumbsToolbar:zs,BrowserSearchToolbar:to,BrowserTopToolbar:$o,BrowserTitleToolbar:Ys}},Fo={id:"codexHeadToolbarWrapper"};function Io(e,t,s,d,o,r){const n=f("BrowserTopToolbar"),c=f("BrowserSearchToolbar"),m=f("BrowserBreadcrumbsToolbar"),y=f("BrowserTitleToolbar");return l(),w("header",Fo,[i(n,{class:"codexHeadToolbar"}),i(c,{class:"codexHeadToolbar"}),i(m,{class:"codexHeadToolbar"}),i(y,{class:"codexHeadToolbar"})])}const xo=b(Po,[["render",Io],["__scopeId","data-v-508c4760"]]),Do={name:"BrowserNavButton",components:{PaginationNavButton:Vt},props:{back:{type:Boolean,required:!0},more:{type:Boolean,default:!1}},data(){return{mdiChevronLeft:fe,mdiMagnify:j,routeParams:this.$route.params,page:+this.$route.params.page}},computed:{...V(g,["isSearchMode"]),...v(g,{numPages:e=>e.page.numPages}),increment(){return this.back?-1:1},toPage(){return this.page+this.increment},title(){return this.showMore?"Search for More":"Page "+this.toPage},toRoute(){const e=this.toPage;return{params:{...this.routeParams,page:e}}},classes(){return{leftButton:this.back,rightButton:!this.back}},disabled(){return this.back&&this.page<=1||!this.back&&this.page>=this.numPages},showMore(){return this.more&&this.isSearchMode&&this.toPage===this.numPages}},watch:{$route(e){this.params=e.params,this.page=+e.params.page}}};function No(e,t,s,d,o,r){const n=f("PaginationNavButton");return l(),p(n,{key:r.toRoute,class:A(r.classes),disabled:r.disabled,title:r.title,to:r.toRoute},{default:h(()=>[r.showMore?(l(),p(k,{key:0},{default:h(()=>[u(S(o.mdiMagnify),1)]),_:1})):B("",!0),i(k,{class:A({flipHoriz:!s.back})},{default:h(()=>[u(S(o.mdiChevronLeft),1)]),_:1},8,["class"])]),_:1},8,["class","disabled","title","to"])}const Oo=b(Do,[["render",No],["__scopeId","data-v-372671b3"]]),Ro={name:"BrowserNavToolbar",components:{BrowserNavButton:Oo,PaginationSlider:Mt,PaginationToolbar:$t},computed:{...v(g,{numPages:e=>e.page.numPages})},methods:{...T(g,["routeToPage"]),onUpdate(e){this.routeToPage(e)}}};function Ho(e,t,s,d,o,r){const n=f("BrowserNavButton"),c=f("PaginationSlider"),m=f("PaginationToolbar");return e.numPages>1?(l(),p(m,{key:0},{default:h(()=>[i(n,{back:!0}),i(c,{"model-value":+e.$route.params.page,min:1,max:e.numPages,step:1,"onUpdate:modelValue":t[0]||(t[0]=y=>e.routeToPage(y))},null,8,["model-value","max"]),i(n,{back:!1,more:!0})]),_:1})):B("",!0)}const Ao=b(Ro,[["render",Ho]]),Lo={name:"MainBrowser",components:{BrowserHeadToolbars:xo,BrowserMain:Fs,BrowserNavToolbar:Ao,BrowserSettingsDrawer:Gr,Unauthorized:Dt},computed:{...v(P,{user:e=>e.user}),...V(P,["isAuthorized"])},watch:{$route(e){var t;window.scrollTo(0,0),this.setPageMtime((t=e==null?void 0:e.query)==null?void 0:t.ts),this.loadBrowserPage()},user(){this.loadSettings()},isAuthorized(){this.loadSettings()}},created(){this.loadSettings()},methods:{...T(g,["loadBrowserPage","loadSettings","setPageMtime"])}};function Uo(e,t,s,d,o,r){const n=f("BrowserHeadToolbars"),c=f("BrowserMain"),m=f("BrowserNavToolbar"),y=f("BrowserSettingsDrawer"),C=f("Unauthorized");return e.isAuthorized?(l(),p(be,{key:0,id:"browser"},{default:h(()=>[i(n),i(c),i(m),i(y)]),_:1})):(l(),p(C,{key:1}))}const na=b(Lo,[["render",Uo],["__scopeId","data-v-4a8fba7b"]]);export{na as default};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.changePasswordForm[data-v-54608f15]{padding:20px}.codexFormSuccess[data-v-54608f15]{padding:10px;font-size:larger;color:rgb(var(--v-theme-success));text-align:center}.hidden[data-v-54608f15]{display:none}
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.changePasswordForm[data-v-54608f15]{padding:20px}.codexFormSuccess[data-v-54608f15]{padding:10px;font-size:larger;color:rgb(var(--v-theme-success));text-align:center}.hidden[data-v-54608f15]{display:none}
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aK as k,aL as D,cJ as E,cK as O,W as _,E as w,bs as N,X as f,q as c,D as v,_ as B,Z as d,$ as a,Y as n,a0 as l,ap as L,aq as p,T as i,ak as h,aG as u,aP as A,aE as U,aO as b,bo as g,aI as y}from"./admin-drawer-panel-Dmnn03CQ.js";import{S as I,a as T,V as m}from"./VTextField-DAe7a2au.js";import{V as M}from"./VDialog-BWXBR7iM.js";const F={name:"ChangePasswordDialog",components:{SubmitFooter:I,CloseButton:k,DrawerItem:D},props:{user:{type:Object,required:!0},isAdminMode:{type:Boolean,default:!1},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{rules:{oldPassword:[e=>!!e||"Old Password is required"],password:[e=>e?e.length<this.MIN_PASSWORD_LENGTH?`Password must be ${this.MIN_PASSWORD_LENGTH} characters long`:e===this.credentials.oldPassword?"New password must be different than old password":!0:"New Password is required"],passwordConfirm:[e=>e===this.credentials.password||"Passwords must match"]},credentials:{oldPassword:"",password:"",passwordConfirm:""},submitButtonEnabled:!1,mdiLockReset:E,mdiLockPlusOutline:O,showOnlyThisDialog:!1}},computed:{..._(w,{formErrors:e=>e.form.errors,formSuccess:e=>e.form.success,MIN_PASSWORD_LEN:e=>e.MIN_PASSWORD_LEN}),...N(c,["showChangePasswordDialog"])},watch:{showOnlyThisDialog(e){if(this.showChangePasswordDialog=e,e){const s=this.$refs.form;s&&s.reset(),this.clearErrors()}},credentials:{handler(){const e=this.$refs.form;if(!e){this.submitButtonEnabled=!1;return}e.validate().then(({valid:s})=>this.submitButtonEnabled=s).catch(()=>{this.submitButtonEnabled=!1})},deep:!0}},mounted(){window.addEventListener("keyup",this._keyUpListener)},beforeUnmount(){window.removeEventListener("keyup",this._keyUpListener)},methods:{...f(c,["changePassword"]),...f(w,["clearErrors"]),doUserChange(){return v().changeUserPassword(this.user.pk,this.credentials).catch(console.error)},doSelfChange(){return this.changePassword(this.credentials).catch(console.error)},submit(){const e=this.$refs.form;e&&e.validate().then(({valid:s})=>{if(s)return this.isAdminMode?this.doUserChange():this.doSelfChange()}).catch(console.error)},_keyUpListener(e){e.stopImmediatePropagation()}}},R={key:0,class:"codexFormSuccess"},W=["value"];function q(e,s,t,x,o,P){const C=d("DrawerItem"),S=d("CloseButton"),V=d("SubmitFooter");return t.user?(a(),n(M,{key:0,modelValue:o.showOnlyThisDialog,"onUpdate:modelValue":s[7]||(s[7]=r=>o.showOnlyThisDialog=r),origin:"center-top",transition:"slide-y-transition","max-width":"22em"},{activator:l(({props:r})=>[t.isAdminMode?(a(),n(L,p({key:0,icon:""},r,{size:t.size,density:t.density,title:"Change Password"}),{default:l(()=>[i(A,null,{default:l(()=>[h(u(o.mdiLockPlusOutline),1)]),_:1})]),_:2},1040,["size","density"])):(a(),n(C,p({key:1,"prepend-icon":o.mdiLockReset},r,{title:"Change Password"}),null,16,["prepend-icon"]))]),default:l(()=>[e.formSuccess?(a(),U("div",R,[h(u(e.formSuccess)+" ",1),i(S,{onClick:s[0]||(s[0]=r=>o.showOnlyThisDialog=!1)})])):(a(),n(T,{key:1,ref:"form",class:"changePasswordForm"},{default:l(()=>[b("h2",null,"User "+u(t.user.username),1),b("input",{name:"username",autocomplete:"username",disabled:"",type:"text",class:"hidden",value:t.user.username},null,8,W),t.isAdminMode?y("",!0):(a(),n(m,{key:0,ref:"oldPassword",modelValue:o.credentials.oldPassword,"onUpdate:modelValue":s[1]||(s[1]=r=>o.credentials.oldPassword=r),autocomplete:"current-password",label:"Old Password",rules:o.rules.oldPassword,clearable:"",type:"password",autofocus:"",onKeydown:s[2]||(s[2]=g(r=>e.$refs.password.focus(),["enter"]))},null,8,["modelValue","rules"])),i(m,{ref:"password",modelValue:o.credentials.password,"onUpdate:modelValue":s[3]||(s[3]=r=>o.credentials.password=r),autocomplete:"new-password",label:"New Password",rules:o.rules.password,clearable:"",type:"password",autofocus:t.isAdminMode,onKeydown:s[4]||(s[4]=g(r=>e.$refs.passwordConfirm.focus(),["enter"]))},null,8,["modelValue","rules","autofocus"]),i(m,{ref:"passwordConfirm",modelValue:o.credentials.passwordConfirm,"onUpdate:modelValue":s[5]||(s[5]=r=>o.credentials.passwordConfirm=r),autocomplete:"new-password",label:"Confirm Password",rules:o.rules.passwordConfirm,clearable:"",type:"password"},null,8,["modelValue","rules"]),i(V,{verb:"Change",table:"Password",disabled:!o.submitButtonEnabled,onSubmit:P.submit,onCancel:s[6]||(s[6]=r=>o.showOnlyThisDialog=!1)},null,8,["disabled","onSubmit"])]),_:1},512))]),_:1},8,["modelValue"])):y("",!0)}const H=B(F,[["render",q],["__scopeId","data-v-54608f15"]]);export{H as C};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aK as k,aL as D,cJ as E,cK as O,W as _,E as w,bs as N,X as f,q as c,D as v,_ as B,Z as d,$ as a,Y as n,a0 as l,ap as L,aq as p,T as i,ak as h,aG as u,aP as A,aE as U,aO as b,bo as g,aI as y}from"./admin-drawer-panel-Dmnn03CQ.js";import{S as I,a as T,V as m}from"./VTextField-DAe7a2au.js";import{V as M}from"./VDialog-BWXBR7iM.js";const F={name:"ChangePasswordDialog",components:{SubmitFooter:I,CloseButton:k,DrawerItem:D},props:{user:{type:Object,required:!0},isAdminMode:{type:Boolean,default:!1},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{rules:{oldPassword:[e=>!!e||"Old Password is required"],password:[e=>e?e.length<this.MIN_PASSWORD_LENGTH?`Password must be ${this.MIN_PASSWORD_LENGTH} characters long`:e===this.credentials.oldPassword?"New password must be different than old password":!0:"New Password is required"],passwordConfirm:[e=>e===this.credentials.password||"Passwords must match"]},credentials:{oldPassword:"",password:"",passwordConfirm:""},submitButtonEnabled:!1,mdiLockReset:E,mdiLockPlusOutline:O,showOnlyThisDialog:!1}},computed:{..._(w,{formErrors:e=>e.form.errors,formSuccess:e=>e.form.success,MIN_PASSWORD_LEN:e=>e.MIN_PASSWORD_LEN}),...N(c,["showChangePasswordDialog"])},watch:{showOnlyThisDialog(e){if(this.showChangePasswordDialog=e,e){const s=this.$refs.form;s&&s.reset(),this.clearErrors()}},credentials:{handler(){const e=this.$refs.form;if(!e){this.submitButtonEnabled=!1;return}e.validate().then(({valid:s})=>this.submitButtonEnabled=s).catch(()=>{this.submitButtonEnabled=!1})},deep:!0}},mounted(){window.addEventListener("keyup",this._keyUpListener)},beforeUnmount(){window.removeEventListener("keyup",this._keyUpListener)},methods:{...f(c,["changePassword"]),...f(w,["clearErrors"]),doUserChange(){return v().changeUserPassword(this.user.pk,this.credentials).catch(console.error)},doSelfChange(){return this.changePassword(this.credentials).catch(console.error)},submit(){const e=this.$refs.form;e&&e.validate().then(({valid:s})=>{if(s)return this.isAdminMode?this.doUserChange():this.doSelfChange()}).catch(console.error)},_keyUpListener(e){e.stopImmediatePropagation()}}},R={key:0,class:"codexFormSuccess"},W=["value"];function q(e,s,t,x,o,P){const C=d("DrawerItem"),S=d("CloseButton"),V=d("SubmitFooter");return t.user?(a(),n(M,{key:0,modelValue:o.showOnlyThisDialog,"onUpdate:modelValue":s[7]||(s[7]=r=>o.showOnlyThisDialog=r),origin:"center-top",transition:"slide-y-transition","max-width":"22em"},{activator:l(({props:r})=>[t.isAdminMode?(a(),n(L,p({key:0,icon:""},r,{size:t.size,density:t.density,title:"Change Password"}),{default:l(()=>[i(A,null,{default:l(()=>[h(u(o.mdiLockPlusOutline),1)]),_:1})]),_:2},1040,["size","density"])):(a(),n(C,p({key:1,"prepend-icon":o.mdiLockReset},r,{title:"Change Password"}),null,16,["prepend-icon"]))]),default:l(()=>[e.formSuccess?(a(),U("div",R,[h(u(e.formSuccess)+" ",1),i(S,{onClick:s[0]||(s[0]=r=>o.showOnlyThisDialog=!1)})])):(a(),n(T,{key:1,ref:"form",class:"changePasswordForm"},{default:l(()=>[b("h2",null,"User "+u(t.user.username),1),b("input",{name:"username",autocomplete:"username",disabled:"",type:"text",class:"hidden",value:t.user.username},null,8,W),t.isAdminMode?y("",!0):(a(),n(m,{key:0,ref:"oldPassword",modelValue:o.credentials.oldPassword,"onUpdate:modelValue":s[1]||(s[1]=r=>o.credentials.oldPassword=r),autocomplete:"current-password",label:"Old Password",rules:o.rules.oldPassword,clearable:"",type:"password",autofocus:"",onKeydown:s[2]||(s[2]=g(r=>e.$refs.password.focus(),["enter"]))},null,8,["modelValue","rules"])),i(m,{ref:"password",modelValue:o.credentials.password,"onUpdate:modelValue":s[3]||(s[3]=r=>o.credentials.password=r),autocomplete:"new-password",label:"New Password",rules:o.rules.password,clearable:"",type:"password",autofocus:t.isAdminMode,onKeydown:s[4]||(s[4]=g(r=>e.$refs.passwordConfirm.focus(),["enter"]))},null,8,["modelValue","rules","autofocus"]),i(m,{ref:"passwordConfirm",modelValue:o.credentials.passwordConfirm,"onUpdate:modelValue":s[5]||(s[5]=r=>o.credentials.passwordConfirm=r),autocomplete:"new-password",label:"Confirm Password",rules:o.rules.passwordConfirm,clearable:"",type:"password"},null,8,["modelValue","rules"]),i(V,{verb:"Change",table:"Password",disabled:!o.submitButtonEnabled,onSubmit:P.submit,onCancel:s[6]||(s[6]=r=>o.showOnlyThisDialog=!1)},null,8,["disabled","onSubmit"])]),_:1},512))]),_:1},8,["modelValue"])):y("",!0)}const H=B(F,[["render",q],["__scopeId","data-v-54608f15"]]);export{H as C};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as x,V as _}from"./VDialog-BWXBR7iM.js";import{_ as C,Z as V,$ as n,Y as l,a0 as i,ap as f,aq as m,T as u,ak as r,aG as a,aP as D,aO as g}from"./admin-drawer-panel-Dmnn03CQ.js";const T={name:"ConfirmDialog",components:{ConfirmFooter:x},props:{icon:{type:String,default:""},buttonText:{type:String,default:""},titleText:{type:String,required:!0},objectName:{type:String,required:!0},confirmText:{type:String,required:!0},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{showDialog:!1}},methods:{close(s){this.$emit(s),this.showDialog=!1}}},S={class:"confirmDialog"};function v(s,t,e,b,c,d){const y=V("ConfirmFooter");return n(),l(_,{modelValue:c.showDialog,"onUpdate:modelValue":t[2]||(t[2]=o=>c.showDialog=o),transition:"fab-transition","max-width":"20em","overlay-opacity":"0.5"},{activator:i(({props:o})=>[e.icon?(n(),l(f,m({key:0,icon:""},o,{size:e.size,density:e.density,title:e.titleText}),{default:i(()=>[u(D,null,{default:i(()=>[r(a(e.icon),1)]),_:1})]),_:2},1040,["size","density","title"])):(n(),l(f,m({key:1,block:""},o),{default:i(()=>[r(a(e.buttonText),1)]),_:2},1040))]),default:i(()=>[g("div",S,[g("h3",null,a(e.titleText),1),r(" "+a(e.objectName)+" ",1),u(y,{"confirm-text":e.confirmText,onConfirm:t[0]||(t[0]=o=>d.close("confirm")),onCancel:t[1]||(t[1]=o=>d.close("cancel"))},null,8,["confirm-text"])])]),_:1},8,["modelValue"])}const w=C(T,[["render",v],["__scopeId","data-v-996f6e3c"]]);export{w as C};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as x,V as _}from"./VDialog-BWXBR7iM.js";import{_ as C,Z as V,$ as n,Y as l,a0 as i,ap as f,aq as m,T as u,ak as r,aG as a,aP as D,aO as g}from"./admin-drawer-panel-Dmnn03CQ.js";const T={name:"ConfirmDialog",components:{ConfirmFooter:x},props:{icon:{type:String,default:""},buttonText:{type:String,default:""},titleText:{type:String,required:!0},objectName:{type:String,required:!0},confirmText:{type:String,required:!0},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{showDialog:!1}},methods:{close(s){this.$emit(s),this.showDialog=!1}}},S={class:"confirmDialog"};function v(s,t,e,b,c,d){const y=V("ConfirmFooter");return n(),l(_,{modelValue:c.showDialog,"onUpdate:modelValue":t[2]||(t[2]=o=>c.showDialog=o),transition:"fab-transition","max-width":"20em","overlay-opacity":"0.5"},{activator:i(({props:o})=>[e.icon?(n(),l(f,m({key:0,icon:""},o,{size:e.size,density:e.density,title:e.titleText}),{default:i(()=>[u(D,null,{default:i(()=>[r(a(e.icon),1)]),_:1})]),_:2},1040,["size","density","title"])):(n(),l(f,m({key:1,block:""},o),{default:i(()=>[r(a(e.buttonText),1)]),_:2},1040))]),default:i(()=>[g("div",S,[g("h3",null,a(e.titleText),1),r(" "+a(e.objectName)+" ",1),u(y,{"confirm-text":e.confirmText,onConfirm:t[0]||(t[0]=o=>d.close("confirm")),onCancel:t[1]||(t[1]=o=>d.close("cancel"))},null,8,["confirm-text"])])]),_:1},8,["modelValue"])}const w=C(T,[["render",v],["__scopeId","data-v-996f6e3c"]]);export{w as C};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as p,W as i,E as f,D as d,X as b,cI as y,Y as g,a0 as w,$ as r,aO as a,aE as c,aF as k,aG as m,T as v,V as _,aQ as x,aR as S}from"./admin-drawer-panel-Dmnn03CQ.js";import{V as C}from"./VTable-D85UV0cA.js";import{V as F}from"./VCheckbox-D8eqoc1z.js";import"./VCheckboxBtn-BaQC30AI.js";import"./VSelectionControl-FmTy_2ch.js";const I="If enabled, codex will attempt to update the codex python package once a day and restart the server if an update occurred. Not advisable if running from Docker as running containers aren't meant to hold state and will be rebuilt if you update the image. Look into services that automatically update docker images instead.",T="By default all Codex features, including bookmarking, are available to users who are not logged in. You may disable this feature and Codex will hide its browser and reader and disable its API from anyone who is not logged in as a user.",U="By default users' bookmarks and preferences are saved in an anonymous browser session. Users can create a username and password to save their bookmarks between browsers. You may disable this feature. Admins may still create users.",V=`By default, codex provides a "Folder View" which mimics the directory hierarchy of the libraries that you've added to Codex. You may disable this feature. The database style browser view is always available. This flag also enables and disables the "Filename" sort option and the path from search indexing.`,E="Fully optimize the search index each night. Disabling this flag will instead run a partial optimization which only merges small files. You should only disable this if the nightly optimization stresses your system too much.",A="If disabled, Codex will not bulk import metadata from comic libraries when they are scanned and only import folders and filenames. Instead, metadata will be loaded lazily as comics are read. This makes importing comics fast, but disables most of the metadata browser functionality, making codex mostly a file tree browser.",B="Anonymously send the contents of the Admin Stats tab once a week to understand how people use Codex and improve the software. The server collecting the stats does not log or store your IP. The author considers all personally identifying information and the names and metadata of your comics to be a radioactive privacy violation and will never be exposed to it. Only the information you see on the stats page is collected. Your API Key is not sent. Stats are not sent for the first 24 hours to allow opt-out.",D={AU:I,NU:T,RG:U,FV:V,SO:E,IM:A,ST:B},Y={name:"AdminFlagsTab",components:{},data(){return{lastUpdate:{name:"",field:void 0},DESC:D}},computed:{...i(f,["formErrors"]),...i(d,["flags"])},mounted(){this.loadTables(["Flag"])},methods:{...b(d,["updateRow","clearErrors","loadTables"]),changeCol(e,s,n){this.lastUpdate.name=e,this.lastUpdate.field=s;const l={[s]:n};this.updateRow("Flag",e,l)},getFormErrors(e,s){if(e===this.lastUpdate.name&&s===this.lastUpdate.field)return this.formErrors},title(e){return y[e.key]}}},N=e=>(x("data-v-43c13cb0"),e=e(),S(),e),R=N(()=>a("thead",null,[a("tr",null,[a("th",null,"Description"),a("th",null,"Enabled")])],-1)),z={class:"nameCol"},O={class:"desc"};function G(e,s,n,l,h,o){return r(),g(C,{class:"highlight-table flags-table",items:e.flags,"fixed-header":""},{default:w(()=>[R,a("tbody",null,[(r(!0),c(_,null,k(e.flags,t=>(r(),c("tr",{key:`f${t.key}`},[a("td",z,[a("h4",null,m(o.title(t)),1),a("p",O,m(h.DESC[t.key]),1)]),a("td",null,[v(F,{"model-value":t.on,"true-value":!0,"error-messages":o.getFormErrors(t.key,"on"),"hide-details":"auto","onUpdate:modelValue":u=>o.changeCol(t.key,"on",u)},null,8,["model-value","error-messages","onUpdate:modelValue"])])]))),128))])]),_:1},8,["items"])}const Q=p(Y,[["render",G],["__scopeId","data-v-43c13cb0"]]);export{Q as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as p,W as i,E as f,D as d,X as b,cI as y,Y as g,a0 as w,$ as r,aO as a,aE as c,aF as k,aG as m,T as v,V as _,aQ as x,aR as S}from"./admin-drawer-panel-Dmnn03CQ.js";import{V as C}from"./VTable-D85UV0cA.js";import{V as F}from"./VCheckbox-D8eqoc1z.js";import"./VCheckboxBtn-BaQC30AI.js";import"./VSelectionControl-FmTy_2ch.js";const I="If enabled, codex will attempt to update the codex python package once a day and restart the server if an update occurred. Not advisable if running from Docker as running containers aren't meant to hold state and will be rebuilt if you update the image. Look into services that automatically update docker images instead.",T="By default all Codex features, including bookmarking, are available to users who are not logged in. You may disable this feature and Codex will hide its browser and reader and disable its API from anyone who is not logged in as a user.",U="By default users' bookmarks and preferences are saved in an anonymous browser session. Users can create a username and password to save their bookmarks between browsers. You may disable this feature. Admins may still create users.",V=`By default, codex provides a "Folder View" which mimics the directory hierarchy of the libraries that you've added to Codex. You may disable this feature. The database style browser view is always available. This flag also enables and disables the "Filename" sort option and the path from search indexing.`,E="Fully optimize the search index each night. Disabling this flag will instead run a partial optimization which only merges small files. You should only disable this if the nightly optimization stresses your system too much.",A="If disabled, Codex will not bulk import metadata from comic libraries when they are scanned and only import folders and filenames. Instead, metadata will be loaded lazily as comics are read. This makes importing comics fast, but disables most of the metadata browser functionality, making codex mostly a file tree browser.",B="Anonymously send the contents of the Admin Stats tab once a week to understand how people use Codex and improve the software. The server collecting the stats does not log or store your IP. The author considers all personally identifying information and the names and metadata of your comics to be a radioactive privacy violation and will never be exposed to it. Only the information you see on the stats page is collected. Your API Key is not sent. Stats are not sent for the first 24 hours to allow opt-out.",D={AU:I,NU:T,RG:U,FV:V,SO:E,IM:A,ST:B},Y={name:"AdminFlagsTab",components:{},data(){return{lastUpdate:{name:"",field:void 0},DESC:D}},computed:{...i(f,["formErrors"]),...i(d,["flags"])},mounted(){this.loadTables(["Flag"])},methods:{...b(d,["updateRow","clearErrors","loadTables"]),changeCol(e,s,n){this.lastUpdate.name=e,this.lastUpdate.field=s;const l={[s]:n};this.updateRow("Flag",e,l)},getFormErrors(e,s){if(e===this.lastUpdate.name&&s===this.lastUpdate.field)return this.formErrors},title(e){return y[e.key]}}},N=e=>(x("data-v-43c13cb0"),e=e(),S(),e),R=N(()=>a("thead",null,[a("tr",null,[a("th",null,"Description"),a("th",null,"Enabled")])],-1)),z={class:"nameCol"},O={class:"desc"};function G(e,s,n,l,h,o){return r(),g(C,{class:"highlight-table flags-table",items:e.flags,"fixed-header":""},{default:w(()=>[R,a("tbody",null,[(r(!0),c(_,null,k(e.flags,t=>(r(),c("tr",{key:`f${t.key}`},[a("td",z,[a("h4",null,m(o.title(t)),1),a("p",O,m(h.DESC[t.key]),1)]),a("td",null,[v(F,{"model-value":t.on,"true-value":!0,"error-messages":o.getFormErrors(t.key,"on"),"hide-details":"auto","onUpdate:modelValue":u=>o.changeCol(t.key,"on",u)},null,8,["model-value","error-messages","onUpdate:modelValue"])])]))),128))])]),_:1},8,["items"])}const Q=p(Y,[["render",G],["__scopeId","data-v-43c13cb0"]]);export{Q as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as y,W as k,D as c,X as w,_ as f,Z as u,$ as G,aE as S,T as s,a0 as i,bE as T,aO as e,aQ as I,aR as v,ak as m}from"./admin-drawer-panel-Dmnn03CQ.js";import{A as V,G as A,a as E,b as D,c as j,R as N}from"./relation-chips-nc41xEEd.js";import{V as H}from"./VTextField-DAe7a2au.js";import{V as g,a as O}from"./VRadioGroup-B8chw_xV.js";import"./main-C0t41OAE.js";import"./VDialog-BWXBR7iM.js";import"./VSelect-BpWdXMPq.js";import"./VSelectionControl-FmTy_2ch.js";import"./VCheckboxBtn-BaQC30AI.js";import"./VSlideGroup-B9zEPv1H.js";import"./VTable-D85UV0cA.js";import"./filter-BL9RMUvn.js";import"./confirm-dialog-BJlNq6ku.js";const C=["name","userSet","librarySet","exclude"];Object.freeze(C);const h={name:"",userSet:[],librarySet:[],exclude:!1};Object.freeze(h);const P={name:"AdminGroupCreateUpdateInputs",components:{AdminRelationPicker:V,GroupChip:A},props:{oldRow:{type:[Object,Boolean],default:!1}},emits:["change"],data(){return{rules:{name:[t=>!!t||"Name is required",t=>!!t&&!this.names.has(t.trim())||"Name already used"]},row:{...h,...y(this.oldRow)}}},computed:{...k(c,{groups:t=>t.groups,libraries:t=>t.libraries,users:t=>t.users}),names(){return this.nameSet(this.groups,"name",this.oldRow,!0)}},watch:{row:{handler(t){this.$emit("change",t)},deep:!0},oldRow:{handler(t){this.row=y(t)},deep:!0}},methods:{...w(c,["nameSet"])},UPDATE_KEYS:C,EMPTY_ROW:h};function L(t,a,b,x,l,_){const p=u("GroupChip"),d=u("AdminRelationPicker");return G(),S("div",null,[s(H,{modelValue:l.row.name,"onUpdate:modelValue":a[0]||(a[0]=n=>l.row.name=n),label:"Group Name",rules:l.rules.name,clearable:"",autofocus:""},null,8,["modelValue","rules"]),s(O,{inline:"",label:"Type","model-value":l.row.exclude,"hide-details":"auto","onUpdate:modelValue":a[1]||(a[1]=n=>l.row.exclude=n)},{default:i(()=>[s(g,{value:!1},{label:i(()=>[s(p,{item:{name:"Include",exclude:!1},"title-key":"name","group-type":""})]),_:1}),s(g,{value:!0},{label:i(()=>[s(p,{item:{name:"Exclude",exclude:!0},"title-key":"name","group-type":""})]),_:1})]),_:1},8,["model-value"]),s(d,{"model-value":l.row.userSet,label:"Users",objs:t.users,"title-key":"username","onUpdate:modelValue":a[2]||(a[2]=n=>l.row.userSet=n)},null,8,["model-value","objs"]),s(d,{"model-value":l.row.librarySet,label:"Libraries",objs:t.libraries,"title-key":"path","onUpdate:modelValue":a[3]||(a[3]=n=>l.row.librarySet=n)},null,8,["model-value","objs"])])}const z=f(P,[["render",L]]),B=180,W={name:"AdminGroupsTab",components:{AdminTable:E,AdminDeleteRowDialog:D,AdminCreateUpdateDialog:j,RelationChips:N,GroupChip:A},data(){return{lastUpdate:{pk:0,field:void 0},AdminGroupCreateUpdateInputs:T(z),GROUP_HELP_HEIGHT:B,headers:[{title:"Name",key:"name",align:"start"},{title:"Type",key:"exclude",align:"start"},{title:"Users",key:"userSet"},{title:"Libraries",key:"librarySet"},{title:"Actions",key:"actions",sortable:!1}]}},computed:{...k(c,{groups:t=>t.groups,libraries:t=>t.libraries,users:t=>t.users})},mounted(){this.loadTables(["User","Library","Group"])},methods:{...w(c,["loadTables"]),groupType(t){const a=t.exclude;return{name:a?"Exclude ":"Include",exclude:a}}}},o=t=>(I("data-v-0893032c"),t=t(),v(),t),Y={class:"tabHeader"},q=o(()=>e("td",{class:"adminNoData",colspan:"100%"},"No groups",-1)),F={id:"groupHelp"},K=o(()=>e("h3",null,"Group Logic",-1)),M=o(()=>e("p",null," A library in no groups is accessible to every user and non-users if those are enabled. ",-1)),Q=o(()=>e("p",null,[m(" A library with "),e("em",null,"any"),m(" Include groups is accessible "),e("em",null,"only"),m(" to users who are in those groups. ")],-1)),X=o(()=>e("p",null,[m(" A library with "),e("em",null,"any"),m(" Exclude groups is not accessible to Guest users but is acccessable to any logged in users that are not in the Exclude groups. ")],-1)),Z=o(()=>e("p",null," If you have libraries added and you do not see them in your browser, check to see if the library and your user are in the same group. ",-1)),J={id:"groupTable"},$=o(()=>e("thead",null,[e("tr",null,[e("th",null,"Library in Group Type"),e("th",null,"Guest"),e("th",null,"User Out of Group"),e("th",null,"User In Group")])],-1)),ee=o(()=>e("tr",null,[e("td",null,"Not in a Group"),e("td",{class:"see"},"Can See"),e("td",{class:"see"},"Can See"),e("td",{class:"see"},"Can See")],-1)),te=o(()=>e("td",{class:"hidden"},"Hidden",-1)),se=o(()=>e("td",{class:"hidden"},"Hidden",-1)),oe=o(()=>e("td",{class:"see"},"Can See",-1)),le=o(()=>e("td",{class:"hidden"},"Hidden",-1)),ae=o(()=>e("td",{class:"see"},"Can See",-1)),ne=o(()=>e("td",{class:"hidden"},"Hidden",-1));function re(t,a,b,x,l,_){const p=u("AdminCreateUpdateDialog"),d=u("GroupChip"),n=u("RelationChips"),R=u("AdminDeleteRowDialog"),U=u("AdminTable");return G(),S("div",null,[e("header",Y,[s(p,{table:"Group","max-width":"20em",inputs:l.AdminGroupCreateUpdateInputs},null,8,["inputs"])]),s(U,{"item-title":"name",headers:l.headers,items:t.groups},{"no-data":i(()=>[q]),"item.exclude":i(({item:r})=>[s(d,{"group-type":"",item:_.groupType(r),"title-key":"name"},null,8,["item"])]),"item.userSet":i(({item:r})=>[s(n,{pks:r.userSet,objs:t.users,"title-key":"username"},null,8,["pks","objs"])]),"item.librarySet":i(({item:r})=>[s(n,{pks:r.librarySet,objs:t.libraries,"title-key":"path"},null,8,["pks","objs"])]),"item.actions":i(({item:r})=>[s(p,{table:"Group","old-row":r,"max-width":"20em",inputs:l.AdminGroupCreateUpdateInputs,size:"small",density:"compact"},null,8,["old-row","inputs"]),s(R,{table:"Group",pk:r.pk,name:r.name,size:"small",density:"compact"},null,8,["pk","name"])]),_:2},1032,["headers","items"]),e("div",F,[K,M,Q,X,Z,e("table",J,[$,e("tbody",null,[ee,e("tr",null,[e("td",null,[s(d,{item:{name:"Include",exclude:!1},"title-key":"name","group-type":""})]),te,se,oe]),e("tr",null,[e("td",null,[s(d,{item:{name:"Exclude",exclude:!0},"title-key":"name","group-type":""})]),le,ae,ne])])])])])}const fe=f(W,[["render",re],["__scopeId","data-v-0893032c"]]);export{fe as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as y,W as k,D as c,X as w,_ as f,Z as u,$ as G,aE as S,T as s,a0 as i,bE as T,aO as e,aQ as I,aR as v,ak as m}from"./admin-drawer-panel-Dmnn03CQ.js";import{A as V,G as A,a as E,b as D,c as j,R as N}from"./relation-chips-nc41xEEd.js";import{V as H}from"./VTextField-DAe7a2au.js";import{V as g,a as O}from"./VRadioGroup-B8chw_xV.js";import"./main-C0t41OAE.js";import"./VDialog-BWXBR7iM.js";import"./VSelect-BpWdXMPq.js";import"./VSelectionControl-FmTy_2ch.js";import"./VCheckboxBtn-BaQC30AI.js";import"./VSlideGroup-B9zEPv1H.js";import"./VTable-D85UV0cA.js";import"./filter-BL9RMUvn.js";import"./confirm-dialog-BJlNq6ku.js";const C=["name","userSet","librarySet","exclude"];Object.freeze(C);const h={name:"",userSet:[],librarySet:[],exclude:!1};Object.freeze(h);const P={name:"AdminGroupCreateUpdateInputs",components:{AdminRelationPicker:V,GroupChip:A},props:{oldRow:{type:[Object,Boolean],default:!1}},emits:["change"],data(){return{rules:{name:[t=>!!t||"Name is required",t=>!!t&&!this.names.has(t.trim())||"Name already used"]},row:{...h,...y(this.oldRow)}}},computed:{...k(c,{groups:t=>t.groups,libraries:t=>t.libraries,users:t=>t.users}),names(){return this.nameSet(this.groups,"name",this.oldRow,!0)}},watch:{row:{handler(t){this.$emit("change",t)},deep:!0},oldRow:{handler(t){this.row=y(t)},deep:!0}},methods:{...w(c,["nameSet"])},UPDATE_KEYS:C,EMPTY_ROW:h};function L(t,a,b,x,l,_){const p=u("GroupChip"),d=u("AdminRelationPicker");return G(),S("div",null,[s(H,{modelValue:l.row.name,"onUpdate:modelValue":a[0]||(a[0]=n=>l.row.name=n),label:"Group Name",rules:l.rules.name,clearable:"",autofocus:""},null,8,["modelValue","rules"]),s(O,{inline:"",label:"Type","model-value":l.row.exclude,"hide-details":"auto","onUpdate:modelValue":a[1]||(a[1]=n=>l.row.exclude=n)},{default:i(()=>[s(g,{value:!1},{label:i(()=>[s(p,{item:{name:"Include",exclude:!1},"title-key":"name","group-type":""})]),_:1}),s(g,{value:!0},{label:i(()=>[s(p,{item:{name:"Exclude",exclude:!0},"title-key":"name","group-type":""})]),_:1})]),_:1},8,["model-value"]),s(d,{"model-value":l.row.userSet,label:"Users",objs:t.users,"title-key":"username","onUpdate:modelValue":a[2]||(a[2]=n=>l.row.userSet=n)},null,8,["model-value","objs"]),s(d,{"model-value":l.row.librarySet,label:"Libraries",objs:t.libraries,"title-key":"path","onUpdate:modelValue":a[3]||(a[3]=n=>l.row.librarySet=n)},null,8,["model-value","objs"])])}const z=f(P,[["render",L]]),B=180,W={name:"AdminGroupsTab",components:{AdminTable:E,AdminDeleteRowDialog:D,AdminCreateUpdateDialog:j,RelationChips:N,GroupChip:A},data(){return{lastUpdate:{pk:0,field:void 0},AdminGroupCreateUpdateInputs:T(z),GROUP_HELP_HEIGHT:B,headers:[{title:"Name",key:"name",align:"start"},{title:"Type",key:"exclude",align:"start"},{title:"Users",key:"userSet"},{title:"Libraries",key:"librarySet"},{title:"Actions",key:"actions",sortable:!1}]}},computed:{...k(c,{groups:t=>t.groups,libraries:t=>t.libraries,users:t=>t.users})},mounted(){this.loadTables(["User","Library","Group"])},methods:{...w(c,["loadTables"]),groupType(t){const a=t.exclude;return{name:a?"Exclude ":"Include",exclude:a}}}},o=t=>(I("data-v-0893032c"),t=t(),v(),t),Y={class:"tabHeader"},q=o(()=>e("td",{class:"adminNoData",colspan:"100%"},"No groups",-1)),F={id:"groupHelp"},K=o(()=>e("h3",null,"Group Logic",-1)),M=o(()=>e("p",null," A library in no groups is accessible to every user and non-users if those are enabled. ",-1)),Q=o(()=>e("p",null,[m(" A library with "),e("em",null,"any"),m(" Include groups is accessible "),e("em",null,"only"),m(" to users who are in those groups. ")],-1)),X=o(()=>e("p",null,[m(" A library with "),e("em",null,"any"),m(" Exclude groups is not accessible to Guest users but is acccessable to any logged in users that are not in the Exclude groups. ")],-1)),Z=o(()=>e("p",null," If you have libraries added and you do not see them in your browser, check to see if the library and your user are in the same group. ",-1)),J={id:"groupTable"},$=o(()=>e("thead",null,[e("tr",null,[e("th",null,"Library in Group Type"),e("th",null,"Guest"),e("th",null,"User Out of Group"),e("th",null,"User In Group")])],-1)),ee=o(()=>e("tr",null,[e("td",null,"Not in a Group"),e("td",{class:"see"},"Can See"),e("td",{class:"see"},"Can See"),e("td",{class:"see"},"Can See")],-1)),te=o(()=>e("td",{class:"hidden"},"Hidden",-1)),se=o(()=>e("td",{class:"hidden"},"Hidden",-1)),oe=o(()=>e("td",{class:"see"},"Can See",-1)),le=o(()=>e("td",{class:"hidden"},"Hidden",-1)),ae=o(()=>e("td",{class:"see"},"Can See",-1)),ne=o(()=>e("td",{class:"hidden"},"Hidden",-1));function re(t,a,b,x,l,_){const p=u("AdminCreateUpdateDialog"),d=u("GroupChip"),n=u("RelationChips"),R=u("AdminDeleteRowDialog"),U=u("AdminTable");return G(),S("div",null,[e("header",Y,[s(p,{table:"Group","max-width":"20em",inputs:l.AdminGroupCreateUpdateInputs},null,8,["inputs"])]),s(U,{"item-title":"name",headers:l.headers,items:t.groups},{"no-data":i(()=>[q]),"item.exclude":i(({item:r})=>[s(d,{"group-type":"",item:_.groupType(r),"title-key":"name"},null,8,["item"])]),"item.userSet":i(({item:r})=>[s(n,{pks:r.userSet,objs:t.users,"title-key":"username"},null,8,["pks","objs"])]),"item.librarySet":i(({item:r})=>[s(n,{pks:r.librarySet,objs:t.libraries,"title-key":"path"},null,8,["pks","objs"])]),"item.actions":i(({item:r})=>[s(p,{table:"Group","old-row":r,"max-width":"20em",inputs:l.AdminGroupCreateUpdateInputs,size:"small",density:"compact"},null,8,["old-row","inputs"]),s(R,{table:"Group",pk:r.pk,name:r.name,size:"small",density:"compact"},null,8,["pk","name"])]),_:2},1032,["headers","items"]),e("div",F,[K,M,Q,X,Z,e("table",J,[$,e("tbody",null,[ee,e("tr",null,[e("td",null,[s(d,{item:{name:"Include",exclude:!1},"title-key":"name","group-type":""})]),te,se,oe]),e("tr",null,[e("td",null,[s(d,{item:{name:"Exclude",exclude:!0},"title-key":"name","group-type":""})]),le,ae,ne])])])])])}const fe=f(W,[["render",re],["__scopeId","data-v-0893032c"]]);export{fe as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as u,aD as _,q as h,Y as r,a0 as a,Z as s,$ as n,aO as e,aG as d,T as m,aQ as l,aR as f}from"./admin-drawer-panel-Dmnn03CQ.js";import{U as k,V as S}from"./unauthorized-DnNuMsHM.js";import"./main-C0t41OAE.js";import"./change-password-dialog-HW0jK0gr.js";import"./VTextField-DAe7a2au.js";import"./VDialog-BWXBR7iM.js";import"./VSelectionControl-FmTy_2ch.js";const i={400:"Bad Request",403:"Forbidden",404:"Page Not Found",500:"Server Error"};Object.freeze(i);const z={name:"HttpError",components:{Unauthorized:k},data(){return{}},computed:{..._(h,["isAuthorized"]),code:function(){return+this.$route.params.code},title:function(){let t=i[this.code];return t||(t="Unknown Error"),t}}},E=t=>(l("data-v-c7d80e26"),t=t(),f(),t),I={id:"httpCode"},U={id:"title"},v=E(()=>e("h2",null,"Codex Home",-1));function x(t,B,C,V,$,o){const c=s("router-link"),p=s("Unauthorized");return t.isAuthorized?(n(),r(S,{key:0,id:"httpError"},{default:a(()=>[e("h1",I,d(o.code),1),e("h1",U,d(o.title),1),m(c,{id:"link",to:{name:"home"}},{default:a(()=>[v]),_:1})]),_:1})):(n(),r(p,{key:1}))}const q=u(z,[["render",x],["__scopeId","data-v-c7d80e26"]]);export{q as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as u,aD as _,q as h,Y as r,a0 as a,Z as s,$ as n,aO as e,aG as d,T as m,aQ as l,aR as f}from"./admin-drawer-panel-Dmnn03CQ.js";import{U as k,V as S}from"./unauthorized-DnNuMsHM.js";import"./main-C0t41OAE.js";import"./change-password-dialog-HW0jK0gr.js";import"./VTextField-DAe7a2au.js";import"./VDialog-BWXBR7iM.js";import"./VSelectionControl-FmTy_2ch.js";const i={400:"Bad Request",403:"Forbidden",404:"Page Not Found",500:"Server Error"};Object.freeze(i);const z={name:"HttpError",components:{Unauthorized:k},data(){return{}},computed:{..._(h,["isAuthorized"]),code:function(){return+this.$route.params.code},title:function(){let t=i[this.code];return t||(t="Unknown Error"),t}}},E=t=>(l("data-v-c7d80e26"),t=t(),f(),t),I={id:"httpCode"},U={id:"title"},v=E(()=>e("h2",null,"Codex Home",-1));function x(t,B,C,V,$,o){const c=s("router-link"),p=s("Unauthorized");return t.isAuthorized?(n(),r(S,{key:0,id:"httpError"},{default:a(()=>[e("h1",I,d(o.code),1),e("h1",U,d(o.title),1),m(c,{id:"link",to:{name:"home"}},{default:a(()=>[v]),_:1})]),_:1})):(n(),r(p,{key:1}))}const q=u(z,[["render",x],["__scopeId","data-v-c7d80e26"]]);export{q as default};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{W as y,D as _,E as $,X as k,_ as C,$ as p,aE as g,T as r,a0 as s,aY as J,aq as O,bo as ee,Y as w,l as A,Z as m,aG as F,aI as P,V as j,cL as te,cM as oe,cN as re,aM as W,bE as N,b1 as le,aO as o,al as se,aQ as S,aR as R,ak as d,cO as ae,bs as ne,aP as U,aF as ie,bR as z}from"./admin-drawer-panel-Dmnn03CQ.js";import{A as de,a as ce,b as ue,c as G,R as me}from"./relation-chips-nc41xEEd.js";import{V as pe}from"./VCombobox-BTG361j0.js";import{V as E}from"./VCheckbox-D8eqoc1z.js";import{V as he}from"./VTextField-DAe7a2au.js";import{D as M}from"./datetime-column-BdnHcY-4.js";import{C as fe}from"./confirm-dialog-BJlNq6ku.js";import{u as be}from"./main-C0t41OAE.js";import{V as H}from"./VCheckboxBtn-BaQC30AI.js";import{a as T,b as x,c as D,V}from"./VExpansionPanels-W4VN2Ykh.js";import{V as _e}from"./VTable-D85UV0cA.js";import"./VDialog-BWXBR7iM.js";import"./VSelect-BpWdXMPq.js";import"./VSelectionControl-FmTy_2ch.js";import"./VSlideGroup-B9zEPv1H.js";import"./filter-BL9RMUvn.js";const ye={name:"AdminServerFolderPicker",emits:["change","menu"],data(){return{path:"",originalPath:"",showHidden:!1,menuOpen:!1}},computed:{...y(_,{folders:e=>e.folderPicker.folders,rootFolder:e=>e.folderPicker.rootFolder}),...y($,{formErrors:e=>e.form.errors}),appendOuterIcon(){return this.showHidden?this.mdiFolderHidden:this.mdiFolderOutline},showHiddenTooltipPrefix(){return this.showHidden?"Hide":"Show"}},watch:{menuOpen(e){e&&this.$emit("menu",e)}},created(){this.loadFolders().then(()=>(this.path=this.rootFolder,this.originalPath=this.rootFolder,!0)).catch(console.warn)},methods:{...k(_,["clearFolders","loadFolders"]),...k($,["clearErrors"]),change(e){const t=e?e.startsWith("/")||e.startsWith("\\")?e:[this.rootFolder,e].join("/"):this.rootFolder,a=this.menuOpen;this.clearErrors(),this.loadFolders(t,this.showHidden).then(()=>{this.menuOpen=a;let n="";return this.formErrors.length===0&&(this.path=n=this.rootFolder),this.$emit("change",n)}).catch(console.warn)},onBlur(){this.menuOpen=!1,this.change(this.path)},onClear(){this.clearFolders(this.orignalPath).then(()=>this.change(this.orginalPath)).catch(console.error)},onKeyDownEnter(){this.change(this.path)},onItemClick(e){this.change(e)}}},ve={id:"folderPicker"};function ge(e,t,a,n,l,u){return p(),g("div",ve,[r(pe,O({modelValue:l.path,"onUpdate:modelValue":t[0]||(t[0]=c=>l.path=c),menu:l.menuOpen,"onUpdate:menu":t[1]||(t[1]=c=>l.menuOpen=c)},e.$attrs,{"aria-label":"Library folder",clearable:"","error-messages":e.formErrors,"full-width":"","hide-details":"auto",items:e.folders,"menu-props":{maxHeight:"370px"},"validate-on":"blur",variant:"filled",onBlur:u.onBlur,"onClick:clear":u.onClear,onKeydown:ee(u.onKeyDownEnter,["enter"])}),{item:s(({item:c,props:f})=>[r(J,O(f,{title:c.title,value:c.value,onClick:v=>u.onItemClick(c.value)}),null,16,["title","value","onClick"])]),_:1},16,["modelValue","menu","error-messages","items","onBlur","onClick:clear","onKeydown"]),r(E,{modelValue:l.showHidden,"onUpdate:modelValue":t[2]||(t[2]=c=>l.showHidden=c),density:"compact",class:"showHidden","hide-details":"auto",label:"Show Hidden Folders"},null,8,["modelValue"])])}const we=C(ye,[["render",ge],["__scopeId","data-v-49f10642"]]),Ce={name:"TimeTextField",data(){return{FORMAT:"DDD HH:mm:SS",timeRules:[e=>/^\d{0,3}?[01]\d|2[0-3](?::[0-5]\d){2}$/.test(e)||`Invalid time format ${this.FORMAT}`]}}};function Ie(e,t,a,n,l,u){return p(),w(he,O({ref:"timeField",density:"compact",filled:"",hint:l.FORMAT,round:"",rules:l.timeRules},e.$attrs),null,16,["hint","rules"])}const Fe=C(Ce,[["render",Ie]]),K=["events","poll","pollEvery","groups"];Object.freeze(K);const L={path:"",events:!0,poll:!0,pollEvery:"01:00:00",groups:[]};Object.freeze(L);const B=(e,t)=>(e=e.replaceAll("\\","/"),t=t.replaceAll("\\","/"),e.endsWith("/")||(e+="/"),t.endsWith("/")||(t+="/"),t.startsWith(e)),ke={name:"AdminLibraryCreateUpdateInputs",components:{AdminRelationPicker:de,AdminServerFolderPicker:we,TimeTextField:Fe},props:{oldRow:{type:[Object,Boolean],default:!1}},emits:["change"],data(){return{rules:{path:[e=>!!e||"Path is required",e=>{if(!e)return!1;for(const t of this.paths){if(B(t,e))return"Path is a child of an existing library";if(B(e,t))return"Path is a parent of an existing library"}return!0}]},row:A(this.oldRow||L)}},computed:{...y(_,{groups:e=>e.groups,libraries:e=>e.libraries}),paths(){return this.nameSet(this.libraries,"path",this.oldRow,!1)}},watch:{row:{handler(e){this.$emit("change",e)},deep:!0},oldRow:{handler(e){this.row=A(e)},deep:!0}},methods:{...k(_,["nameSet"])},UPDATE_KEYS:K,EMPTY_ROW:L},Ae={key:1};function Pe(e,t,a,n,l,u){const c=m("AdminServerFolderPicker"),f=m("TimeTextField"),v=m("AdminRelationPicker");return p(),g(j,null,[a.oldRow?(p(),g("div",Ae,F(a.oldRow.path),1)):(p(),w(c,{key:0,rules:l.rules.path,autofocus:"",label:"Library Folder",onChange:t[0]||(t[0]=h=>l.row.path=h)},null,8,["rules"])),r(E,{modelValue:l.row.events,"onUpdate:modelValue":t[1]||(t[1]=h=>l.row.events=h),"hide-details":"auto",hint:"Update Codex instantly when the filesystem changes",label:"Watch Filesystem Events","persistent-hint":!0},null,8,["modelValue"]),r(E,{modelValue:l.row.poll,"onUpdate:modelValue":t[2]||(t[2]=h=>l.row.poll=h),label:"Poll Filesystem Periodically","hide-details":"auto",hint:"Periodically poll the library for changes","persistent-hint":!0},null,8,["modelValue"]),r(f,{modelValue:l.row.pollEvery,"onUpdate:modelValue":t[3]||(t[3]=h=>l.row.pollEvery=h),label:"Poll Every",disabled:!l.row.poll},null,8,["modelValue","disabled"]),l.row.coversOnly?P("",!0):(p(),w(v,{key:2,modelValue:l.row.groups,"onUpdate:modelValue":t[4]||(t[4]=h=>l.row.groups=h),label:"Groups",objs:e.groups,"group-type":"","title-key":"name"},null,8,["modelValue","objs"]))],64)}const Y=C(ke,[["render",Pe]]),Te={name:"AdminLibrariesTab",components:{AdminTable:ce,AdminDeleteRowDialog:ue,AdminCreateUpdateDialog:G,RelationChips:me,ConfirmDialog:fe,DateTimeColumn:M},props:{coversDir:{type:Boolean,default:!1}},data(){return{lastUpdate:{pk:0,field:void 0},mdiCircleOffOutline:te,mdiDatabaseClockOutline:oe,mdiDatabaseSyncOutline:re,mdiOpenInNew:W,AdminLibraryCreateUpdateInputs:N(Y)}},computed:{...y(_,{groups:e=>e.groups,items(e){const t=[];for(const a of e.libraries){const n=A(a);n.label=n.coversOnly?"custom group cover":"comic",t.push(n)}return t},headers(){const e=[{title:"Path",key:"path",align:"start"},{title:"Watch File Events",key:"events"},{title:"Poll Files Periodically",key:"poll"},{title:"Poll Every",key:"pollEvery"},{title:"Last Poll",key:"lastPoll"}];return this.coversDir||e.push({title:"Groups",key:"groups"}),e.push({title:"Actions",key:"actions",sortable:!1}),e}}),...y($,{formErrors:e=>{var t;return(t=e.form)==null?void 0:t.errors}}),...y(be,{twentyFourHourTime:e=>e.settings.twentyFourHourTime}),iconSize(){const e=this.$vuetify.display;return e.xlAndUp?"x-large":e.lgAndUp?"large":e.mdAndUp?"default":"small"}},mounted(){this.loadTables(["Group","Library","FailedImport"])},methods:{...k(_,["updateRow","clearErrors","librarianTask","loadTables"]),formatDateTime:e=>e?le(e,(void 0).twentyFourHourTime):"",changeCol(e,t,a){this.lastUpdate.pk=e,this.lastUpdate.field=t;const n={[t]:a};this.updateRow("Library",e,n)},getFormErrors(e,t){if(e===this.lastUpdate.pk&&t===this.lastUpdate.field)return this.formErrors},libraryLabel(e,t=!0){let a="";return e.coversOnly?(t&&(a+="Custom Group "),a+="Cover Dir"):a+="Library",a},poll(e){const t=this.libraryLabel(e);this.librarianTask("poll",`Poll ${t} ${e.pk}`,e.pk)},forcePoll(e){const t=this.libraryLabel(e);this.librarianTask("poll_force",`Force Poll ${t} ${e.pk}`,e.pk)},pollConfirmText(e){return`Poll ${this.libraryLabel(e,!1)}`},updateLabel(e){return e.coversOnly?"Cover Dir":""}}},xe=e=>(S("data-v-dc8b0e11"),e=e(),R(),e),De=xe(()=>o("td",{class:"adminNoData",colspan:"100%"}," Add a Library to start using Codex ",-1)),Ve={class:"actionButtonCell"};function $e(e,t,a,n,l,u){const c=m("DateTimeColumn"),f=m("RelationChips"),v=m("ConfirmDialog"),h=m("AdminCreateUpdateDialog"),Q=m("AdminDeleteRowDialog"),X=m("AdminTable");return p(),w(X,{headers:e.headers},{"no-data":s(()=>[De]),"item.events":s(({item:i})=>[r(H,{"model-value":i.events,disabled:""},null,8,["model-value"])]),"item.poll":s(({item:i})=>[r(H,{"model-value":i.poll,disabled:""},null,8,["model-value"])]),"item.pollEvery":s(({item:i})=>[o("span",{class:se({disabled:!i.poll})},F(i.pollEvery),3)]),"item.lastPoll":s(({item:i})=>[r(c,{dttm:i.lastPoll},null,8,["dttm"])]),"item.groups":s(({item:i})=>[r(f,{pks:i.groups,objs:e.groups,"group-type":"","title-key":"name"},null,8,["pks","objs"])]),"item.actions":s(({item:i})=>[o("span",Ve,[r(v,{icon:l.mdiDatabaseClockOutline,"title-text":`Poll for updated ${i.label}s`,"object-name":i.path,"confirm-text":u.pollConfirmText(i),size:u.iconSize,density:"compact",onConfirm:Z=>u.poll(i)},null,8,["icon","title-text","object-name","confirm-text","size","onConfirm"]),r(v,{icon:l.mdiDatabaseSyncOutline,"title-text":`Force update every ${i.label}`,"object-name":i.path,"confirm-text":"Force Update",size:u.iconSize,density:"compact",onConfirm:Z=>u.forcePoll(i)},null,8,["icon","title-text","object-name","size","onConfirm"]),r(h,{table:"Library","old-row":i,inputs:l.AdminLibraryCreateUpdateInputs,label:u.updateLabel(i),"max-width":"22em",size:u.iconSize,density:"compact"},null,8,["old-row","inputs","label","size"]),i.coversOnly?P("",!0):(p(),w(Q,{key:0,table:"Library",pk:i.pk,name:i.path,size:u.iconSize,density:"compact"},null,8,["pk","name","size"]))])]),_:2},1032,["headers"])}const q=C(Te,[["render",$e],["__scopeId","data-v-dc8b0e11"]]),Oe={name:"AdminCustomCoversPanel",components:{AdminLibraryTable:q},computed:{...y(_,{coverDirItems(e){const t=[];for(const a of e.libraries)if(a.coversOnly){const n=A(a);n.label=n.coversOnly?"custom group cover":"comic",t.push(n)}return t}})}},b=e=>(S("data-v-589557a2"),e=e(),R(),e),Ee=b(()=>o("h4",{id:"coverDirHeader"},"Custom Covers",-1)),Le=b(()=>o("h4",null,"Custom Covers Help",-1)),Se=b(()=>o("p",null,"Custom covers may be added to the browser in two locations:",-1)),Re=b(()=>o("h4",null,"Folders",-1)),Ue=b(()=>o("p",null,[d(" A library folder with a file named "),o("code",null,".codex-cover.jpg"),d(" will show a custom cover for that folder in Folder view. The addition and removal of these covers by watching filesystem events and polling is handled by the library that folder belongs to. ")],-1)),ze=b(()=>o("h4",null,"Custom Covers Dir",-1)),He=b(()=>o("p",null,[d(" The Codex config directory has a special folder named "),o("code",null,"custom-covers"),d(" under which are subdirectories for each of the browser groups that may adopt custom covers. Images in these subdirectories that match the name of the browser group will be used as custom covers. For instance: "),o("code",null,".../custom-covers/publishers/American Comics Group.webp"),d(' would be used as the cover for the publisher "American Comics Group". '),o("code",null,".../custom-covers/series/arrow.png"),d(' would be used as the cover for every series named "Arrow", for '),o("em",null,"every"),d(" publisher. Similar to a comic library, the "),o("code",null,"custom-covers"),d(" directory may be watched and polled for changes. By default it is neither watched nor polled and must be enabled by the admin. ")],-1)),Be=b(()=>o("h4",null,"Image Formats & Size",-1)),je=b(()=>o("p",null,[d(" Custom covers are detected only for files with the extensions: "),o("code",null,".bmp, .gif, .jpeg, .jpg, .png, .webp"),d(". ")],-1)),We=b(()=>o("p",null," Browser covers are transformed from their sources to 165px x 254px thumbnails. Custom covers will transform most aesthetically the closer to that ratio they are. ",-1)),Ne=b(()=>o("h4",null,"Priority",-1)),Ge=b(()=>o("p",null," Custom covers supersede covers set by the user's individual browser settings. ",-1));function Me(e,t,a,n,l,u){const c=m("AdminLibraryTable");return p(),w(D,null,{default:s(()=>[r(V,null,{default:s(()=>[r(T,null,{default:s(()=>[Ee]),_:1}),r(x,null,{default:s(()=>[r(c,{items:e.coverDirItems,"disable-sort":"","covers-dir":!0},null,8,["items"]),r(D,null,{default:s(()=>[r(V,{id:"customCoversHelp"},{default:s(()=>[r(T,null,{default:s(()=>[Le]),_:1}),r(x,null,{default:s(()=>[Se,Re,Ue,ze,He,Be,je,We,Ne,Ge]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}const Ke=C(Oe,[["render",Me],["__scopeId","data-v-589557a2"]]),Ye={name:"AdminFailedImportsPanel",components:{DateTimeColumn:M},data(){return{mdiBookAlert:ae,mdiOpenInNew:W}},computed:{...y(_,{failedImports:e=>e.failedImports,showFailedImports:e=>e.failedImports&&e.failedImports.length>0}),...ne(_,["unseenFailedImports"])}},I=e=>(S("data-v-a5ce4ee5"),e=e(),R(),e),qe={key:0},Qe=I(()=>o("thead",null,[o("tr",null,[o("th",null,"Path"),o("th",null,"Created")])],-1)),Xe={class:"dateCol"},Ze=I(()=>o("h4",null,"Failed Imports Help",-1)),Je=I(()=>o("p",null," These are Comic archives that have failed to import. This list is updated every time the library updates. You should probably review these files and fix or remove them. ",-1)),et=I(()=>o("h4",null,"Fixing comics",-1)),tt=I(()=>o("p",null,[d(" Try using the zip fixer to fix comics: "),o("code",{class:"cli"},[d(" cp problem-comic.cbz /somewhere/safe/problem-comic.cbz.backup"),o("br"),d(" zip -F problem-comic.cbz --out fixed.zip"),o("br"),d(" mv fixed.zip problem-comic.cbz ")]),d(" You may also try "),o("code",null,"zip -FF"),d(" to fix comics which uses a different (not necissarily better) algorithm. If you fix some imports, and Codex does not immediately detect the change, poll the library which contains the fixed comics. ")],-1)),ot=I(()=>o("h4",null,"Reporting Issues",-1)),rt={href:"https://github.com/ajslater/codex/issues/",target:"_blank"},lt=I(()=>o("code",null,"config/logs/codex.log",-1));function st(e,t,a,n,l,u){const c=m("DateTimeColumn");return e.showFailedImports?(p(),g("div",qe,[r(D,null,{default:s(()=>[r(V,{id:"failedImportsPanel",onClick:t[0]||(t[0]=f=>e.unseenFailedImports=!1)},{default:s(()=>[r(T,null,{default:s(()=>[o("h4",null,"Failed Imports: "+F(e.failedImports.length),1),e.unseenFailedImports?(p(),w(U,{key:0,id:"failedImportsIcon",title:"New Failed Imports"},{default:s(()=>[d(F(l.mdiBookAlert),1)]),_:1})):P("",!0)]),_:1}),r(x,null,{default:s(()=>[r(_e,{class:"highlight-table"},{default:s(()=>[Qe,o("tbody",null,[(p(!0),g(j,null,ie(e.failedImports,f=>(p(),g("tr",{key:`fi:${f.path}`},[o("td",null,F(f.path),1),o("td",Xe,[r(c,{dttm:f.createdAt},null,8,["dttm"])])]))),128))])]),_:1}),r(D,null,{default:s(()=>[r(V,{id:"failedImportsHelp"},{default:s(()=>[r(T,null,{default:s(()=>[Ze]),_:1}),r(x,null,{default:s(()=>[Je,et,tt,ot,o("p",null,[d(" If the comic looks good to you, but still shows up as a failed import, it might be Codex's fault for not importing it correctly. Please file an "),o("a",rt,[d("Issue Report"),r(U,{size:"small"},{default:s(()=>[d(F(l.mdiOpenInNew),1)]),_:1})]),d(" and include the stack trace from the logs at "),lt,d(" if you can. ")])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})])):P("",!0)}const at=C(Ye,[["render",st],["__scopeId","data-v-a5ce4ee5"]]),nt={name:"AdminLibrariesTab",components:{AdminFailedImportsPanel:at,AdminLibraryTable:q,AdminCreateUpdateDialog:G,AdminCustomCoversPanel:Ke},data(){return{AdminLibraryCreateUpdateInputs:N(Y)}},computed:{...y(_,{libraryItems(e){const t=[];if(!e.libraries)return t;for(const a of e.libraries)if(!a.coversOnly){const n=A(a);n.label=n.coversOnly?"custom group cover":"comic",t.push(n)}return t}})},mounted(){this.loadTables(["Group","Library","FailedImport"])},methods:{...k(_,["loadTables"])}},it={class:"tabHeader"};function dt(e,t,a,n,l,u){const c=m("AdminCreateUpdateDialog"),f=m("AdminLibraryTable"),v=m("AdminFailedImportsPanel"),h=m("AdminCustomCoversPanel");return p(),g("div",null,[o("header",it,[r(c,{table:"Library",inputs:l.AdminLibraryCreateUpdateInputs},null,8,["inputs"])]),r(f,{items:e.libraryItems,"sort-by":[{key:"path",order:"asc"}]},null,8,["items"]),r(z,null,{default:s(()=>[r(v,{id:"failedImports"})]),_:1}),r(z,null,{default:s(()=>[r(h,{id:"customCovers"})]),_:1})])}const At=C(nt,[["render",dt],["__scopeId","data-v-7582b1ea"]]);export{At as default};
|
|
Binary file
|
|
Binary file
|