codex 1.6.0a6__py3-none-any.whl → 1.6.0a8__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/exceptions.py +1 -0
- codex/integrity.py +4 -4
- codex/librarian/importer/{aggregate_metadata.py → aggregate.py} +56 -86
- codex/librarian/importer/cache.py +180 -0
- codex/librarian/importer/const.py +15 -6
- codex/librarian/importer/create_comics.py +102 -17
- codex/librarian/importer/create_covers.py +98 -0
- codex/librarian/importer/create_fks.py +73 -170
- codex/librarian/importer/deleted.py +59 -46
- codex/librarian/importer/{clean_metadata.py → extract.py} +33 -4
- codex/librarian/importer/failed_imports.py +41 -62
- codex/librarian/importer/importer.py +96 -0
- codex/librarian/importer/importerd.py +71 -395
- codex/librarian/importer/init.py +265 -0
- codex/librarian/importer/link_comics.py +26 -81
- codex/librarian/importer/link_covers.py +73 -0
- codex/librarian/importer/moved.py +72 -96
- codex/librarian/importer/query_covers.py +52 -0
- codex/librarian/importer/query_fks.py +128 -172
- codex/librarian/importer/status.py +2 -39
- codex/librarian/importer/tasks.py +22 -13
- codex/librarian/janitor/cleanup.py +2 -2
- codex/librarian/janitor/janitor.py +11 -1
- codex/librarian/librariand.py +8 -2
- codex/migrations/0027_import_order_and_covers.py +345 -0
- codex/models/comic.py +1 -2
- codex/models/groups.py +3 -2
- codex/models/paths.py +0 -1
- codex/permissions.py +1 -1
- codex/search/query.py +25 -2
- codex/search/writing.py +1 -1
- codex/serializers/admin.py +1 -2
- codex/serializers/browser/filters.py +8 -101
- codex/serializers/browser/mixins.py +2 -3
- codex/serializers/browser/page.py +2 -2
- codex/serializers/browser/settings.py +4 -3
- codex/serializers/choices.py +10 -1
- codex/serializers/fields.py +123 -0
- codex/serializers/mtime.py +25 -0
- codex/serializers/opds/v2.py +7 -11
- codex/serializers/opds/v2_unused.py +5 -3
- codex/serializers/reader.py +5 -2
- codex/serializers/route.py +7 -3
- codex/settings/settings.py +2 -2
- codex/static_root/assets/VCheckbox-DI-DgMb4.8eeb1bd3e18b.js +1 -0
- codex/static_root/assets/VCheckbox-DI-DgMb4.8eeb1bd3e18b.js.br +0 -0
- codex/static_root/assets/VCheckbox-DI-DgMb4.8eeb1bd3e18b.js.gz +0 -0
- codex/static_root/assets/VCheckbox-DI-DgMb4.js +1 -0
- codex/static_root/assets/VCheckbox-DI-DgMb4.js.br +0 -0
- codex/static_root/assets/VCheckbox-DI-DgMb4.js.gz +0 -0
- codex/static_root/assets/{VCheckboxBtn-m4IbdjEe.f0c4a814ded8.js → VCheckboxBtn-B8Z4NA-t.3d8921f98ad9.js} +1 -1
- codex/static_root/assets/VCheckboxBtn-B8Z4NA-t.3d8921f98ad9.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-B8Z4NA-t.3d8921f98ad9.js.gz +0 -0
- codex/static_root/assets/{VCheckboxBtn-m4IbdjEe.js → VCheckboxBtn-B8Z4NA-t.js} +1 -1
- codex/static_root/assets/VCheckboxBtn-B8Z4NA-t.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-B8Z4NA-t.js.gz +0 -0
- codex/static_root/assets/VCombobox-D1_0lCri.6ef85a29c2dc.js +1 -0
- codex/static_root/assets/VCombobox-D1_0lCri.6ef85a29c2dc.js.br +0 -0
- codex/static_root/assets/VCombobox-D1_0lCri.6ef85a29c2dc.js.gz +0 -0
- codex/static_root/assets/VCombobox-D1_0lCri.js +1 -0
- codex/static_root/assets/VCombobox-D1_0lCri.js.br +0 -0
- codex/static_root/assets/VCombobox-D1_0lCri.js.gz +0 -0
- codex/static_root/assets/VDialog-opmV0YZz.d77216e97599.js +1 -0
- codex/static_root/assets/VDialog-opmV0YZz.d77216e97599.js.br +0 -0
- codex/static_root/assets/VDialog-opmV0YZz.d77216e97599.js.gz +0 -0
- codex/static_root/assets/VDialog-opmV0YZz.js +1 -0
- codex/static_root/assets/VDialog-opmV0YZz.js.br +0 -0
- codex/static_root/assets/VDialog-opmV0YZz.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-DX2dhUf5.ecc2ebfa62ec.js +1 -0
- codex/static_root/assets/VExpansionPanels-DX2dhUf5.ecc2ebfa62ec.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-DX2dhUf5.ecc2ebfa62ec.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-DX2dhUf5.js +1 -0
- codex/static_root/assets/VExpansionPanels-DX2dhUf5.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-DX2dhUf5.js.gz +0 -0
- codex/static_root/assets/VRadioGroup-BGa6_q5a.d1a3ad7266bd.js +1 -0
- codex/static_root/assets/VRadioGroup-BGa6_q5a.d1a3ad7266bd.js.br +0 -0
- codex/static_root/assets/VRadioGroup-BGa6_q5a.d1a3ad7266bd.js.gz +0 -0
- codex/static_root/assets/VRadioGroup-BGa6_q5a.js +1 -0
- codex/static_root/assets/VRadioGroup-BGa6_q5a.js.br +0 -0
- codex/static_root/assets/VRadioGroup-BGa6_q5a.js.gz +0 -0
- codex/static_root/assets/VSelect-ARDhJiQK.372c098fb475.css +1 -0
- codex/static_root/assets/VSelect-ARDhJiQK.372c098fb475.css.br +0 -0
- codex/static_root/assets/VSelect-ARDhJiQK.372c098fb475.css.gz +0 -0
- codex/static_root/assets/VSelect-ARDhJiQK.css +1 -0
- codex/static_root/assets/VSelect-ARDhJiQK.css.br +0 -0
- codex/static_root/assets/VSelect-ARDhJiQK.css.gz +0 -0
- codex/static_root/assets/VSelect-sIYW_-ud.7d40da0ec3ff.js +1 -0
- codex/static_root/assets/VSelect-sIYW_-ud.7d40da0ec3ff.js.br +0 -0
- codex/static_root/assets/VSelect-sIYW_-ud.7d40da0ec3ff.js.gz +0 -0
- codex/static_root/assets/VSelect-sIYW_-ud.js +1 -0
- codex/static_root/assets/VSelect-sIYW_-ud.js.br +0 -0
- codex/static_root/assets/VSelect-sIYW_-ud.js.gz +0 -0
- codex/static_root/assets/VSelectionControl-C8DP9rgp.ef80e8e3dfc1.js +1 -0
- codex/static_root/assets/VSelectionControl-C8DP9rgp.ef80e8e3dfc1.js.br +0 -0
- codex/static_root/assets/VSelectionControl-C8DP9rgp.ef80e8e3dfc1.js.gz +0 -0
- codex/static_root/assets/VSelectionControl-C8DP9rgp.js +1 -0
- codex/static_root/assets/VSelectionControl-C8DP9rgp.js.br +0 -0
- codex/static_root/assets/VSelectionControl-C8DP9rgp.js.gz +0 -0
- codex/static_root/assets/VSlideGroup-BRYhkLH8.3534ec94b2f1.js +1 -0
- codex/static_root/assets/VSlideGroup-BRYhkLH8.3534ec94b2f1.js.br +0 -0
- codex/static_root/assets/VSlideGroup-BRYhkLH8.3534ec94b2f1.js.gz +0 -0
- codex/static_root/assets/VSlideGroup-BRYhkLH8.js +1 -0
- codex/static_root/assets/VSlideGroup-BRYhkLH8.js.br +0 -0
- codex/static_root/assets/VSlideGroup-BRYhkLH8.js.gz +0 -0
- codex/static_root/assets/{VTable-C0gAriFq.fa6e4b60d4ef.js → VTable-D1esKtlw.52165930e3b9.js} +1 -1
- codex/static_root/assets/VTable-D1esKtlw.52165930e3b9.js.br +0 -0
- codex/static_root/assets/VTable-D1esKtlw.52165930e3b9.js.gz +0 -0
- codex/static_root/assets/{VTable-C0gAriFq.js → VTable-D1esKtlw.js} +1 -1
- codex/static_root/assets/VTable-D1esKtlw.js.br +0 -0
- codex/static_root/assets/VTable-D1esKtlw.js.gz +0 -0
- codex/static_root/assets/VTextField-BnGscKcY.54032adf3a4b.js +1 -0
- codex/static_root/assets/VTextField-BnGscKcY.54032adf3a4b.js.br +0 -0
- codex/static_root/assets/VTextField-BnGscKcY.54032adf3a4b.js.gz +0 -0
- codex/static_root/assets/VTextField-BnGscKcY.js +1 -0
- codex/static_root/assets/VTextField-BnGscKcY.js.br +0 -0
- codex/static_root/assets/VTextField-BnGscKcY.js.gz +0 -0
- codex/static_root/assets/{VWindowItem-CFhKCj49.b2458002a937.js → VWindowItem-B0KokcAk.ea94224aecb9.js} +1 -1
- codex/static_root/assets/VWindowItem-B0KokcAk.ea94224aecb9.js.br +0 -0
- codex/static_root/assets/VWindowItem-B0KokcAk.ea94224aecb9.js.gz +0 -0
- codex/static_root/assets/{VWindowItem-CFhKCj49.js → VWindowItem-B0KokcAk.js} +1 -1
- codex/static_root/assets/VWindowItem-B0KokcAk.js.br +0 -0
- codex/static_root/assets/VWindowItem-B0KokcAk.js.gz +0 -0
- codex/static_root/assets/admin-Y0bL21AB.42d4f0d68163.js +1 -0
- codex/static_root/assets/admin-Y0bL21AB.42d4f0d68163.js.br +0 -0
- codex/static_root/assets/admin-Y0bL21AB.42d4f0d68163.js.gz +0 -0
- codex/static_root/assets/admin-Y0bL21AB.js +1 -0
- codex/static_root/assets/admin-Y0bL21AB.js.br +0 -0
- codex/static_root/assets/admin-Y0bL21AB.js.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-DNngWUEM.4e992e3fe86e.js +30 -0
- codex/static_root/assets/admin-drawer-panel-DNngWUEM.4e992e3fe86e.js.br +0 -0
- codex/static_root/assets/admin-drawer-panel-DNngWUEM.4e992e3fe86e.js.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-DNngWUEM.js +30 -0
- codex/static_root/assets/admin-drawer-panel-DNngWUEM.js.br +0 -0
- codex/static_root/assets/admin-drawer-panel-DNngWUEM.js.gz +0 -0
- codex/static_root/assets/{admin-drawer-panel-BHdNPwzF.bd2c1d6148bb.css → admin-drawer-panel-o87BwD38.ce39427c8201.css} +1 -1
- codex/static_root/assets/admin-drawer-panel-o87BwD38.ce39427c8201.css.br +0 -0
- codex/static_root/assets/{admin-drawer-panel-BHdNPwzF.bd2c1d6148bb.css.gz → admin-drawer-panel-o87BwD38.ce39427c8201.css.gz} +0 -0
- codex/static_root/assets/{admin-drawer-panel-BHdNPwzF.css → admin-drawer-panel-o87BwD38.css} +1 -1
- codex/static_root/assets/admin-drawer-panel-o87BwD38.css.br +0 -0
- codex/static_root/assets/{admin-drawer-panel-BHdNPwzF.css.gz → admin-drawer-panel-o87BwD38.css.gz} +0 -0
- codex/static_root/assets/browser-CMAtBCLx.17a277ce43a9.css +1 -0
- codex/static_root/assets/browser-CMAtBCLx.17a277ce43a9.css.br +0 -0
- codex/static_root/assets/browser-CMAtBCLx.17a277ce43a9.css.gz +0 -0
- codex/static_root/assets/browser-CMAtBCLx.css +1 -0
- codex/static_root/assets/browser-CMAtBCLx.css.br +0 -0
- codex/static_root/assets/browser-CMAtBCLx.css.gz +0 -0
- codex/static_root/assets/browser-DoJk8uvb.2c97a3858932.js +1 -0
- codex/static_root/assets/browser-DoJk8uvb.2c97a3858932.js.br +0 -0
- codex/static_root/assets/browser-DoJk8uvb.2c97a3858932.js.gz +0 -0
- codex/static_root/assets/browser-DoJk8uvb.js +1 -0
- codex/static_root/assets/browser-DoJk8uvb.js.br +0 -0
- codex/static_root/assets/browser-DoJk8uvb.js.gz +0 -0
- codex/static_root/assets/{change-password-dialog-JYM9aAR9.js → change-password-dialog-CH4xbjJa.b749aa6ea07e.js} +1 -1
- codex/static_root/assets/change-password-dialog-CH4xbjJa.b749aa6ea07e.js.br +0 -0
- codex/static_root/assets/change-password-dialog-CH4xbjJa.b749aa6ea07e.js.gz +0 -0
- codex/static_root/assets/{change-password-dialog-JYM9aAR9.f71d378f4fa6.js → change-password-dialog-CH4xbjJa.js} +1 -1
- codex/static_root/assets/change-password-dialog-CH4xbjJa.js.br +0 -0
- codex/static_root/assets/change-password-dialog-CH4xbjJa.js.gz +0 -0
- codex/static_root/assets/{confirm-dialog-ZAZ6P1Rc.515858dd21e8.js → confirm-dialog-DkU0twE6.a20006aa5ba6.js} +1 -1
- codex/static_root/assets/confirm-dialog-DkU0twE6.a20006aa5ba6.js.br +0 -0
- codex/static_root/assets/confirm-dialog-DkU0twE6.a20006aa5ba6.js.gz +0 -0
- codex/static_root/assets/{confirm-dialog-ZAZ6P1Rc.js → confirm-dialog-DkU0twE6.js} +1 -1
- codex/static_root/assets/confirm-dialog-DkU0twE6.js.br +0 -0
- codex/static_root/assets/confirm-dialog-DkU0twE6.js.gz +0 -0
- codex/static_root/assets/copy-to-clipboard-DoUvDJVx.bec27f144aca.js +1 -0
- codex/static_root/assets/copy-to-clipboard-DoUvDJVx.bec27f144aca.js.br +0 -0
- codex/static_root/assets/copy-to-clipboard-DoUvDJVx.js +1 -0
- codex/static_root/assets/copy-to-clipboard-DoUvDJVx.js.br +0 -0
- codex/static_root/assets/datetime-column-BfW_j_3Q.6a614321a435.js +1 -0
- codex/static_root/assets/datetime-column-BfW_j_3Q.6a614321a435.js.br +0 -0
- codex/static_root/assets/datetime-column-BfW_j_3Q.6a614321a435.js.gz +0 -0
- codex/static_root/assets/datetime-column-BfW_j_3Q.js +1 -0
- codex/static_root/assets/datetime-column-BfW_j_3Q.js.br +0 -0
- codex/static_root/assets/datetime-column-BfW_j_3Q.js.gz +0 -0
- codex/static_root/assets/datetime-column-DeCthByU.1f3bf499e063.css +1 -0
- codex/static_root/assets/datetime-column-DeCthByU.css +1 -0
- codex/static_root/assets/filter-DjxN78cK.35673f6e49b1.js +1 -0
- codex/static_root/assets/filter-DjxN78cK.35673f6e49b1.js.br +0 -0
- codex/static_root/assets/filter-DjxN78cK.35673f6e49b1.js.gz +0 -0
- codex/static_root/assets/filter-DjxN78cK.js +1 -0
- codex/static_root/assets/filter-DjxN78cK.js.br +0 -0
- codex/static_root/assets/filter-DjxN78cK.js.gz +0 -0
- codex/static_root/assets/{flag-tab-Ci_XcDT0.a5ea640a08d6.js → flag-tab-D4ZNSbMR.e763a9937701.js} +1 -1
- codex/static_root/assets/flag-tab-D4ZNSbMR.e763a9937701.js.br +0 -0
- codex/static_root/assets/flag-tab-D4ZNSbMR.e763a9937701.js.gz +0 -0
- codex/static_root/assets/{flag-tab-Ci_XcDT0.js → flag-tab-D4ZNSbMR.js} +1 -1
- codex/static_root/assets/flag-tab-D4ZNSbMR.js.br +0 -0
- codex/static_root/assets/flag-tab-D4ZNSbMR.js.gz +0 -0
- codex/static_root/assets/{group-tab-DFma2R-E.879c37b15bbd.js → group-tab-DucpNoBs.a6f37ae940c0.js} +1 -1
- codex/static_root/assets/group-tab-DucpNoBs.a6f37ae940c0.js.br +0 -0
- codex/static_root/assets/group-tab-DucpNoBs.a6f37ae940c0.js.gz +0 -0
- codex/static_root/assets/{group-tab-DFma2R-E.js → group-tab-DucpNoBs.js} +1 -1
- codex/static_root/assets/group-tab-DucpNoBs.js.br +0 -0
- codex/static_root/assets/group-tab-DucpNoBs.js.gz +0 -0
- codex/static_root/assets/http-error-Cj0hTq-c.062a88ddd4dc.js +1 -0
- codex/static_root/assets/http-error-Cj0hTq-c.062a88ddd4dc.js.br +0 -0
- codex/static_root/assets/http-error-Cj0hTq-c.062a88ddd4dc.js.gz +0 -0
- codex/static_root/assets/http-error-Cj0hTq-c.js +1 -0
- codex/static_root/assets/http-error-Cj0hTq-c.js.br +0 -0
- codex/static_root/assets/http-error-Cj0hTq-c.js.gz +0 -0
- codex/static_root/assets/{library-tab-V8DUGoHN.js → library-tab-CzksdS3Q.566acdb45dec.js} +1 -1
- codex/static_root/assets/library-tab-CzksdS3Q.566acdb45dec.js.br +0 -0
- codex/static_root/assets/library-tab-CzksdS3Q.566acdb45dec.js.gz +0 -0
- codex/static_root/assets/{library-tab-V8DUGoHN.809c548ff347.js → library-tab-CzksdS3Q.js} +1 -1
- codex/static_root/assets/library-tab-CzksdS3Q.js.br +0 -0
- codex/static_root/assets/library-tab-CzksdS3Q.js.gz +0 -0
- codex/static_root/assets/main-DX-k2724.f73d08e9ad64.js +32 -0
- codex/static_root/assets/main-DX-k2724.f73d08e9ad64.js.br +0 -0
- codex/static_root/assets/main-DX-k2724.f73d08e9ad64.js.gz +0 -0
- codex/static_root/assets/main-DX-k2724.js +32 -0
- codex/static_root/assets/main-DX-k2724.js.br +0 -0
- codex/static_root/assets/main-DX-k2724.js.gz +0 -0
- codex/static_root/assets/{main-sK7HC5h4.css → main-Ztp855PW.css} +1 -1
- codex/static_root/assets/main-Ztp855PW.css.br +0 -0
- codex/static_root/assets/{main-sK7HC5h4.css.gz → main-Ztp855PW.css.gz} +0 -0
- codex/static_root/assets/{main-sK7HC5h4.6f04ddfc5f1a.css → main-Ztp855PW.d46d718fac45.css} +1 -1
- codex/static_root/assets/main-Ztp855PW.d46d718fac45.css.br +0 -0
- codex/static_root/assets/{main-sK7HC5h4.6f04ddfc5f1a.css.gz → main-Ztp855PW.d46d718fac45.css.gz} +0 -0
- codex/static_root/assets/pagination-toolbar-CQcR0a3T.7a2d33ed8c39.js +1 -0
- codex/static_root/assets/pagination-toolbar-CQcR0a3T.7a2d33ed8c39.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-CQcR0a3T.7a2d33ed8c39.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-CQcR0a3T.js +1 -0
- codex/static_root/assets/pagination-toolbar-CQcR0a3T.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-CQcR0a3T.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-DWdp_kmz.css +1 -0
- codex/static_root/assets/pagination-toolbar-DWdp_kmz.css.br +0 -0
- codex/static_root/assets/pagination-toolbar-DWdp_kmz.css.gz +0 -0
- codex/static_root/assets/pagination-toolbar-DWdp_kmz.f98f47e87612.css +1 -0
- codex/static_root/assets/pagination-toolbar-DWdp_kmz.f98f47e87612.css.br +0 -0
- codex/static_root/assets/pagination-toolbar-DWdp_kmz.f98f47e87612.css.gz +0 -0
- codex/static_root/assets/pdf-doc-GkMk4o5L.ef24c859a7a4.js +305 -0
- codex/static_root/assets/pdf-doc-GkMk4o5L.ef24c859a7a4.js.br +0 -0
- codex/static_root/assets/pdf-doc-GkMk4o5L.ef24c859a7a4.js.gz +0 -0
- codex/static_root/assets/pdf-doc-GkMk4o5L.js +305 -0
- codex/static_root/assets/pdf-doc-GkMk4o5L.js.br +0 -0
- codex/static_root/assets/pdf-doc-GkMk4o5L.js.gz +0 -0
- codex/static_root/assets/reader-CCCfpM3x.1553e45bd775.css +1 -0
- codex/static_root/assets/reader-CCCfpM3x.1553e45bd775.css.br +0 -0
- codex/static_root/assets/reader-CCCfpM3x.1553e45bd775.css.gz +0 -0
- codex/static_root/assets/reader-CCCfpM3x.css +1 -0
- codex/static_root/assets/reader-CCCfpM3x.css.br +0 -0
- codex/static_root/assets/reader-CCCfpM3x.css.gz +0 -0
- codex/static_root/assets/reader-Cl6mmQB_.7b9e7591954f.js +2 -0
- codex/static_root/assets/reader-Cl6mmQB_.7b9e7591954f.js.br +0 -0
- codex/static_root/assets/reader-Cl6mmQB_.7b9e7591954f.js.gz +0 -0
- codex/static_root/assets/reader-Cl6mmQB_.js +2 -0
- codex/static_root/assets/reader-Cl6mmQB_.js.br +0 -0
- codex/static_root/assets/reader-Cl6mmQB_.js.gz +0 -0
- codex/static_root/assets/relation-chips-CZ8VvR4y.d4232f3c2518.js +1 -0
- codex/static_root/assets/relation-chips-CZ8VvR4y.d4232f3c2518.js.br +0 -0
- codex/static_root/assets/relation-chips-CZ8VvR4y.d4232f3c2518.js.gz +0 -0
- codex/static_root/assets/relation-chips-CZ8VvR4y.js +1 -0
- codex/static_root/assets/relation-chips-CZ8VvR4y.js.br +0 -0
- codex/static_root/assets/relation-chips-CZ8VvR4y.js.gz +0 -0
- codex/static_root/assets/settings-drawer-DyS0A2pN.17a98928589f.js +2 -0
- codex/static_root/assets/settings-drawer-DyS0A2pN.17a98928589f.js.br +0 -0
- codex/static_root/assets/settings-drawer-DyS0A2pN.17a98928589f.js.gz +0 -0
- codex/static_root/assets/settings-drawer-DyS0A2pN.js +2 -0
- codex/static_root/assets/settings-drawer-DyS0A2pN.js.br +0 -0
- codex/static_root/assets/settings-drawer-DyS0A2pN.js.gz +0 -0
- codex/static_root/assets/stats-tab-R3Ekobfm.70fa09a67518.js +1 -0
- codex/static_root/assets/stats-tab-R3Ekobfm.70fa09a67518.js.br +0 -0
- codex/static_root/assets/stats-tab-R3Ekobfm.70fa09a67518.js.gz +0 -0
- codex/static_root/assets/stats-tab-R3Ekobfm.js +1 -0
- codex/static_root/assets/stats-tab-R3Ekobfm.js.br +0 -0
- codex/static_root/assets/stats-tab-R3Ekobfm.js.gz +0 -0
- codex/static_root/assets/task-tab-BhLDK_7Q.28ff51b3ed01.js +1 -0
- codex/static_root/assets/task-tab-BhLDK_7Q.28ff51b3ed01.js.br +0 -0
- codex/static_root/assets/task-tab-BhLDK_7Q.28ff51b3ed01.js.gz +0 -0
- codex/static_root/assets/task-tab-BhLDK_7Q.js +1 -0
- codex/static_root/assets/task-tab-BhLDK_7Q.js.br +0 -0
- codex/static_root/assets/task-tab-BhLDK_7Q.js.gz +0 -0
- codex/static_root/assets/to-case-BR2frjFx.87de5d7a0503.js +1 -0
- codex/static_root/assets/to-case-BR2frjFx.js +1 -0
- codex/static_root/assets/unauthorized-BbXjAe5l.d48912d34a68.js +1 -0
- codex/static_root/assets/unauthorized-BbXjAe5l.d48912d34a68.js.br +0 -0
- codex/static_root/assets/unauthorized-BbXjAe5l.d48912d34a68.js.gz +0 -0
- codex/static_root/assets/unauthorized-BbXjAe5l.js +1 -0
- codex/static_root/assets/unauthorized-BbXjAe5l.js.br +0 -0
- codex/static_root/assets/unauthorized-BbXjAe5l.js.gz +0 -0
- codex/static_root/assets/user-tab-DxITIl2d.d79d7f062930.js +1 -0
- codex/static_root/assets/user-tab-DxITIl2d.d79d7f062930.js.br +0 -0
- codex/static_root/assets/user-tab-DxITIl2d.d79d7f062930.js.gz +0 -0
- codex/static_root/assets/user-tab-DxITIl2d.js +1 -0
- codex/static_root/assets/user-tab-DxITIl2d.js.br +0 -0
- codex/static_root/assets/user-tab-DxITIl2d.js.gz +0 -0
- codex/static_root/js/choices-admin.d790df01c20a.json +1 -0
- codex/static_root/js/choices-admin.d790df01c20a.json.br +0 -0
- codex/static_root/js/choices-admin.d790df01c20a.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/js/choices.a0aaaa6c7ef7.json +1 -0
- codex/static_root/js/choices.a0aaaa6c7ef7.json.br +0 -0
- codex/static_root/js/choices.a0aaaa6c7ef7.json.gz +0 -0
- codex/static_root/js/choices.json +1 -1
- codex/static_root/js/choices.json.br +0 -0
- codex/static_root/js/choices.json.gz +0 -0
- codex/static_root/manifest.16d52597ef50.json +629 -0
- codex/static_root/manifest.16d52597ef50.json.br +0 -0
- codex/static_root/manifest.16d52597ef50.json.gz +0 -0
- codex/static_root/manifest.json +275 -288
- codex/static_root/manifest.json.br +0 -0
- codex/static_root/manifest.json.gz +0 -0
- codex/static_root/staticfiles.json +1 -1
- codex/urls/api/auth.py +2 -1
- codex/urls/api/browser.py +13 -4
- codex/urls/api/reader.py +3 -9
- codex/urls/api/v3.py +2 -0
- codex/urls/opds/binary.py +1 -1
- codex/util.py +10 -0
- codex/views/admin/api_key.py +2 -6
- codex/views/admin/auth.py +28 -0
- codex/views/admin/flag.py +2 -7
- codex/views/admin/group.py +2 -6
- codex/views/admin/library.py +7 -20
- codex/views/admin/stats.py +7 -66
- codex/views/admin/tasks.py +24 -11
- codex/views/admin/user.py +3 -9
- codex/views/auth.py +30 -53
- codex/views/bookmark.py +7 -11
- codex/views/browser/{browser_annotations.py → annotations.py} +90 -181
- codex/views/browser/base.py +23 -88
- codex/views/browser/breadcrumbs.py +202 -0
- codex/views/browser/browser.py +64 -342
- codex/views/browser/choices.py +22 -54
- codex/views/browser/cover.py +177 -0
- codex/views/browser/filters/annotations.py +24 -23
- codex/views/browser/filters/bookmark.py +9 -13
- codex/views/browser/filters/field.py +5 -5
- codex/views/browser/filters/group.py +18 -10
- codex/views/browser/filters/search.py +30 -18
- codex/views/browser/metadata.py +22 -31
- codex/views/browser/{browser_order_by.py → order_by.py} +2 -6
- codex/views/browser/paginate.py +106 -0
- codex/views/browser/{session.py → settings.py} +4 -3
- codex/views/browser/title.py +48 -0
- codex/views/browser/validate.py +158 -0
- codex/views/const.py +109 -0
- codex/views/download.py +5 -8
- codex/views/frontend.py +4 -2
- codex/views/mtime.py +72 -0
- codex/views/opds/auth.py +17 -0
- codex/views/opds/authentication_v1.py +46 -45
- codex/views/opds/binary.py +5 -10
- codex/views/opds/const.py +13 -0
- codex/views/opds/urls.py +6 -4
- codex/views/opds/util.py +4 -12
- codex/views/opds/v1/entry/links.py +18 -33
- codex/views/opds/v1/facets.py +7 -7
- codex/views/opds/v1/feed.py +52 -40
- codex/views/opds/v1/links.py +7 -5
- codex/views/opds/v1/opensearch_v1.py +2 -6
- codex/views/opds/v2/feed.py +22 -23
- codex/views/opds/v2/links.py +4 -2
- codex/views/opds/v2/publications.py +34 -54
- codex/views/opds/v2/top_links.py +2 -2
- codex/views/public.py +36 -0
- codex/views/reader/arcs.py +101 -0
- codex/views/reader/books.py +199 -0
- codex/views/reader/page.py +3 -7
- codex/views/reader/reader.py +56 -301
- codex/views/reader/{session.py → settings.py} +4 -2
- codex/views/session.py +77 -103
- codex/views/settings.py +34 -0
- codex/views/template.py +3 -3
- codex/views/util.py +63 -0
- codex/views/version.py +2 -2
- {codex-1.6.0a6.dist-info → codex-1.6.0a8.dist-info}/METADATA +19 -14
- {codex-1.6.0a6.dist-info → codex-1.6.0a8.dist-info}/RECORD +373 -362
- codex/librarian/importer/covers.py +0 -47
- codex/librarian/importer/update_comics.py +0 -85
- codex/migrations/0027_sort_name.py +0 -139
- codex/migrations/0028_custom_covers.py +0 -166
- codex/migrations/0029_choices_adminflag_and_timestamp.py +0 -44
- codex/static_root/assets/VCheckbox-BS5fdM4M.a5d446e4aeb3.js +0 -1
- codex/static_root/assets/VCheckbox-BS5fdM4M.a5d446e4aeb3.js.br +0 -0
- codex/static_root/assets/VCheckbox-BS5fdM4M.a5d446e4aeb3.js.gz +0 -0
- codex/static_root/assets/VCheckbox-BS5fdM4M.js +0 -1
- codex/static_root/assets/VCheckbox-BS5fdM4M.js.br +0 -0
- codex/static_root/assets/VCheckbox-BS5fdM4M.js.gz +0 -0
- codex/static_root/assets/VCheckboxBtn-m4IbdjEe.f0c4a814ded8.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-m4IbdjEe.f0c4a814ded8.js.gz +0 -0
- codex/static_root/assets/VCheckboxBtn-m4IbdjEe.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-m4IbdjEe.js.gz +0 -0
- codex/static_root/assets/VCombobox-jg7SI5mn.af66f18b4c54.js +0 -1
- codex/static_root/assets/VCombobox-jg7SI5mn.af66f18b4c54.js.br +0 -0
- codex/static_root/assets/VCombobox-jg7SI5mn.af66f18b4c54.js.gz +0 -0
- codex/static_root/assets/VCombobox-jg7SI5mn.js +0 -1
- codex/static_root/assets/VCombobox-jg7SI5mn.js.br +0 -0
- codex/static_root/assets/VCombobox-jg7SI5mn.js.gz +0 -0
- codex/static_root/assets/VDialog-DiixpkQL.f84fd1fd1f84.js +0 -1
- codex/static_root/assets/VDialog-DiixpkQL.f84fd1fd1f84.js.br +0 -0
- codex/static_root/assets/VDialog-DiixpkQL.f84fd1fd1f84.js.gz +0 -0
- codex/static_root/assets/VDialog-DiixpkQL.js +0 -1
- codex/static_root/assets/VDialog-DiixpkQL.js.br +0 -0
- codex/static_root/assets/VDialog-DiixpkQL.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-Db5mPFue.56d0ad094a62.js +0 -1
- codex/static_root/assets/VExpansionPanels-Db5mPFue.56d0ad094a62.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-Db5mPFue.56d0ad094a62.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-Db5mPFue.js +0 -1
- codex/static_root/assets/VExpansionPanels-Db5mPFue.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-Db5mPFue.js.gz +0 -0
- codex/static_root/assets/VRadioGroup-DULWiMSI.4ae535e01d2b.js +0 -1
- codex/static_root/assets/VRadioGroup-DULWiMSI.4ae535e01d2b.js.br +0 -0
- codex/static_root/assets/VRadioGroup-DULWiMSI.4ae535e01d2b.js.gz +0 -0
- codex/static_root/assets/VRadioGroup-DULWiMSI.js +0 -1
- codex/static_root/assets/VRadioGroup-DULWiMSI.js.br +0 -0
- codex/static_root/assets/VRadioGroup-DULWiMSI.js.gz +0 -0
- codex/static_root/assets/VSelect-BnoCfCLY.4d50fd11c77c.js +0 -1
- codex/static_root/assets/VSelect-BnoCfCLY.4d50fd11c77c.js.br +0 -0
- codex/static_root/assets/VSelect-BnoCfCLY.4d50fd11c77c.js.gz +0 -0
- codex/static_root/assets/VSelect-BnoCfCLY.js +0 -1
- codex/static_root/assets/VSelect-BnoCfCLY.js.br +0 -0
- codex/static_root/assets/VSelect-BnoCfCLY.js.gz +0 -0
- codex/static_root/assets/VSelect-MGVSeLgr.7cabd30bc5e4.css +0 -1
- codex/static_root/assets/VSelect-MGVSeLgr.7cabd30bc5e4.css.br +0 -0
- codex/static_root/assets/VSelect-MGVSeLgr.7cabd30bc5e4.css.gz +0 -0
- codex/static_root/assets/VSelect-MGVSeLgr.css +0 -1
- codex/static_root/assets/VSelect-MGVSeLgr.css.br +0 -0
- codex/static_root/assets/VSelect-MGVSeLgr.css.gz +0 -0
- codex/static_root/assets/VSelectionControl-BSL0qeL9.5b5835d286df.js +0 -1
- codex/static_root/assets/VSelectionControl-BSL0qeL9.5b5835d286df.js.br +0 -0
- codex/static_root/assets/VSelectionControl-BSL0qeL9.5b5835d286df.js.gz +0 -0
- codex/static_root/assets/VSelectionControl-BSL0qeL9.js +0 -1
- codex/static_root/assets/VSelectionControl-BSL0qeL9.js.br +0 -0
- codex/static_root/assets/VSelectionControl-BSL0qeL9.js.gz +0 -0
- codex/static_root/assets/VSlideGroup-BQtz8h9p.ff97dbf209e1.js +0 -1
- codex/static_root/assets/VSlideGroup-BQtz8h9p.ff97dbf209e1.js.br +0 -0
- codex/static_root/assets/VSlideGroup-BQtz8h9p.ff97dbf209e1.js.gz +0 -0
- codex/static_root/assets/VSlideGroup-BQtz8h9p.js +0 -1
- codex/static_root/assets/VSlideGroup-BQtz8h9p.js.br +0 -0
- codex/static_root/assets/VSlideGroup-BQtz8h9p.js.gz +0 -0
- codex/static_root/assets/VTable-C0gAriFq.fa6e4b60d4ef.js.br +0 -0
- codex/static_root/assets/VTable-C0gAriFq.fa6e4b60d4ef.js.gz +0 -0
- codex/static_root/assets/VTable-C0gAriFq.js.br +0 -0
- codex/static_root/assets/VTable-C0gAriFq.js.gz +0 -0
- codex/static_root/assets/VTextField-Da_Hs7ls.c295f24c251e.js +0 -1
- codex/static_root/assets/VTextField-Da_Hs7ls.c295f24c251e.js.br +0 -0
- codex/static_root/assets/VTextField-Da_Hs7ls.c295f24c251e.js.gz +0 -0
- codex/static_root/assets/VTextField-Da_Hs7ls.js +0 -1
- codex/static_root/assets/VTextField-Da_Hs7ls.js.br +0 -0
- codex/static_root/assets/VTextField-Da_Hs7ls.js.gz +0 -0
- codex/static_root/assets/VWindowItem-CFhKCj49.b2458002a937.js.br +0 -0
- codex/static_root/assets/VWindowItem-CFhKCj49.b2458002a937.js.gz +0 -0
- codex/static_root/assets/VWindowItem-CFhKCj49.js.br +0 -0
- codex/static_root/assets/VWindowItem-CFhKCj49.js.gz +0 -0
- codex/static_root/assets/admin-BpGFsvOH.d7193c78d0dd.js +0 -1
- codex/static_root/assets/admin-BpGFsvOH.d7193c78d0dd.js.br +0 -0
- codex/static_root/assets/admin-BpGFsvOH.d7193c78d0dd.js.gz +0 -0
- codex/static_root/assets/admin-BpGFsvOH.js +0 -1
- codex/static_root/assets/admin-BpGFsvOH.js.br +0 -0
- codex/static_root/assets/admin-BpGFsvOH.js.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-BHdNPwzF.bd2c1d6148bb.css.br +0 -0
- codex/static_root/assets/admin-drawer-panel-BHdNPwzF.css.br +0 -0
- codex/static_root/assets/admin-drawer-panel-C34Ze3-5.113c50cdf2cc.js +0 -30
- codex/static_root/assets/admin-drawer-panel-C34Ze3-5.113c50cdf2cc.js.br +0 -0
- codex/static_root/assets/admin-drawer-panel-C34Ze3-5.113c50cdf2cc.js.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-C34Ze3-5.js +0 -30
- codex/static_root/assets/admin-drawer-panel-C34Ze3-5.js.br +0 -0
- codex/static_root/assets/admin-drawer-panel-C34Ze3-5.js.gz +0 -0
- codex/static_root/assets/browser-CRPvEdqv.f355a71f4380.js +0 -1
- codex/static_root/assets/browser-CRPvEdqv.f355a71f4380.js.br +0 -0
- codex/static_root/assets/browser-CRPvEdqv.f355a71f4380.js.gz +0 -0
- codex/static_root/assets/browser-CRPvEdqv.js +0 -1
- codex/static_root/assets/browser-CRPvEdqv.js.br +0 -0
- codex/static_root/assets/browser-CRPvEdqv.js.gz +0 -0
- codex/static_root/assets/browser-Zqc9cR6T.b7d6ddeff130.css +0 -1
- codex/static_root/assets/browser-Zqc9cR6T.b7d6ddeff130.css.br +0 -0
- codex/static_root/assets/browser-Zqc9cR6T.b7d6ddeff130.css.gz +0 -0
- codex/static_root/assets/browser-Zqc9cR6T.css +0 -1
- codex/static_root/assets/browser-Zqc9cR6T.css.br +0 -0
- codex/static_root/assets/browser-Zqc9cR6T.css.gz +0 -0
- codex/static_root/assets/change-password-dialog-JYM9aAR9.f71d378f4fa6.js.br +0 -0
- codex/static_root/assets/change-password-dialog-JYM9aAR9.f71d378f4fa6.js.gz +0 -0
- codex/static_root/assets/change-password-dialog-JYM9aAR9.js.br +0 -0
- codex/static_root/assets/change-password-dialog-JYM9aAR9.js.gz +0 -0
- codex/static_root/assets/confirm-dialog-ZAZ6P1Rc.515858dd21e8.js.br +0 -0
- codex/static_root/assets/confirm-dialog-ZAZ6P1Rc.515858dd21e8.js.gz +0 -0
- codex/static_root/assets/confirm-dialog-ZAZ6P1Rc.js.br +0 -0
- codex/static_root/assets/confirm-dialog-ZAZ6P1Rc.js.gz +0 -0
- codex/static_root/assets/datetime-column-BT1MSP82.9617f6b94ebf.js +0 -1
- codex/static_root/assets/datetime-column-BT1MSP82.9617f6b94ebf.js.br +0 -0
- codex/static_root/assets/datetime-column-BT1MSP82.9617f6b94ebf.js.gz +0 -0
- codex/static_root/assets/datetime-column-BT1MSP82.js +0 -1
- codex/static_root/assets/datetime-column-BT1MSP82.js.br +0 -0
- codex/static_root/assets/datetime-column-BT1MSP82.js.gz +0 -0
- codex/static_root/assets/datetime-column-Dg_RxTVM.1fa7c5cbead7.css +0 -1
- codex/static_root/assets/datetime-column-Dg_RxTVM.1fa7c5cbead7.css.br +0 -0
- codex/static_root/assets/datetime-column-Dg_RxTVM.css +0 -1
- codex/static_root/assets/datetime-column-Dg_RxTVM.css.br +0 -0
- codex/static_root/assets/filter-frSNsexx.eab1570bd32d.js +0 -1
- codex/static_root/assets/filter-frSNsexx.eab1570bd32d.js.br +0 -0
- codex/static_root/assets/filter-frSNsexx.eab1570bd32d.js.gz +0 -0
- codex/static_root/assets/filter-frSNsexx.js +0 -1
- codex/static_root/assets/filter-frSNsexx.js.br +0 -0
- codex/static_root/assets/filter-frSNsexx.js.gz +0 -0
- codex/static_root/assets/flag-tab-Ci_XcDT0.a5ea640a08d6.js.br +0 -0
- codex/static_root/assets/flag-tab-Ci_XcDT0.a5ea640a08d6.js.gz +0 -0
- codex/static_root/assets/flag-tab-Ci_XcDT0.js.br +0 -0
- codex/static_root/assets/flag-tab-Ci_XcDT0.js.gz +0 -0
- codex/static_root/assets/group-tab-DFma2R-E.879c37b15bbd.js.br +0 -0
- codex/static_root/assets/group-tab-DFma2R-E.879c37b15bbd.js.gz +0 -0
- codex/static_root/assets/group-tab-DFma2R-E.js.br +0 -0
- codex/static_root/assets/group-tab-DFma2R-E.js.gz +0 -0
- codex/static_root/assets/http-error-B3fQGxpt.9efc29496e30.js +0 -1
- codex/static_root/assets/http-error-B3fQGxpt.9efc29496e30.js.br +0 -0
- codex/static_root/assets/http-error-B3fQGxpt.9efc29496e30.js.gz +0 -0
- codex/static_root/assets/http-error-B3fQGxpt.js +0 -1
- codex/static_root/assets/http-error-B3fQGxpt.js.br +0 -0
- codex/static_root/assets/http-error-B3fQGxpt.js.gz +0 -0
- codex/static_root/assets/index-DUjeNg4x.36d50c91b2c1.js +0 -1
- codex/static_root/assets/index-DUjeNg4x.36d50c91b2c1.js.br +0 -0
- codex/static_root/assets/index-DUjeNg4x.36d50c91b2c1.js.gz +0 -0
- codex/static_root/assets/index-DUjeNg4x.js +0 -1
- codex/static_root/assets/index-DUjeNg4x.js.br +0 -0
- codex/static_root/assets/index-DUjeNg4x.js.gz +0 -0
- codex/static_root/assets/library-tab-V8DUGoHN.809c548ff347.js.br +0 -0
- codex/static_root/assets/library-tab-V8DUGoHN.809c548ff347.js.gz +0 -0
- codex/static_root/assets/library-tab-V8DUGoHN.js.br +0 -0
- codex/static_root/assets/library-tab-V8DUGoHN.js.gz +0 -0
- codex/static_root/assets/main-Cavvqkyp.a9c4df906406.js +0 -32
- codex/static_root/assets/main-Cavvqkyp.a9c4df906406.js.br +0 -0
- codex/static_root/assets/main-Cavvqkyp.a9c4df906406.js.gz +0 -0
- codex/static_root/assets/main-Cavvqkyp.js +0 -32
- codex/static_root/assets/main-Cavvqkyp.js.br +0 -0
- codex/static_root/assets/main-Cavvqkyp.js.gz +0 -0
- codex/static_root/assets/main-sK7HC5h4.6f04ddfc5f1a.css.br +0 -0
- codex/static_root/assets/main-sK7HC5h4.css.br +0 -0
- codex/static_root/assets/pagination-toolbar-ClZui9Zf.697d7ae11c21.css +0 -1
- codex/static_root/assets/pagination-toolbar-ClZui9Zf.697d7ae11c21.css.br +0 -0
- codex/static_root/assets/pagination-toolbar-ClZui9Zf.697d7ae11c21.css.gz +0 -0
- codex/static_root/assets/pagination-toolbar-ClZui9Zf.css +0 -1
- codex/static_root/assets/pagination-toolbar-ClZui9Zf.css.br +0 -0
- codex/static_root/assets/pagination-toolbar-ClZui9Zf.css.gz +0 -0
- codex/static_root/assets/pagination-toolbar-Dg9tH1Ju.b2eb1e0c6985.js +0 -1
- codex/static_root/assets/pagination-toolbar-Dg9tH1Ju.b2eb1e0c6985.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-Dg9tH1Ju.b2eb1e0c6985.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-Dg9tH1Ju.js +0 -1
- codex/static_root/assets/pagination-toolbar-Dg9tH1Ju.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-Dg9tH1Ju.js.gz +0 -0
- codex/static_root/assets/pdf-doc-4PKLN-Z3.62d8de4d1fd8.js +0 -35
- codex/static_root/assets/pdf-doc-4PKLN-Z3.62d8de4d1fd8.js.br +0 -0
- codex/static_root/assets/pdf-doc-4PKLN-Z3.62d8de4d1fd8.js.gz +0 -0
- codex/static_root/assets/pdf-doc-4PKLN-Z3.js +0 -35
- codex/static_root/assets/pdf-doc-4PKLN-Z3.js.br +0 -0
- codex/static_root/assets/pdf-doc-4PKLN-Z3.js.gz +0 -0
- codex/static_root/assets/reader-C39uGGxn.67b0f324cd5e.js +0 -2
- codex/static_root/assets/reader-C39uGGxn.67b0f324cd5e.js.br +0 -0
- codex/static_root/assets/reader-C39uGGxn.67b0f324cd5e.js.gz +0 -0
- codex/static_root/assets/reader-C39uGGxn.js +0 -2
- codex/static_root/assets/reader-C39uGGxn.js.br +0 -0
- codex/static_root/assets/reader-C39uGGxn.js.gz +0 -0
- codex/static_root/assets/reader-N2Ei_y2K.8c0cdc0d513f.css +0 -1
- codex/static_root/assets/reader-N2Ei_y2K.8c0cdc0d513f.css.br +0 -0
- codex/static_root/assets/reader-N2Ei_y2K.8c0cdc0d513f.css.gz +0 -0
- codex/static_root/assets/reader-N2Ei_y2K.css +0 -1
- codex/static_root/assets/reader-N2Ei_y2K.css.br +0 -0
- codex/static_root/assets/reader-N2Ei_y2K.css.gz +0 -0
- codex/static_root/assets/relation-chips-CAC5ytqH.f205d920ffea.js +0 -1
- codex/static_root/assets/relation-chips-CAC5ytqH.f205d920ffea.js.br +0 -0
- codex/static_root/assets/relation-chips-CAC5ytqH.f205d920ffea.js.gz +0 -0
- codex/static_root/assets/relation-chips-CAC5ytqH.js +0 -1
- codex/static_root/assets/relation-chips-CAC5ytqH.js.br +0 -0
- codex/static_root/assets/relation-chips-CAC5ytqH.js.gz +0 -0
- codex/static_root/assets/settings-drawer-CT73ieiV.fac6f69e86ff.js +0 -2
- codex/static_root/assets/settings-drawer-CT73ieiV.fac6f69e86ff.js.br +0 -0
- codex/static_root/assets/settings-drawer-CT73ieiV.fac6f69e86ff.js.gz +0 -0
- codex/static_root/assets/settings-drawer-CT73ieiV.js +0 -2
- codex/static_root/assets/settings-drawer-CT73ieiV.js.br +0 -0
- codex/static_root/assets/settings-drawer-CT73ieiV.js.gz +0 -0
- codex/static_root/assets/stats-tab-C6qAnV6-.f08c46b5f141.js +0 -1
- codex/static_root/assets/stats-tab-C6qAnV6-.f08c46b5f141.js.br +0 -0
- codex/static_root/assets/stats-tab-C6qAnV6-.f08c46b5f141.js.gz +0 -0
- codex/static_root/assets/stats-tab-C6qAnV6-.js +0 -1
- codex/static_root/assets/stats-tab-C6qAnV6-.js.br +0 -0
- codex/static_root/assets/stats-tab-C6qAnV6-.js.gz +0 -0
- codex/static_root/assets/task-tab-JcG2vvgt.eed6e03db487.js +0 -1
- codex/static_root/assets/task-tab-JcG2vvgt.eed6e03db487.js.br +0 -0
- codex/static_root/assets/task-tab-JcG2vvgt.eed6e03db487.js.gz +0 -0
- codex/static_root/assets/task-tab-JcG2vvgt.js +0 -1
- codex/static_root/assets/task-tab-JcG2vvgt.js.br +0 -0
- codex/static_root/assets/task-tab-JcG2vvgt.js.gz +0 -0
- codex/static_root/assets/to-case-kUm8NPpW.5b3369f511b8.js +0 -1
- codex/static_root/assets/to-case-kUm8NPpW.js +0 -1
- codex/static_root/assets/unauthorized-28bmiwAU.c74825b5c16f.js +0 -1
- codex/static_root/assets/unauthorized-28bmiwAU.c74825b5c16f.js.br +0 -0
- codex/static_root/assets/unauthorized-28bmiwAU.c74825b5c16f.js.gz +0 -0
- codex/static_root/assets/unauthorized-28bmiwAU.js +0 -1
- codex/static_root/assets/unauthorized-28bmiwAU.js.br +0 -0
- codex/static_root/assets/unauthorized-28bmiwAU.js.gz +0 -0
- codex/static_root/assets/user-tab-BOq4BMMc.b64ac15dd772.js +0 -1
- codex/static_root/assets/user-tab-BOq4BMMc.b64ac15dd772.js.br +0 -0
- codex/static_root/assets/user-tab-BOq4BMMc.b64ac15dd772.js.gz +0 -0
- codex/static_root/assets/user-tab-BOq4BMMc.js +0 -1
- codex/static_root/assets/user-tab-BOq4BMMc.js.br +0 -0
- codex/static_root/assets/user-tab-BOq4BMMc.js.gz +0 -0
- codex/static_root/js/choices-admin.ef1ff3a8b9da.json +0 -1
- codex/static_root/js/choices-admin.ef1ff3a8b9da.json.br +0 -0
- codex/static_root/js/choices-admin.ef1ff3a8b9da.json.gz +0 -0
- codex/static_root/js/choices.23fedac2b9ba.json +0 -1
- codex/static_root/js/choices.23fedac2b9ba.json.br +0 -0
- codex/static_root/js/choices.23fedac2b9ba.json.gz +0 -0
- codex/static_root/manifest.ad9da9714e46.json +0 -642
- codex/static_root/manifest.ad9da9714e46.json.br +0 -0
- codex/static_root/manifest.ad9da9714e46.json.gz +0 -0
- codex/views/browser/browser_breadcrumbs.py +0 -175
- codex/views/browser/const.py +0 -3
- codex/views/cover.py +0 -78
- {codex-1.6.0a6.dist-info → codex-1.6.0a8.dist-info}/LICENSE +0 -0
- {codex-1.6.0a6.dist-info → codex-1.6.0a8.dist-info}/WHEEL +0 -0
- {codex-1.6.0a6.dist-info → codex-1.6.0a8.dist-info}/entry_points.txt +0 -0
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"""Update Groups timestamp for cover cache busting."""
|
|
2
|
-
|
|
3
|
-
from django.db.models.functions import Now
|
|
4
|
-
from django.db.models.query import Q
|
|
5
|
-
|
|
6
|
-
from codex.models import StoryArc
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class CoversMixin:
|
|
10
|
-
"""Update Groups timestamp for cover cache busting."""
|
|
11
|
-
|
|
12
|
-
def update_groups_for_covers(self, start_time, deleted_comic_groups):
|
|
13
|
-
"""Update timestamps for each group for cover cache busting."""
|
|
14
|
-
total_count = 0
|
|
15
|
-
now = Now()
|
|
16
|
-
|
|
17
|
-
log_list = []
|
|
18
|
-
for model, pks in deleted_comic_groups.items():
|
|
19
|
-
rel = "story_arc_number__" if model == StoryArc else ""
|
|
20
|
-
updated_at_rel = rel + "comic__updated_at__gt"
|
|
21
|
-
updated_filter = {updated_at_rel: start_time}
|
|
22
|
-
model_qs = (
|
|
23
|
-
model.objects.filter(Q(**updated_filter) | Q(pk__in=pks))
|
|
24
|
-
.distinct()
|
|
25
|
-
.only("updated_at")
|
|
26
|
-
)
|
|
27
|
-
|
|
28
|
-
updated = []
|
|
29
|
-
for obj in model_qs:
|
|
30
|
-
obj.updated_at = now
|
|
31
|
-
updated.append(obj)
|
|
32
|
-
|
|
33
|
-
count = len(updated)
|
|
34
|
-
if count:
|
|
35
|
-
model.objects.bulk_update(updated, ["updated_at"])
|
|
36
|
-
log_list.append(f"{count} {model.__name__}s.")
|
|
37
|
-
total_count += count
|
|
38
|
-
if total_count:
|
|
39
|
-
groups_log = ", ".join(log_list)
|
|
40
|
-
self.log.debug( # type: ignore
|
|
41
|
-
f"Updated {groups_log} timestamps for browser cache busting."
|
|
42
|
-
)
|
|
43
|
-
self.log.info( # type: ignore
|
|
44
|
-
f"Updated {total_count} group timestamps for browser cache busting."
|
|
45
|
-
)
|
|
46
|
-
|
|
47
|
-
return total_count
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"""Bulk update comic objects."""
|
|
2
|
-
|
|
3
|
-
from django.db.models import NOT_PROVIDED
|
|
4
|
-
from django.db.models.functions import Now
|
|
5
|
-
|
|
6
|
-
from codex.librarian.importer.const import (
|
|
7
|
-
BULK_UPDATE_COMIC_FIELDS,
|
|
8
|
-
BULK_UPDATE_COMIC_FIELDS_WITH_VALUES,
|
|
9
|
-
)
|
|
10
|
-
from codex.librarian.importer.link_comics import LinkComicsMixin
|
|
11
|
-
from codex.librarian.importer.status import ImportStatusTypes, status_notify
|
|
12
|
-
from codex.models import (
|
|
13
|
-
Comic,
|
|
14
|
-
)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
class UpdateComicsMixin(LinkComicsMixin):
|
|
18
|
-
"""Create comics methods."""
|
|
19
|
-
|
|
20
|
-
def _bulk_update_comics_add_comic(self, static_data, comic, results):
|
|
21
|
-
"""Add one comic and stats to the bulk update list."""
|
|
22
|
-
try:
|
|
23
|
-
library, mds, now = static_data
|
|
24
|
-
md = mds.pop(comic.path)
|
|
25
|
-
self.get_comic_fk_links(md, library, comic.path)
|
|
26
|
-
for field_name in BULK_UPDATE_COMIC_FIELDS_WITH_VALUES:
|
|
27
|
-
value = md.get(field_name)
|
|
28
|
-
if value is None:
|
|
29
|
-
default_value = Comic._meta.get_field(field_name).default
|
|
30
|
-
if default_value != NOT_PROVIDED:
|
|
31
|
-
value = default_value
|
|
32
|
-
setattr(comic, field_name, value)
|
|
33
|
-
comic.presave()
|
|
34
|
-
comic.updated_at = now
|
|
35
|
-
update_comics, comic_pks, comic_update_paths = results
|
|
36
|
-
update_comics.append(comic)
|
|
37
|
-
comic_pks.append(comic.pk)
|
|
38
|
-
comic_update_paths.add(comic.path)
|
|
39
|
-
except Exception:
|
|
40
|
-
self.log.exception(f"Error preparing {comic} for update.")
|
|
41
|
-
|
|
42
|
-
@status_notify(status_type=ImportStatusTypes.FILES_MODIFIED, updates=False)
|
|
43
|
-
def bulk_update_comics(self, comic_paths, library, create_paths, mds, **kwargs):
|
|
44
|
-
"""Bulk update comics, and move nonextant comics into create job.."""
|
|
45
|
-
count = 0
|
|
46
|
-
if not comic_paths:
|
|
47
|
-
return count
|
|
48
|
-
|
|
49
|
-
self.log.debug(
|
|
50
|
-
f"Preparing {len(comic_paths)} comics for update in library {library.path}."
|
|
51
|
-
)
|
|
52
|
-
# Get existing comics to update
|
|
53
|
-
comics = Comic.objects.filter(library=library, path__in=comic_paths).only(
|
|
54
|
-
*BULK_UPDATE_COMIC_FIELDS
|
|
55
|
-
)
|
|
56
|
-
|
|
57
|
-
# set attributes for each comic
|
|
58
|
-
update_comics = []
|
|
59
|
-
now = Now()
|
|
60
|
-
comic_pks = []
|
|
61
|
-
comic_update_paths = set()
|
|
62
|
-
static_data = library, mds, now
|
|
63
|
-
results = update_comics, comic_pks, comic_update_paths
|
|
64
|
-
for comic in comics.iterator():
|
|
65
|
-
self._bulk_update_comics_add_comic(static_data, comic, results)
|
|
66
|
-
|
|
67
|
-
converted_create_paths = frozenset(set(comic_paths) - comic_update_paths)
|
|
68
|
-
create_paths.update(converted_create_paths)
|
|
69
|
-
count = len(converted_create_paths)
|
|
70
|
-
if count:
|
|
71
|
-
self.log.info(f"Converted {count} update paths to create paths.")
|
|
72
|
-
|
|
73
|
-
self.log.debug(f"Bulk updating {len(update_comics)} comics.")
|
|
74
|
-
try:
|
|
75
|
-
Comic.objects.bulk_update(update_comics, BULK_UPDATE_COMIC_FIELDS)
|
|
76
|
-
count = len(update_comics)
|
|
77
|
-
|
|
78
|
-
self._remove_covers(comic_pks, False) # type: ignore
|
|
79
|
-
self.log.debug(f"Purging covers for {len(comic_pks)} updated comics.")
|
|
80
|
-
if count:
|
|
81
|
-
self.log.info(f"Updated {count} comics.")
|
|
82
|
-
except Exception:
|
|
83
|
-
self.log.exception(f"While updating {comic_update_paths}")
|
|
84
|
-
|
|
85
|
-
return count
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
"""Generated by Django 5.0.4 on 2024-05-05 23:11."""
|
|
2
|
-
|
|
3
|
-
import os
|
|
4
|
-
from contextlib import suppress
|
|
5
|
-
from pathlib import Path
|
|
6
|
-
|
|
7
|
-
from django.db import migrations, models
|
|
8
|
-
|
|
9
|
-
from codex.models.util import get_sort_name
|
|
10
|
-
|
|
11
|
-
CONFIG_PATH = Path(os.environ.get("CODEX_CONFIG_DIR", Path.cwd() / "config"))
|
|
12
|
-
COVER_ROOT = CONFIG_PATH / "cache" / "covers"
|
|
13
|
-
_GROUP_MODEL_NAMES = (
|
|
14
|
-
"publisher",
|
|
15
|
-
"imprint",
|
|
16
|
-
"series",
|
|
17
|
-
"storyarc",
|
|
18
|
-
"folder",
|
|
19
|
-
"comic",
|
|
20
|
-
"failedimport",
|
|
21
|
-
)
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
def _set_sort_name(obj):
|
|
25
|
-
"""Create sort_name for model."""
|
|
26
|
-
obj.sort_name = get_sort_name(obj.name)
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
def _generate_sort_name(apps, _schema_editor):
|
|
30
|
-
"""Update new sort_name field."""
|
|
31
|
-
for model_name in _GROUP_MODEL_NAMES:
|
|
32
|
-
model = apps.get_model("codex", model_name)
|
|
33
|
-
update_fields = ("sort_name",)
|
|
34
|
-
only_fields = ("name", *update_fields)
|
|
35
|
-
update_groups = []
|
|
36
|
-
objs = model.objects.only(*only_fields)
|
|
37
|
-
for obj in objs:
|
|
38
|
-
_set_sort_name(obj)
|
|
39
|
-
update_groups.append(obj)
|
|
40
|
-
if update_groups:
|
|
41
|
-
model.objects.bulk_update(update_groups, update_fields)
|
|
42
|
-
print(f"\tUpdated sort_name for {len(update_groups)} {model_name}s")
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
def _remove_cover_symlinks(_apps, _schema_editor):
|
|
46
|
-
"""Remove old missing cover symlinks."""
|
|
47
|
-
# Handled programmatically now.
|
|
48
|
-
count = 0
|
|
49
|
-
for dirpath_str, _, filenames in os.walk(COVER_ROOT):
|
|
50
|
-
dirpath = Path(dirpath_str)
|
|
51
|
-
for filename in filenames:
|
|
52
|
-
full_path = dirpath / filename
|
|
53
|
-
if full_path.is_symlink():
|
|
54
|
-
with suppress(OSError):
|
|
55
|
-
full_path.unlink(missing_ok=True)
|
|
56
|
-
count += 1
|
|
57
|
-
if count:
|
|
58
|
-
print(f"Removed {count} missing-cover symlinks from cover cache.")
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
class Migration(migrations.Migration):
|
|
62
|
-
"""Migrate."""
|
|
63
|
-
|
|
64
|
-
dependencies = [
|
|
65
|
-
("codex", "0026_comicbox_1"),
|
|
66
|
-
]
|
|
67
|
-
|
|
68
|
-
operations = [
|
|
69
|
-
migrations.AddField(
|
|
70
|
-
model_name="comic",
|
|
71
|
-
name="sort_name",
|
|
72
|
-
field=models.CharField(db_index=True, default="", max_length=128),
|
|
73
|
-
),
|
|
74
|
-
migrations.AddField(
|
|
75
|
-
model_name="failedimport",
|
|
76
|
-
name="sort_name",
|
|
77
|
-
field=models.CharField(db_index=True, default="", max_length=128),
|
|
78
|
-
),
|
|
79
|
-
migrations.AddField(
|
|
80
|
-
model_name="folder",
|
|
81
|
-
name="sort_name",
|
|
82
|
-
field=models.CharField(db_index=True, default="", max_length=128),
|
|
83
|
-
),
|
|
84
|
-
migrations.AddField(
|
|
85
|
-
model_name="imprint",
|
|
86
|
-
name="sort_name",
|
|
87
|
-
field=models.CharField(db_index=True, default="", max_length=128),
|
|
88
|
-
),
|
|
89
|
-
migrations.AddField(
|
|
90
|
-
model_name="publisher",
|
|
91
|
-
name="sort_name",
|
|
92
|
-
field=models.CharField(db_index=True, default="", max_length=128),
|
|
93
|
-
),
|
|
94
|
-
migrations.AddField(
|
|
95
|
-
model_name="series",
|
|
96
|
-
name="sort_name",
|
|
97
|
-
field=models.CharField(db_index=True, default="", max_length=128),
|
|
98
|
-
),
|
|
99
|
-
migrations.AddField(
|
|
100
|
-
model_name="storyarc",
|
|
101
|
-
name="sort_name",
|
|
102
|
-
field=models.CharField(db_index=True, default="", max_length=128),
|
|
103
|
-
),
|
|
104
|
-
migrations.AlterField(
|
|
105
|
-
model_name="adminflag",
|
|
106
|
-
name="key",
|
|
107
|
-
field=models.CharField(
|
|
108
|
-
choices=[
|
|
109
|
-
("FV", "Folder View"),
|
|
110
|
-
("RG", "Registration"),
|
|
111
|
-
("NU", "Non Users"),
|
|
112
|
-
("AU", "Auto Update"),
|
|
113
|
-
("SO", "Search Index Optimize"),
|
|
114
|
-
("IM", "Import Metadata"),
|
|
115
|
-
],
|
|
116
|
-
db_index=True,
|
|
117
|
-
max_length=2,
|
|
118
|
-
),
|
|
119
|
-
),
|
|
120
|
-
migrations.AlterField(
|
|
121
|
-
model_name="adminflag",
|
|
122
|
-
name="key",
|
|
123
|
-
field=models.CharField(
|
|
124
|
-
choices=[
|
|
125
|
-
("FV", "Folder View"),
|
|
126
|
-
("RG", "Registration"),
|
|
127
|
-
("NU", "Non Users"),
|
|
128
|
-
("AU", "Auto Update"),
|
|
129
|
-
("SO", "Search Index Optimize"),
|
|
130
|
-
("IM", "Import Metadata"),
|
|
131
|
-
("DC", "Dynamic Group Covers"),
|
|
132
|
-
],
|
|
133
|
-
db_index=True,
|
|
134
|
-
max_length=2,
|
|
135
|
-
),
|
|
136
|
-
),
|
|
137
|
-
migrations.RunPython(_generate_sort_name),
|
|
138
|
-
migrations.RunPython(_remove_cover_symlinks),
|
|
139
|
-
]
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
"""Generated by Django 5.0.6 on 2024-05-23 03:50."""
|
|
2
|
-
|
|
3
|
-
import django.db.models.deletion
|
|
4
|
-
from django.db import migrations, models
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class Migration(migrations.Migration):
|
|
8
|
-
"""Migrate db."""
|
|
9
|
-
|
|
10
|
-
dependencies = [
|
|
11
|
-
("codex", "0027_sort_name"),
|
|
12
|
-
]
|
|
13
|
-
|
|
14
|
-
operations = [
|
|
15
|
-
migrations.RemoveField(
|
|
16
|
-
model_name="failedimport",
|
|
17
|
-
name="sort_name",
|
|
18
|
-
),
|
|
19
|
-
migrations.AddField(
|
|
20
|
-
model_name="library",
|
|
21
|
-
name="covers_only",
|
|
22
|
-
field=models.BooleanField(db_index=True, default=False),
|
|
23
|
-
),
|
|
24
|
-
migrations.AlterField(
|
|
25
|
-
model_name="librarianstatus",
|
|
26
|
-
name="status_type",
|
|
27
|
-
field=models.CharField(
|
|
28
|
-
choices=[
|
|
29
|
-
("CCC", "Create Covers"),
|
|
30
|
-
("CCD", "Purge Covers"),
|
|
31
|
-
("CFO", "Find Orphan"),
|
|
32
|
-
("IDM", "Dirs Moved"),
|
|
33
|
-
("IFM", "Files Moved"),
|
|
34
|
-
("ITR", "Aggregate Tags"),
|
|
35
|
-
("ITQ", "Query Missing Fks"),
|
|
36
|
-
("ITC", "Create Fks"),
|
|
37
|
-
("IDU", "Dirs Modified"),
|
|
38
|
-
("IFU", "Files Modified"),
|
|
39
|
-
("IFC", "Files Created"),
|
|
40
|
-
("IMQ", "Query M2M Fields"),
|
|
41
|
-
("IMC", "Link M2M Fields"),
|
|
42
|
-
("IDD", "Dirs Deleted"),
|
|
43
|
-
("IFD", "Files Deleted"),
|
|
44
|
-
("IFI", "Failed Imports"),
|
|
45
|
-
("ICQ", "Query Missing Covers"),
|
|
46
|
-
("ICM", "Covers Moved"),
|
|
47
|
-
("ICU", "Covers Modified"),
|
|
48
|
-
("ICC", "Covers Created"),
|
|
49
|
-
("ICD", "Covers Deleted"),
|
|
50
|
-
("ICL", "Covers Link"),
|
|
51
|
-
("JTD", "Cleanup Fk"),
|
|
52
|
-
("JCU", "Codex Update"),
|
|
53
|
-
("JCR", "Codex Restart"),
|
|
54
|
-
("JCS", "Codex Stop"),
|
|
55
|
-
("JDO", "Db Optimize"),
|
|
56
|
-
("JDB", "Db Backup"),
|
|
57
|
-
("JSD", "Cleanup Sessions"),
|
|
58
|
-
("JCD", "Cleanup Covers"),
|
|
59
|
-
("SIX", "Search Index Clear"),
|
|
60
|
-
("SIU", "Search Index Update"),
|
|
61
|
-
("SID", "Search Index Remove"),
|
|
62
|
-
("SIM", "Search Index Merge"),
|
|
63
|
-
("WPO", "Poll"),
|
|
64
|
-
],
|
|
65
|
-
db_index=True,
|
|
66
|
-
max_length=3,
|
|
67
|
-
),
|
|
68
|
-
),
|
|
69
|
-
migrations.CreateModel(
|
|
70
|
-
name="CustomCover",
|
|
71
|
-
fields=[
|
|
72
|
-
(
|
|
73
|
-
"id",
|
|
74
|
-
models.AutoField(
|
|
75
|
-
auto_created=True,
|
|
76
|
-
primary_key=True,
|
|
77
|
-
serialize=False,
|
|
78
|
-
verbose_name="ID",
|
|
79
|
-
),
|
|
80
|
-
),
|
|
81
|
-
("created_at", models.DateTimeField(auto_now_add=True)),
|
|
82
|
-
("updated_at", models.DateTimeField(auto_now=True)),
|
|
83
|
-
("path", models.CharField(db_index=True, max_length=4095)),
|
|
84
|
-
("stat", models.JSONField(null=True)),
|
|
85
|
-
(
|
|
86
|
-
"group",
|
|
87
|
-
models.CharField(
|
|
88
|
-
choices=[
|
|
89
|
-
("p", "P"),
|
|
90
|
-
("i", "I"),
|
|
91
|
-
("s", "S"),
|
|
92
|
-
("a", "A"),
|
|
93
|
-
("f", "F"),
|
|
94
|
-
],
|
|
95
|
-
db_index=True,
|
|
96
|
-
max_length=1,
|
|
97
|
-
),
|
|
98
|
-
),
|
|
99
|
-
(
|
|
100
|
-
"sort_name",
|
|
101
|
-
models.CharField(db_index=True, default="", max_length=128),
|
|
102
|
-
),
|
|
103
|
-
(
|
|
104
|
-
"library",
|
|
105
|
-
models.ForeignKey(
|
|
106
|
-
on_delete=django.db.models.deletion.CASCADE, to="codex.library"
|
|
107
|
-
),
|
|
108
|
-
),
|
|
109
|
-
],
|
|
110
|
-
options={
|
|
111
|
-
"get_latest_by": "updated_at",
|
|
112
|
-
"abstract": False,
|
|
113
|
-
"unique_together": {("library", "path")},
|
|
114
|
-
},
|
|
115
|
-
),
|
|
116
|
-
migrations.AddField(
|
|
117
|
-
model_name="folder",
|
|
118
|
-
name="custom_cover",
|
|
119
|
-
field=models.ForeignKey(
|
|
120
|
-
default=None,
|
|
121
|
-
null=True,
|
|
122
|
-
on_delete=django.db.models.deletion.SET_DEFAULT,
|
|
123
|
-
to="codex.customcover",
|
|
124
|
-
),
|
|
125
|
-
),
|
|
126
|
-
migrations.AddField(
|
|
127
|
-
model_name="imprint",
|
|
128
|
-
name="custom_cover",
|
|
129
|
-
field=models.ForeignKey(
|
|
130
|
-
default=None,
|
|
131
|
-
null=True,
|
|
132
|
-
on_delete=django.db.models.deletion.SET_DEFAULT,
|
|
133
|
-
to="codex.customcover",
|
|
134
|
-
),
|
|
135
|
-
),
|
|
136
|
-
migrations.AddField(
|
|
137
|
-
model_name="publisher",
|
|
138
|
-
name="custom_cover",
|
|
139
|
-
field=models.ForeignKey(
|
|
140
|
-
default=None,
|
|
141
|
-
null=True,
|
|
142
|
-
on_delete=django.db.models.deletion.SET_DEFAULT,
|
|
143
|
-
to="codex.customcover",
|
|
144
|
-
),
|
|
145
|
-
),
|
|
146
|
-
migrations.AddField(
|
|
147
|
-
model_name="series",
|
|
148
|
-
name="custom_cover",
|
|
149
|
-
field=models.ForeignKey(
|
|
150
|
-
default=None,
|
|
151
|
-
null=True,
|
|
152
|
-
on_delete=django.db.models.deletion.SET_DEFAULT,
|
|
153
|
-
to="codex.customcover",
|
|
154
|
-
),
|
|
155
|
-
),
|
|
156
|
-
migrations.AddField(
|
|
157
|
-
model_name="storyarc",
|
|
158
|
-
name="custom_cover",
|
|
159
|
-
field=models.ForeignKey(
|
|
160
|
-
default=None,
|
|
161
|
-
null=True,
|
|
162
|
-
on_delete=django.db.models.deletion.SET_DEFAULT,
|
|
163
|
-
to="codex.customcover",
|
|
164
|
-
),
|
|
165
|
-
),
|
|
166
|
-
]
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"""Generated by Django 5.0.6 on 2024-05-25 21:19."""
|
|
2
|
-
|
|
3
|
-
from django.db import migrations, models
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class Migration(migrations.Migration):
|
|
7
|
-
"""Migrate db."""
|
|
8
|
-
|
|
9
|
-
dependencies = [
|
|
10
|
-
("codex", "0028_custom_covers"),
|
|
11
|
-
]
|
|
12
|
-
|
|
13
|
-
operations = [
|
|
14
|
-
migrations.AlterField(
|
|
15
|
-
model_name="adminflag",
|
|
16
|
-
name="key",
|
|
17
|
-
field=models.CharField(
|
|
18
|
-
choices=[
|
|
19
|
-
("FV", "Folder View"),
|
|
20
|
-
("RG", "Registration"),
|
|
21
|
-
("NU", "Non Users"),
|
|
22
|
-
("AU", "Auto Update"),
|
|
23
|
-
("SO", "Search Index Optimize"),
|
|
24
|
-
("IM", "Import Metadata"),
|
|
25
|
-
],
|
|
26
|
-
db_index=True,
|
|
27
|
-
max_length=2,
|
|
28
|
-
),
|
|
29
|
-
),
|
|
30
|
-
migrations.AlterField(
|
|
31
|
-
model_name="timestamp",
|
|
32
|
-
name="key",
|
|
33
|
-
field=models.CharField(
|
|
34
|
-
choices=[
|
|
35
|
-
("JA", "Janitor"),
|
|
36
|
-
("VR", "Codex Version"),
|
|
37
|
-
("SI", "Search Index UUID"),
|
|
38
|
-
("AP", "API Key"),
|
|
39
|
-
],
|
|
40
|
-
db_index=True,
|
|
41
|
-
max_length=2,
|
|
42
|
-
),
|
|
43
|
-
),
|
|
44
|
-
]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{m as A,V as t}from"./VCheckboxBtn-m4IbdjEe.js";import{a as F,u as I,V as l}from"./VSelectionControl-BSL0qeL9.js";import{x as B,al as U,G as R,as as D,y as G,h as K,K as L,cr as M,L as u,ap as r}from"./admin-drawer-panel-C34Ze3-5.js";const N=B({...F(),...U(A(),["inline"])},"VCheckbox"),w=R()({name:"VCheckbox",inheritAttrs:!1,props:N(),emits:{"update:modelValue":e=>!0,"update:focused":e=>!0},setup(e,c){let{attrs:d,slots:a}=c;const s=D(e,"modelValue"),{isFocused:n,focus:i,blur:m}=I(e),V=G(),p=K(()=>e.id||`checkbox-${V}`);return L(()=>{const[b,f]=M(d),v=l.filterProps(e),k=t.filterProps(e);return u(l,r({class:["v-checkbox",e.class]},b,v,{modelValue:s.value,"onUpdate:modelValue":o=>s.value=o,id:p.value,focused:n.value,style:e.style}),{...a,default:o=>{let{id:x,messagesId:h,isDisabled:P,isReadonly:y,isValid:C}=o;return u(t,r(k,{id:x.value,"aria-describedby":h.value,disabled:P.value,readonly:y.value},f,{error:C.value===!1,modelValue:s.value,"onUpdate:modelValue":g=>s.value=g,onFocus:i,onBlur:m}),a)}})}),{}}});export{w as V};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{m as A,V as t}from"./VCheckboxBtn-m4IbdjEe.js";import{a as F,u as I,V as l}from"./VSelectionControl-BSL0qeL9.js";import{x as B,al as U,G as R,as as D,y as G,h as K,K as L,cr as M,L as u,ap as r}from"./admin-drawer-panel-C34Ze3-5.js";const N=B({...F(),...U(A(),["inline"])},"VCheckbox"),w=R()({name:"VCheckbox",inheritAttrs:!1,props:N(),emits:{"update:modelValue":e=>!0,"update:focused":e=>!0},setup(e,c){let{attrs:d,slots:a}=c;const s=D(e,"modelValue"),{isFocused:n,focus:i,blur:m}=I(e),V=G(),p=K(()=>e.id||`checkbox-${V}`);return L(()=>{const[b,f]=M(d),v=l.filterProps(e),k=t.filterProps(e);return u(l,r({class:["v-checkbox",e.class]},b,v,{modelValue:s.value,"onUpdate:modelValue":o=>s.value=o,id:p.value,focused:n.value,style:e.style}),{...a,default:o=>{let{id:x,messagesId:h,isDisabled:P,isReadonly:y,isValid:C}=o;return u(t,r(k,{id:x.value,"aria-describedby":h.value,disabled:P.value,readonly:y.value},f,{error:C.value===!1,modelValue:s.value,"onUpdate:modelValue":g=>s.value=g,onFocus:i,onBlur:m}),a)}})}),{}}});export{w as V};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{m as pe,u as ke,a as Ce,b as we,c as Se}from"./VSelect-BnoCfCLY.js";import{m as Fe,V as Z}from"./VTextField-Da_Hs7ls.js";import{x as Ie,al as De,aZ as Pe,G as Ae,bS as Re,r as K,s as D,as as Q,h,cD as _e,an as Me,cE as P,a as A,n as Y,X as Ee,K as Te,L as s,M as O,ap as I,bq as Le,ak as ee,cF as Ne,ah as le,cG as Ke,bd as Oe,ad as Be,cH as Ue,cI as He,cJ as je}from"./admin-drawer-panel-C34Ze3-5.js";import{m as qe,u as ze}from"./filter-frSNsexx.js";import{g as Ge}from"./VSelectionControl-BSL0qeL9.js";import{f as $e}from"./VDialog-DiixpkQL.js";import{V as Je}from"./VCheckboxBtn-m4IbdjEe.js";function We(e,g,R){if(g==null)return e;if(Array.isArray(g))throw new Error("Multiple matches is not implemented");return typeof g=="number"&&~g?s(O,null,[s("span",{class:"v-combobox__unmask"},[e.substr(0,g)]),s("span",{class:"v-combobox__mask"},[e.substr(g,R)]),s("span",{class:"v-combobox__unmask"},[e.substr(g+R)])]):e}const Xe=Ie({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...qe({filterKeys:["title"]}),...pe({hideNoData:!0,returnObject:!0}),...De(Fe({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...Pe({transition:!1})},"VCombobox"),ul=Ae()({name:"VCombobox",props:Xe(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:search":e=>!0,"update:menu":e=>!0},setup(e,g){var J;let{emit:R,slots:n}=g;const{t:B}=Re(),p=K(),x=D(!1),k=D(!0),_=D(!1),z=K(),G=K(),U=Q(e,"menu"),c=h({get:()=>U.value,set:l=>{var t;U.value&&!l&&((t=z.value)!=null&&t.ΨopenChildren)||(U.value=l)}}),r=D(-1);let H=!1;const ae=h(()=>{var l;return(l=p.value)==null?void 0:l.color}),$=h(()=>c.value?e.closeText:e.openText),{items:te,transformIn:ue,transformOut:ne}=_e(e),{textColorClasses:oe,textColorStyles:ie}=Me(ae),u=Q(e,"modelValue",[],l=>ue(je(l)),l=>{const t=ne(l);return e.multiple?t:t[0]??null}),F=Ge(),M=h(()=>!!(e.chips||n.chip)),y=h(()=>M.value||!!n.selection),C=D(!e.multiple&&!y.value?((J=u.value[0])==null?void 0:J.title)??"":""),v=h({get:()=>C.value,set:l=>{var t;if(C.value=l??"",!e.multiple&&!y.value&&(u.value=[P(e,l)]),l&&e.multiple&&((t=e.delimiters)!=null&&t.length)){const i=l.split(new RegExp(`(?:${e.delimiters.join("|")})+`));i.length>1&&(i.forEach(a=>{a=a.trim(),a&&m(P(e,a))}),C.value="")}l||(r.value=-1),k.value=!l}}),se=h(()=>typeof e.counterValue=="function"?e.counterValue(u.value):typeof e.counterValue=="number"?e.counterValue:e.multiple?u.value.length:v.value.length);A(C,l=>{H?Y(()=>H=!1):x.value&&!c.value&&(c.value=!0),R("update:search",l)}),A(u,l=>{var t;!e.multiple&&!y.value&&(C.value=((t=l[0])==null?void 0:t.title)??"")});const{filteredItems:E,getMatches:re}=ze(e,te,()=>k.value?"":v.value),V=h(()=>e.hideSelected?E.value.filter(l=>!u.value.some(t=>t.value===l.value)):E.value),ce=h(()=>u.value.map(l=>l.value)),T=h(()=>{var t;return(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&v.value===((t=V.value[0])==null?void 0:t.title))&&V.value.length>0&&!k.value&&!_.value}),j=h(()=>e.hideNoData&&!V.value.length||e.readonly||(F==null?void 0:F.isReadonly.value)),q=K(),{onListScroll:ve,onListKeydown:de}=ke(q,p);function fe(l){H=!0,e.openOnClear&&(c.value=!0)}function me(){j.value||(c.value=!0)}function he(l){j.value||(x.value&&(l.preventDefault(),l.stopPropagation()),c.value=!c.value)}function be(l){var a;if(He(l)||e.readonly||F!=null&&F.isReadonly.value)return;const t=p.value.selectionStart,i=u.value.length;if((r.value>-1||["Enter","ArrowDown","ArrowUp"].includes(l.key))&&l.preventDefault(),["Enter","ArrowDown"].includes(l.key)&&(c.value=!0),["Escape"].includes(l.key)&&(c.value=!1),["Enter","Escape"].includes(l.key)&&(T.value&&l.key==="Enter"&&m(E.value[0]),k.value=!0),l.key==="ArrowDown"&&T.value&&((a=q.value)==null||a.focus("next")),l.key==="Enter"&&v.value&&(m(P(e,v.value)),y.value&&(C.value="")),["Backspace","Delete"].includes(l.key)){if(!e.multiple&&y.value&&u.value.length>0&&!v.value)return m(u.value[0],!1);if(~r.value){const o=r.value;m(u.value[r.value],!1),r.value=o>=i-1?i-2:o}else l.key==="Backspace"&&!v.value&&(r.value=i-1)}if(e.multiple){if(l.key==="ArrowLeft"){if(r.value<0&&t>0)return;const o=r.value>-1?r.value-1:i-1;u.value[o]?r.value=o:(r.value=-1,p.value.setSelectionRange(v.value.length,v.value.length))}if(l.key==="ArrowRight"){if(r.value<0)return;const o=r.value+1;u.value[o]?r.value=o:(r.value=-1,p.value.setSelectionRange(0,0))}}}function ge(){var l;x.value&&(k.value=!0,(l=p.value)==null||l.focus())}function m(l){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!l||l.props.disabled))if(e.multiple){const i=u.value.findIndex(o=>e.valueComparator(o.value,l.value)),a=t??!~i;if(~i){const o=a?[...u.value,l]:[...u.value];o.splice(i,1),u.value=o}else a&&(u.value=[...u.value,l]);e.clearOnSelect&&(v.value="")}else{const i=t!==!1;u.value=i?[l]:[],C.value=i&&!y.value?l.title:"",Y(()=>{c.value=!1,k.value=!0})}}function xe(l){x.value=!0,setTimeout(()=>{_.value=!0})}function ye(l){_.value=!1}function Ve(l){(l==null||l===""&&!e.multiple&&!y.value)&&(u.value=[])}return A(x,(l,t)=>{if(!(l||l===t)){if(r.value=-1,c.value=!1,T.value&&!_.value&&!u.value.some(i=>{let{value:a}=i;return a===V.value[0].value})){m(V.value[0]);return}if(v.value){if(e.multiple){m(P(e,v.value));return}if(!y.value)return;u.value.some(i=>{let{title:a}=i;return a===v.value})?C.value="":m(P(e,v.value))}}}),A(c,()=>{if(!e.hideSelected&&c.value&&u.value.length){const l=V.value.findIndex(t=>u.value.some(i=>e.valueComparator(i.value,t.value)));Ee&&window.requestAnimationFrame(()=>{var t;l>=0&&((t=G.value)==null||t.scrollToIndex(l))})}}),A(()=>e.items,(l,t)=>{c.value||x.value&&!t.length&&l.length&&(c.value=!0)}),Te(()=>{const l=!!(!e.hideNoData||V.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),t=u.value.length>0,i=Z.filterProps(e);return s(Z,I({ref:p},i,{modelValue:v.value,"onUpdate:modelValue":[a=>v.value=a,Ve],focused:x.value,"onUpdate:focused":a=>x.value=a,validationValue:u.externalValue,counterValue:se.value,dirty:t,class:["v-combobox",{"v-combobox--active-menu":c.value,"v-combobox--chips":!!e.chips,"v-combobox--selection-slot":!!y.value,"v-combobox--selecting-index":r.value>-1,[`v-combobox--${e.multiple?"multiple":"single"}`]:!0},e.class],style:e.style,readonly:e.readonly,placeholder:t?void 0:e.placeholder,"onClick:clear":fe,"onMousedown:control":me,onKeydown:be}),{...n,default:()=>s(O,null,[s(Ce,I({ref:z,modelValue:c.value,"onUpdate:modelValue":a=>c.value=a,activator:"parent",contentClass:"v-combobox__content",disabled:j.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterLeave:ge},e.menuProps),{default:()=>[l&&s(Le,I({ref:q,selected:ce.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:a=>a.preventDefault(),onKeydown:de,onFocusin:xe,onFocusout:ye,onScrollPassive:ve,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},e.listProps),{default:()=>{var a,o,b;return[(a=n["prepend-item"])==null?void 0:a.call(n),!V.value.length&&!e.hideNoData&&(((o=n["no-data"])==null?void 0:o.call(n))??s(ee,{title:B(e.noDataText)},null)),s(we,{ref:G,renderless:!0,items:V.value},{default:w=>{var X;let{item:d,index:S,itemRef:f}=w;const W=I(d.props,{ref:f,key:S,active:T.value&&S===0?!0:void 0,onClick:()=>m(d,null)});return((X=n.item)==null?void 0:X.call(n,{item:d,index:S,props:W}))??s(ee,I(W,{role:"option"}),{prepend:L=>{let{isSelected:N}=L;return s(O,null,[e.multiple&&!e.hideSelected?s(Je,{key:d.value,modelValue:N,ripple:!1,tabindex:"-1"},null):void 0,d.props.prependAvatar&&s(Ne,{image:d.props.prependAvatar},null),d.props.prependIcon&&s(le,{icon:d.props.prependIcon},null)])},title:()=>{var L,N;return k.value?d.title:We(d.title,(L=re(d))==null?void 0:L.title,((N=v.value)==null?void 0:N.length)??0)}})}}),(b=n["append-item"])==null?void 0:b.call(n)]}})]}),u.value.map((a,o)=>{function b(f){f.stopPropagation(),f.preventDefault(),m(a,!1)}const w={"onClick:close":b,onKeydown(f){f.key!=="Enter"&&f.key!==" "||(f.preventDefault(),f.stopPropagation(),b(f))},onMousedown(f){f.preventDefault(),f.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},d=M.value?!!n.chip:!!n.selection,S=d?Ke(M.value?n.chip({item:a,index:o,props:w}):n.selection({item:a,index:o})):void 0;if(!(d&&!S))return s("div",{key:a.value,class:["v-combobox__selection",o===r.value&&["v-combobox__selection--selected",oe.value]],style:o===r.value?ie.value:{}},[M.value?n.chip?s(Oe,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:a.title}}},{default:()=>[S]}):s(Se,I({key:"chip",closable:e.closableChips,size:"small",text:a.title,disabled:a.props.disabled},w),null):S??s("span",{class:"v-combobox__selection-text"},[a.title,e.multiple&&o<u.value.length-1&&s("span",{class:"v-combobox__selection-comma"},[Be(",")])])])})]),"append-inner":function(){var w;for(var a=arguments.length,o=new Array(a),b=0;b<a;b++)o[b]=arguments[b];return s(O,null,[(w=n["append-inner"])==null?void 0:w.call(n,...o),(!e.hideNoData||e.items.length)&&e.menuIcon?s(le,{class:"v-combobox__menu-icon",icon:e.menuIcon,onMousedown:he,onClick:Ue,"aria-label":B($.value),title:B($.value),tabindex:"-1"},null):void 0])}})}),$e({isFocused:x,isPristine:k,menu:c,search:v,selectionIndex:r,filteredItems:E,select:m},p)}});export{ul as V};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{m as pe,u as ke,a as Ce,b as we,c as Se}from"./VSelect-BnoCfCLY.js";import{m as Fe,V as Z}from"./VTextField-Da_Hs7ls.js";import{x as Ie,al as De,aZ as Pe,G as Ae,bS as Re,r as K,s as D,as as Q,h,cD as _e,an as Me,cE as P,a as A,n as Y,X as Ee,K as Te,L as s,M as O,ap as I,bq as Le,ak as ee,cF as Ne,ah as le,cG as Ke,bd as Oe,ad as Be,cH as Ue,cI as He,cJ as je}from"./admin-drawer-panel-C34Ze3-5.js";import{m as qe,u as ze}from"./filter-frSNsexx.js";import{g as Ge}from"./VSelectionControl-BSL0qeL9.js";import{f as $e}from"./VDialog-DiixpkQL.js";import{V as Je}from"./VCheckboxBtn-m4IbdjEe.js";function We(e,g,R){if(g==null)return e;if(Array.isArray(g))throw new Error("Multiple matches is not implemented");return typeof g=="number"&&~g?s(O,null,[s("span",{class:"v-combobox__unmask"},[e.substr(0,g)]),s("span",{class:"v-combobox__mask"},[e.substr(g,R)]),s("span",{class:"v-combobox__unmask"},[e.substr(g+R)])]):e}const Xe=Ie({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...qe({filterKeys:["title"]}),...pe({hideNoData:!0,returnObject:!0}),...De(Fe({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...Pe({transition:!1})},"VCombobox"),ul=Ae()({name:"VCombobox",props:Xe(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:search":e=>!0,"update:menu":e=>!0},setup(e,g){var J;let{emit:R,slots:n}=g;const{t:B}=Re(),p=K(),x=D(!1),k=D(!0),_=D(!1),z=K(),G=K(),U=Q(e,"menu"),c=h({get:()=>U.value,set:l=>{var t;U.value&&!l&&((t=z.value)!=null&&t.ΨopenChildren)||(U.value=l)}}),r=D(-1);let H=!1;const ae=h(()=>{var l;return(l=p.value)==null?void 0:l.color}),$=h(()=>c.value?e.closeText:e.openText),{items:te,transformIn:ue,transformOut:ne}=_e(e),{textColorClasses:oe,textColorStyles:ie}=Me(ae),u=Q(e,"modelValue",[],l=>ue(je(l)),l=>{const t=ne(l);return e.multiple?t:t[0]??null}),F=Ge(),M=h(()=>!!(e.chips||n.chip)),y=h(()=>M.value||!!n.selection),C=D(!e.multiple&&!y.value?((J=u.value[0])==null?void 0:J.title)??"":""),v=h({get:()=>C.value,set:l=>{var t;if(C.value=l??"",!e.multiple&&!y.value&&(u.value=[P(e,l)]),l&&e.multiple&&((t=e.delimiters)!=null&&t.length)){const i=l.split(new RegExp(`(?:${e.delimiters.join("|")})+`));i.length>1&&(i.forEach(a=>{a=a.trim(),a&&m(P(e,a))}),C.value="")}l||(r.value=-1),k.value=!l}}),se=h(()=>typeof e.counterValue=="function"?e.counterValue(u.value):typeof e.counterValue=="number"?e.counterValue:e.multiple?u.value.length:v.value.length);A(C,l=>{H?Y(()=>H=!1):x.value&&!c.value&&(c.value=!0),R("update:search",l)}),A(u,l=>{var t;!e.multiple&&!y.value&&(C.value=((t=l[0])==null?void 0:t.title)??"")});const{filteredItems:E,getMatches:re}=ze(e,te,()=>k.value?"":v.value),V=h(()=>e.hideSelected?E.value.filter(l=>!u.value.some(t=>t.value===l.value)):E.value),ce=h(()=>u.value.map(l=>l.value)),T=h(()=>{var t;return(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&v.value===((t=V.value[0])==null?void 0:t.title))&&V.value.length>0&&!k.value&&!_.value}),j=h(()=>e.hideNoData&&!V.value.length||e.readonly||(F==null?void 0:F.isReadonly.value)),q=K(),{onListScroll:ve,onListKeydown:de}=ke(q,p);function fe(l){H=!0,e.openOnClear&&(c.value=!0)}function me(){j.value||(c.value=!0)}function he(l){j.value||(x.value&&(l.preventDefault(),l.stopPropagation()),c.value=!c.value)}function be(l){var a;if(He(l)||e.readonly||F!=null&&F.isReadonly.value)return;const t=p.value.selectionStart,i=u.value.length;if((r.value>-1||["Enter","ArrowDown","ArrowUp"].includes(l.key))&&l.preventDefault(),["Enter","ArrowDown"].includes(l.key)&&(c.value=!0),["Escape"].includes(l.key)&&(c.value=!1),["Enter","Escape"].includes(l.key)&&(T.value&&l.key==="Enter"&&m(E.value[0]),k.value=!0),l.key==="ArrowDown"&&T.value&&((a=q.value)==null||a.focus("next")),l.key==="Enter"&&v.value&&(m(P(e,v.value)),y.value&&(C.value="")),["Backspace","Delete"].includes(l.key)){if(!e.multiple&&y.value&&u.value.length>0&&!v.value)return m(u.value[0],!1);if(~r.value){const o=r.value;m(u.value[r.value],!1),r.value=o>=i-1?i-2:o}else l.key==="Backspace"&&!v.value&&(r.value=i-1)}if(e.multiple){if(l.key==="ArrowLeft"){if(r.value<0&&t>0)return;const o=r.value>-1?r.value-1:i-1;u.value[o]?r.value=o:(r.value=-1,p.value.setSelectionRange(v.value.length,v.value.length))}if(l.key==="ArrowRight"){if(r.value<0)return;const o=r.value+1;u.value[o]?r.value=o:(r.value=-1,p.value.setSelectionRange(0,0))}}}function ge(){var l;x.value&&(k.value=!0,(l=p.value)==null||l.focus())}function m(l){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!l||l.props.disabled))if(e.multiple){const i=u.value.findIndex(o=>e.valueComparator(o.value,l.value)),a=t??!~i;if(~i){const o=a?[...u.value,l]:[...u.value];o.splice(i,1),u.value=o}else a&&(u.value=[...u.value,l]);e.clearOnSelect&&(v.value="")}else{const i=t!==!1;u.value=i?[l]:[],C.value=i&&!y.value?l.title:"",Y(()=>{c.value=!1,k.value=!0})}}function xe(l){x.value=!0,setTimeout(()=>{_.value=!0})}function ye(l){_.value=!1}function Ve(l){(l==null||l===""&&!e.multiple&&!y.value)&&(u.value=[])}return A(x,(l,t)=>{if(!(l||l===t)){if(r.value=-1,c.value=!1,T.value&&!_.value&&!u.value.some(i=>{let{value:a}=i;return a===V.value[0].value})){m(V.value[0]);return}if(v.value){if(e.multiple){m(P(e,v.value));return}if(!y.value)return;u.value.some(i=>{let{title:a}=i;return a===v.value})?C.value="":m(P(e,v.value))}}}),A(c,()=>{if(!e.hideSelected&&c.value&&u.value.length){const l=V.value.findIndex(t=>u.value.some(i=>e.valueComparator(i.value,t.value)));Ee&&window.requestAnimationFrame(()=>{var t;l>=0&&((t=G.value)==null||t.scrollToIndex(l))})}}),A(()=>e.items,(l,t)=>{c.value||x.value&&!t.length&&l.length&&(c.value=!0)}),Te(()=>{const l=!!(!e.hideNoData||V.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),t=u.value.length>0,i=Z.filterProps(e);return s(Z,I({ref:p},i,{modelValue:v.value,"onUpdate:modelValue":[a=>v.value=a,Ve],focused:x.value,"onUpdate:focused":a=>x.value=a,validationValue:u.externalValue,counterValue:se.value,dirty:t,class:["v-combobox",{"v-combobox--active-menu":c.value,"v-combobox--chips":!!e.chips,"v-combobox--selection-slot":!!y.value,"v-combobox--selecting-index":r.value>-1,[`v-combobox--${e.multiple?"multiple":"single"}`]:!0},e.class],style:e.style,readonly:e.readonly,placeholder:t?void 0:e.placeholder,"onClick:clear":fe,"onMousedown:control":me,onKeydown:be}),{...n,default:()=>s(O,null,[s(Ce,I({ref:z,modelValue:c.value,"onUpdate:modelValue":a=>c.value=a,activator:"parent",contentClass:"v-combobox__content",disabled:j.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterLeave:ge},e.menuProps),{default:()=>[l&&s(Le,I({ref:q,selected:ce.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:a=>a.preventDefault(),onKeydown:de,onFocusin:xe,onFocusout:ye,onScrollPassive:ve,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},e.listProps),{default:()=>{var a,o,b;return[(a=n["prepend-item"])==null?void 0:a.call(n),!V.value.length&&!e.hideNoData&&(((o=n["no-data"])==null?void 0:o.call(n))??s(ee,{title:B(e.noDataText)},null)),s(we,{ref:G,renderless:!0,items:V.value},{default:w=>{var X;let{item:d,index:S,itemRef:f}=w;const W=I(d.props,{ref:f,key:S,active:T.value&&S===0?!0:void 0,onClick:()=>m(d,null)});return((X=n.item)==null?void 0:X.call(n,{item:d,index:S,props:W}))??s(ee,I(W,{role:"option"}),{prepend:L=>{let{isSelected:N}=L;return s(O,null,[e.multiple&&!e.hideSelected?s(Je,{key:d.value,modelValue:N,ripple:!1,tabindex:"-1"},null):void 0,d.props.prependAvatar&&s(Ne,{image:d.props.prependAvatar},null),d.props.prependIcon&&s(le,{icon:d.props.prependIcon},null)])},title:()=>{var L,N;return k.value?d.title:We(d.title,(L=re(d))==null?void 0:L.title,((N=v.value)==null?void 0:N.length)??0)}})}}),(b=n["append-item"])==null?void 0:b.call(n)]}})]}),u.value.map((a,o)=>{function b(f){f.stopPropagation(),f.preventDefault(),m(a,!1)}const w={"onClick:close":b,onKeydown(f){f.key!=="Enter"&&f.key!==" "||(f.preventDefault(),f.stopPropagation(),b(f))},onMousedown(f){f.preventDefault(),f.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},d=M.value?!!n.chip:!!n.selection,S=d?Ke(M.value?n.chip({item:a,index:o,props:w}):n.selection({item:a,index:o})):void 0;if(!(d&&!S))return s("div",{key:a.value,class:["v-combobox__selection",o===r.value&&["v-combobox__selection--selected",oe.value]],style:o===r.value?ie.value:{}},[M.value?n.chip?s(Oe,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:a.title}}},{default:()=>[S]}):s(Se,I({key:"chip",closable:e.closableChips,size:"small",text:a.title,disabled:a.props.disabled},w),null):S??s("span",{class:"v-combobox__selection-text"},[a.title,e.multiple&&o<u.value.length-1&&s("span",{class:"v-combobox__selection-comma"},[Be(",")])])])})]),"append-inner":function(){var w;for(var a=arguments.length,o=new Array(a),b=0;b<a;b++)o[b]=arguments[b];return s(O,null,[(w=n["append-inner"])==null?void 0:w.call(n,...o),(!e.hideNoData||e.items.length)&&e.menuIcon?s(le,{class:"v-combobox__menu-icon",icon:e.menuIcon,onMousedown:he,onClick:Ue,"aria-label":B($.value),title:B($.value),tabindex:"-1"},null):void 0])}})}),$e({isFocused:x,isPristine:k,menu:c,search:v,selectionIndex:r,filteredItems:E,select:m},p)}});export{ul as V};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as Ge,R as Ue,aA as Xe,L as B,T as ge,ad as ye,ai as Ye,ao as he,x as z,r as W,X as N,cl as fe,a as R,cm as $,di as Ke,dj as Ze,dk as be,dl as ne,dm as oe,dn as we,h as O,n as Q,dp as Je,dq as Z,dr as ae,ds as Ee,dt as xe,C as V,a0 as Se,da as Qe,w as ve,du as Te,dv as et,dw as tt,z as de,i as Be,dx as pe,dy as nt,ap as D,dz as ot,d9 as at,s as j,cj as rt,f as Fe,p as lt,dA as it,dB as st,dC as Le,E as ct,aY as ut,F as ft,aZ as vt,G as Me,as as _e,I as dt,J as mt,aw as gt,ax as yt,a$ as ht,o as bt,cn as wt,d7 as Et,aq as xt,K as Ve,dD as St,b2 as pt,b0 as Pt,b3 as Ot,b1 as Ct,M as At,cp as kt,dE as Rt,ar as Tt,d1 as Bt,bd as Ft,d3 as Lt}from"./admin-drawer-panel-C34Ze3-5.js";import{d as Mt}from"./main-Cavvqkyp.js";const _t={name:"ConfirmFooter",props:{confirmText:{type:String,required:!0},disabled:{type:Boolean,default:!1}},emits:["confirm","cancel"]},Vt={class:"confirmFooter"};function Dt(e,n,t,o,i,a){return Ue(),Xe("footer",Vt,[B(he,{class:"confirmButton",disabled:t.disabled,onClick:n[0]||(n[0]=r=>e.$emit("confirm"))},{default:ge(()=>[ye(Ye(t.confirmText),1)]),_:1},8,["disabled"]),B(he,{class:"cancelButton",onClick:n[1]||(n[1]=r=>e.$emit("cancel"))},{default:ge(()=>[ye(" Cancel ")]),_:1})])}const yn=Ge(_t,[["render",Dt],["__scopeId","data-v-24df1550"]]);function re(e,n){return{x:e.x+n.x,y:e.y+n.y}}function It(e,n){return{x:e.x-n.x,y:e.y-n.y}}function Pe(e,n){if(e.side==="top"||e.side==="bottom"){const{side:t,align:o}=e,i=o==="left"?0:o==="center"?n.width/2:o==="right"?n.width:o,a=t==="top"?0:t==="bottom"?n.height:t;return re({x:i,y:a},n)}else if(e.side==="left"||e.side==="right"){const{side:t,align:o}=e,i=t==="left"?0:t==="right"?n.width:t,a=o==="top"?0:o==="center"?n.height/2:o==="bottom"?n.height:o;return re({x:i,y:a},n)}return re({x:n.width/2,y:n.height/2},n)}const De={static:Ht,connected:qt},Wt=z({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in De},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function $t(e,n){const t=W({}),o=W();N&&fe(()=>!!(n.isActive.value&&e.locationStrategy),a=>{var r,l;R(()=>e.locationStrategy,a),$(()=>{window.removeEventListener("resize",i),o.value=void 0}),window.addEventListener("resize",i,{passive:!0}),typeof e.locationStrategy=="function"?o.value=(r=e.locationStrategy(n,e,t))==null?void 0:r.updateLocation:o.value=(l=De[e.locationStrategy](n,e,t))==null?void 0:l.updateLocation});function i(a){var r;(r=o.value)==null||r.call(o,a)}return{contentStyles:t,updateLocation:o}}function Ht(){}function Nt(e,n){n?e.style.removeProperty("left"):e.style.removeProperty("right");const t=Qe(e);return n?t.x+=parseFloat(e.style.right||0):t.x-=parseFloat(e.style.left||0),t.y-=parseFloat(e.style.top||0),t}function qt(e,n,t){(Array.isArray(e.target.value)||Ke(e.target.value))&&Object.assign(t.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:i,preferredOrigin:a}=Ze(()=>{const d=be(n.location,e.isRtl.value),u=n.origin==="overlap"?d:n.origin==="auto"?ne(d):be(n.origin,e.isRtl.value);return d.side===u.side&&d.align===oe(u).align?{preferredAnchor:we(d),preferredOrigin:we(u)}:{preferredAnchor:d,preferredOrigin:u}}),[r,l,f,v]=["minWidth","minHeight","maxWidth","maxHeight"].map(d=>O(()=>{const u=parseFloat(n[d]);return isNaN(u)?1/0:u})),c=O(()=>{if(Array.isArray(n.offset))return n.offset;if(typeof n.offset=="string"){const d=n.offset.split(" ").map(parseFloat);return d.length<2&&d.push(0),d}return typeof n.offset=="number"?[n.offset,0]:[0,0]});let m=!1;const b=new ResizeObserver(()=>{m&&h()});R([e.target,e.contentEl],(d,u)=>{let[S,C]=d,[p,w]=u;p&&!Array.isArray(p)&&b.unobserve(p),S&&!Array.isArray(S)&&b.observe(S),w&&b.unobserve(w),C&&b.observe(C)},{immediate:!0}),$(()=>{b.disconnect()});function h(){if(m=!1,requestAnimationFrame(()=>m=!0),!e.target.value||!e.contentEl.value)return;const d=Je(e.target.value),u=Nt(e.contentEl.value,e.isRtl.value),S=Z(e.contentEl.value),C=12;S.length||(S.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(u.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),u.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const p=S.reduce((P,E)=>{const g=E.getBoundingClientRect(),y=new ae({x:E===document.documentElement?0:g.x,y:E===document.documentElement?0:g.y,width:E.clientWidth,height:E.clientHeight});return P?new ae({x:Math.max(P.left,y.left),y:Math.max(P.top,y.top),width:Math.min(P.right,y.right)-Math.max(P.left,y.left),height:Math.min(P.bottom,y.bottom)-Math.max(P.top,y.top)}):y},void 0);p.x+=C,p.y+=C,p.width-=C*2,p.height-=C*2;let w={anchor:i.value,origin:a.value};function H(P){const E=new ae(u),g=Pe(P.anchor,d),y=Pe(P.origin,E);let{x:M,y:F}=It(g,y);switch(P.anchor.side){case"top":F-=c.value[0];break;case"bottom":F+=c.value[0];break;case"left":M-=c.value[0];break;case"right":M+=c.value[0];break}switch(P.anchor.align){case"top":F-=c.value[1];break;case"bottom":F+=c.value[1];break;case"left":M-=c.value[1];break;case"right":M+=c.value[1];break}return E.x+=M,E.y+=F,E.width=Math.min(E.width,f.value),E.height=Math.min(E.height,v.value),{overflows:xe(E,p),x:M,y:F}}let L=0,A=0;const s={x:0,y:0},T={x:!1,y:!1};let ee=-1;for(;!(ee++>10);){const{x:P,y:E,overflows:g}=H(w);L+=P,A+=E,u.x+=P,u.y+=E;{const y=Ee(w.anchor),M=g.x.before||g.x.after,F=g.y.before||g.y.after;let G=!1;if(["x","y"].forEach(k=>{if(k==="x"&&M&&!T.x||k==="y"&&F&&!T.y){const _={anchor:{...w.anchor},origin:{...w.origin}},X=k==="x"?y==="y"?oe:ne:y==="y"?ne:oe;_.anchor=X(_.anchor),_.origin=X(_.origin);const{overflows:q}=H(_);(q[k].before<=g[k].before&&q[k].after<=g[k].after||q[k].before+q[k].after<(g[k].before+g[k].after)/2)&&(w=_,G=T[k]=!0)}}),G)continue}g.x.before&&(L+=g.x.before,u.x+=g.x.before),g.x.after&&(L-=g.x.after,u.x-=g.x.after),g.y.before&&(A+=g.y.before,u.y+=g.y.before),g.y.after&&(A-=g.y.after,u.y-=g.y.after);{const y=xe(u,p);s.x=p.width-y.x.before-y.x.after,s.y=p.height-y.y.before-y.y.after,L+=y.x.before,u.x+=y.x.before,A+=y.y.before,u.y+=y.y.before}break}const te=Ee(w.anchor);return Object.assign(t.value,{"--v-overlay-anchor-origin":`${w.anchor.side} ${w.anchor.align}`,transformOrigin:`${w.origin.side} ${w.origin.align}`,top:V(le(A)),left:e.isRtl.value?void 0:V(le(L)),right:e.isRtl.value?V(le(-L)):void 0,minWidth:V(te==="y"?Math.min(r.value,d.width):r.value),maxWidth:V(Oe(Se(s.x,r.value===1/0?0:r.value,f.value))),maxHeight:V(Oe(Se(s.y,l.value===1/0?0:l.value,v.value)))}),{available:s,contentBox:u}}return R(()=>[i.value,a.value,n.offset,n.minWidth,n.minHeight,n.maxWidth,n.maxHeight],()=>h()),Q(()=>{const d=h();if(!d)return;const{available:u,contentBox:S}=d;S.height>u.y&&requestAnimationFrame(()=>{h(),requestAnimationFrame(()=>{h()})})}),{updateLocation:h}}function le(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function Oe(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let ce=!0;const J=[];function zt(e){!ce||J.length?(J.push(e),ue()):(ce=!1,e(),ue())}let Ce=-1;function ue(){cancelAnimationFrame(Ce),Ce=requestAnimationFrame(()=>{const e=J.shift();e&&e(),J.length?ue():ce=!0})}const K={none:null,close:Ut,block:Xt,reposition:Yt},jt=z({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in K}},"VOverlay-scroll-strategies");function Gt(e,n){if(!N)return;let t;ve(async()=>{t==null||t.stop(),n.isActive.value&&e.scrollStrategy&&(t=Te(),await new Promise(o=>setTimeout(o)),t.active&&t.run(()=>{var o;typeof e.scrollStrategy=="function"?e.scrollStrategy(n,e,t):(o=K[e.scrollStrategy])==null||o.call(K,n,e,t)}))}),$(()=>{t==null||t.stop()})}function Ut(e){function n(t){e.isActive.value=!1}Ie(e.targetEl.value??e.contentEl.value,n)}function Xt(e,n){var r;const t=(r=e.root.value)==null?void 0:r.offsetParent,o=[...new Set([...Z(e.targetEl.value,n.contained?t:void 0),...Z(e.contentEl.value,n.contained?t:void 0)])].filter(l=>!l.classList.contains("v-overlay-scroll-blocked")),i=window.innerWidth-document.documentElement.offsetWidth,a=(l=>et(l)&&l)(t||document.documentElement);a&&e.root.value.classList.add("v-overlay--scroll-blocked"),o.forEach((l,f)=>{l.style.setProperty("--v-body-scroll-x",V(-l.scrollLeft)),l.style.setProperty("--v-body-scroll-y",V(-l.scrollTop)),l!==document.documentElement&&l.style.setProperty("--v-scrollbar-offset",V(i)),l.classList.add("v-overlay-scroll-blocked")}),$(()=>{o.forEach((l,f)=>{const v=parseFloat(l.style.getPropertyValue("--v-body-scroll-x")),c=parseFloat(l.style.getPropertyValue("--v-body-scroll-y")),m=l.style.scrollBehavior;l.style.scrollBehavior="auto",l.style.removeProperty("--v-body-scroll-x"),l.style.removeProperty("--v-body-scroll-y"),l.style.removeProperty("--v-scrollbar-offset"),l.classList.remove("v-overlay-scroll-blocked"),l.scrollLeft=-v,l.scrollTop=-c,l.style.scrollBehavior=m}),a&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function Yt(e,n,t){let o=!1,i=-1,a=-1;function r(l){zt(()=>{var c,m;const f=performance.now();(m=(c=e.updateLocation).value)==null||m.call(c,l),o=(performance.now()-f)/(1e3/60)>2})}a=(typeof requestIdleCallback>"u"?l=>l():requestIdleCallback)(()=>{t.run(()=>{Ie(e.targetEl.value??e.contentEl.value,l=>{o?(cancelAnimationFrame(i),i=requestAnimationFrame(()=>{i=requestAnimationFrame(()=>{r(l)})})):r(l)})})}),$(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(a),cancelAnimationFrame(i)})}function Ie(e,n){const t=[document,...Z(e)];t.forEach(o=>{o.addEventListener("scroll",n,{passive:!0})}),$(()=>{t.forEach(o=>{o.removeEventListener("scroll",n)})})}const Kt=Symbol.for("vuetify:v-menu"),Zt=z({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function Jt(e,n){let t=()=>{};function o(r){t==null||t();const l=Number(r?e.openDelay:e.closeDelay);return new Promise(f=>{t=tt(l,()=>{n==null||n(r),f(r)})})}function i(){return o(!0)}function a(){return o(!1)}return{clearDelay:t,runOpenDelay:i,runCloseDelay:a}}const Qt=z({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...Zt()},"VOverlay-activator");function en(e,n){let{isActive:t,isTop:o}=n;const i=de("useActivator"),a=W();let r=!1,l=!1,f=!0;const v=O(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),c=O(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!v.value),{runOpenDelay:m,runCloseDelay:b}=Jt(e,s=>{s===(e.openOnHover&&r||v.value&&l)&&!(e.openOnHover&&t.value&&!o.value)&&(t.value!==s&&(f=!0),t.value=s)}),h=W(),d={onClick:s=>{s.stopPropagation(),a.value=s.currentTarget||s.target,t.value||(h.value=[s.clientX,s.clientY]),t.value=!t.value},onMouseenter:s=>{var T;(T=s.sourceCapabilities)!=null&&T.firesTouchEvents||(r=!0,a.value=s.currentTarget||s.target,m())},onMouseleave:s=>{r=!1,b()},onFocus:s=>{at(s.target,":focus-visible")!==!1&&(l=!0,s.stopPropagation(),a.value=s.currentTarget||s.target,m())},onBlur:s=>{l=!1,s.stopPropagation(),b()}},u=O(()=>{const s={};return c.value&&(s.onClick=d.onClick),e.openOnHover&&(s.onMouseenter=d.onMouseenter,s.onMouseleave=d.onMouseleave),v.value&&(s.onFocus=d.onFocus,s.onBlur=d.onBlur),s}),S=O(()=>{const s={};if(e.openOnHover&&(s.onMouseenter=()=>{r=!0,m()},s.onMouseleave=()=>{r=!1,b()}),v.value&&(s.onFocusin=()=>{l=!0,m()},s.onFocusout=()=>{l=!1,b()}),e.closeOnContentClick){const T=Be(Kt,null);s.onClick=()=>{t.value=!1,T==null||T.closeParents()}}return s}),C=O(()=>{const s={};return e.openOnHover&&(s.onMouseenter=()=>{f&&(r=!0,f=!1,m())},s.onMouseleave=()=>{r=!1,b()}),s});R(o,s=>{s&&(e.openOnHover&&!r&&(!v.value||!l)||v.value&&!l&&(!e.openOnHover||!r))&&(t.value=!1)}),R(t,s=>{s||setTimeout(()=>{h.value=void 0})},{flush:"post"});const p=pe();ve(()=>{p.value&&Q(()=>{a.value=p.el})});const w=pe(),H=O(()=>e.target==="cursor"&&h.value?h.value:w.value?w.el:We(e.target,i)||a.value),L=O(()=>Array.isArray(H.value)?void 0:H.value);let A;return R(()=>!!e.activator,s=>{s&&N?(A=Te(),A.run(()=>{tn(e,i,{activatorEl:a,activatorEvents:u})})):A&&A.stop()},{flush:"post",immediate:!0}),$(()=>{A==null||A.stop()}),{activatorEl:a,activatorRef:p,target:H,targetEl:L,targetRef:w,activatorEvents:u,contentEvents:S,scrimEvents:C}}function tn(e,n,t){let{activatorEl:o,activatorEvents:i}=t;R(()=>e.activator,(f,v)=>{if(v&&f!==v){const c=l(v);c&&r(c)}f&&Q(()=>a())},{immediate:!0}),R(()=>e.activatorProps,()=>{a()}),$(()=>{r()});function a(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l(),v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;f&&nt(f,D(i.value,v))}function r(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l(),v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;f&&ot(f,D(i.value,v))}function l(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const v=We(f,n);return o.value=(v==null?void 0:v.nodeType)===Node.ELEMENT_NODE?v:void 0,o.value}}function We(e,n){var o,i;if(!e)return;let t;if(e==="parent"){let a=(i=(o=n==null?void 0:n.proxy)==null?void 0:o.$el)==null?void 0:i.parentNode;for(;a!=null&&a.hasAttribute("data-no-activator");)a=a.parentNode;t=a}else typeof e=="string"?t=document.querySelector(e):"$el"in e?t=e.$el:t=e;return t}function nn(){if(!N)return j(!1);const{ssr:e}=Mt();if(e){const n=j(!1);return rt(()=>{n.value=!0}),n}else return j(!0)}const on=z({eager:Boolean},"lazy");function an(e,n){const t=j(!1),o=O(()=>t.value||e.eager||n.value);R(n,()=>t.value=!0);function i(){e.eager||(t.value=!1)}return{isBooted:t,hasContent:o,onAfterLeave:i}}function $e(){const n=de("useScopeId").vnode.scopeId;return{scopeId:n?{[n]:""}:void 0}}const Ae=Symbol.for("vuetify:stack"),U=Fe([]);function rn(e,n,t){const o=de("useStack"),i=!t,a=Be(Ae,void 0),r=Fe({activeChildren:new Set});lt(Ae,r);const l=j(+n.value);fe(e,()=>{var m;const c=(m=U.at(-1))==null?void 0:m[1];l.value=c?c+10:+n.value,i&&U.push([o.uid,l.value]),a==null||a.activeChildren.add(o.uid),$(()=>{if(i){const b=it(U).findIndex(h=>h[0]===o.uid);U.splice(b,1)}a==null||a.activeChildren.delete(o.uid)})});const f=j(!0);i&&ve(()=>{var m;const c=((m=U.at(-1))==null?void 0:m[0])===o.uid;setTimeout(()=>f.value=c)});const v=O(()=>!r.activeChildren.size);return{globalTop:st(f),localTop:v,stackStyles:O(()=>({zIndex:l.value}))}}function ln(e){return{teleportTarget:O(()=>{const t=e.value;if(t===!0||!N)return;const o=t===!1?document.body:typeof t=="string"?document.querySelector(t):t;if(o==null)return;let i=o.querySelector(":scope > .v-overlay-container");return i||(i=document.createElement("div"),i.className="v-overlay-container",o.appendChild(i)),i})}}function sn(){return!0}function He(e,n,t){if(!e||Ne(e,t)===!1)return!1;const o=Le(n);if(typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&o.host===e.target)return!1;const i=(typeof t.value=="object"&&t.value.include||(()=>[]))();return i.push(n),!i.some(a=>a==null?void 0:a.contains(e.target))}function Ne(e,n){return(typeof n.value=="object"&&n.value.closeConditional||sn)(e)}function cn(e,n,t){const o=typeof t.value=="function"?t.value:t.value.handler;n._clickOutside.lastMousedownWasOutside&&He(e,n,t)&&setTimeout(()=>{Ne(e,t)&&o&&o(e)},0)}function ke(e,n){const t=Le(e);n(document),typeof ShadowRoot<"u"&&t instanceof ShadowRoot&&n(t)}const un={mounted(e,n){const t=i=>cn(i,e,n),o=i=>{e._clickOutside.lastMousedownWasOutside=He(i,e,n)};ke(e,i=>{i.addEventListener("click",t,!0),i.addEventListener("mousedown",o,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[n.instance.$.uid]={onClick:t,onMousedown:o}},unmounted(e,n){e._clickOutside&&(ke(e,t=>{var a;if(!t||!((a=e._clickOutside)!=null&&a[n.instance.$.uid]))return;const{onClick:o,onMousedown:i}=e._clickOutside[n.instance.$.uid];t.removeEventListener("click",o,!0),t.removeEventListener("mousedown",i,!0)}),delete e._clickOutside[n.instance.$.uid])}};function fn(e){const{modelValue:n,color:t,...o}=e;return B(kt,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&B("div",D({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},o),null)]})}const qe=z({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...Qt(),...ct(),...ut(),...on(),...Wt(),...jt(),...ft(),...vt()},"VOverlay"),Re=Me()({name:"VOverlay",directives:{ClickOutside:un},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...qe()},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,n){let{slots:t,attrs:o,emit:i}=n;const a=_e(e,"modelValue"),r=O({get:()=>a.value,set:x=>{x&&e.disabled||(a.value=x)}}),{teleportTarget:l}=ln(O(()=>e.attach||e.contained)),{themeClasses:f}=dt(e),{rtlClasses:v,isRtl:c}=mt(),{hasContent:m,onAfterLeave:b}=an(e,r),h=gt(O(()=>typeof e.scrim=="string"?e.scrim:null)),{globalTop:d,localTop:u,stackStyles:S}=rn(r,yt(e,"zIndex"),e._disableGlobalStack),{activatorEl:C,activatorRef:p,target:w,targetEl:H,targetRef:L,activatorEvents:A,contentEvents:s,scrimEvents:T}=en(e,{isActive:r,isTop:u}),{dimensionStyles:ee}=ht(e),te=nn(),{scopeId:P}=$e();R(()=>e.disabled,x=>{x&&(r.value=!1)});const E=W(),g=W(),y=W(),{contentStyles:M,updateLocation:F}=$t(e,{isRtl:c,contentEl:y,target:w,isActive:r});Gt(e,{root:E,contentEl:y,targetEl:H,isActive:r,updateLocation:F});function G(x){i("click:outside",x),e.persistent?Y():r.value=!1}function k(x){return r.value&&d.value&&(!e.scrim||x.target===g.value)}N&&R(r,x=>{x?window.addEventListener("keydown",_):window.removeEventListener("keydown",_)},{immediate:!0}),bt(()=>{N&&window.removeEventListener("keydown",_)});function _(x){var I,me;x.key==="Escape"&&d.value&&(e.persistent?Y():(r.value=!1,(I=y.value)!=null&&I.contains(document.activeElement)&&((me=C.value)==null||me.focus())))}const X=wt();fe(()=>e.closeOnBack,()=>{Rt(X,x=>{d.value&&r.value?(x(!1),e.persistent?Y():r.value=!1):x()})});const q=W();R(()=>r.value&&(e.absolute||e.contained)&&l.value==null,x=>{if(x){const I=Et(E.value);I&&I!==document.scrollingElement&&(q.value=I.scrollTop)}});function Y(){e.noClickAnimation||y.value&&xt(y.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:Tt})}function ze(){i("afterEnter")}function je(){b(),i("afterLeave")}return Ve(()=>{var x;return B(At,null,[(x=t.activator)==null?void 0:x.call(t,{isActive:r.value,targetRef:L,props:D({ref:p},A.value,e.activatorProps)}),te.value&&m.value&&B(St,{disabled:!l.value,to:l.value},{default:()=>[B("div",D({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":r.value,"v-overlay--contained":e.contained},f.value,v.value,e.class],style:[S.value,{"--v-overlay-opacity":e.opacity,top:V(q.value)},e.style],ref:E},P,o),[B(fn,D({color:h,modelValue:r.value&&!!e.scrim,ref:g},T.value),null),B(pt,{appear:!0,persisted:!0,transition:e.transition,target:w.value,onAfterEnter:ze,onAfterLeave:je},{default:()=>{var I;return[Pt(B("div",D({ref:y,class:["v-overlay__content",e.contentClass],style:[ee.value,M.value]},s.value,e.contentProps),[(I=t.default)==null?void 0:I.call(t,{isActive:r})]),[[Ot,r.value],[Ct("click-outside"),{handler:G,closeConditional:k,include:()=>[C.value]}]])]}})])]})])}),{activatorEl:C,scrimEl:g,target:w,animateClick:Y,contentEl:y,globalTop:d,localTop:u,updateLocation:F}}}),ie=Symbol("Forwarded refs");function se(e,n){let t=e;for(;t;){const o=Reflect.getOwnPropertyDescriptor(t,n);if(o)return o;t=Object.getPrototypeOf(t)}}function vn(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),o=1;o<n;o++)t[o-1]=arguments[o];return e[ie]=t,new Proxy(e,{get(i,a){if(Reflect.has(i,a))return Reflect.get(i,a);if(!(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))){for(const r of t)if(r.value&&Reflect.has(r.value,a)){const l=Reflect.get(r.value,a);return typeof l=="function"?l.bind(r.value):l}}},has(i,a){if(Reflect.has(i,a))return!0;if(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))return!1;for(const r of t)if(r.value&&Reflect.has(r.value,a))return!0;return!1},set(i,a,r){if(Reflect.has(i,a))return Reflect.set(i,a,r);if(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))return!1;for(const l of t)if(l.value&&Reflect.has(l.value,a))return Reflect.set(l.value,a,r);return!1},getOwnPropertyDescriptor(i,a){var l;const r=Reflect.getOwnPropertyDescriptor(i,a);if(r)return r;if(!(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))){for(const f of t){if(!f.value)continue;const v=se(f.value,a)??("_"in f.value?se((l=f.value._)==null?void 0:l.setupState,a):void 0);if(v)return v}for(const f of t){const v=f.value&&f.value[ie];if(!v)continue;const c=v.slice();for(;c.length;){const m=c.shift(),b=se(m.value,a);if(b)return b;const h=m.value&&m.value[ie];h&&c.push(...h)}}}}})}const dn=z({fullscreen:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,...qe({origin:"center center",scrollStrategy:"block",transition:{component:Bt},zIndex:2400})},"VDialog"),hn=Me()({name:"VDialog",props:dn(),emits:{"update:modelValue":e=>!0,afterLeave:()=>!0},setup(e,n){let{emit:t,slots:o}=n;const i=_e(e,"modelValue"),{scopeId:a}=$e(),r=W();function l(c){var h,d;const m=c.relatedTarget,b=c.target;if(m!==b&&((h=r.value)!=null&&h.contentEl)&&((d=r.value)!=null&&d.globalTop)&&![document,r.value.contentEl].includes(b)&&!r.value.contentEl.contains(b)){const u=Lt(r.value.contentEl);if(!u.length)return;const S=u[0],C=u[u.length-1];m===S?C.focus():S.focus()}}N&&R(()=>i.value&&e.retainFocus,c=>{c?document.addEventListener("focusin",l):document.removeEventListener("focusin",l)},{immediate:!0});function f(){var c;(c=r.value)!=null&&c.contentEl&&!r.value.contentEl.contains(document.activeElement)&&r.value.contentEl.focus({preventScroll:!0})}function v(){t("afterLeave")}return R(i,async c=>{var m;c||(await Q(),(m=r.value.activatorEl)==null||m.focus({preventScroll:!0}))}),Ve(()=>{const c=Re.filterProps(e),m=D({"aria-haspopup":"dialog","aria-expanded":String(i.value)},e.activatorProps),b=D({tabindex:-1},e.contentProps);return B(Re,D({ref:r,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},c,{modelValue:i.value,"onUpdate:modelValue":h=>i.value=h,"aria-modal":"true",activatorProps:m,contentProps:b,role:"dialog",onAfterEnter:f,onAfterLeave:v},a),{activator:o.activator,default:function(){for(var h=arguments.length,d=new Array(h),u=0;u<h;u++)d[u]=arguments[u];return B(Ft,{root:"VDialog"},{default:()=>{var S;return[(S=o.default)==null?void 0:S.call(o,...d)]}})}})}),vn({},r)}});export{yn as C,hn as V,an as a,Zt as b,Jt as c,qe as d,Kt as e,vn as f,Re as g,on as m,$e as u};
|
|
Binary file
|
|
Binary file
|