codex 1.7.2__py3-none-any.whl → 1.7.3a0__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.

Files changed (697) hide show
  1. codex/choices.py +13 -5
  2. codex/librarian/bookmark/bookmarkd.py +4 -5
  3. codex/librarian/bookmark/tasks.py +1 -1
  4. codex/librarian/bookmark/update.py +15 -29
  5. codex/librarian/cron/crond.py +1 -1
  6. codex/librarian/importer/query_fks.py +2 -2
  7. codex/librarian/janitor/janitor.py +11 -1
  8. codex/librarian/janitor/log_compress.py +77 -0
  9. codex/librarian/janitor/status.py +1 -0
  10. codex/librarian/janitor/tasks.py +5 -0
  11. codex/librarian/librariand.py +18 -13
  12. codex/librarian/search/update.py +8 -4
  13. codex/migrations/0031_adminflag_banner.py +50 -0
  14. codex/models/admin.py +4 -3
  15. codex/serializers/admin/flags.py +1 -1
  16. codex/serializers/auth.py +1 -0
  17. codex/serializers/opds/v2/__init__.py +1 -0
  18. codex/serializers/opds/v2/facet.py +13 -0
  19. codex/serializers/opds/v2/feed.py +35 -0
  20. codex/serializers/opds/v2/links.py +73 -0
  21. codex/serializers/opds/v2/metadata.py +22 -0
  22. codex/serializers/opds/v2/progression.py +63 -0
  23. codex/serializers/opds/v2/publication.py +78 -0
  24. codex/serializers/opds/{v2_unused.py → v2/unused.py} +1 -1
  25. codex/settings/settings.py +1 -0
  26. codex/static_root/assets/VCheckbox-pHjSEgdV.176f3c1f4191.js +1 -0
  27. codex/static_root/assets/VCheckbox-pHjSEgdV.176f3c1f4191.js.br +0 -0
  28. codex/static_root/assets/VCheckbox-pHjSEgdV.176f3c1f4191.js.gz +0 -0
  29. codex/static_root/assets/VCheckbox-pHjSEgdV.js +1 -0
  30. codex/static_root/assets/VCheckbox-pHjSEgdV.js.br +0 -0
  31. codex/static_root/assets/VCheckbox-pHjSEgdV.js.gz +0 -0
  32. codex/static_root/assets/VCheckboxBtn-DBKqrZGq.467e75859b62.js +1 -0
  33. codex/static_root/assets/VCheckboxBtn-DBKqrZGq.467e75859b62.js.br +0 -0
  34. codex/static_root/assets/VCheckboxBtn-DBKqrZGq.467e75859b62.js.gz +0 -0
  35. codex/static_root/assets/VCheckboxBtn-DBKqrZGq.js +1 -0
  36. codex/static_root/assets/VCheckboxBtn-DBKqrZGq.js.br +0 -0
  37. codex/static_root/assets/VCheckboxBtn-DBKqrZGq.js.gz +0 -0
  38. codex/static_root/assets/VCombobox-Bg7uOTbF.2fc6073b789f.js +1 -0
  39. codex/static_root/assets/VCombobox-Bg7uOTbF.2fc6073b789f.js.br +0 -0
  40. codex/static_root/assets/VCombobox-Bg7uOTbF.2fc6073b789f.js.gz +0 -0
  41. codex/static_root/assets/VCombobox-Bg7uOTbF.js +1 -0
  42. codex/static_root/assets/VCombobox-Bg7uOTbF.js.br +0 -0
  43. codex/static_root/assets/VCombobox-Bg7uOTbF.js.gz +0 -0
  44. codex/static_root/assets/VDialog-Dyd05WHA.b07aca713774.css +1 -0
  45. codex/static_root/assets/VDialog-Dyd05WHA.b07aca713774.css.br +0 -0
  46. codex/static_root/assets/VDialog-Dyd05WHA.b07aca713774.css.gz +0 -0
  47. codex/static_root/assets/VDialog-Dyd05WHA.css +1 -0
  48. codex/static_root/assets/VDialog-Dyd05WHA.css.br +0 -0
  49. codex/static_root/assets/VDialog-Dyd05WHA.css.gz +0 -0
  50. codex/static_root/assets/VDialog-IrbBYFLM.91a058d572c4.js +1 -0
  51. codex/static_root/assets/VDialog-IrbBYFLM.91a058d572c4.js.br +0 -0
  52. codex/static_root/assets/VDialog-IrbBYFLM.91a058d572c4.js.gz +0 -0
  53. codex/static_root/assets/VDialog-IrbBYFLM.js +1 -0
  54. codex/static_root/assets/VDialog-IrbBYFLM.js.br +0 -0
  55. codex/static_root/assets/VDialog-IrbBYFLM.js.gz +0 -0
  56. codex/static_root/assets/VDivider-CuRohbVQ.3c12b040aed7.js +1 -0
  57. codex/static_root/assets/VDivider-CuRohbVQ.3c12b040aed7.js.br +0 -0
  58. codex/static_root/assets/VDivider-CuRohbVQ.3c12b040aed7.js.gz +0 -0
  59. codex/static_root/assets/VDivider-CuRohbVQ.js +1 -0
  60. codex/static_root/assets/VDivider-CuRohbVQ.js.br +0 -0
  61. codex/static_root/assets/VDivider-CuRohbVQ.js.gz +0 -0
  62. codex/static_root/assets/VDivider-DE8MJPGz.3d2e17799e5c.css +1 -0
  63. codex/static_root/assets/VDivider-DE8MJPGz.3d2e17799e5c.css.br +0 -0
  64. codex/static_root/assets/VDivider-DE8MJPGz.3d2e17799e5c.css.gz +0 -0
  65. codex/static_root/assets/VDivider-DE8MJPGz.css +1 -0
  66. codex/static_root/assets/VDivider-DE8MJPGz.css.br +0 -0
  67. codex/static_root/assets/VDivider-DE8MJPGz.css.gz +0 -0
  68. codex/static_root/assets/VExpansionPanels-b0xWLH75.bff6ea8b4055.js +1 -0
  69. codex/static_root/assets/VExpansionPanels-b0xWLH75.bff6ea8b4055.js.br +0 -0
  70. codex/static_root/assets/VExpansionPanels-b0xWLH75.bff6ea8b4055.js.gz +0 -0
  71. codex/static_root/assets/VExpansionPanels-b0xWLH75.js +1 -0
  72. codex/static_root/assets/VExpansionPanels-b0xWLH75.js.br +0 -0
  73. codex/static_root/assets/VExpansionPanels-b0xWLH75.js.gz +0 -0
  74. codex/static_root/assets/VForm-B4hkqnS8.afbd5cf0908a.js +1 -0
  75. codex/static_root/assets/VForm-B4hkqnS8.afbd5cf0908a.js.br +0 -0
  76. codex/static_root/assets/VForm-B4hkqnS8.afbd5cf0908a.js.gz +0 -0
  77. codex/static_root/assets/VForm-B4hkqnS8.js +1 -0
  78. codex/static_root/assets/VForm-B4hkqnS8.js.br +0 -0
  79. codex/static_root/assets/VForm-B4hkqnS8.js.gz +0 -0
  80. codex/static_root/assets/VForm-v1Gmu6E1.138c0b89b6fc.css +1 -0
  81. codex/static_root/assets/VForm-v1Gmu6E1.138c0b89b6fc.css.br +0 -0
  82. codex/static_root/assets/VForm-v1Gmu6E1.138c0b89b6fc.css.gz +0 -0
  83. codex/static_root/assets/VForm-v1Gmu6E1.css +1 -0
  84. codex/static_root/assets/VForm-v1Gmu6E1.css.br +0 -0
  85. codex/static_root/assets/VForm-v1Gmu6E1.css.gz +0 -0
  86. codex/static_root/assets/VRadioGroup-Cbayik6d.034f0f275265.js +1 -0
  87. codex/static_root/assets/VRadioGroup-Cbayik6d.034f0f275265.js.br +0 -0
  88. codex/static_root/assets/VRadioGroup-Cbayik6d.034f0f275265.js.gz +0 -0
  89. codex/static_root/assets/VRadioGroup-Cbayik6d.js +1 -0
  90. codex/static_root/assets/VRadioGroup-Cbayik6d.js.br +0 -0
  91. codex/static_root/assets/VRadioGroup-Cbayik6d.js.gz +0 -0
  92. codex/static_root/assets/VSelect-8MFoaOUz.6309f7bf17bb.css +1 -0
  93. codex/static_root/assets/VSelect-8MFoaOUz.6309f7bf17bb.css.br +0 -0
  94. codex/static_root/assets/VSelect-8MFoaOUz.6309f7bf17bb.css.gz +0 -0
  95. codex/static_root/assets/VSelect-8MFoaOUz.css +1 -0
  96. codex/static_root/assets/VSelect-8MFoaOUz.css.br +0 -0
  97. codex/static_root/assets/VSelect-8MFoaOUz.css.gz +0 -0
  98. codex/static_root/assets/VSelect-BsuB-2P1.abe187c8b53f.js +1 -0
  99. codex/static_root/assets/VSelect-BsuB-2P1.abe187c8b53f.js.br +0 -0
  100. codex/static_root/assets/VSelect-BsuB-2P1.abe187c8b53f.js.gz +0 -0
  101. codex/static_root/assets/VSelect-BsuB-2P1.js +1 -0
  102. codex/static_root/assets/VSelect-BsuB-2P1.js.br +0 -0
  103. codex/static_root/assets/VSelect-BsuB-2P1.js.gz +0 -0
  104. codex/static_root/assets/VSelectionControl-DLxcLoTI.cc18de4e83f6.css +1 -0
  105. codex/static_root/assets/VSelectionControl-DLxcLoTI.cc18de4e83f6.css.br +0 -0
  106. codex/static_root/assets/VSelectionControl-DLxcLoTI.cc18de4e83f6.css.gz +0 -0
  107. codex/static_root/assets/VSelectionControl-DLxcLoTI.css +1 -0
  108. codex/static_root/assets/VSelectionControl-DLxcLoTI.css.br +0 -0
  109. codex/static_root/assets/VSelectionControl-DLxcLoTI.css.gz +0 -0
  110. codex/static_root/assets/VSelectionControl-L41n5bnX.f4674bb62425.js +1 -0
  111. codex/static_root/assets/VSelectionControl-L41n5bnX.f4674bb62425.js.br +0 -0
  112. codex/static_root/assets/VSelectionControl-L41n5bnX.f4674bb62425.js.gz +0 -0
  113. codex/static_root/assets/VSelectionControl-L41n5bnX.js +1 -0
  114. codex/static_root/assets/VSelectionControl-L41n5bnX.js.br +0 -0
  115. codex/static_root/assets/VSelectionControl-L41n5bnX.js.gz +0 -0
  116. codex/static_root/assets/VTable-CYv4gUUt.76e4658abeb3.js +1 -0
  117. codex/static_root/assets/VTable-CYv4gUUt.76e4658abeb3.js.br +0 -0
  118. codex/static_root/assets/VTable-CYv4gUUt.76e4658abeb3.js.gz +0 -0
  119. codex/static_root/assets/VTable-CYv4gUUt.js +1 -0
  120. codex/static_root/assets/VTable-CYv4gUUt.js.br +0 -0
  121. codex/static_root/assets/VTable-CYv4gUUt.js.gz +0 -0
  122. codex/static_root/assets/VWindowItem-f8UkxXa_.1d3e9e78fc9b.js +1 -0
  123. codex/static_root/assets/VWindowItem-f8UkxXa_.1d3e9e78fc9b.js.br +0 -0
  124. codex/static_root/assets/VWindowItem-f8UkxXa_.1d3e9e78fc9b.js.gz +0 -0
  125. codex/static_root/assets/VWindowItem-f8UkxXa_.js +1 -0
  126. codex/static_root/assets/VWindowItem-f8UkxXa_.js.br +0 -0
  127. codex/static_root/assets/VWindowItem-f8UkxXa_.js.gz +0 -0
  128. codex/static_root/assets/admin-BmuWJcAB.b0b253aefd88.js +1 -0
  129. codex/static_root/assets/admin-BmuWJcAB.b0b253aefd88.js.br +0 -0
  130. codex/static_root/assets/admin-BmuWJcAB.b0b253aefd88.js.gz +0 -0
  131. codex/static_root/assets/admin-BmuWJcAB.js +1 -0
  132. codex/static_root/assets/admin-BmuWJcAB.js.br +0 -0
  133. codex/static_root/assets/admin-BmuWJcAB.js.gz +0 -0
  134. codex/static_root/assets/admin-Izb24SXM.504ea9d9515c.js +1 -0
  135. codex/static_root/assets/admin-Izb24SXM.504ea9d9515c.js.br +0 -0
  136. codex/static_root/assets/admin-Izb24SXM.504ea9d9515c.js.gz +0 -0
  137. codex/static_root/assets/admin-Izb24SXM.js +1 -0
  138. codex/static_root/assets/admin-Izb24SXM.js.br +0 -0
  139. codex/static_root/assets/admin-Izb24SXM.js.gz +0 -0
  140. codex/static_root/assets/admin-dm3bSP7O.ae1234cc0beb.css +1 -0
  141. codex/static_root/assets/admin-dm3bSP7O.ae1234cc0beb.css.br +0 -0
  142. codex/static_root/assets/admin-dm3bSP7O.ae1234cc0beb.css.gz +0 -0
  143. codex/static_root/assets/admin-dm3bSP7O.css +1 -0
  144. codex/static_root/assets/admin-dm3bSP7O.css.br +0 -0
  145. codex/static_root/assets/admin-dm3bSP7O.css.gz +0 -0
  146. codex/static_root/assets/admin-menu-C712OV-9.ecd1f2af4cf4.js +1 -0
  147. codex/static_root/assets/admin-menu-C712OV-9.ecd1f2af4cf4.js.br +0 -0
  148. codex/static_root/assets/admin-menu-C712OV-9.ecd1f2af4cf4.js.gz +0 -0
  149. codex/static_root/assets/admin-menu-C712OV-9.js +1 -0
  150. codex/static_root/assets/admin-menu-C712OV-9.js.br +0 -0
  151. codex/static_root/assets/admin-menu-C712OV-9.js.gz +0 -0
  152. codex/static_root/assets/admin-settings-button-progress-Clv9yQ7G.2536580dece1.js +1 -0
  153. codex/static_root/assets/admin-settings-button-progress-Clv9yQ7G.2536580dece1.js.br +0 -0
  154. codex/static_root/assets/admin-settings-button-progress-Clv9yQ7G.2536580dece1.js.gz +0 -0
  155. codex/static_root/assets/admin-settings-button-progress-Clv9yQ7G.js +1 -0
  156. codex/static_root/assets/admin-settings-button-progress-Clv9yQ7G.js.br +0 -0
  157. codex/static_root/assets/admin-settings-button-progress-Clv9yQ7G.js.gz +0 -0
  158. codex/static_root/assets/browser-CReWGhn_.521193ab0710.css +1 -0
  159. codex/static_root/assets/browser-CReWGhn_.521193ab0710.css.br +0 -0
  160. codex/static_root/assets/browser-CReWGhn_.521193ab0710.css.gz +0 -0
  161. codex/static_root/assets/browser-CReWGhn_.css +1 -0
  162. codex/static_root/assets/browser-CReWGhn_.css.br +0 -0
  163. codex/static_root/assets/browser-CReWGhn_.css.gz +0 -0
  164. codex/static_root/assets/browser-DiAN9Ipo.a5b62a3cbe1d.js +1 -0
  165. codex/static_root/assets/browser-DiAN9Ipo.a5b62a3cbe1d.js.br +0 -0
  166. codex/static_root/assets/browser-DiAN9Ipo.a5b62a3cbe1d.js.gz +0 -0
  167. codex/static_root/assets/browser-DiAN9Ipo.js +1 -0
  168. codex/static_root/assets/browser-DiAN9Ipo.js.br +0 -0
  169. codex/static_root/assets/browser-DiAN9Ipo.js.gz +0 -0
  170. codex/static_root/assets/change-password-dialog-BZPmAOML.73fdc23e13a4.js +1 -0
  171. codex/static_root/assets/change-password-dialog-BZPmAOML.73fdc23e13a4.js.br +0 -0
  172. codex/static_root/assets/change-password-dialog-BZPmAOML.73fdc23e13a4.js.gz +0 -0
  173. codex/static_root/assets/change-password-dialog-BZPmAOML.js +1 -0
  174. codex/static_root/assets/change-password-dialog-BZPmAOML.js.br +0 -0
  175. codex/static_root/assets/change-password-dialog-BZPmAOML.js.gz +0 -0
  176. codex/static_root/assets/confirm-dialog-CBLQOik_.f53acd0c622a.js +1 -0
  177. codex/static_root/assets/confirm-dialog-CBLQOik_.f53acd0c622a.js.br +0 -0
  178. codex/static_root/assets/confirm-dialog-CBLQOik_.f53acd0c622a.js.gz +0 -0
  179. codex/static_root/assets/confirm-dialog-CBLQOik_.js +1 -0
  180. codex/static_root/assets/confirm-dialog-CBLQOik_.js.br +0 -0
  181. codex/static_root/assets/confirm-dialog-CBLQOik_.js.gz +0 -0
  182. codex/static_root/assets/datetime-column-CU19rCbi.9edc0d2da736.js +1 -0
  183. codex/static_root/assets/datetime-column-CU19rCbi.9edc0d2da736.js.br +1 -0
  184. codex/static_root/assets/datetime-column-CU19rCbi.9edc0d2da736.js.gz +0 -0
  185. codex/static_root/assets/datetime-column-CU19rCbi.js +1 -0
  186. codex/static_root/assets/datetime-column-CU19rCbi.js.br +1 -0
  187. codex/static_root/assets/datetime-column-CU19rCbi.js.gz +0 -0
  188. codex/static_root/assets/{filter-ud5mPZpn.0f0a537959aa.js → filter-CZ7kkBLq.171b4fcba146.js} +1 -1
  189. codex/static_root/assets/filter-CZ7kkBLq.171b4fcba146.js.br +0 -0
  190. codex/static_root/assets/filter-CZ7kkBLq.171b4fcba146.js.gz +0 -0
  191. codex/static_root/assets/{filter-ud5mPZpn.js → filter-CZ7kkBLq.js} +1 -1
  192. codex/static_root/assets/filter-CZ7kkBLq.js.br +0 -0
  193. codex/static_root/assets/filter-CZ7kkBLq.js.gz +0 -0
  194. codex/static_root/assets/flag-tab-DHGfv0Q3.2b7ef394b850.css +1 -0
  195. codex/static_root/assets/flag-tab-DHGfv0Q3.2b7ef394b850.css.br +0 -0
  196. codex/static_root/assets/flag-tab-DHGfv0Q3.2b7ef394b850.css.gz +0 -0
  197. codex/static_root/assets/flag-tab-DHGfv0Q3.css +1 -0
  198. codex/static_root/assets/flag-tab-DHGfv0Q3.css.br +0 -0
  199. codex/static_root/assets/flag-tab-DHGfv0Q3.css.gz +0 -0
  200. codex/static_root/assets/flag-tab-kcBN36xe.631c48ab75fd.js +1 -0
  201. codex/static_root/assets/flag-tab-kcBN36xe.631c48ab75fd.js.br +0 -0
  202. codex/static_root/assets/flag-tab-kcBN36xe.631c48ab75fd.js.gz +0 -0
  203. codex/static_root/assets/flag-tab-kcBN36xe.js +1 -0
  204. codex/static_root/assets/flag-tab-kcBN36xe.js.br +0 -0
  205. codex/static_root/assets/flag-tab-kcBN36xe.js.gz +0 -0
  206. codex/static_root/assets/forwardRefs-DNAemYUk.06a315272ed9.js +1 -0
  207. codex/static_root/assets/forwardRefs-DNAemYUk.06a315272ed9.js.br +0 -0
  208. codex/static_root/assets/forwardRefs-DNAemYUk.06a315272ed9.js.gz +0 -0
  209. codex/static_root/assets/forwardRefs-DNAemYUk.js +1 -0
  210. codex/static_root/assets/forwardRefs-DNAemYUk.js.br +0 -0
  211. codex/static_root/assets/forwardRefs-DNAemYUk.js.gz +0 -0
  212. codex/static_root/assets/forwardRefs-zKOZsbbr.9b56b4459240.css +1 -0
  213. codex/static_root/assets/forwardRefs-zKOZsbbr.9b56b4459240.css.br +0 -0
  214. codex/static_root/assets/forwardRefs-zKOZsbbr.9b56b4459240.css.gz +0 -0
  215. codex/static_root/assets/forwardRefs-zKOZsbbr.css +1 -0
  216. codex/static_root/assets/forwardRefs-zKOZsbbr.css.br +0 -0
  217. codex/static_root/assets/forwardRefs-zKOZsbbr.css.gz +0 -0
  218. codex/static_root/assets/group-tab-D9gwAdJc.60fb0ffa734c.js +1 -0
  219. codex/static_root/assets/group-tab-D9gwAdJc.60fb0ffa734c.js.br +0 -0
  220. codex/static_root/assets/group-tab-D9gwAdJc.60fb0ffa734c.js.gz +0 -0
  221. codex/static_root/assets/group-tab-D9gwAdJc.js +1 -0
  222. codex/static_root/assets/group-tab-D9gwAdJc.js.br +0 -0
  223. codex/static_root/assets/group-tab-D9gwAdJc.js.gz +0 -0
  224. codex/static_root/assets/http-error-DEJmFobt.8c13689ae574.css +1 -0
  225. codex/static_root/assets/http-error-DEJmFobt.8c13689ae574.css.br +0 -0
  226. codex/static_root/assets/http-error-DEJmFobt.8c13689ae574.css.gz +0 -0
  227. codex/static_root/assets/http-error-DEJmFobt.css +1 -0
  228. codex/static_root/assets/http-error-DEJmFobt.css.br +0 -0
  229. codex/static_root/assets/http-error-DEJmFobt.css.gz +0 -0
  230. codex/static_root/assets/http-error-DmFqD2Xz.593d626b5f1b.js +1 -0
  231. codex/static_root/assets/http-error-DmFqD2Xz.593d626b5f1b.js.br +0 -0
  232. codex/static_root/assets/http-error-DmFqD2Xz.593d626b5f1b.js.gz +0 -0
  233. codex/static_root/assets/http-error-DmFqD2Xz.js +1 -0
  234. codex/static_root/assets/http-error-DmFqD2Xz.js.br +0 -0
  235. codex/static_root/assets/http-error-DmFqD2Xz.js.gz +0 -0
  236. codex/static_root/assets/index-hvGLIBbY.30ce8cca0c6d.js +1 -0
  237. codex/static_root/assets/index-hvGLIBbY.30ce8cca0c6d.js.br +0 -0
  238. codex/static_root/assets/index-hvGLIBbY.30ce8cca0c6d.js.gz +0 -0
  239. codex/static_root/assets/index-hvGLIBbY.js +1 -0
  240. codex/static_root/assets/index-hvGLIBbY.js.br +0 -0
  241. codex/static_root/assets/index-hvGLIBbY.js.gz +0 -0
  242. codex/static_root/assets/library-tab-CF-RAEgP.a0ad816fb994.js +1 -0
  243. codex/static_root/assets/library-tab-CF-RAEgP.a0ad816fb994.js.br +0 -0
  244. codex/static_root/assets/library-tab-CF-RAEgP.a0ad816fb994.js.gz +0 -0
  245. codex/static_root/assets/library-tab-CF-RAEgP.js +1 -0
  246. codex/static_root/assets/library-tab-CF-RAEgP.js.br +0 -0
  247. codex/static_root/assets/library-tab-CF-RAEgP.js.gz +0 -0
  248. codex/static_root/assets/{library-tab-Cat0MAK5.5911f022188e.css → library-tab-Ce6qaeCV.75baedb7e976.css} +1 -1
  249. codex/static_root/assets/library-tab-Ce6qaeCV.75baedb7e976.css.br +0 -0
  250. codex/static_root/assets/library-tab-Ce6qaeCV.75baedb7e976.css.gz +0 -0
  251. codex/static_root/assets/{library-tab-Cat0MAK5.css → library-tab-Ce6qaeCV.css} +1 -1
  252. codex/static_root/assets/library-tab-Ce6qaeCV.css.br +0 -0
  253. codex/static_root/assets/library-tab-Ce6qaeCV.css.gz +0 -0
  254. codex/static_root/assets/main-Dv8e0bMI.bd74f1ba1627.js +35 -0
  255. codex/static_root/assets/main-Dv8e0bMI.bd74f1ba1627.js.br +0 -0
  256. codex/static_root/assets/main-Dv8e0bMI.bd74f1ba1627.js.gz +0 -0
  257. codex/static_root/assets/main-Dv8e0bMI.js +35 -0
  258. codex/static_root/assets/main-Dv8e0bMI.js.br +0 -0
  259. codex/static_root/assets/main-Dv8e0bMI.js.gz +0 -0
  260. codex/static_root/assets/pager-full-pdf-BXd9Y5oQ.04a4f5c451b4.js +1 -0
  261. codex/static_root/assets/pager-full-pdf-BXd9Y5oQ.04a4f5c451b4.js.br +0 -0
  262. codex/static_root/assets/pager-full-pdf-BXd9Y5oQ.04a4f5c451b4.js.gz +0 -0
  263. codex/static_root/assets/pager-full-pdf-BXd9Y5oQ.js +1 -0
  264. codex/static_root/assets/pager-full-pdf-BXd9Y5oQ.js.br +0 -0
  265. codex/static_root/assets/pager-full-pdf-BXd9Y5oQ.js.gz +0 -0
  266. codex/static_root/assets/pagination-toolbar-DSe0TkMm.css +1 -0
  267. codex/static_root/assets/pagination-toolbar-DSe0TkMm.css.br +0 -0
  268. codex/static_root/assets/pagination-toolbar-DSe0TkMm.css.gz +0 -0
  269. codex/static_root/assets/pagination-toolbar-DSe0TkMm.dcb0eba65827.css +1 -0
  270. codex/static_root/assets/pagination-toolbar-DSe0TkMm.dcb0eba65827.css.br +0 -0
  271. codex/static_root/assets/pagination-toolbar-DSe0TkMm.dcb0eba65827.css.gz +0 -0
  272. codex/static_root/assets/pagination-toolbar-D_whea1o.9bbd927058f1.js +1 -0
  273. codex/static_root/assets/pagination-toolbar-D_whea1o.9bbd927058f1.js.br +0 -0
  274. codex/static_root/assets/pagination-toolbar-D_whea1o.9bbd927058f1.js.gz +0 -0
  275. codex/static_root/assets/pagination-toolbar-D_whea1o.js +1 -0
  276. codex/static_root/assets/pagination-toolbar-D_whea1o.js.br +0 -0
  277. codex/static_root/assets/pagination-toolbar-D_whea1o.js.gz +0 -0
  278. codex/static_root/assets/pdf-doc-dnr5fHbU.fa1d7ed9255b.js +348 -0
  279. codex/static_root/assets/pdf-doc-dnr5fHbU.fa1d7ed9255b.js.br +0 -0
  280. codex/static_root/assets/pdf-doc-dnr5fHbU.fa1d7ed9255b.js.gz +0 -0
  281. codex/static_root/assets/pdf-doc-dnr5fHbU.js +348 -0
  282. codex/static_root/assets/pdf-doc-dnr5fHbU.js.br +0 -0
  283. codex/static_root/assets/pdf-doc-dnr5fHbU.js.gz +0 -0
  284. codex/static_root/assets/{reader-Dd2KmdCN.115d4bfe9280.css → reader-B3hgta6g.2ed32f08e906.css} +1 -1
  285. codex/static_root/assets/reader-B3hgta6g.2ed32f08e906.css.br +0 -0
  286. codex/static_root/assets/reader-B3hgta6g.2ed32f08e906.css.gz +0 -0
  287. codex/static_root/assets/{reader-Dd2KmdCN.css → reader-B3hgta6g.css} +1 -1
  288. codex/static_root/assets/reader-B3hgta6g.css.br +0 -0
  289. codex/static_root/assets/reader-B3hgta6g.css.gz +0 -0
  290. codex/static_root/assets/reader-Cn-ra_Dv.f38c0b419dec.js +2 -0
  291. codex/static_root/assets/reader-Cn-ra_Dv.f38c0b419dec.js.br +0 -0
  292. codex/static_root/assets/reader-Cn-ra_Dv.f38c0b419dec.js.gz +0 -0
  293. codex/static_root/assets/reader-Cn-ra_Dv.js +2 -0
  294. codex/static_root/assets/reader-Cn-ra_Dv.js.br +0 -0
  295. codex/static_root/assets/reader-Cn-ra_Dv.js.gz +0 -0
  296. codex/static_root/assets/relation-chips-fOPxWAMU.78e5fe70c014.js +1 -0
  297. codex/static_root/assets/relation-chips-fOPxWAMU.78e5fe70c014.js.br +0 -0
  298. codex/static_root/assets/relation-chips-fOPxWAMU.78e5fe70c014.js.gz +0 -0
  299. codex/static_root/assets/relation-chips-fOPxWAMU.js +1 -0
  300. codex/static_root/assets/relation-chips-fOPxWAMU.js.br +0 -0
  301. codex/static_root/assets/relation-chips-fOPxWAMU.js.gz +0 -0
  302. codex/static_root/assets/settings-drawer-1UEq8JY1.d95cee9aefb5.js +2 -0
  303. codex/static_root/assets/settings-drawer-1UEq8JY1.d95cee9aefb5.js.br +0 -0
  304. codex/static_root/assets/settings-drawer-1UEq8JY1.d95cee9aefb5.js.gz +0 -0
  305. codex/static_root/assets/settings-drawer-1UEq8JY1.js +2 -0
  306. codex/static_root/assets/settings-drawer-1UEq8JY1.js.br +0 -0
  307. codex/static_root/assets/settings-drawer-1UEq8JY1.js.gz +0 -0
  308. codex/static_root/assets/settings-drawer-CqJ4gXLq.75a6ea969e71.css +1 -0
  309. codex/static_root/assets/settings-drawer-CqJ4gXLq.75a6ea969e71.css.br +0 -0
  310. codex/static_root/assets/settings-drawer-CqJ4gXLq.75a6ea969e71.css.gz +0 -0
  311. codex/static_root/assets/settings-drawer-CqJ4gXLq.css +1 -0
  312. codex/static_root/assets/settings-drawer-CqJ4gXLq.css.br +0 -0
  313. codex/static_root/assets/settings-drawer-CqJ4gXLq.css.gz +0 -0
  314. codex/static_root/assets/stats-tab-0ptRCeKw.5514d3508e37.js +1 -0
  315. codex/static_root/assets/stats-tab-0ptRCeKw.5514d3508e37.js.br +0 -0
  316. codex/static_root/assets/stats-tab-0ptRCeKw.5514d3508e37.js.gz +0 -0
  317. codex/static_root/assets/stats-tab-0ptRCeKw.js +1 -0
  318. codex/static_root/assets/stats-tab-0ptRCeKw.js.br +0 -0
  319. codex/static_root/assets/stats-tab-0ptRCeKw.js.gz +0 -0
  320. codex/static_root/assets/task-tab-CG9_bi6Z.ad9f647f8e5f.js +1 -0
  321. codex/static_root/assets/task-tab-CG9_bi6Z.ad9f647f8e5f.js.br +0 -0
  322. codex/static_root/assets/task-tab-CG9_bi6Z.ad9f647f8e5f.js.gz +0 -0
  323. codex/static_root/assets/task-tab-CG9_bi6Z.js +1 -0
  324. codex/static_root/assets/task-tab-CG9_bi6Z.js.br +0 -0
  325. codex/static_root/assets/task-tab-CG9_bi6Z.js.gz +0 -0
  326. codex/static_root/assets/unauthorized-VnIXUO1w.c5536d9dae75.css +1 -0
  327. codex/static_root/assets/unauthorized-VnIXUO1w.c5536d9dae75.css.br +0 -0
  328. codex/static_root/assets/unauthorized-VnIXUO1w.c5536d9dae75.css.gz +0 -0
  329. codex/static_root/assets/unauthorized-VnIXUO1w.css +1 -0
  330. codex/static_root/assets/unauthorized-VnIXUO1w.css.br +0 -0
  331. codex/static_root/assets/unauthorized-VnIXUO1w.css.gz +0 -0
  332. codex/static_root/assets/unauthorized-vG1Lh0m_.0c4bae81ee09.js +1 -0
  333. codex/static_root/assets/unauthorized-vG1Lh0m_.0c4bae81ee09.js.br +0 -0
  334. codex/static_root/assets/unauthorized-vG1Lh0m_.0c4bae81ee09.js.gz +0 -0
  335. codex/static_root/assets/unauthorized-vG1Lh0m_.js +1 -0
  336. codex/static_root/assets/unauthorized-vG1Lh0m_.js.br +0 -0
  337. codex/static_root/assets/unauthorized-vG1Lh0m_.js.gz +0 -0
  338. codex/static_root/assets/user-tab-BOxWlpY7.1a94280a799b.js +1 -0
  339. codex/static_root/assets/user-tab-BOxWlpY7.1a94280a799b.js.br +0 -0
  340. codex/static_root/assets/user-tab-BOxWlpY7.1a94280a799b.js.gz +0 -0
  341. codex/static_root/assets/user-tab-BOxWlpY7.js +1 -0
  342. codex/static_root/assets/user-tab-BOxWlpY7.js.br +0 -0
  343. codex/static_root/assets/user-tab-BOxWlpY7.js.gz +0 -0
  344. codex/static_root/manifest.9b3479a6a4a6.json +735 -0
  345. codex/static_root/manifest.9b3479a6a4a6.json.br +0 -0
  346. codex/static_root/manifest.9b3479a6a4a6.json.gz +0 -0
  347. codex/static_root/manifest.json +365 -342
  348. codex/static_root/manifest.json.br +0 -0
  349. codex/static_root/manifest.json.gz +0 -0
  350. codex/static_root/staticfiles.json +1 -1
  351. codex/templates/index.html +1 -1
  352. codex/threads.py +8 -3
  353. codex/urls/api/admin.py +1 -0
  354. codex/urls/api/browser.py +1 -1
  355. codex/urls/opds/v2.py +6 -0
  356. codex/views/admin/flag.py +5 -1
  357. codex/views/admin/tasks.py +2 -0
  358. codex/views/bookmark.py +53 -41
  359. codex/views/browser/annotate/bookmark.py +6 -4
  360. codex/views/browser/annotate/card.py +1 -16
  361. codex/views/browser/annotate/order.py +45 -18
  362. codex/views/browser/bookmark.py +53 -0
  363. codex/views/browser/download.py +2 -0
  364. codex/views/browser/filters/bookmark.py +4 -32
  365. codex/views/browser/group_mtime.py +2 -2
  366. codex/views/browser/metadata/annotate.py +1 -1
  367. codex/views/browser/metadata/metadata.py +1 -1
  368. codex/views/browser/order_by.py +6 -1
  369. codex/views/frontend.py +19 -4
  370. codex/views/mixins.py +16 -28
  371. codex/views/opds/const.py +2 -0
  372. codex/views/opds/util.py +2 -2
  373. codex/views/opds/v1/entry/links.py +1 -2
  374. codex/views/opds/v2/feed.py +3 -2
  375. codex/views/opds/v2/href.py +60 -0
  376. codex/views/opds/v2/links.py +13 -47
  377. codex/views/opds/v2/progression.py +137 -0
  378. codex/views/opds/v2/publications.py +21 -1
  379. codex/views/opds/v2/top_links.py +2 -1
  380. codex/views/public.py +11 -4
  381. codex/views/reader/books.py +19 -8
  382. codex/views/reader/page.py +5 -5
  383. {codex-1.7.2.dist-info → codex-1.7.3a0.dist-info}/METADATA +21 -26
  384. {codex-1.7.2.dist-info → codex-1.7.3a0.dist-info}/RECORD +387 -370
  385. codex/serializers/opds/v2.py +0 -178
  386. codex/static_root/assets/VCheckbox-DLMzIII1.1ff8fc2d9a21.js +0 -1
  387. codex/static_root/assets/VCheckbox-DLMzIII1.1ff8fc2d9a21.js.br +0 -0
  388. codex/static_root/assets/VCheckbox-DLMzIII1.1ff8fc2d9a21.js.gz +0 -0
  389. codex/static_root/assets/VCheckbox-DLMzIII1.js +0 -1
  390. codex/static_root/assets/VCheckbox-DLMzIII1.js.br +0 -0
  391. codex/static_root/assets/VCheckbox-DLMzIII1.js.gz +0 -0
  392. codex/static_root/assets/VCheckboxBtn-BzoQl8XC.094679a3624b.js +0 -1
  393. codex/static_root/assets/VCheckboxBtn-BzoQl8XC.094679a3624b.js.br +0 -0
  394. codex/static_root/assets/VCheckboxBtn-BzoQl8XC.094679a3624b.js.gz +0 -0
  395. codex/static_root/assets/VCheckboxBtn-BzoQl8XC.js +0 -1
  396. codex/static_root/assets/VCheckboxBtn-BzoQl8XC.js.br +0 -0
  397. codex/static_root/assets/VCheckboxBtn-BzoQl8XC.js.gz +0 -0
  398. codex/static_root/assets/VCombobox-CBY8K5CP.fcf2221a9edd.js +0 -1
  399. codex/static_root/assets/VCombobox-CBY8K5CP.fcf2221a9edd.js.br +0 -0
  400. codex/static_root/assets/VCombobox-CBY8K5CP.fcf2221a9edd.js.gz +0 -0
  401. codex/static_root/assets/VCombobox-CBY8K5CP.js +0 -1
  402. codex/static_root/assets/VCombobox-CBY8K5CP.js.br +0 -0
  403. codex/static_root/assets/VCombobox-CBY8K5CP.js.gz +0 -0
  404. codex/static_root/assets/VDialog-DXQz0Ylp.7b23d86dbd0d.css +0 -1
  405. codex/static_root/assets/VDialog-DXQz0Ylp.7b23d86dbd0d.css.br +0 -0
  406. codex/static_root/assets/VDialog-DXQz0Ylp.7b23d86dbd0d.css.gz +0 -0
  407. codex/static_root/assets/VDialog-DXQz0Ylp.css +0 -1
  408. codex/static_root/assets/VDialog-DXQz0Ylp.css.br +0 -0
  409. codex/static_root/assets/VDialog-DXQz0Ylp.css.gz +0 -0
  410. codex/static_root/assets/VDialog-Db4tJYqR.e21a79a5030e.js +0 -1
  411. codex/static_root/assets/VDialog-Db4tJYqR.e21a79a5030e.js.br +0 -0
  412. codex/static_root/assets/VDialog-Db4tJYqR.e21a79a5030e.js.gz +0 -0
  413. codex/static_root/assets/VDialog-Db4tJYqR.js +0 -1
  414. codex/static_root/assets/VDialog-Db4tJYqR.js.br +0 -0
  415. codex/static_root/assets/VDialog-Db4tJYqR.js.gz +0 -0
  416. codex/static_root/assets/VExpansionPanels-DN4yGbOt.163e59e38865.js +0 -1
  417. codex/static_root/assets/VExpansionPanels-DN4yGbOt.163e59e38865.js.br +0 -0
  418. codex/static_root/assets/VExpansionPanels-DN4yGbOt.163e59e38865.js.gz +0 -0
  419. codex/static_root/assets/VExpansionPanels-DN4yGbOt.js +0 -1
  420. codex/static_root/assets/VExpansionPanels-DN4yGbOt.js.br +0 -0
  421. codex/static_root/assets/VExpansionPanels-DN4yGbOt.js.gz +0 -0
  422. codex/static_root/assets/VRadioGroup-D2-PWEfs.ce7644863c25.js +0 -1
  423. codex/static_root/assets/VRadioGroup-D2-PWEfs.ce7644863c25.js.br +0 -0
  424. codex/static_root/assets/VRadioGroup-D2-PWEfs.ce7644863c25.js.gz +0 -0
  425. codex/static_root/assets/VRadioGroup-D2-PWEfs.js +0 -1
  426. codex/static_root/assets/VRadioGroup-D2-PWEfs.js.br +0 -0
  427. codex/static_root/assets/VRadioGroup-D2-PWEfs.js.gz +0 -0
  428. codex/static_root/assets/VSelect-DLu8bpcs.98bdcf35411c.css +0 -1
  429. codex/static_root/assets/VSelect-DLu8bpcs.98bdcf35411c.css.br +0 -0
  430. codex/static_root/assets/VSelect-DLu8bpcs.98bdcf35411c.css.gz +0 -0
  431. codex/static_root/assets/VSelect-DLu8bpcs.css +0 -1
  432. codex/static_root/assets/VSelect-DLu8bpcs.css.br +0 -0
  433. codex/static_root/assets/VSelect-DLu8bpcs.css.gz +0 -0
  434. codex/static_root/assets/VSelect-DqXJ23Pc.a1360cbed050.js +0 -1
  435. codex/static_root/assets/VSelect-DqXJ23Pc.a1360cbed050.js.br +0 -0
  436. codex/static_root/assets/VSelect-DqXJ23Pc.a1360cbed050.js.gz +0 -0
  437. codex/static_root/assets/VSelect-DqXJ23Pc.js +0 -1
  438. codex/static_root/assets/VSelect-DqXJ23Pc.js.br +0 -0
  439. codex/static_root/assets/VSelect-DqXJ23Pc.js.gz +0 -0
  440. codex/static_root/assets/VSelectionControl-CiViEYoC.c77bb19a4a06.css +0 -1
  441. codex/static_root/assets/VSelectionControl-CiViEYoC.c77bb19a4a06.css.br +0 -0
  442. codex/static_root/assets/VSelectionControl-CiViEYoC.c77bb19a4a06.css.gz +0 -0
  443. codex/static_root/assets/VSelectionControl-CiViEYoC.css +0 -1
  444. codex/static_root/assets/VSelectionControl-CiViEYoC.css.br +0 -0
  445. codex/static_root/assets/VSelectionControl-CiViEYoC.css.gz +0 -0
  446. codex/static_root/assets/VSelectionControl-CxhDNufT.dd7ca99567fc.js +0 -1
  447. codex/static_root/assets/VSelectionControl-CxhDNufT.dd7ca99567fc.js.br +0 -0
  448. codex/static_root/assets/VSelectionControl-CxhDNufT.dd7ca99567fc.js.gz +0 -0
  449. codex/static_root/assets/VSelectionControl-CxhDNufT.js +0 -1
  450. codex/static_root/assets/VSelectionControl-CxhDNufT.js.br +0 -0
  451. codex/static_root/assets/VSelectionControl-CxhDNufT.js.gz +0 -0
  452. codex/static_root/assets/VSlideGroup-BtXPhMOT.830f136ffd41.css +0 -1
  453. codex/static_root/assets/VSlideGroup-BtXPhMOT.830f136ffd41.css.br +0 -0
  454. codex/static_root/assets/VSlideGroup-BtXPhMOT.830f136ffd41.css.gz +0 -0
  455. codex/static_root/assets/VSlideGroup-BtXPhMOT.css +0 -1
  456. codex/static_root/assets/VSlideGroup-BtXPhMOT.css.br +0 -0
  457. codex/static_root/assets/VSlideGroup-BtXPhMOT.css.gz +0 -0
  458. codex/static_root/assets/VSlideGroup-DRbthp6q.7365c5542d47.js +0 -1
  459. codex/static_root/assets/VSlideGroup-DRbthp6q.7365c5542d47.js.br +0 -0
  460. codex/static_root/assets/VSlideGroup-DRbthp6q.7365c5542d47.js.gz +0 -0
  461. codex/static_root/assets/VSlideGroup-DRbthp6q.js +0 -1
  462. codex/static_root/assets/VSlideGroup-DRbthp6q.js.br +0 -0
  463. codex/static_root/assets/VSlideGroup-DRbthp6q.js.gz +0 -0
  464. codex/static_root/assets/VTable-Cbq-yJos.c884706cac21.js +0 -1
  465. codex/static_root/assets/VTable-Cbq-yJos.c884706cac21.js.br +0 -0
  466. codex/static_root/assets/VTable-Cbq-yJos.c884706cac21.js.gz +0 -0
  467. codex/static_root/assets/VTable-Cbq-yJos.js +0 -1
  468. codex/static_root/assets/VTable-Cbq-yJos.js.br +0 -0
  469. codex/static_root/assets/VTable-Cbq-yJos.js.gz +0 -0
  470. codex/static_root/assets/VTextField-Crc3gdNh.39995ccf4d52.css +0 -1
  471. codex/static_root/assets/VTextField-Crc3gdNh.39995ccf4d52.css.br +0 -0
  472. codex/static_root/assets/VTextField-Crc3gdNh.39995ccf4d52.css.gz +0 -0
  473. codex/static_root/assets/VTextField-Crc3gdNh.css +0 -1
  474. codex/static_root/assets/VTextField-Crc3gdNh.css.br +0 -0
  475. codex/static_root/assets/VTextField-Crc3gdNh.css.gz +0 -0
  476. codex/static_root/assets/VTextField-X5yAw35c.155e276dd747.js +0 -1
  477. codex/static_root/assets/VTextField-X5yAw35c.155e276dd747.js.br +0 -0
  478. codex/static_root/assets/VTextField-X5yAw35c.155e276dd747.js.gz +0 -0
  479. codex/static_root/assets/VTextField-X5yAw35c.js +0 -1
  480. codex/static_root/assets/VTextField-X5yAw35c.js.br +0 -0
  481. codex/static_root/assets/VTextField-X5yAw35c.js.gz +0 -0
  482. codex/static_root/assets/VWindowItem-CRqhVh-9.cd73d01e0591.js +0 -1
  483. codex/static_root/assets/VWindowItem-CRqhVh-9.cd73d01e0591.js.br +0 -0
  484. codex/static_root/assets/VWindowItem-CRqhVh-9.cd73d01e0591.js.gz +0 -0
  485. codex/static_root/assets/VWindowItem-CRqhVh-9.js +0 -1
  486. codex/static_root/assets/VWindowItem-CRqhVh-9.js.br +0 -0
  487. codex/static_root/assets/VWindowItem-CRqhVh-9.js.gz +0 -0
  488. codex/static_root/assets/admin-BFvQwinN.6cfff21f780a.js +0 -1
  489. codex/static_root/assets/admin-BFvQwinN.6cfff21f780a.js.br +0 -0
  490. codex/static_root/assets/admin-BFvQwinN.6cfff21f780a.js.gz +0 -0
  491. codex/static_root/assets/admin-BFvQwinN.js +0 -1
  492. codex/static_root/assets/admin-BFvQwinN.js.br +0 -0
  493. codex/static_root/assets/admin-BFvQwinN.js.gz +0 -0
  494. codex/static_root/assets/admin-DJ7pIXDQ.css +0 -1
  495. codex/static_root/assets/admin-DJ7pIXDQ.css.br +0 -0
  496. codex/static_root/assets/admin-DJ7pIXDQ.css.gz +0 -0
  497. codex/static_root/assets/admin-DJ7pIXDQ.e2a77af73ef2.css +0 -1
  498. codex/static_root/assets/admin-DJ7pIXDQ.e2a77af73ef2.css.br +0 -0
  499. codex/static_root/assets/admin-DJ7pIXDQ.e2a77af73ef2.css.gz +0 -0
  500. codex/static_root/assets/admin-menu-Jfmp_Yd8.39fa7a18b3b4.js +0 -1
  501. codex/static_root/assets/admin-menu-Jfmp_Yd8.39fa7a18b3b4.js.br +0 -0
  502. codex/static_root/assets/admin-menu-Jfmp_Yd8.39fa7a18b3b4.js.gz +0 -0
  503. codex/static_root/assets/admin-menu-Jfmp_Yd8.js +0 -1
  504. codex/static_root/assets/admin-menu-Jfmp_Yd8.js.br +0 -0
  505. codex/static_root/assets/admin-menu-Jfmp_Yd8.js.gz +0 -0
  506. codex/static_root/assets/admin-settings-button-progress-BAk-B1sR.cbf73c71330d.js +0 -1
  507. codex/static_root/assets/admin-settings-button-progress-BAk-B1sR.cbf73c71330d.js.br +0 -0
  508. codex/static_root/assets/admin-settings-button-progress-BAk-B1sR.cbf73c71330d.js.gz +0 -0
  509. codex/static_root/assets/admin-settings-button-progress-BAk-B1sR.js +0 -1
  510. codex/static_root/assets/admin-settings-button-progress-BAk-B1sR.js.br +0 -0
  511. codex/static_root/assets/admin-settings-button-progress-BAk-B1sR.js.gz +0 -0
  512. codex/static_root/assets/browser-CctlSJji.css +0 -1
  513. codex/static_root/assets/browser-CctlSJji.css.br +0 -0
  514. codex/static_root/assets/browser-CctlSJji.css.gz +0 -0
  515. codex/static_root/assets/browser-CctlSJji.d42d796476d2.css +0 -1
  516. codex/static_root/assets/browser-CctlSJji.d42d796476d2.css.br +0 -0
  517. codex/static_root/assets/browser-CctlSJji.d42d796476d2.css.gz +0 -0
  518. codex/static_root/assets/browser-DJnEeVHz.a78c47516b08.js +0 -1
  519. codex/static_root/assets/browser-DJnEeVHz.a78c47516b08.js.br +0 -0
  520. codex/static_root/assets/browser-DJnEeVHz.a78c47516b08.js.gz +0 -0
  521. codex/static_root/assets/browser-DJnEeVHz.js +0 -1
  522. codex/static_root/assets/browser-DJnEeVHz.js.br +0 -0
  523. codex/static_root/assets/browser-DJnEeVHz.js.gz +0 -0
  524. codex/static_root/assets/change-password-dialog-DJtOQw7K.be7fa5ec653d.js +0 -1
  525. codex/static_root/assets/change-password-dialog-DJtOQw7K.be7fa5ec653d.js.br +0 -0
  526. codex/static_root/assets/change-password-dialog-DJtOQw7K.be7fa5ec653d.js.gz +0 -0
  527. codex/static_root/assets/change-password-dialog-DJtOQw7K.js +0 -1
  528. codex/static_root/assets/change-password-dialog-DJtOQw7K.js.br +0 -0
  529. codex/static_root/assets/change-password-dialog-DJtOQw7K.js.gz +0 -0
  530. codex/static_root/assets/confirm-dialog-CME4gKSZ.1606233e784c.js +0 -1
  531. codex/static_root/assets/confirm-dialog-CME4gKSZ.1606233e784c.js.br +0 -0
  532. codex/static_root/assets/confirm-dialog-CME4gKSZ.1606233e784c.js.gz +0 -0
  533. codex/static_root/assets/confirm-dialog-CME4gKSZ.js +0 -1
  534. codex/static_root/assets/confirm-dialog-CME4gKSZ.js.br +0 -0
  535. codex/static_root/assets/confirm-dialog-CME4gKSZ.js.gz +0 -0
  536. codex/static_root/assets/datetime-column-D_F30OLW.09cdce0ef96e.js +0 -1
  537. codex/static_root/assets/datetime-column-D_F30OLW.09cdce0ef96e.js.br +0 -2
  538. codex/static_root/assets/datetime-column-D_F30OLW.09cdce0ef96e.js.gz +0 -0
  539. codex/static_root/assets/datetime-column-D_F30OLW.js +0 -1
  540. codex/static_root/assets/datetime-column-D_F30OLW.js.br +0 -2
  541. codex/static_root/assets/datetime-column-D_F30OLW.js.gz +0 -0
  542. codex/static_root/assets/filter-ud5mPZpn.0f0a537959aa.js.br +0 -0
  543. codex/static_root/assets/filter-ud5mPZpn.0f0a537959aa.js.gz +0 -0
  544. codex/static_root/assets/filter-ud5mPZpn.js.br +0 -0
  545. codex/static_root/assets/filter-ud5mPZpn.js.gz +0 -0
  546. codex/static_root/assets/flag-tab-CqWovuBu.4dfc6b251e85.css +0 -1
  547. codex/static_root/assets/flag-tab-CqWovuBu.4dfc6b251e85.css.br +0 -0
  548. codex/static_root/assets/flag-tab-CqWovuBu.4dfc6b251e85.css.gz +0 -0
  549. codex/static_root/assets/flag-tab-CqWovuBu.css +0 -1
  550. codex/static_root/assets/flag-tab-CqWovuBu.css.br +0 -0
  551. codex/static_root/assets/flag-tab-CqWovuBu.css.gz +0 -0
  552. codex/static_root/assets/flag-tab-k2g6u_vi.3e1da9318af9.js +0 -1
  553. codex/static_root/assets/flag-tab-k2g6u_vi.3e1da9318af9.js.br +0 -0
  554. codex/static_root/assets/flag-tab-k2g6u_vi.3e1da9318af9.js.gz +0 -0
  555. codex/static_root/assets/flag-tab-k2g6u_vi.js +0 -1
  556. codex/static_root/assets/flag-tab-k2g6u_vi.js.br +0 -0
  557. codex/static_root/assets/flag-tab-k2g6u_vi.js.gz +0 -0
  558. codex/static_root/assets/group-tab-C6Ykf03Z.ff0cc204013a.js +0 -1
  559. codex/static_root/assets/group-tab-C6Ykf03Z.ff0cc204013a.js.br +0 -0
  560. codex/static_root/assets/group-tab-C6Ykf03Z.ff0cc204013a.js.gz +0 -0
  561. codex/static_root/assets/group-tab-C6Ykf03Z.js +0 -1
  562. codex/static_root/assets/group-tab-C6Ykf03Z.js.br +0 -0
  563. codex/static_root/assets/group-tab-C6Ykf03Z.js.gz +0 -0
  564. codex/static_root/assets/http-error-Ctcws1xe.cfd378a792d2.css +0 -1
  565. codex/static_root/assets/http-error-Ctcws1xe.cfd378a792d2.css.br +0 -0
  566. codex/static_root/assets/http-error-Ctcws1xe.cfd378a792d2.css.gz +0 -0
  567. codex/static_root/assets/http-error-Ctcws1xe.css +0 -1
  568. codex/static_root/assets/http-error-Ctcws1xe.css.br +0 -0
  569. codex/static_root/assets/http-error-Ctcws1xe.css.gz +0 -0
  570. codex/static_root/assets/http-error-DQBHK8v5.aea50b1327fd.js +0 -1
  571. codex/static_root/assets/http-error-DQBHK8v5.aea50b1327fd.js.br +0 -0
  572. codex/static_root/assets/http-error-DQBHK8v5.aea50b1327fd.js.gz +0 -0
  573. codex/static_root/assets/http-error-DQBHK8v5.js +0 -1
  574. codex/static_root/assets/http-error-DQBHK8v5.js.br +0 -0
  575. codex/static_root/assets/http-error-DQBHK8v5.js.gz +0 -0
  576. codex/static_root/assets/index-ClGiHwWc.0717bacf5135.js +0 -1
  577. codex/static_root/assets/index-ClGiHwWc.0717bacf5135.js.br +0 -0
  578. codex/static_root/assets/index-ClGiHwWc.0717bacf5135.js.gz +0 -0
  579. codex/static_root/assets/index-ClGiHwWc.js +0 -1
  580. codex/static_root/assets/index-ClGiHwWc.js.br +0 -0
  581. codex/static_root/assets/index-ClGiHwWc.js.gz +0 -0
  582. codex/static_root/assets/library-tab-BpinbqAu.53fa2625e727.js +0 -1
  583. codex/static_root/assets/library-tab-BpinbqAu.53fa2625e727.js.br +0 -0
  584. codex/static_root/assets/library-tab-BpinbqAu.53fa2625e727.js.gz +0 -0
  585. codex/static_root/assets/library-tab-BpinbqAu.js +0 -1
  586. codex/static_root/assets/library-tab-BpinbqAu.js.br +0 -0
  587. codex/static_root/assets/library-tab-BpinbqAu.js.gz +0 -0
  588. codex/static_root/assets/library-tab-Cat0MAK5.5911f022188e.css.br +0 -0
  589. codex/static_root/assets/library-tab-Cat0MAK5.5911f022188e.css.gz +0 -0
  590. codex/static_root/assets/library-tab-Cat0MAK5.css.br +0 -0
  591. codex/static_root/assets/library-tab-Cat0MAK5.css.gz +0 -0
  592. codex/static_root/assets/main-BVKrDunc.1c6f8cdc3afb.js +0 -35
  593. codex/static_root/assets/main-BVKrDunc.1c6f8cdc3afb.js.br +0 -0
  594. codex/static_root/assets/main-BVKrDunc.1c6f8cdc3afb.js.gz +0 -0
  595. codex/static_root/assets/main-BVKrDunc.js +0 -35
  596. codex/static_root/assets/main-BVKrDunc.js.br +0 -0
  597. codex/static_root/assets/main-BVKrDunc.js.gz +0 -0
  598. codex/static_root/assets/pager-full-pdf-C1ZSyXfG.f2e95b19621c.js +0 -1
  599. codex/static_root/assets/pager-full-pdf-C1ZSyXfG.f2e95b19621c.js.br +0 -0
  600. codex/static_root/assets/pager-full-pdf-C1ZSyXfG.f2e95b19621c.js.gz +0 -0
  601. codex/static_root/assets/pager-full-pdf-C1ZSyXfG.js +0 -1
  602. codex/static_root/assets/pager-full-pdf-C1ZSyXfG.js.br +0 -0
  603. codex/static_root/assets/pager-full-pdf-C1ZSyXfG.js.gz +0 -0
  604. codex/static_root/assets/pagination-toolbar-Cx_9nh6D.546121fa7a0d.css +0 -1
  605. codex/static_root/assets/pagination-toolbar-Cx_9nh6D.546121fa7a0d.css.br +0 -0
  606. codex/static_root/assets/pagination-toolbar-Cx_9nh6D.546121fa7a0d.css.gz +0 -0
  607. codex/static_root/assets/pagination-toolbar-Cx_9nh6D.css +0 -1
  608. codex/static_root/assets/pagination-toolbar-Cx_9nh6D.css.br +0 -0
  609. codex/static_root/assets/pagination-toolbar-Cx_9nh6D.css.gz +0 -0
  610. codex/static_root/assets/pagination-toolbar-Diad0EdD.140911bf86af.js +0 -1
  611. codex/static_root/assets/pagination-toolbar-Diad0EdD.140911bf86af.js.br +0 -0
  612. codex/static_root/assets/pagination-toolbar-Diad0EdD.140911bf86af.js.gz +0 -0
  613. codex/static_root/assets/pagination-toolbar-Diad0EdD.js +0 -1
  614. codex/static_root/assets/pagination-toolbar-Diad0EdD.js.br +0 -0
  615. codex/static_root/assets/pagination-toolbar-Diad0EdD.js.gz +0 -0
  616. codex/static_root/assets/pdf-doc-b-GyNR6z.c9d18f0d36ed.js +0 -305
  617. codex/static_root/assets/pdf-doc-b-GyNR6z.c9d18f0d36ed.js.br +0 -0
  618. codex/static_root/assets/pdf-doc-b-GyNR6z.c9d18f0d36ed.js.gz +0 -0
  619. codex/static_root/assets/pdf-doc-b-GyNR6z.js +0 -305
  620. codex/static_root/assets/pdf-doc-b-GyNR6z.js.br +0 -0
  621. codex/static_root/assets/pdf-doc-b-GyNR6z.js.gz +0 -0
  622. codex/static_root/assets/reader-2up6WEuE.c56ad81d14c6.js +0 -2
  623. codex/static_root/assets/reader-2up6WEuE.c56ad81d14c6.js.br +0 -0
  624. codex/static_root/assets/reader-2up6WEuE.c56ad81d14c6.js.gz +0 -0
  625. codex/static_root/assets/reader-2up6WEuE.js +0 -2
  626. codex/static_root/assets/reader-2up6WEuE.js.br +0 -0
  627. codex/static_root/assets/reader-2up6WEuE.js.gz +0 -0
  628. codex/static_root/assets/reader-Dd2KmdCN.115d4bfe9280.css.br +0 -0
  629. codex/static_root/assets/reader-Dd2KmdCN.115d4bfe9280.css.gz +0 -0
  630. codex/static_root/assets/reader-Dd2KmdCN.css.br +0 -0
  631. codex/static_root/assets/reader-Dd2KmdCN.css.gz +0 -0
  632. codex/static_root/assets/relation-chips-piYv1IcD.f8a2ae79de89.js +0 -1
  633. codex/static_root/assets/relation-chips-piYv1IcD.f8a2ae79de89.js.br +0 -0
  634. codex/static_root/assets/relation-chips-piYv1IcD.f8a2ae79de89.js.gz +0 -0
  635. codex/static_root/assets/relation-chips-piYv1IcD.js +0 -1
  636. codex/static_root/assets/relation-chips-piYv1IcD.js.br +0 -0
  637. codex/static_root/assets/relation-chips-piYv1IcD.js.gz +0 -0
  638. codex/static_root/assets/settings-drawer-DKncO_vX.0a2cd24cd904.css +0 -1
  639. codex/static_root/assets/settings-drawer-DKncO_vX.0a2cd24cd904.css.br +0 -0
  640. codex/static_root/assets/settings-drawer-DKncO_vX.0a2cd24cd904.css.gz +0 -0
  641. codex/static_root/assets/settings-drawer-DKncO_vX.css +0 -1
  642. codex/static_root/assets/settings-drawer-DKncO_vX.css.br +0 -0
  643. codex/static_root/assets/settings-drawer-DKncO_vX.css.gz +0 -0
  644. codex/static_root/assets/settings-drawer-yVoY-WCS.1240cc47a246.js +0 -2
  645. codex/static_root/assets/settings-drawer-yVoY-WCS.1240cc47a246.js.br +0 -0
  646. codex/static_root/assets/settings-drawer-yVoY-WCS.1240cc47a246.js.gz +0 -0
  647. codex/static_root/assets/settings-drawer-yVoY-WCS.js +0 -2
  648. codex/static_root/assets/settings-drawer-yVoY-WCS.js.br +0 -0
  649. codex/static_root/assets/settings-drawer-yVoY-WCS.js.gz +0 -0
  650. codex/static_root/assets/stats-tab-bqSPLvTp.05106cb03ef0.js +0 -1
  651. codex/static_root/assets/stats-tab-bqSPLvTp.05106cb03ef0.js.br +0 -0
  652. codex/static_root/assets/stats-tab-bqSPLvTp.05106cb03ef0.js.gz +0 -0
  653. codex/static_root/assets/stats-tab-bqSPLvTp.js +0 -1
  654. codex/static_root/assets/stats-tab-bqSPLvTp.js.br +0 -0
  655. codex/static_root/assets/stats-tab-bqSPLvTp.js.gz +0 -0
  656. codex/static_root/assets/task-tab-DWPKaGPT.da4df28dde5c.js +0 -1
  657. codex/static_root/assets/task-tab-DWPKaGPT.da4df28dde5c.js.br +0 -0
  658. codex/static_root/assets/task-tab-DWPKaGPT.da4df28dde5c.js.gz +0 -0
  659. codex/static_root/assets/task-tab-DWPKaGPT.js +0 -1
  660. codex/static_root/assets/task-tab-DWPKaGPT.js.br +0 -0
  661. codex/static_root/assets/task-tab-DWPKaGPT.js.gz +0 -0
  662. codex/static_root/assets/transition-5LRFTPo5.3d726f9bbcb0.css +0 -1
  663. codex/static_root/assets/transition-5LRFTPo5.3d726f9bbcb0.css.br +0 -4
  664. codex/static_root/assets/transition-5LRFTPo5.3d726f9bbcb0.css.gz +0 -0
  665. codex/static_root/assets/transition-5LRFTPo5.css +0 -1
  666. codex/static_root/assets/transition-5LRFTPo5.css.br +0 -4
  667. codex/static_root/assets/transition-5LRFTPo5.css.gz +0 -0
  668. codex/static_root/assets/transition-DWVQ2EZ3.0bdfaa37b937.js +0 -1
  669. codex/static_root/assets/transition-DWVQ2EZ3.0bdfaa37b937.js.br +0 -0
  670. codex/static_root/assets/transition-DWVQ2EZ3.0bdfaa37b937.js.gz +0 -0
  671. codex/static_root/assets/transition-DWVQ2EZ3.js +0 -1
  672. codex/static_root/assets/transition-DWVQ2EZ3.js.br +0 -0
  673. codex/static_root/assets/transition-DWVQ2EZ3.js.gz +0 -0
  674. codex/static_root/assets/unauthorized-CEGD20tR.064b0993a944.js +0 -1
  675. codex/static_root/assets/unauthorized-CEGD20tR.064b0993a944.js.br +0 -0
  676. codex/static_root/assets/unauthorized-CEGD20tR.064b0993a944.js.gz +0 -0
  677. codex/static_root/assets/unauthorized-CEGD20tR.js +0 -1
  678. codex/static_root/assets/unauthorized-CEGD20tR.js.br +0 -0
  679. codex/static_root/assets/unauthorized-CEGD20tR.js.gz +0 -0
  680. codex/static_root/assets/unauthorized-DyojW2ic.css +0 -1
  681. codex/static_root/assets/unauthorized-DyojW2ic.css.br +0 -0
  682. codex/static_root/assets/unauthorized-DyojW2ic.css.gz +0 -0
  683. codex/static_root/assets/unauthorized-DyojW2ic.feefa7628a23.css +0 -1
  684. codex/static_root/assets/unauthorized-DyojW2ic.feefa7628a23.css.br +0 -0
  685. codex/static_root/assets/unauthorized-DyojW2ic.feefa7628a23.css.gz +0 -0
  686. codex/static_root/assets/user-tab-EsokzMCB.b0acc46b56a3.js +0 -1
  687. codex/static_root/assets/user-tab-EsokzMCB.b0acc46b56a3.js.br +0 -0
  688. codex/static_root/assets/user-tab-EsokzMCB.b0acc46b56a3.js.gz +0 -0
  689. codex/static_root/assets/user-tab-EsokzMCB.js +0 -1
  690. codex/static_root/assets/user-tab-EsokzMCB.js.br +0 -0
  691. codex/static_root/assets/user-tab-EsokzMCB.js.gz +0 -0
  692. codex/static_root/manifest.4a38de3db1c5.json +0 -712
  693. codex/static_root/manifest.4a38de3db1c5.json.br +0 -0
  694. codex/static_root/manifest.4a38de3db1c5.json.gz +0 -0
  695. {codex-1.7.2.dist-info → codex-1.7.3a0.dist-info}/LICENSE +0 -0
  696. {codex-1.7.2.dist-info → codex-1.7.3a0.dist-info}/WHEEL +0 -0
  697. {codex-1.7.2.dist-info → codex-1.7.3a0.dist-info}/entry_points.txt +0 -0
@@ -1 +0,0 @@
1
- import{_ as y,aM as B,o as n,c as a,i as m,bz as E,y as D,u as f,ag as L,m as w,H as p,x as v,r as i,w as d,A as N,b as A,C as h,a as l,L as b,ab as C,E as g}from"./main-BVKrDunc.js";import{V as P,C as O,i as U}from"./VDialog-Db4tJYqR.js";import{S as I,a as M,V as u}from"./VTextField-X5yAw35c.js";const T={name:"CloseButton",data(){return{mdiClose:B}}};function x(e,s,t,S,o,c){return n(),a(P,m({class:"closeButton",icon:o.mdiClose},e.$attrs),null,16,["icon"])}const F=y(T,[["render",x],["__scopeId","data-v-cfdced0d"]]),R={name:"ChangePasswordDialog",components:{SubmitFooter:I,CloseButton:F,CodexListItem:O},props:{user:{type:Object,required:!0},isAdminMode:{type:Boolean,default:!1},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{rules:{oldPassword:[e=>!!e||"Old Password is required"],password:[e=>e?e.length<this.MIN_PASSWORD_LENGTH?`Password must be ${this.MIN_PASSWORD_LENGTH} characters long`:e===this.credentials.oldPassword?"New password must be different than old password":!0:"New Password is required"],passwordConfirm:[e=>e===this.credentials.password||"Passwords must match"]},credentials:{oldPassword:"",password:"",passwordConfirm:""},submitButtonEnabled:!1,mdiLockReset:E,showOnlyThisDialog:!1}},computed:{...D(f,{formErrors:e=>e.form.errors,formSuccess:e=>e.form.success,MIN_PASSWORD_LEN:e=>e.MIN_PASSWORD_LEN}),...L(p,["showChangePasswordDialog"])},watch:{showOnlyThisDialog(e){if(this.showChangePasswordDialog=e,e){const s=this.$refs.form;s&&s.reset(),this.clearErrors()}},credentials:{handler(){const e=this.$refs.form;if(!e){this.submitButtonEnabled=!1;return}e.validate().then(({valid:s})=>(this.submitButtonEnabled=s,this.submitButtonEnabled)).catch(()=>{this.submitButtonEnabled=!1})},deep:!0}},mounted(){window.addEventListener("keyup",this._keyUpListener)},beforeUnmount(){window.removeEventListener("keyup",this._keyUpListener)},methods:{...w(p,["changePassword"]),...w(f,["clearErrors"]),doUserChange(){return v().changeUserPassword(this.user.pk,this.credentials).catch(console.error)},doSelfChange(){return this.changePassword(this.credentials).catch(console.error)},submit(){const e=this.$refs.form;e&&e.validate().then(({valid:s})=>{if(s)return this.isAdminMode?this.doUserChange():this.doSelfChange()}).catch(console.error)},_keyUpListener(e){e.stopImmediatePropagation()}}},z={key:0,class:"codexFormSuccess"},W=["value"];function q(e,s,t,S,o,c){const V=i("CodexListItem"),_=i("CloseButton"),k=i("SubmitFooter");return t.user?(n(),a(U,{key:0,modelValue:o.showOnlyThisDialog,"onUpdate:modelValue":s[7]||(s[7]=r=>o.showOnlyThisDialog=r),origin:"center-top",transition:"slide-y-transition","max-width":"22em"},{activator:d(({props:r})=>[t.isAdminMode?(n(),a(P,m({key:0,icon:o.mdiLockReset},r,{size:t.size,density:t.density,title:"Change Password"}),null,16,["icon","size","density"])):(n(),a(V,m({key:1,"prepend-icon":o.mdiLockReset},r,{title:"Change Password"}),null,16,["prepend-icon"]))]),default:d(()=>[e.formSuccess?(n(),N("div",z,[A(h(e.formSuccess)+" ",1),l(_,{onClick:s[0]||(s[0]=r=>o.showOnlyThisDialog=!1)})])):(n(),a(M,{key:1,ref:"form",class:"changePasswordForm"},{default:d(()=>[b("h2",null,"User "+h(t.user.username),1),b("input",{name:"username",autocomplete:"username",disabled:"",type:"text",class:"hidden",value:t.user.username},null,8,W),t.isAdminMode?g("",!0):(n(),a(u,{key:0,ref:"oldPassword",modelValue:o.credentials.oldPassword,"onUpdate:modelValue":s[1]||(s[1]=r=>o.credentials.oldPassword=r),autocomplete:"current-password",label:"Old Password",rules:o.rules.oldPassword,clearable:"",type:"password",autofocus:"",onKeydown:s[2]||(s[2]=C(r=>e.$refs.password.focus(),["enter"]))},null,8,["modelValue","rules"])),l(u,{ref:"password",modelValue:o.credentials.password,"onUpdate:modelValue":s[3]||(s[3]=r=>o.credentials.password=r),autocomplete:"new-password",label:"New Password",rules:o.rules.password,clearable:"",type:"password",autofocus:t.isAdminMode,onKeydown:s[4]||(s[4]=C(r=>e.$refs.passwordConfirm.focus(),["enter"]))},null,8,["modelValue","rules","autofocus"]),l(u,{ref:"passwordConfirm",modelValue:o.credentials.passwordConfirm,"onUpdate:modelValue":s[5]||(s[5]=r=>o.credentials.passwordConfirm=r),autocomplete:"new-password",label:"Confirm Password",rules:o.rules.passwordConfirm,clearable:"",type:"password"},null,8,["modelValue","rules"]),l(k,{verb:"Change",table:"Password",disabled:!o.submitButtonEnabled,onSubmit:c.submit,onCancel:s[6]||(s[6]=r=>o.showOnlyThisDialog=!1)},null,8,["disabled","onSubmit"])]),_:1},512))]),_:1},8,["modelValue"])):g("",!0)}const j=y(R,[["render",q],["__scopeId","data-v-4cf1306d"]]);export{F as C,j as a};
@@ -1 +0,0 @@
1
- import{_ as y,aM as B,o as n,c as a,i as m,bz as E,y as D,u as f,ag as L,m as w,H as p,x as v,r as i,w as d,A as N,b as A,C as h,a as l,L as b,ab as C,E as g}from"./main-BVKrDunc.js";import{V as P,C as O,i as U}from"./VDialog-Db4tJYqR.js";import{S as I,a as M,V as u}from"./VTextField-X5yAw35c.js";const T={name:"CloseButton",data(){return{mdiClose:B}}};function x(e,s,t,S,o,c){return n(),a(P,m({class:"closeButton",icon:o.mdiClose},e.$attrs),null,16,["icon"])}const F=y(T,[["render",x],["__scopeId","data-v-cfdced0d"]]),R={name:"ChangePasswordDialog",components:{SubmitFooter:I,CloseButton:F,CodexListItem:O},props:{user:{type:Object,required:!0},isAdminMode:{type:Boolean,default:!1},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{rules:{oldPassword:[e=>!!e||"Old Password is required"],password:[e=>e?e.length<this.MIN_PASSWORD_LENGTH?`Password must be ${this.MIN_PASSWORD_LENGTH} characters long`:e===this.credentials.oldPassword?"New password must be different than old password":!0:"New Password is required"],passwordConfirm:[e=>e===this.credentials.password||"Passwords must match"]},credentials:{oldPassword:"",password:"",passwordConfirm:""},submitButtonEnabled:!1,mdiLockReset:E,showOnlyThisDialog:!1}},computed:{...D(f,{formErrors:e=>e.form.errors,formSuccess:e=>e.form.success,MIN_PASSWORD_LEN:e=>e.MIN_PASSWORD_LEN}),...L(p,["showChangePasswordDialog"])},watch:{showOnlyThisDialog(e){if(this.showChangePasswordDialog=e,e){const s=this.$refs.form;s&&s.reset(),this.clearErrors()}},credentials:{handler(){const e=this.$refs.form;if(!e){this.submitButtonEnabled=!1;return}e.validate().then(({valid:s})=>(this.submitButtonEnabled=s,this.submitButtonEnabled)).catch(()=>{this.submitButtonEnabled=!1})},deep:!0}},mounted(){window.addEventListener("keyup",this._keyUpListener)},beforeUnmount(){window.removeEventListener("keyup",this._keyUpListener)},methods:{...w(p,["changePassword"]),...w(f,["clearErrors"]),doUserChange(){return v().changeUserPassword(this.user.pk,this.credentials).catch(console.error)},doSelfChange(){return this.changePassword(this.credentials).catch(console.error)},submit(){const e=this.$refs.form;e&&e.validate().then(({valid:s})=>{if(s)return this.isAdminMode?this.doUserChange():this.doSelfChange()}).catch(console.error)},_keyUpListener(e){e.stopImmediatePropagation()}}},z={key:0,class:"codexFormSuccess"},W=["value"];function q(e,s,t,S,o,c){const V=i("CodexListItem"),_=i("CloseButton"),k=i("SubmitFooter");return t.user?(n(),a(U,{key:0,modelValue:o.showOnlyThisDialog,"onUpdate:modelValue":s[7]||(s[7]=r=>o.showOnlyThisDialog=r),origin:"center-top",transition:"slide-y-transition","max-width":"22em"},{activator:d(({props:r})=>[t.isAdminMode?(n(),a(P,m({key:0,icon:o.mdiLockReset},r,{size:t.size,density:t.density,title:"Change Password"}),null,16,["icon","size","density"])):(n(),a(V,m({key:1,"prepend-icon":o.mdiLockReset},r,{title:"Change Password"}),null,16,["prepend-icon"]))]),default:d(()=>[e.formSuccess?(n(),N("div",z,[A(h(e.formSuccess)+" ",1),l(_,{onClick:s[0]||(s[0]=r=>o.showOnlyThisDialog=!1)})])):(n(),a(M,{key:1,ref:"form",class:"changePasswordForm"},{default:d(()=>[b("h2",null,"User "+h(t.user.username),1),b("input",{name:"username",autocomplete:"username",disabled:"",type:"text",class:"hidden",value:t.user.username},null,8,W),t.isAdminMode?g("",!0):(n(),a(u,{key:0,ref:"oldPassword",modelValue:o.credentials.oldPassword,"onUpdate:modelValue":s[1]||(s[1]=r=>o.credentials.oldPassword=r),autocomplete:"current-password",label:"Old Password",rules:o.rules.oldPassword,clearable:"",type:"password",autofocus:"",onKeydown:s[2]||(s[2]=C(r=>e.$refs.password.focus(),["enter"]))},null,8,["modelValue","rules"])),l(u,{ref:"password",modelValue:o.credentials.password,"onUpdate:modelValue":s[3]||(s[3]=r=>o.credentials.password=r),autocomplete:"new-password",label:"New Password",rules:o.rules.password,clearable:"",type:"password",autofocus:t.isAdminMode,onKeydown:s[4]||(s[4]=C(r=>e.$refs.passwordConfirm.focus(),["enter"]))},null,8,["modelValue","rules","autofocus"]),l(u,{ref:"passwordConfirm",modelValue:o.credentials.passwordConfirm,"onUpdate:modelValue":s[5]||(s[5]=r=>o.credentials.passwordConfirm=r),autocomplete:"new-password",label:"Confirm Password",rules:o.rules.passwordConfirm,clearable:"",type:"password"},null,8,["modelValue","rules"]),l(k,{verb:"Change",table:"Password",disabled:!o.submitButtonEnabled,onSubmit:c.submit,onCancel:s[6]||(s[6]=r=>o.showOnlyThisDialog=!1)},null,8,["disabled","onSubmit"])]),_:1},512))]),_:1},8,["modelValue"])):g("",!0)}const j=y(R,[["render",q],["__scopeId","data-v-4cf1306d"]]);export{F as C,j as a};
@@ -1 +0,0 @@
1
- import{Z as b,C,V as f,i as _}from"./VDialog-Db4tJYqR.js";import{_ as k,r as u,o as n,c as i,w as a,i as r,b as c,C as l,E as V,L as x,a as D}from"./main-BVKrDunc.js";import{V as I}from"./transition-DWVQ2EZ3.js";const S={name:"ConfirmDialog",components:{ConfirmFooter:b,CodexListItem:C},props:{button:{type:Boolean,default:!0},icon:{type:String,default:""},prependIcon:{type:String,default:""},buttonText:{type:String,default:""},titleText:{type:String,required:!0},block:{type:Boolean,default:!1},text:{type:String,required:!0},confirmText:{type:String,required:!0},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{showDialog:!1}},methods:{close(d){this.$emit(d),this.showDialog=!1}}},T={class:"confirmDialog"};function v(d,o,e,w,s,m){const y=u("CodexListItem"),g=u("ConfirmFooter");return n(),i(_,{modelValue:s.showDialog,"onUpdate:modelValue":o[2]||(o[2]=t=>s.showDialog=t),transition:"fab-transition","max-width":"20em","overlay-opacity":"0.5"},{activator:a(({props:t})=>[e.button&&e.icon?(n(),i(f,r({key:0},t,{block:e.block,icon:e.icon,size:e.size,density:e.density,title:e.titleText}),null,16,["block","icon","size","density","title"])):e.button?(n(),i(f,r({key:1},t,{block:e.block}),{default:a(()=>[e.prependIcon?(n(),i(I,{key:0},{default:a(()=>[c(l(e.prependIcon),1)]),_:1})):V("",!0),c(" "+l(e.buttonText),1)]),_:2},1040,["block"])):(n(),i(y,r({key:2},t,{"prepend-icon":e.prependIcon,title:e.titleText}),null,16,["prepend-icon","title"]))]),default:a(()=>[x("div",T,[x("h3",null,l(e.titleText),1),c(" "+l(e.text)+" ",1),D(g,{"confirm-text":e.confirmText,onConfirm:o[0]||(o[0]=t=>m.close("confirm")),onCancel:o[1]||(o[1]=t=>m.close("cancel"))},null,8,["confirm-text"])])]),_:1},8,["modelValue"])}const L=k(S,[["render",v],["__scopeId","data-v-21abfb17"]]);export{L as C};
@@ -1 +0,0 @@
1
- import{Z as b,C,V as f,i as _}from"./VDialog-Db4tJYqR.js";import{_ as k,r as u,o as n,c as i,w as a,i as r,b as c,C as l,E as V,L as x,a as D}from"./main-BVKrDunc.js";import{V as I}from"./transition-DWVQ2EZ3.js";const S={name:"ConfirmDialog",components:{ConfirmFooter:b,CodexListItem:C},props:{button:{type:Boolean,default:!0},icon:{type:String,default:""},prependIcon:{type:String,default:""},buttonText:{type:String,default:""},titleText:{type:String,required:!0},block:{type:Boolean,default:!1},text:{type:String,required:!0},confirmText:{type:String,required:!0},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{showDialog:!1}},methods:{close(d){this.$emit(d),this.showDialog=!1}}},T={class:"confirmDialog"};function v(d,o,e,w,s,m){const y=u("CodexListItem"),g=u("ConfirmFooter");return n(),i(_,{modelValue:s.showDialog,"onUpdate:modelValue":o[2]||(o[2]=t=>s.showDialog=t),transition:"fab-transition","max-width":"20em","overlay-opacity":"0.5"},{activator:a(({props:t})=>[e.button&&e.icon?(n(),i(f,r({key:0},t,{block:e.block,icon:e.icon,size:e.size,density:e.density,title:e.titleText}),null,16,["block","icon","size","density","title"])):e.button?(n(),i(f,r({key:1},t,{block:e.block}),{default:a(()=>[e.prependIcon?(n(),i(I,{key:0},{default:a(()=>[c(l(e.prependIcon),1)]),_:1})):V("",!0),c(" "+l(e.buttonText),1)]),_:2},1040,["block"])):(n(),i(y,r({key:2},t,{"prepend-icon":e.prependIcon,title:e.titleText}),null,16,["prepend-icon","title"]))]),default:a(()=>[x("div",T,[x("h3",null,l(e.titleText),1),c(" "+l(e.text)+" ",1),D(g,{"confirm-text":e.confirmText,onConfirm:o[0]||(o[0]=t=>m.close("confirm")),onCancel:o[1]||(o[1]=t=>m.close("cancel"))},null,8,["confirm-text"])])]),_:1},8,["modelValue"])}const L=k(S,[["render",v],["__scopeId","data-v-21abfb17"]]);export{L as C};
@@ -1 +0,0 @@
1
- import{y as r,J as m,S as s,bK as i,_ as n,o as d,A as c,b as u,C as a,L as f,E as _}from"./main-BVKrDunc.js";const T={name:"DateTimeColumn",props:{dttm:{type:String,default:""}},data(){return{date:new Date(this.dttm)}},computed:{...r(m,{twentyFourHourTime:t=>t.settings.twentyFourHourTime}),formattedDate:function(){return s.format(this.date)},formattedTime:function(){return i(this.twentyFourHourTime).format(this.date)}},created(){}},p={key:0,datetime:"formattedDate"},l={class:"colTime",datetime:"formattedTime"};function D(t,h,o,y,F,e){return o.dttm?(d(),c("time",p,[u(a(e.formattedDate)+" ",1),f("time",l,a(e.formattedTime),1)])):_("",!0)}const S=n(T,[["render",D],["__scopeId","data-v-4e9e3015"]]);export{S as D};
@@ -1,2 +0,0 @@
1
- �`����e�j�_�tEڂ��J~��s��>ؐg�yY]t���t��/Yl�6����a���� 
2
- %<�С��K�S=r?�s�l��t�z=�_c�ܓc
@@ -1 +0,0 @@
1
- import{y as r,J as m,S as s,bK as i,_ as n,o as d,A as c,b as u,C as a,L as f,E as _}from"./main-BVKrDunc.js";const T={name:"DateTimeColumn",props:{dttm:{type:String,default:""}},data(){return{date:new Date(this.dttm)}},computed:{...r(m,{twentyFourHourTime:t=>t.settings.twentyFourHourTime}),formattedDate:function(){return s.format(this.date)},formattedTime:function(){return i(this.twentyFourHourTime).format(this.date)}},created(){}},p={key:0,datetime:"formattedDate"},l={class:"colTime",datetime:"formattedTime"};function D(t,h,o,y,F,e){return o.dttm?(d(),c("time",p,[u(a(e.formattedDate)+" ",1),f("time",l,a(e.formattedTime),1)])):_("",!0)}const S=n(T,[["render",D],["__scopeId","data-v-4e9e3015"]]);export{S as D};
@@ -1,2 +0,0 @@
1
- �`����e�j�_�tEڂ��J~��s��>ؐg�yY]t���t��/Yl�6����a���� 
2
- %<�С��K�S=r?�s�l��t�z=�_c�ܓc
@@ -1 +0,0 @@
1
- .flags-table[data-v-e688866e]{max-width:100vw!important;margin-bottom:24px}.nameCol[data-v-e688866e]{padding-top:.5em!important}.desc[data-v-e688866e]{margin-top:1em;margin-bottom:.5em;color:rgb(var(--v-theme-textSecondary))}
@@ -1 +0,0 @@
1
- .flags-table[data-v-e688866e]{max-width:100vw!important;margin-bottom:24px}.nameCol[data-v-e688866e]{padding-top:.5em!important}.desc[data-v-e688866e]{margin-top:1em;margin-bottom:.5em;color:rgb(var(--v-theme-textSecondary))}
@@ -1 +0,0 @@
1
- import{_ as f,y as i,u as p,x as d,m as b,c as y,w as g,o as r,L as a,A as c,B as w,C as m,a as k,F as v}from"./main-BVKrDunc.js";import{V as U}from"./VTable-Cbq-yJos.js";import{V as x}from"./VCheckbox-DLMzIII1.js";import"./transition-DWVQ2EZ3.js";import"./VCheckboxBtn-BzoQl8XC.js";import"./VSelectionControl-CxhDNufT.js";const A="Auto Update",S="Folder View",F="Import Metadata on Library Scan",C="Non Users",T="Registration",V="Send Stats",I={AU:A,FV:S,IM:F,NU:C,RG:T,ST:V},_="If enabled, codex will attempt to update the codex python package once a day and restart the server if an update occurred. Not advisable if running from Docker as running containers aren't meant to hold state and will be rebuilt if you update the image. Look into services that automatically update docker images instead.",E="By default all Codex features, including bookmarking, are available to users who are not logged in. You may disable this feature and Codex will hide its browser and reader and disable its API from anyone who is not logged in as a user.",N="By default users' bookmarks and preferences are saved in an anonymous browser session. Users can create a username and password to save their bookmarks between browsers. You may disable this feature. Admins may still create users.",B=`By default, codex provides a "Folder View" which mimics the directory hierarchy of the libraries that you've added to Codex. You may disable this feature. The database style browser view is always available. This flag also enables and disables the "Filename" sort option and the path from search indexing.`,R="If disabled, Codex will not bulk import metadata from comic libraries when they are scanned and only import folders and filenames. Instead, metadata will be loaded lazily as comics are read. This makes importing comics fast, but disables most of the metadata browser functionality, making codex mostly a file tree browser.",$="Anonymously send the contents of the Admin Stats tab once a week to understand how people use Codex and improve the software. The server collecting the stats does not log or store your IP. The author considers all personally identifying information and the names and metadata of your comics to be a radioactive privacy violation and will never be exposed to it. Only the information you see on the stats page is collected. Your API Key is not sent. Stats are not sent for the first 24 hours to allow opt-out.",D={AU:_,NU:E,RG:N,FV:B,IM:R,ST:$},M={name:"AdminFlagsTab",components:{},data(){return{lastUpdate:{name:"",field:void 0},DESC:D}},computed:{...i(p,["formErrors"]),...i(d,["flags"])},mounted(){this.loadTables(["Flag"])},methods:{...b(d,["updateRow","clearErrors","loadTables"]),changeCol(e,t,n){this.lastUpdate.name=e,this.lastUpdate.field=t;const l={[t]:n};this.updateRow("Flag",e,l)},getFormErrors(e,t){if(e===this.lastUpdate.name&&t===this.lastUpdate.field)return this.formErrors},title(e){return I[e.key]}}},G={class:"nameCol"},L={class:"desc"};function Y(e,t,n,l,u,s){return r(),y(U,{class:"highlight-table flags-table",items:e.flags,"fixed-header":""},{default:g(()=>[t[0]||(t[0]=a("thead",null,[a("tr",null,[a("th",null,"Description"),a("th",null,"Enabled")])],-1)),a("tbody",null,[(r(!0),c(v,null,w(e.flags,o=>(r(),c("tr",{key:`f${o.key}`},[a("td",G,[a("h4",null,m(s.title(o)),1),a("p",L,m(u.DESC[o.key]),1)]),a("td",null,[k(x,{"model-value":o.on,"true-value":!0,"error-messages":s.getFormErrors(o.key,"on"),"hide-details":"auto","onUpdate:modelValue":h=>s.changeCol(o.key,"on",h)},null,8,["model-value","error-messages","onUpdate:modelValue"])])]))),128))])]),_:1},8,["items"])}const H=f(M,[["render",Y],["__scopeId","data-v-e688866e"]]);export{H as default};
@@ -1 +0,0 @@
1
- import{_ as f,y as i,u as p,x as d,m as b,c as y,w as g,o as r,L as a,A as c,B as w,C as m,a as k,F as v}from"./main-BVKrDunc.js";import{V as U}from"./VTable-Cbq-yJos.js";import{V as x}from"./VCheckbox-DLMzIII1.js";import"./transition-DWVQ2EZ3.js";import"./VCheckboxBtn-BzoQl8XC.js";import"./VSelectionControl-CxhDNufT.js";const A="Auto Update",S="Folder View",F="Import Metadata on Library Scan",C="Non Users",T="Registration",V="Send Stats",I={AU:A,FV:S,IM:F,NU:C,RG:T,ST:V},_="If enabled, codex will attempt to update the codex python package once a day and restart the server if an update occurred. Not advisable if running from Docker as running containers aren't meant to hold state and will be rebuilt if you update the image. Look into services that automatically update docker images instead.",E="By default all Codex features, including bookmarking, are available to users who are not logged in. You may disable this feature and Codex will hide its browser and reader and disable its API from anyone who is not logged in as a user.",N="By default users' bookmarks and preferences are saved in an anonymous browser session. Users can create a username and password to save their bookmarks between browsers. You may disable this feature. Admins may still create users.",B=`By default, codex provides a "Folder View" which mimics the directory hierarchy of the libraries that you've added to Codex. You may disable this feature. The database style browser view is always available. This flag also enables and disables the "Filename" sort option and the path from search indexing.`,R="If disabled, Codex will not bulk import metadata from comic libraries when they are scanned and only import folders and filenames. Instead, metadata will be loaded lazily as comics are read. This makes importing comics fast, but disables most of the metadata browser functionality, making codex mostly a file tree browser.",$="Anonymously send the contents of the Admin Stats tab once a week to understand how people use Codex and improve the software. The server collecting the stats does not log or store your IP. The author considers all personally identifying information and the names and metadata of your comics to be a radioactive privacy violation and will never be exposed to it. Only the information you see on the stats page is collected. Your API Key is not sent. Stats are not sent for the first 24 hours to allow opt-out.",D={AU:_,NU:E,RG:N,FV:B,IM:R,ST:$},M={name:"AdminFlagsTab",components:{},data(){return{lastUpdate:{name:"",field:void 0},DESC:D}},computed:{...i(p,["formErrors"]),...i(d,["flags"])},mounted(){this.loadTables(["Flag"])},methods:{...b(d,["updateRow","clearErrors","loadTables"]),changeCol(e,t,n){this.lastUpdate.name=e,this.lastUpdate.field=t;const l={[t]:n};this.updateRow("Flag",e,l)},getFormErrors(e,t){if(e===this.lastUpdate.name&&t===this.lastUpdate.field)return this.formErrors},title(e){return I[e.key]}}},G={class:"nameCol"},L={class:"desc"};function Y(e,t,n,l,u,s){return r(),y(U,{class:"highlight-table flags-table",items:e.flags,"fixed-header":""},{default:g(()=>[t[0]||(t[0]=a("thead",null,[a("tr",null,[a("th",null,"Description"),a("th",null,"Enabled")])],-1)),a("tbody",null,[(r(!0),c(v,null,w(e.flags,o=>(r(),c("tr",{key:`f${o.key}`},[a("td",G,[a("h4",null,m(s.title(o)),1),a("p",L,m(u.DESC[o.key]),1)]),a("td",null,[k(x,{"model-value":o.on,"true-value":!0,"error-messages":s.getFormErrors(o.key,"on"),"hide-details":"auto","onUpdate:modelValue":h=>s.changeCol(o.key,"on",h)},null,8,["model-value","error-messages","onUpdate:modelValue"])])]))),128))])]),_:1},8,["items"])}const H=f(M,[["render",Y],["__scopeId","data-v-e688866e"]]);export{H as default};
@@ -1 +0,0 @@
1
- import{a3 as g,v as w,x as d,y as k,m as G,_ as A,r as i,o as h,A as C,a as l,w as a,aq as v,L as t,b as m}from"./main-BVKrDunc.js";import{A as V,G as S,a as I,b as j,c as D,R as E}from"./relation-chips-piYv1IcD.js";import{V as L}from"./VTextField-X5yAw35c.js";import{V as f,a as N}from"./VRadioGroup-D2-PWEfs.js";import"./VDialog-Db4tJYqR.js";import"./transition-DWVQ2EZ3.js";import"./VSelect-DqXJ23Pc.js";import"./VSelectionControl-CxhDNufT.js";import"./VSlideGroup-DRbthp6q.js";import"./VCheckboxBtn-BzoQl8XC.js";import"./VTable-Cbq-yJos.js";import"./filter-ud5mPZpn.js";import"./confirm-dialog-CME4gKSZ.js";const x=["name","userSet","librarySet","exclude"];Object.freeze(x);const b={name:"",userSet:[],librarySet:[],exclude:!1};Object.freeze(b);const H={name:"AdminGroupCreateUpdateInputs",components:{AdminRelationPicker:V,GroupChip:S},props:{oldRow:{type:[Object,Boolean],default:!1}},emits:["change"],data(){return{rules:{name:[s=>!!s||"Name is required",s=>!!s&&!this.names.has(s.trim())||"Name already used"]},row:{...b,...g(this.oldRow)}}},computed:{...w(d,["normalLibraries"]),...k(d,{groups:s=>s.groups,users:s=>s.users}),names(){return this.nameSet(this.groups,"name",this.oldRow,!0)}},watch:{row:{handler(s){this.$emit("change",s)},deep:!0},oldRow:{handler(s){this.row=g(s)},deep:!0}},methods:{...G(d,["nameSet"])},UPDATE_KEYS:x,EMPTY_ROW:b};function P(s,e,y,U,o,c){const p=i("GroupChip"),u=i("AdminRelationPicker");return h(),C("div",null,[l(L,{modelValue:o.row.name,"onUpdate:modelValue":e[0]||(e[0]=r=>o.row.name=r),label:"Group Name",rules:o.rules.name,clearable:"",autofocus:""},null,8,["modelValue","rules"]),l(N,{inline:"",label:"Type","model-value":o.row.exclude,"hide-details":"auto","onUpdate:modelValue":e[1]||(e[1]=r=>o.row.exclude=r)},{default:a(()=>[l(f,{value:!1},{label:a(()=>[l(p,{item:{name:"Include",exclude:!1},"title-key":"name","group-type":""})]),_:1}),l(f,{value:!0},{label:a(()=>[l(p,{item:{name:"Exclude",exclude:!0},"title-key":"name","group-type":""})]),_:1})]),_:1},8,["model-value"]),l(u,{"model-value":o.row.userSet,label:"Users",objs:s.users,"title-key":"username","onUpdate:modelValue":e[2]||(e[2]=r=>o.row.userSet=r)},null,8,["model-value","objs"]),l(u,{"model-value":o.row.librarySet,label:"Libraries",objs:s.normalLibraries,"title-key":"path","onUpdate:modelValue":e[3]||(e[3]=r=>o.row.librarySet=r)},null,8,["model-value","objs"])])}const O=A(H,[["render",P]]),z=180,B={name:"AdminGroupsTab",components:{AdminTable:I,AdminDeleteRowDialog:j,AdminCreateUpdateDialog:D,RelationChips:E,GroupChip:S},data(){return{lastUpdate:{pk:0,field:void 0},AdminGroupCreateUpdateInputs:v(O),GROUP_HELP_HEIGHT:z,headers:[{title:"Name",key:"name",align:"start"},{title:"Type",key:"exclude",align:"start"},{title:"Users",key:"userSet"},{title:"Libraries",key:"librarySet"},{title:"Actions",key:"actions",sortable:!1}]}},computed:{...w(d,["normalLibraries"]),...k(d,{groups:s=>s.groups,users:s=>s.users})},mounted(){this.loadTables(["User","Library","Group"])},methods:{...G(d,["loadTables"]),groupType(s){const e=s.exclude;return{name:e?"Exclude ":"Include",exclude:e}}}},_={class:"tabHeader"},q={id:"groupHelp"},Y={id:"groupTable"};function F(s,e,y,U,o,c){const p=i("AdminCreateUpdateDialog"),u=i("GroupChip"),r=i("RelationChips"),R=i("AdminDeleteRowDialog"),T=i("AdminTable");return h(),C("div",null,[t("header",_,[l(p,{table:"Group","max-width":"20em",inputs:o.AdminGroupCreateUpdateInputs},null,8,["inputs"])]),l(T,{"item-title":"name",headers:o.headers,items:s.groups},{"no-data":a(()=>e[0]||(e[0]=[t("td",{class:"adminNoData",colspan:"100%"},"No groups",-1)])),"item.exclude":a(({item:n})=>[l(u,{"group-type":"",item:c.groupType(n),"title-key":"name"},null,8,["item"])]),"item.userSet":a(({item:n})=>[l(r,{pks:n.userSet,objs:s.users,"title-key":"username"},null,8,["pks","objs"])]),"item.librarySet":a(({item:n})=>[l(r,{pks:n.librarySet,objs:s.normalLibraries,"title-key":"path"},null,8,["pks","objs"])]),"item.actions":a(({item:n})=>[l(p,{table:"Group","old-row":n,"max-width":"20em",inputs:o.AdminGroupCreateUpdateInputs,size:"small",density:"compact"},null,8,["old-row","inputs"]),l(R,{table:"Group",pk:n.pk,name:n.name,size:"small",density:"compact"},null,8,["pk","name"])]),_:2},1032,["headers","items"]),t("div",q,[e[9]||(e[9]=t("h3",null,"Group Logic",-1)),e[10]||(e[10]=t("p",null," A library in no groups is accessible to every user and non-users if those are enabled. ",-1)),e[11]||(e[11]=t("p",null,[m(" A library with "),t("em",null,"any"),m(" Include groups is accessible "),t("em",null,"only"),m(" to users who are in those groups. ")],-1)),e[12]||(e[12]=t("p",null,[m(" A library with "),t("em",null,"any"),m(" Exclude groups is not accessible to Guest users but is acccessable to any logged in users that are not in the Exclude groups. ")],-1)),e[13]||(e[13]=t("p",null," If you have libraries added and you do not see them in your browser, check to see if the library and your user are in the same group. ",-1)),t("table",Y,[e[8]||(e[8]=t("thead",null,[t("tr",null,[t("th",null,"Library in Group Type"),t("th",null,"Guest"),t("th",null,"User Out of Group"),t("th",null,"User In Group")])],-1)),t("tbody",null,[e[7]||(e[7]=t("tr",null,[t("td",null,"Not in a Group"),t("td",{class:"see"},"Can See"),t("td",{class:"see"},"Can See"),t("td",{class:"see"},"Can See")],-1)),t("tr",null,[t("td",null,[l(u,{item:{name:"Include",exclude:!1},"title-key":"name","group-type":""})]),e[1]||(e[1]=t("td",{class:"hidden"},"Hidden",-1)),e[2]||(e[2]=t("td",{class:"hidden"},"Hidden",-1)),e[3]||(e[3]=t("td",{class:"see"},"Can See",-1))]),t("tr",null,[t("td",null,[l(u,{item:{name:"Exclude",exclude:!0},"title-key":"name","group-type":""})]),e[4]||(e[4]=t("td",{class:"hidden"},"Hidden",-1)),e[5]||(e[5]=t("td",{class:"see"},"Can See",-1)),e[6]||(e[6]=t("td",{class:"hidden"},"Hidden",-1))])])])])])}const re=A(B,[["render",F],["__scopeId","data-v-476fe661"]]);export{re as default};
@@ -1 +0,0 @@
1
- import{a3 as g,v as w,x as d,y as k,m as G,_ as A,r as i,o as h,A as C,a as l,w as a,aq as v,L as t,b as m}from"./main-BVKrDunc.js";import{A as V,G as S,a as I,b as j,c as D,R as E}from"./relation-chips-piYv1IcD.js";import{V as L}from"./VTextField-X5yAw35c.js";import{V as f,a as N}from"./VRadioGroup-D2-PWEfs.js";import"./VDialog-Db4tJYqR.js";import"./transition-DWVQ2EZ3.js";import"./VSelect-DqXJ23Pc.js";import"./VSelectionControl-CxhDNufT.js";import"./VSlideGroup-DRbthp6q.js";import"./VCheckboxBtn-BzoQl8XC.js";import"./VTable-Cbq-yJos.js";import"./filter-ud5mPZpn.js";import"./confirm-dialog-CME4gKSZ.js";const x=["name","userSet","librarySet","exclude"];Object.freeze(x);const b={name:"",userSet:[],librarySet:[],exclude:!1};Object.freeze(b);const H={name:"AdminGroupCreateUpdateInputs",components:{AdminRelationPicker:V,GroupChip:S},props:{oldRow:{type:[Object,Boolean],default:!1}},emits:["change"],data(){return{rules:{name:[s=>!!s||"Name is required",s=>!!s&&!this.names.has(s.trim())||"Name already used"]},row:{...b,...g(this.oldRow)}}},computed:{...w(d,["normalLibraries"]),...k(d,{groups:s=>s.groups,users:s=>s.users}),names(){return this.nameSet(this.groups,"name",this.oldRow,!0)}},watch:{row:{handler(s){this.$emit("change",s)},deep:!0},oldRow:{handler(s){this.row=g(s)},deep:!0}},methods:{...G(d,["nameSet"])},UPDATE_KEYS:x,EMPTY_ROW:b};function P(s,e,y,U,o,c){const p=i("GroupChip"),u=i("AdminRelationPicker");return h(),C("div",null,[l(L,{modelValue:o.row.name,"onUpdate:modelValue":e[0]||(e[0]=r=>o.row.name=r),label:"Group Name",rules:o.rules.name,clearable:"",autofocus:""},null,8,["modelValue","rules"]),l(N,{inline:"",label:"Type","model-value":o.row.exclude,"hide-details":"auto","onUpdate:modelValue":e[1]||(e[1]=r=>o.row.exclude=r)},{default:a(()=>[l(f,{value:!1},{label:a(()=>[l(p,{item:{name:"Include",exclude:!1},"title-key":"name","group-type":""})]),_:1}),l(f,{value:!0},{label:a(()=>[l(p,{item:{name:"Exclude",exclude:!0},"title-key":"name","group-type":""})]),_:1})]),_:1},8,["model-value"]),l(u,{"model-value":o.row.userSet,label:"Users",objs:s.users,"title-key":"username","onUpdate:modelValue":e[2]||(e[2]=r=>o.row.userSet=r)},null,8,["model-value","objs"]),l(u,{"model-value":o.row.librarySet,label:"Libraries",objs:s.normalLibraries,"title-key":"path","onUpdate:modelValue":e[3]||(e[3]=r=>o.row.librarySet=r)},null,8,["model-value","objs"])])}const O=A(H,[["render",P]]),z=180,B={name:"AdminGroupsTab",components:{AdminTable:I,AdminDeleteRowDialog:j,AdminCreateUpdateDialog:D,RelationChips:E,GroupChip:S},data(){return{lastUpdate:{pk:0,field:void 0},AdminGroupCreateUpdateInputs:v(O),GROUP_HELP_HEIGHT:z,headers:[{title:"Name",key:"name",align:"start"},{title:"Type",key:"exclude",align:"start"},{title:"Users",key:"userSet"},{title:"Libraries",key:"librarySet"},{title:"Actions",key:"actions",sortable:!1}]}},computed:{...w(d,["normalLibraries"]),...k(d,{groups:s=>s.groups,users:s=>s.users})},mounted(){this.loadTables(["User","Library","Group"])},methods:{...G(d,["loadTables"]),groupType(s){const e=s.exclude;return{name:e?"Exclude ":"Include",exclude:e}}}},_={class:"tabHeader"},q={id:"groupHelp"},Y={id:"groupTable"};function F(s,e,y,U,o,c){const p=i("AdminCreateUpdateDialog"),u=i("GroupChip"),r=i("RelationChips"),R=i("AdminDeleteRowDialog"),T=i("AdminTable");return h(),C("div",null,[t("header",_,[l(p,{table:"Group","max-width":"20em",inputs:o.AdminGroupCreateUpdateInputs},null,8,["inputs"])]),l(T,{"item-title":"name",headers:o.headers,items:s.groups},{"no-data":a(()=>e[0]||(e[0]=[t("td",{class:"adminNoData",colspan:"100%"},"No groups",-1)])),"item.exclude":a(({item:n})=>[l(u,{"group-type":"",item:c.groupType(n),"title-key":"name"},null,8,["item"])]),"item.userSet":a(({item:n})=>[l(r,{pks:n.userSet,objs:s.users,"title-key":"username"},null,8,["pks","objs"])]),"item.librarySet":a(({item:n})=>[l(r,{pks:n.librarySet,objs:s.normalLibraries,"title-key":"path"},null,8,["pks","objs"])]),"item.actions":a(({item:n})=>[l(p,{table:"Group","old-row":n,"max-width":"20em",inputs:o.AdminGroupCreateUpdateInputs,size:"small",density:"compact"},null,8,["old-row","inputs"]),l(R,{table:"Group",pk:n.pk,name:n.name,size:"small",density:"compact"},null,8,["pk","name"])]),_:2},1032,["headers","items"]),t("div",q,[e[9]||(e[9]=t("h3",null,"Group Logic",-1)),e[10]||(e[10]=t("p",null," A library in no groups is accessible to every user and non-users if those are enabled. ",-1)),e[11]||(e[11]=t("p",null,[m(" A library with "),t("em",null,"any"),m(" Include groups is accessible "),t("em",null,"only"),m(" to users who are in those groups. ")],-1)),e[12]||(e[12]=t("p",null,[m(" A library with "),t("em",null,"any"),m(" Exclude groups is not accessible to Guest users but is acccessable to any logged in users that are not in the Exclude groups. ")],-1)),e[13]||(e[13]=t("p",null," If you have libraries added and you do not see them in your browser, check to see if the library and your user are in the same group. ",-1)),t("table",Y,[e[8]||(e[8]=t("thead",null,[t("tr",null,[t("th",null,"Library in Group Type"),t("th",null,"Guest"),t("th",null,"User Out of Group"),t("th",null,"User In Group")])],-1)),t("tbody",null,[e[7]||(e[7]=t("tr",null,[t("td",null,"Not in a Group"),t("td",{class:"see"},"Can See"),t("td",{class:"see"},"Can See"),t("td",{class:"see"},"Can See")],-1)),t("tr",null,[t("td",null,[l(u,{item:{name:"Include",exclude:!1},"title-key":"name","group-type":""})]),e[1]||(e[1]=t("td",{class:"hidden"},"Hidden",-1)),e[2]||(e[2]=t("td",{class:"hidden"},"Hidden",-1)),e[3]||(e[3]=t("td",{class:"see"},"Can See",-1))]),t("tr",null,[t("td",null,[l(u,{item:{name:"Exclude",exclude:!0},"title-key":"name","group-type":""})]),e[4]||(e[4]=t("td",{class:"hidden"},"Hidden",-1)),e[5]||(e[5]=t("td",{class:"see"},"Can See",-1)),e[6]||(e[6]=t("td",{class:"hidden"},"Hidden",-1))])])])])])}const re=A(B,[["render",F],["__scopeId","data-v-476fe661"]]);export{re as default};
@@ -1 +0,0 @@
1
- #httpError[data-v-8dabcdb1]{padding-top:max(20px,env(safe-area-inset-top));padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right));padding-bottom:max(20px,env(safe-area-inset-bottom))}#httpCode[data-v-8dabcdb1],#title[data-v-8dabcdb1],#link[data-v-8dabcdb1]{position:absolute;left:50%;transform:translate(-50%) translateY(-25%)}#httpCode[data-v-8dabcdb1],#title[data-v-8dabcdb1]{top:25%}#httpCode[data-v-8dabcdb1]{z-index:100;padding-top:1em}#title[data-v-8dabcdb1]{text-align:center;font-size:6vw;color:rgb(var(--v-theme-textDisabled));stroke:rgb(var(--v-theme-textDisabled));fill:rgb(var(--v-theme-textDisabled));opacity:25%}#link[data-v-8dabcdb1]{bottom:50%}@media (max-width: 959.98px){#title[data-v-8dabcdb1]{font-size:32vw}}
@@ -1 +0,0 @@
1
- #httpError[data-v-8dabcdb1]{padding-top:max(20px,env(safe-area-inset-top));padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right));padding-bottom:max(20px,env(safe-area-inset-bottom))}#httpCode[data-v-8dabcdb1],#title[data-v-8dabcdb1],#link[data-v-8dabcdb1]{position:absolute;left:50%;transform:translate(-50%) translateY(-25%)}#httpCode[data-v-8dabcdb1],#title[data-v-8dabcdb1]{top:25%}#httpCode[data-v-8dabcdb1]{z-index:100;padding-top:1em}#title[data-v-8dabcdb1]{text-align:center;font-size:6vw;color:rgb(var(--v-theme-textDisabled));stroke:rgb(var(--v-theme-textDisabled));fill:rgb(var(--v-theme-textDisabled));opacity:25%}#link[data-v-8dabcdb1]{bottom:50%}@media (max-width: 959.98px){#title[data-v-8dabcdb1]{font-size:32vw}}
@@ -1 +0,0 @@
1
- import{_ as m,v as _,H as h,r as n,c as a,w as s,o as i,L as e,C as d,a as l}from"./main-BVKrDunc.js";import{U as f,V as k}from"./unauthorized-CEGD20tR.js";import"./VDialog-Db4tJYqR.js";import"./transition-DWVQ2EZ3.js";import"./change-password-dialog-DJtOQw7K.js";import"./VTextField-X5yAw35c.js";import"./VSelectionControl-CxhDNufT.js";const c={400:"Bad Request",403:"Forbidden",404:"Page Not Found",500:"Server Error"};Object.freeze(c);const z={name:"HttpError",components:{Unauthorized:f},data(){return{}},computed:{..._(h,["isAuthorized"]),code:function(){return+this.$route.params.code},title:function(){let t=c[this.code];return t||(t="Unknown Error"),t}}},E={id:"httpCode"},C={id:"title"};function U(t,o,b,v,x,r){const p=n("router-link"),u=n("Unauthorized");return t.isAuthorized?(i(),a(k,{key:0,id:"httpError"},{default:s(()=>[e("h1",E,d(r.code),1),e("h1",C,d(r.title),1),l(p,{id:"link",to:{name:"home"}},{default:s(()=>o[0]||(o[0]=[e("h2",null,"Codex Home",-1)])),_:1})]),_:1})):(i(),a(u,{key:1}))}const N=m(z,[["render",U],["__scopeId","data-v-8dabcdb1"]]);export{N as default};
@@ -1 +0,0 @@
1
- import{_ as m,v as _,H as h,r as n,c as a,w as s,o as i,L as e,C as d,a as l}from"./main-BVKrDunc.js";import{U as f,V as k}from"./unauthorized-CEGD20tR.js";import"./VDialog-Db4tJYqR.js";import"./transition-DWVQ2EZ3.js";import"./change-password-dialog-DJtOQw7K.js";import"./VTextField-X5yAw35c.js";import"./VSelectionControl-CxhDNufT.js";const c={400:"Bad Request",403:"Forbidden",404:"Page Not Found",500:"Server Error"};Object.freeze(c);const z={name:"HttpError",components:{Unauthorized:f},data(){return{}},computed:{..._(h,["isAuthorized"]),code:function(){return+this.$route.params.code},title:function(){let t=c[this.code];return t||(t="Unknown Error"),t}}},E={id:"httpCode"},C={id:"title"};function U(t,o,b,v,x,r){const p=n("router-link"),u=n("Unauthorized");return t.isAuthorized?(i(),a(k,{key:0,id:"httpError"},{default:s(()=>[e("h1",E,d(r.code),1),e("h1",C,d(r.title),1),l(p,{id:"link",to:{name:"home"}},{default:s(()=>o[0]||(o[0]=[e("h2",null,"Codex Home",-1)])),_:1})]),_:1})):(i(),a(u,{key:1}))}const N=m(z,[["render",U],["__scopeId","data-v-8dabcdb1"]]);export{N as default};
@@ -1 +0,0 @@
1
- import{p as V,d as P,g as O,k as T,bv as S,f,e as k,i as g,h as A,a as $,r as w,cJ as C,s as b,cc as j}from"./main-BVKrDunc.js";import{R,u as U,U as x,f as I}from"./VDialog-Db4tJYqR.js";const B=V({id:String,text:String,...P(R({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),D=O()({name:"VTooltip",props:B(),emits:{"update:modelValue":e=>!0},setup(e,n){let{slots:a}=n;const t=T(e,"modelValue"),{scopeId:s}=U(),r=S(),l=f(()=>e.id||`v-tooltip-${r}`),c=k(),o=f(()=>e.location.split(" ").length>1?e.location:e.location+" center"),i=f(()=>e.origin==="auto"||e.origin==="overlap"||e.origin.split(" ").length>1||e.location.split(" ").length>1?e.origin:e.origin+" center"),d=f(()=>e.transition?e.transition:t.value?"scale-transition":"fade-transition"),v=f(()=>g({"aria-describedby":l.value},e.activatorProps));return A(()=>{const m=x.filterProps(e);return $(x,g({ref:c,class:["v-tooltip",e.class],style:e.style,id:l.value},m,{modelValue:t.value,"onUpdate:modelValue":u=>t.value=u,transition:d.value,absolute:!0,location:o.value,origin:i.value,persistent:!0,role:"tooltip",activatorProps:v.value,_disableGlobalStack:!0},s),{activator:a.activator,default:function(){var h;for(var u=arguments.length,y=new Array(u),p=0;p<u;p++)y[p]=arguments[p];return((h=a.default)==null?void 0:h.call(a,...y))??e.text}})}),I({},c)}});function F(e,n){const a=typeof e=="string"?w(e):e,t=G(a,n);return{mounted:t,updated:t,unmounted(s){C(null,s)}}}function G(e,n){return function(a,t,s){var v,m,u;const r=typeof n=="function"?n(t):n,l=((v=t.value)==null?void 0:v.text)??t.value??(r==null?void 0:r.text),c=b(t.value)?t.value:{},o=()=>l??a.textContent,i=(s.ctx===t.instance.$?(m=H(s,t.instance.$))==null?void 0:m.provides:(u=s.ctx)==null?void 0:u.provides)??t.instance.$.provides,d=j(e,g(r,c),o);d.appContext=Object.assign(Object.create(null),t.instance.$.appContext,{provides:i}),C(d,a)}}function H(e,n){const a=new Set,t=r=>{var l,c;for(const o of r){if(!o)continue;if(o===e||o.el&&e.el&&o.el===e.el)return!0;a.add(o);let i;if(o.suspense?i=t([o.ssContent]):Array.isArray(o.children)?i=t(o.children):(l=o.component)!=null&&l.vnode&&(i=t([(c=o.component)==null?void 0:c.subTree])),i)return i;a.delete(o)}return!1};if(!t([n.subTree]))return n;const s=Array.from(a).reverse();for(const r of s)if(r.component)return r.component;return n}const N=F(D,e=>{var n;return{activator:"parent",location:(n=e.arg)==null?void 0:n.replace("-"," "),text:typeof e.value=="boolean"?void 0:e.value}});export{N as T};
@@ -1 +0,0 @@
1
- import{p as V,d as P,g as O,k as T,bv as S,f,e as k,i as g,h as A,a as $,r as w,cJ as C,s as b,cc as j}from"./main-BVKrDunc.js";import{R,u as U,U as x,f as I}from"./VDialog-Db4tJYqR.js";const B=V({id:String,text:String,...P(R({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),D=O()({name:"VTooltip",props:B(),emits:{"update:modelValue":e=>!0},setup(e,n){let{slots:a}=n;const t=T(e,"modelValue"),{scopeId:s}=U(),r=S(),l=f(()=>e.id||`v-tooltip-${r}`),c=k(),o=f(()=>e.location.split(" ").length>1?e.location:e.location+" center"),i=f(()=>e.origin==="auto"||e.origin==="overlap"||e.origin.split(" ").length>1||e.location.split(" ").length>1?e.origin:e.origin+" center"),d=f(()=>e.transition?e.transition:t.value?"scale-transition":"fade-transition"),v=f(()=>g({"aria-describedby":l.value},e.activatorProps));return A(()=>{const m=x.filterProps(e);return $(x,g({ref:c,class:["v-tooltip",e.class],style:e.style,id:l.value},m,{modelValue:t.value,"onUpdate:modelValue":u=>t.value=u,transition:d.value,absolute:!0,location:o.value,origin:i.value,persistent:!0,role:"tooltip",activatorProps:v.value,_disableGlobalStack:!0},s),{activator:a.activator,default:function(){var h;for(var u=arguments.length,y=new Array(u),p=0;p<u;p++)y[p]=arguments[p];return((h=a.default)==null?void 0:h.call(a,...y))??e.text}})}),I({},c)}});function F(e,n){const a=typeof e=="string"?w(e):e,t=G(a,n);return{mounted:t,updated:t,unmounted(s){C(null,s)}}}function G(e,n){return function(a,t,s){var v,m,u;const r=typeof n=="function"?n(t):n,l=((v=t.value)==null?void 0:v.text)??t.value??(r==null?void 0:r.text),c=b(t.value)?t.value:{},o=()=>l??a.textContent,i=(s.ctx===t.instance.$?(m=H(s,t.instance.$))==null?void 0:m.provides:(u=s.ctx)==null?void 0:u.provides)??t.instance.$.provides,d=j(e,g(r,c),o);d.appContext=Object.assign(Object.create(null),t.instance.$.appContext,{provides:i}),C(d,a)}}function H(e,n){const a=new Set,t=r=>{var l,c;for(const o of r){if(!o)continue;if(o===e||o.el&&e.el&&o.el===e.el)return!0;a.add(o);let i;if(o.suspense?i=t([o.ssContent]):Array.isArray(o.children)?i=t(o.children):(l=o.component)!=null&&l.vnode&&(i=t([(c=o.component)==null?void 0:c.subTree])),i)return i;a.delete(o)}return!1};if(!t([n.subTree]))return n;const s=Array.from(a).reverse();for(const r of s)if(r.component)return r.component;return n}const N=F(D,e=>{var n;return{activator:"parent",location:(n=e.arg)==null?void 0:n.replace("-"," "),text:typeof e.value=="boolean"?void 0:e.value}});export{N as T};
@@ -1 +0,0 @@
1
- import{y as v,x as h,u as D,m as F,_ as C,o as p,A as g,a as r,w as s,i as L,ab as Q,c as w,a3 as U,v as I,r as u,C as _,E as k,F as $,bA as X,bB as Z,bC as ee,$ as B,aq as j,J as te,T as oe,L as o,n as re,b as i,bD as le,ag as se,B as ie}from"./main-BVKrDunc.js";import{A as ne,a as ae,b as de,c as N,R as me}from"./relation-chips-piYv1IcD.js";import{j as ue}from"./VDialog-Db4tJYqR.js";import{V as pe}from"./VCombobox-CBY8K5CP.js";import{V}from"./VCheckbox-DLMzIII1.js";import{V as ce}from"./VTextField-X5yAw35c.js";import{D as W}from"./datetime-column-D_F30OLW.js";import{C as he}from"./confirm-dialog-CME4gKSZ.js";import{V as z}from"./VCheckboxBtn-BzoQl8XC.js";import{a as A,b as T,c as x,V as P}from"./VExpansionPanels-DN4yGbOt.js";import{V as O}from"./transition-DWVQ2EZ3.js";import{V as fe}from"./VTable-Cbq-yJos.js";import{c as R}from"./VSelectionControl-CxhDNufT.js";import"./VSelect-DqXJ23Pc.js";import"./VSlideGroup-DRbthp6q.js";import"./filter-ud5mPZpn.js";const be={name:"AdminServerFolderPicker",emits:["change","menu"],data(){return{path:"",originalPath:"",showHidden:!1,menuOpen:!1}},computed:{...v(h,{folders:e=>e.folderPicker.folders,rootFolder:e=>e.folderPicker.rootFolder}),...v(D,{formErrors:e=>e.form.errors}),appendOuterIcon(){return this.showHidden?this.mdiFolderHidden:this.mdiFolderOutline},showHiddenTooltipPrefix(){return this.showHidden?"Hide":"Show"}},watch:{menuOpen(e){e&&this.$emit("menu",e)}},created(){this.loadFolders().then(()=>(this.path=this.rootFolder,this.originalPath=this.rootFolder,!0)).catch(console.warn)},methods:{...F(h,["clearFolders","loadFolders"]),...F(D,["clearErrors"]),change(e){let t;e?e.startsWith("/")||e.startsWith("\\")?t=e:t=[this.rootFolder,e].join("/"):t=this.rootFolder;const m=this.menuOpen;this.clearErrors(),this.loadFolders(t,this.showHidden).then(()=>{this.menuOpen=m;let b="";return this.formErrors.length===0&&(this.path=b=this.rootFolder),this.$emit("change",b)}).catch(console.warn)},onBlur(){this.menuOpen=!1,this.change(this.path)},onClear(){this.clearFolders(this.orignalPath).then(()=>this.change(this.orginalPath)).catch(console.error)},onKeyDownEnter(){this.change(this.path)},onItemClick(e){this.change(e)}}},ye={id:"folderPicker"};function ve(e,t,m,b,l,n){return p(),g("div",ye,[r(pe,L({modelValue:l.path,"onUpdate:modelValue":t[0]||(t[0]=d=>l.path=d),menu:l.menuOpen,"onUpdate:menu":t[1]||(t[1]=d=>l.menuOpen=d)},e.$attrs,{"aria-label":"Library folder",clearable:"","error-messages":e.formErrors,"full-width":"","hide-details":"auto",items:e.folders,"menu-props":{maxHeight:"370px"},"validate-on":"blur",variant:"filled",onBlur:n.onBlur,"onClick:clear":n.onClear,onKeydown:Q(n.onKeyDownEnter,["enter"])}),{item:s(({item:d,props:f})=>[r(ue,L(f,{title:d.title,value:d.value,onClick:y=>n.onItemClick(d.value)}),null,16,["title","value","onClick"])]),_:1},16,["modelValue","menu","error-messages","items","onBlur","onClick:clear","onKeydown"]),r(V,{modelValue:l.showHidden,"onUpdate:modelValue":t[2]||(t[2]=d=>l.showHidden=d),density:"compact",class:"showHidden","hide-details":"auto",label:"Show Hidden Folders"},null,8,["modelValue"])])}const ge=C(be,[["render",ve],["__scopeId","data-v-8f7dd090"]]),S="DDD HH:mm:SS",we=/^(?:[0-3]?\d?\d\s)?(?:[01]?\d|2[0-3])(?::[0-5]\d){2}$/,Ce={name:"TimeTextField",data(){return{FORMAT:S,timeRules:[e=>we.test(e)||`Invalid time format ${S}`]}}};function _e(e,t,m,b,l,n){return p(),w(ce,L({ref:"timeField",density:"compact",filled:"",hint:l.FORMAT,round:"",rules:l.timeRules},e.$attrs),null,16,["hint","rules"])}const Fe=C(Ce,[["render",_e]]),G=["events","poll","pollEvery","groups"];Object.freeze(G);const E={path:"",events:!0,poll:!0,pollEvery:"01:00:00",groups:[]};Object.freeze(E);const H=(e,t)=>(e=e.replaceAll("\\","/"),t=t.replaceAll("\\","/"),e.endsWith("/")||(e+="/"),t.endsWith("/")||(t+="/"),t.startsWith(e)),ke={name:"AdminLibraryCreateUpdateInputs",components:{AdminRelationPicker:ne,AdminServerFolderPicker:ge,TimeTextField:Fe},props:{oldRow:{type:[Object,Boolean],default:!1}},emits:["change"],data(){return{rules:{path:[e=>!!e||"Path is required",e=>{if(!e)return!1;for(const t of this.paths){if(H(t,e))return"Path is a child of an existing library";if(H(e,t))return"Path is a parent of an existing library"}return!0}]},row:U(this.oldRow||E)}},computed:{...I(h,["normalLibraries"]),...v(h,{groups:e=>e.groups}),paths(){return this.nameSet(this.normalLibraries,"path",this.oldRow,!1)}},watch:{row:{handler(e){this.$emit("change",e)},deep:!0},oldRow:{handler(e){this.row=U(e)},deep:!0}},methods:{...F(h,["nameSet"])},UPDATE_KEYS:G,EMPTY_ROW:E},Ae={key:1};function Te(e,t,m,b,l,n){const d=u("AdminServerFolderPicker"),f=u("TimeTextField"),y=u("AdminRelationPicker");return p(),g($,null,[m.oldRow?(p(),g("div",Ae,_(m.oldRow.path),1)):(p(),w(d,{key:0,rules:l.rules.path,autofocus:"",label:"Library Folder",onChange:t[0]||(t[0]=c=>l.row.path=c)},null,8,["rules"])),r(V,{modelValue:l.row.events,"onUpdate:modelValue":t[1]||(t[1]=c=>l.row.events=c),"hide-details":"auto",hint:"Update Codex instantly when the filesystem changes",label:"Watch Filesystem Events","persistent-hint":!0},null,8,["modelValue"]),r(V,{modelValue:l.row.poll,"onUpdate:modelValue":t[2]||(t[2]=c=>l.row.poll=c),label:"Poll Filesystem Periodically","hide-details":"auto",hint:"Periodically poll the library for changes","persistent-hint":!0},null,8,["modelValue"]),r(f,{modelValue:l.row.pollEvery,"onUpdate:modelValue":t[3]||(t[3]=c=>l.row.pollEvery=c),label:"Poll Every",disabled:!l.row.poll},null,8,["modelValue","disabled"]),l.row.coversOnly?k("",!0):(p(),w(y,{key:2,modelValue:l.row.groups,"onUpdate:modelValue":t[4]||(t[4]=c=>l.row.groups=c),label:"Groups",objs:e.groups,"group-type":"","title-key":"name"},null,8,["modelValue","objs"]))],64)}const K=C(ke,[["render",Te]]),xe={name:"AdminLibrariesTab",components:{AdminTable:ae,AdminDeleteRowDialog:de,AdminCreateUpdateDialog:N,RelationChips:me,ConfirmDialog:he,DateTimeColumn:W},props:{coversDir:{type:Boolean,default:!1}},data(){return{lastUpdate:{pk:0,field:void 0},mdiCircleOffOutline:X,mdiDatabaseClockOutline:Z,mdiDatabaseSyncOutline:ee,mdiOpenInNew:B,AdminLibraryCreateUpdateInputs:j(K)}},computed:{...I(h,["normalLibraries","customCoverLibraries"]),...v(h,{groups:e=>e.groups}),...v(D,{formErrors:e=>{var t;return(t=e.form)==null?void 0:t.errors}}),...v(te,{twentyFourHourTime:e=>e.settings.twentyFourHourTime}),headers(){const e=[{title:"Path",key:"path",align:"start"},{title:"Watch File Events",key:"events"},{title:"Poll Files Periodically",key:"poll"},{title:"Poll Every",key:"pollEvery"},{title:"Last Poll",key:"lastPoll"}];return this.coversDir||e.push({title:"Groups",key:"groups"}),e.push({title:"Actions",key:"actions",sortable:!1}),e},items(){return self.coversDir?this.customCoverLibraries:this.normalLibraries},updateLabel(){return this.coversDir?"Cover Dir":""},itemName(){return this.coversDir?"custom covers":"comics"},iconSize(){const e=this.$vuetify.display;return e.xlAndUp?"x-large":e.lgAndUp?"large":e.mdAndUp?"default":"small"}},mounted(){this.loadTables(["Group","Library","FailedImport"])},methods:{...F(h,["updateRow","clearErrors","librarianTask","loadTables"]),formatDateTime(e){return e?oe(e,this.twentyFourHourTime):""},changeCol(e,t,m){this.lastUpdate.pk=e,this.lastUpdate.field=t;const b={[t]:m};this.updateRow("Library",e,b)},getFormErrors(e,t){if(e===this.lastUpdate.pk&&t===this.lastUpdate.field)return this.formErrors},libraryLabel(e,t=!0){let m="";return e.coversOnly?(t&&(m+="Custom Group "),m+="Cover Dir"):m+="Library",m},poll(e){const t=this.libraryLabel(e);this.librarianTask("poll",`Poll ${t} ${e.pk}`,e.pk)},forcePoll(e){const t=this.libraryLabel(e);this.librarianTask("poll_force",`Force Poll ${t} ${e.pk}`,e.pk)},pollConfirmText(e){return`Poll ${this.libraryLabel(e,!1)}`}}},Pe={class:"actionButtonCell"};function Ie(e,t,m,b,l,n){const d=u("DateTimeColumn"),f=u("RelationChips"),y=u("ConfirmDialog"),c=u("AdminCreateUpdateDialog"),Y=u("AdminDeleteRowDialog"),q=u("AdminTable");return p(),w(q,{headers:n.headers},{"no-data":s(()=>t[0]||(t[0]=[o("td",{class:"adminNoData",colspan:"100%"}," Add a Library to start using Codex ",-1)])),"item.events":s(({item:a})=>[r(z,{"model-value":a.events,disabled:""},null,8,["model-value"])]),"item.poll":s(({item:a})=>[r(z,{"model-value":a.poll,disabled:""},null,8,["model-value"])]),"item.pollEvery":s(({item:a})=>[o("span",{class:re({disabled:!a.poll})},_(a.pollEvery),3)]),"item.lastPoll":s(({item:a})=>[r(d,{dttm:a.lastPoll},null,8,["dttm"])]),"item.groups":s(({item:a})=>[r(f,{pks:a.groups,objs:e.groups,"group-type":"","title-key":"name"},null,8,["pks","objs"])]),"item.actions":s(({item:a})=>[o("span",Pe,[r(y,{icon:l.mdiDatabaseClockOutline,"title-text":`Poll for updated ${n.itemName}s`,text:a.path,"confirm-text":n.pollConfirmText(a),size:n.iconSize,density:"compact",onConfirm:J=>n.poll(a)},null,8,["icon","title-text","text","confirm-text","size","onConfirm"]),r(y,{icon:l.mdiDatabaseSyncOutline,"title-text":`Force update every ${n.itemName}`,text:a.path,"confirm-text":"Force Update",size:n.iconSize,density:"compact",onConfirm:J=>n.forcePoll(a)},null,8,["icon","title-text","text","size","onConfirm"]),r(c,{table:"Library","old-row":a,inputs:l.AdminLibraryCreateUpdateInputs,label:n.updateLabel,"max-width":"22em",size:n.iconSize,density:"compact"},null,8,["old-row","inputs","label","size"]),a.coversOnly?k("",!0):(p(),w(Y,{key:0,table:"Library",pk:a.pk,name:a.path,size:n.iconSize,density:"compact"},null,8,["pk","name","size"]))])]),_:2},1032,["headers"])}const M=C(xe,[["render",Ie],["__scopeId","data-v-4e9d49cb"]]),De={name:"AdminCustomCoversPanel",components:{AdminLibraryTable:M},computed:{...I(h,["customCoverLibraries"])}};function Le(e,t,m,b,l,n){const d=u("AdminLibraryTable");return p(),w(x,null,{default:s(()=>[r(P,null,{default:s(()=>[r(A,null,{default:s(()=>t[0]||(t[0]=[o("h4",{id:"coverDirHeader"},"Custom Covers",-1)])),_:1}),r(T,null,{default:s(()=>[r(d,{items:e.customCoverLibraries,"disable-sort":"","covers-dir":!0},null,8,["items"]),r(x,null,{default:s(()=>[r(P,{id:"customCoversHelp"},{default:s(()=>[r(A,null,{default:s(()=>t[1]||(t[1]=[o("h4",null,"Custom Covers Help",-1)])),_:1}),r(T,null,{default:s(()=>t[2]||(t[2]=[o("p",null,"Custom covers may be added to the browser in two locations:",-1),o("h4",null,"Folders",-1),o("p",null,[i(" A library folder with a file named "),o("code",null,".codex-cover.jpg"),i(" will show a custom cover for that folder in Folder view. The addition and removal of these covers by watching filesystem events and polling is handled by the library that folder belongs to. ")],-1),o("h4",null,"Custom Covers Dir",-1),o("p",null,[i(" The Codex config directory has a special folder named "),o("code",null,"custom-covers"),i(" under which are subdirectories for each of the browser groups that may adopt custom covers. Images in these subdirectories that match the name of the browser group will be used as custom covers. For instance: "),o("code",null,".../custom-covers/publishers/American Comics Group.webp"),i(' would be used as the cover for the publisher "American Comics Group". '),o("code",null,".../custom-covers/series/arrow.png"),i(' would be used as the cover for every series named "Arrow", for '),o("em",null,"every"),i(" publisher. Similar to a comic library, the "),o("code",null,"custom-covers"),i(" directory may be watched and polled for changes. By default it is neither watched nor polled and must be enabled by the admin. ")],-1),o("h4",null,"Image Formats & Size",-1),o("p",null,[i(" Custom covers are detected only for files with the extensions: "),o("code",null,".bmp, .gif, .jpeg, .jpg, .png, .webp"),i(". ")],-1),o("p",null," Browser covers are transformed from their sources to 165px x 254px thumbnails. Custom covers will transform most aesthetically the closer to that ratio they are. ",-1),o("h4",null,"Priority",-1),o("p",null," Custom covers supersede covers set by the user's individual browser settings. ",-1)])),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}const Ve=C(De,[["render",Le],["__scopeId","data-v-ab86757f"]]),Ee={name:"AdminFailedImportsPanel",components:{DateTimeColumn:W},data(){return{mdiBookAlert:le,mdiOpenInNew:B}},computed:{...v(h,{failedImports:e=>e.failedImports,showFailedImports:e=>e.failedImports&&e.failedImports.length>0}),...se(h,["unseenFailedImports"])}},Ue={key:0},ze={class:"dateCol"},Oe={href:"https://github.com/ajslater/codex/issues/",target:"_blank"};function Re(e,t,m,b,l,n){const d=u("DateTimeColumn");return e.showFailedImports?(p(),g("div",Ue,[r(x,null,{default:s(()=>[r(P,{id:"failedImportsPanel",onClick:t[0]||(t[0]=f=>e.unseenFailedImports=!1)},{default:s(()=>[r(A,null,{default:s(()=>[o("h4",null,"Failed Imports: "+_(e.failedImports.length),1),e.unseenFailedImports?(p(),w(O,{key:0,id:"failedImportsIcon",title:"New Failed Imports"},{default:s(()=>[i(_(l.mdiBookAlert),1)]),_:1})):k("",!0)]),_:1}),r(T,null,{default:s(()=>[r(fe,{class:"highlight-table"},{default:s(()=>[t[1]||(t[1]=o("thead",null,[o("tr",null,[o("th",null,"Path"),o("th",null,"Created")])],-1)),o("tbody",null,[(p(!0),g($,null,ie(e.failedImports,f=>(p(),g("tr",{key:`fi:${f.path}`},[o("td",null,_(f.path),1),o("td",ze,[r(d,{dttm:f.createdAt},null,8,["dttm"])])]))),128))])]),_:1}),r(x,null,{default:s(()=>[r(P,{id:"failedImportsHelp"},{default:s(()=>[r(A,null,{default:s(()=>t[2]||(t[2]=[o("h4",null,"Failed Imports Help",-1)])),_:1}),r(T,null,{default:s(()=>[t[8]||(t[8]=o("p",null," These are Comic archives that have failed to import. This list is updated every time the library updates. You should probably review these files and fix or remove them. ",-1)),t[9]||(t[9]=o("h4",null,"Fixing comics",-1)),t[10]||(t[10]=o("p",null,[i(" Try using the zip fixer to fix comics: "),o("code",{class:"cli"},[i(" cp problem-comic.cbz /somewhere/safe/problem-comic.cbz.backup"),o("br"),i(" zip -F problem-comic.cbz --out fixed.zip"),o("br"),i(" mv fixed.zip problem-comic.cbz ")]),i(" You may also try "),o("code",null,"zip -FF"),i(" to fix comics which uses a different (not necissarily better) algorithm. If you fix some imports, and Codex does not immediately detect the change, poll the library which contains the fixed comics. ")],-1)),t[11]||(t[11]=o("h4",null,"Reporting Issues",-1)),o("p",null,[t[4]||(t[4]=i(" If the comic looks good to you, but still shows up as a failed import, it might be Codex's fault for not importing it correctly. Please file an ")),o("a",Oe,[t[3]||(t[3]=i("Issue Report")),r(O,{size:"small"},{default:s(()=>[i(_(l.mdiOpenInNew),1)]),_:1})]),t[5]||(t[5]=i(" and include the stack trace from the logs at ")),t[6]||(t[6]=o("code",null,"config/logs/codex.log",-1)),t[7]||(t[7]=i(" if you can. "))])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})])):k("",!0)}const Se=C(Ee,[["render",Re],["__scopeId","data-v-827c9a0b"]]),He={name:"AdminLibrariesTab",components:{AdminFailedImportsPanel:Se,AdminLibraryTable:M,AdminCreateUpdateDialog:N,AdminCustomCoversPanel:Ve},data(){return{AdminLibraryCreateUpdateInputs:j(K)}},computed:{...I(h,["normalLibraries"])},mounted(){this.loadTables(["Group","Library","FailedImport"])},methods:{...F(h,["loadTables"])}},$e={class:"tabHeader"};function Be(e,t,m,b,l,n){const d=u("AdminCreateUpdateDialog"),f=u("AdminLibraryTable"),y=u("AdminFailedImportsPanel"),c=u("AdminCustomCoversPanel");return p(),g("div",null,[o("header",$e,[r(d,{table:"Library",inputs:l.AdminLibraryCreateUpdateInputs},null,8,["inputs"])]),r(f,{items:e.normalLibraries,"sort-by":[{key:"path",order:"asc"}]},null,8,["items"]),r(R,null,{default:s(()=>[r(y,{id:"failedImports"})]),_:1}),r(R,null,{default:s(()=>[r(c,{id:"customCovers"})]),_:1})])}const lt=C(He,[["render",Be],["__scopeId","data-v-f2b8d856"]]);export{lt as default};
@@ -1 +0,0 @@
1
- import{y as v,x as h,u as D,m as F,_ as C,o as p,A as g,a as r,w as s,i as L,ab as Q,c as w,a3 as U,v as I,r as u,C as _,E as k,F as $,bA as X,bB as Z,bC as ee,$ as B,aq as j,J as te,T as oe,L as o,n as re,b as i,bD as le,ag as se,B as ie}from"./main-BVKrDunc.js";import{A as ne,a as ae,b as de,c as N,R as me}from"./relation-chips-piYv1IcD.js";import{j as ue}from"./VDialog-Db4tJYqR.js";import{V as pe}from"./VCombobox-CBY8K5CP.js";import{V}from"./VCheckbox-DLMzIII1.js";import{V as ce}from"./VTextField-X5yAw35c.js";import{D as W}from"./datetime-column-D_F30OLW.js";import{C as he}from"./confirm-dialog-CME4gKSZ.js";import{V as z}from"./VCheckboxBtn-BzoQl8XC.js";import{a as A,b as T,c as x,V as P}from"./VExpansionPanels-DN4yGbOt.js";import{V as O}from"./transition-DWVQ2EZ3.js";import{V as fe}from"./VTable-Cbq-yJos.js";import{c as R}from"./VSelectionControl-CxhDNufT.js";import"./VSelect-DqXJ23Pc.js";import"./VSlideGroup-DRbthp6q.js";import"./filter-ud5mPZpn.js";const be={name:"AdminServerFolderPicker",emits:["change","menu"],data(){return{path:"",originalPath:"",showHidden:!1,menuOpen:!1}},computed:{...v(h,{folders:e=>e.folderPicker.folders,rootFolder:e=>e.folderPicker.rootFolder}),...v(D,{formErrors:e=>e.form.errors}),appendOuterIcon(){return this.showHidden?this.mdiFolderHidden:this.mdiFolderOutline},showHiddenTooltipPrefix(){return this.showHidden?"Hide":"Show"}},watch:{menuOpen(e){e&&this.$emit("menu",e)}},created(){this.loadFolders().then(()=>(this.path=this.rootFolder,this.originalPath=this.rootFolder,!0)).catch(console.warn)},methods:{...F(h,["clearFolders","loadFolders"]),...F(D,["clearErrors"]),change(e){let t;e?e.startsWith("/")||e.startsWith("\\")?t=e:t=[this.rootFolder,e].join("/"):t=this.rootFolder;const m=this.menuOpen;this.clearErrors(),this.loadFolders(t,this.showHidden).then(()=>{this.menuOpen=m;let b="";return this.formErrors.length===0&&(this.path=b=this.rootFolder),this.$emit("change",b)}).catch(console.warn)},onBlur(){this.menuOpen=!1,this.change(this.path)},onClear(){this.clearFolders(this.orignalPath).then(()=>this.change(this.orginalPath)).catch(console.error)},onKeyDownEnter(){this.change(this.path)},onItemClick(e){this.change(e)}}},ye={id:"folderPicker"};function ve(e,t,m,b,l,n){return p(),g("div",ye,[r(pe,L({modelValue:l.path,"onUpdate:modelValue":t[0]||(t[0]=d=>l.path=d),menu:l.menuOpen,"onUpdate:menu":t[1]||(t[1]=d=>l.menuOpen=d)},e.$attrs,{"aria-label":"Library folder",clearable:"","error-messages":e.formErrors,"full-width":"","hide-details":"auto",items:e.folders,"menu-props":{maxHeight:"370px"},"validate-on":"blur",variant:"filled",onBlur:n.onBlur,"onClick:clear":n.onClear,onKeydown:Q(n.onKeyDownEnter,["enter"])}),{item:s(({item:d,props:f})=>[r(ue,L(f,{title:d.title,value:d.value,onClick:y=>n.onItemClick(d.value)}),null,16,["title","value","onClick"])]),_:1},16,["modelValue","menu","error-messages","items","onBlur","onClick:clear","onKeydown"]),r(V,{modelValue:l.showHidden,"onUpdate:modelValue":t[2]||(t[2]=d=>l.showHidden=d),density:"compact",class:"showHidden","hide-details":"auto",label:"Show Hidden Folders"},null,8,["modelValue"])])}const ge=C(be,[["render",ve],["__scopeId","data-v-8f7dd090"]]),S="DDD HH:mm:SS",we=/^(?:[0-3]?\d?\d\s)?(?:[01]?\d|2[0-3])(?::[0-5]\d){2}$/,Ce={name:"TimeTextField",data(){return{FORMAT:S,timeRules:[e=>we.test(e)||`Invalid time format ${S}`]}}};function _e(e,t,m,b,l,n){return p(),w(ce,L({ref:"timeField",density:"compact",filled:"",hint:l.FORMAT,round:"",rules:l.timeRules},e.$attrs),null,16,["hint","rules"])}const Fe=C(Ce,[["render",_e]]),G=["events","poll","pollEvery","groups"];Object.freeze(G);const E={path:"",events:!0,poll:!0,pollEvery:"01:00:00",groups:[]};Object.freeze(E);const H=(e,t)=>(e=e.replaceAll("\\","/"),t=t.replaceAll("\\","/"),e.endsWith("/")||(e+="/"),t.endsWith("/")||(t+="/"),t.startsWith(e)),ke={name:"AdminLibraryCreateUpdateInputs",components:{AdminRelationPicker:ne,AdminServerFolderPicker:ge,TimeTextField:Fe},props:{oldRow:{type:[Object,Boolean],default:!1}},emits:["change"],data(){return{rules:{path:[e=>!!e||"Path is required",e=>{if(!e)return!1;for(const t of this.paths){if(H(t,e))return"Path is a child of an existing library";if(H(e,t))return"Path is a parent of an existing library"}return!0}]},row:U(this.oldRow||E)}},computed:{...I(h,["normalLibraries"]),...v(h,{groups:e=>e.groups}),paths(){return this.nameSet(this.normalLibraries,"path",this.oldRow,!1)}},watch:{row:{handler(e){this.$emit("change",e)},deep:!0},oldRow:{handler(e){this.row=U(e)},deep:!0}},methods:{...F(h,["nameSet"])},UPDATE_KEYS:G,EMPTY_ROW:E},Ae={key:1};function Te(e,t,m,b,l,n){const d=u("AdminServerFolderPicker"),f=u("TimeTextField"),y=u("AdminRelationPicker");return p(),g($,null,[m.oldRow?(p(),g("div",Ae,_(m.oldRow.path),1)):(p(),w(d,{key:0,rules:l.rules.path,autofocus:"",label:"Library Folder",onChange:t[0]||(t[0]=c=>l.row.path=c)},null,8,["rules"])),r(V,{modelValue:l.row.events,"onUpdate:modelValue":t[1]||(t[1]=c=>l.row.events=c),"hide-details":"auto",hint:"Update Codex instantly when the filesystem changes",label:"Watch Filesystem Events","persistent-hint":!0},null,8,["modelValue"]),r(V,{modelValue:l.row.poll,"onUpdate:modelValue":t[2]||(t[2]=c=>l.row.poll=c),label:"Poll Filesystem Periodically","hide-details":"auto",hint:"Periodically poll the library for changes","persistent-hint":!0},null,8,["modelValue"]),r(f,{modelValue:l.row.pollEvery,"onUpdate:modelValue":t[3]||(t[3]=c=>l.row.pollEvery=c),label:"Poll Every",disabled:!l.row.poll},null,8,["modelValue","disabled"]),l.row.coversOnly?k("",!0):(p(),w(y,{key:2,modelValue:l.row.groups,"onUpdate:modelValue":t[4]||(t[4]=c=>l.row.groups=c),label:"Groups",objs:e.groups,"group-type":"","title-key":"name"},null,8,["modelValue","objs"]))],64)}const K=C(ke,[["render",Te]]),xe={name:"AdminLibrariesTab",components:{AdminTable:ae,AdminDeleteRowDialog:de,AdminCreateUpdateDialog:N,RelationChips:me,ConfirmDialog:he,DateTimeColumn:W},props:{coversDir:{type:Boolean,default:!1}},data(){return{lastUpdate:{pk:0,field:void 0},mdiCircleOffOutline:X,mdiDatabaseClockOutline:Z,mdiDatabaseSyncOutline:ee,mdiOpenInNew:B,AdminLibraryCreateUpdateInputs:j(K)}},computed:{...I(h,["normalLibraries","customCoverLibraries"]),...v(h,{groups:e=>e.groups}),...v(D,{formErrors:e=>{var t;return(t=e.form)==null?void 0:t.errors}}),...v(te,{twentyFourHourTime:e=>e.settings.twentyFourHourTime}),headers(){const e=[{title:"Path",key:"path",align:"start"},{title:"Watch File Events",key:"events"},{title:"Poll Files Periodically",key:"poll"},{title:"Poll Every",key:"pollEvery"},{title:"Last Poll",key:"lastPoll"}];return this.coversDir||e.push({title:"Groups",key:"groups"}),e.push({title:"Actions",key:"actions",sortable:!1}),e},items(){return self.coversDir?this.customCoverLibraries:this.normalLibraries},updateLabel(){return this.coversDir?"Cover Dir":""},itemName(){return this.coversDir?"custom covers":"comics"},iconSize(){const e=this.$vuetify.display;return e.xlAndUp?"x-large":e.lgAndUp?"large":e.mdAndUp?"default":"small"}},mounted(){this.loadTables(["Group","Library","FailedImport"])},methods:{...F(h,["updateRow","clearErrors","librarianTask","loadTables"]),formatDateTime(e){return e?oe(e,this.twentyFourHourTime):""},changeCol(e,t,m){this.lastUpdate.pk=e,this.lastUpdate.field=t;const b={[t]:m};this.updateRow("Library",e,b)},getFormErrors(e,t){if(e===this.lastUpdate.pk&&t===this.lastUpdate.field)return this.formErrors},libraryLabel(e,t=!0){let m="";return e.coversOnly?(t&&(m+="Custom Group "),m+="Cover Dir"):m+="Library",m},poll(e){const t=this.libraryLabel(e);this.librarianTask("poll",`Poll ${t} ${e.pk}`,e.pk)},forcePoll(e){const t=this.libraryLabel(e);this.librarianTask("poll_force",`Force Poll ${t} ${e.pk}`,e.pk)},pollConfirmText(e){return`Poll ${this.libraryLabel(e,!1)}`}}},Pe={class:"actionButtonCell"};function Ie(e,t,m,b,l,n){const d=u("DateTimeColumn"),f=u("RelationChips"),y=u("ConfirmDialog"),c=u("AdminCreateUpdateDialog"),Y=u("AdminDeleteRowDialog"),q=u("AdminTable");return p(),w(q,{headers:n.headers},{"no-data":s(()=>t[0]||(t[0]=[o("td",{class:"adminNoData",colspan:"100%"}," Add a Library to start using Codex ",-1)])),"item.events":s(({item:a})=>[r(z,{"model-value":a.events,disabled:""},null,8,["model-value"])]),"item.poll":s(({item:a})=>[r(z,{"model-value":a.poll,disabled:""},null,8,["model-value"])]),"item.pollEvery":s(({item:a})=>[o("span",{class:re({disabled:!a.poll})},_(a.pollEvery),3)]),"item.lastPoll":s(({item:a})=>[r(d,{dttm:a.lastPoll},null,8,["dttm"])]),"item.groups":s(({item:a})=>[r(f,{pks:a.groups,objs:e.groups,"group-type":"","title-key":"name"},null,8,["pks","objs"])]),"item.actions":s(({item:a})=>[o("span",Pe,[r(y,{icon:l.mdiDatabaseClockOutline,"title-text":`Poll for updated ${n.itemName}s`,text:a.path,"confirm-text":n.pollConfirmText(a),size:n.iconSize,density:"compact",onConfirm:J=>n.poll(a)},null,8,["icon","title-text","text","confirm-text","size","onConfirm"]),r(y,{icon:l.mdiDatabaseSyncOutline,"title-text":`Force update every ${n.itemName}`,text:a.path,"confirm-text":"Force Update",size:n.iconSize,density:"compact",onConfirm:J=>n.forcePoll(a)},null,8,["icon","title-text","text","size","onConfirm"]),r(c,{table:"Library","old-row":a,inputs:l.AdminLibraryCreateUpdateInputs,label:n.updateLabel,"max-width":"22em",size:n.iconSize,density:"compact"},null,8,["old-row","inputs","label","size"]),a.coversOnly?k("",!0):(p(),w(Y,{key:0,table:"Library",pk:a.pk,name:a.path,size:n.iconSize,density:"compact"},null,8,["pk","name","size"]))])]),_:2},1032,["headers"])}const M=C(xe,[["render",Ie],["__scopeId","data-v-4e9d49cb"]]),De={name:"AdminCustomCoversPanel",components:{AdminLibraryTable:M},computed:{...I(h,["customCoverLibraries"])}};function Le(e,t,m,b,l,n){const d=u("AdminLibraryTable");return p(),w(x,null,{default:s(()=>[r(P,null,{default:s(()=>[r(A,null,{default:s(()=>t[0]||(t[0]=[o("h4",{id:"coverDirHeader"},"Custom Covers",-1)])),_:1}),r(T,null,{default:s(()=>[r(d,{items:e.customCoverLibraries,"disable-sort":"","covers-dir":!0},null,8,["items"]),r(x,null,{default:s(()=>[r(P,{id:"customCoversHelp"},{default:s(()=>[r(A,null,{default:s(()=>t[1]||(t[1]=[o("h4",null,"Custom Covers Help",-1)])),_:1}),r(T,null,{default:s(()=>t[2]||(t[2]=[o("p",null,"Custom covers may be added to the browser in two locations:",-1),o("h4",null,"Folders",-1),o("p",null,[i(" A library folder with a file named "),o("code",null,".codex-cover.jpg"),i(" will show a custom cover for that folder in Folder view. The addition and removal of these covers by watching filesystem events and polling is handled by the library that folder belongs to. ")],-1),o("h4",null,"Custom Covers Dir",-1),o("p",null,[i(" The Codex config directory has a special folder named "),o("code",null,"custom-covers"),i(" under which are subdirectories for each of the browser groups that may adopt custom covers. Images in these subdirectories that match the name of the browser group will be used as custom covers. For instance: "),o("code",null,".../custom-covers/publishers/American Comics Group.webp"),i(' would be used as the cover for the publisher "American Comics Group". '),o("code",null,".../custom-covers/series/arrow.png"),i(' would be used as the cover for every series named "Arrow", for '),o("em",null,"every"),i(" publisher. Similar to a comic library, the "),o("code",null,"custom-covers"),i(" directory may be watched and polled for changes. By default it is neither watched nor polled and must be enabled by the admin. ")],-1),o("h4",null,"Image Formats & Size",-1),o("p",null,[i(" Custom covers are detected only for files with the extensions: "),o("code",null,".bmp, .gif, .jpeg, .jpg, .png, .webp"),i(". ")],-1),o("p",null," Browser covers are transformed from their sources to 165px x 254px thumbnails. Custom covers will transform most aesthetically the closer to that ratio they are. ",-1),o("h4",null,"Priority",-1),o("p",null," Custom covers supersede covers set by the user's individual browser settings. ",-1)])),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}const Ve=C(De,[["render",Le],["__scopeId","data-v-ab86757f"]]),Ee={name:"AdminFailedImportsPanel",components:{DateTimeColumn:W},data(){return{mdiBookAlert:le,mdiOpenInNew:B}},computed:{...v(h,{failedImports:e=>e.failedImports,showFailedImports:e=>e.failedImports&&e.failedImports.length>0}),...se(h,["unseenFailedImports"])}},Ue={key:0},ze={class:"dateCol"},Oe={href:"https://github.com/ajslater/codex/issues/",target:"_blank"};function Re(e,t,m,b,l,n){const d=u("DateTimeColumn");return e.showFailedImports?(p(),g("div",Ue,[r(x,null,{default:s(()=>[r(P,{id:"failedImportsPanel",onClick:t[0]||(t[0]=f=>e.unseenFailedImports=!1)},{default:s(()=>[r(A,null,{default:s(()=>[o("h4",null,"Failed Imports: "+_(e.failedImports.length),1),e.unseenFailedImports?(p(),w(O,{key:0,id:"failedImportsIcon",title:"New Failed Imports"},{default:s(()=>[i(_(l.mdiBookAlert),1)]),_:1})):k("",!0)]),_:1}),r(T,null,{default:s(()=>[r(fe,{class:"highlight-table"},{default:s(()=>[t[1]||(t[1]=o("thead",null,[o("tr",null,[o("th",null,"Path"),o("th",null,"Created")])],-1)),o("tbody",null,[(p(!0),g($,null,ie(e.failedImports,f=>(p(),g("tr",{key:`fi:${f.path}`},[o("td",null,_(f.path),1),o("td",ze,[r(d,{dttm:f.createdAt},null,8,["dttm"])])]))),128))])]),_:1}),r(x,null,{default:s(()=>[r(P,{id:"failedImportsHelp"},{default:s(()=>[r(A,null,{default:s(()=>t[2]||(t[2]=[o("h4",null,"Failed Imports Help",-1)])),_:1}),r(T,null,{default:s(()=>[t[8]||(t[8]=o("p",null," These are Comic archives that have failed to import. This list is updated every time the library updates. You should probably review these files and fix or remove them. ",-1)),t[9]||(t[9]=o("h4",null,"Fixing comics",-1)),t[10]||(t[10]=o("p",null,[i(" Try using the zip fixer to fix comics: "),o("code",{class:"cli"},[i(" cp problem-comic.cbz /somewhere/safe/problem-comic.cbz.backup"),o("br"),i(" zip -F problem-comic.cbz --out fixed.zip"),o("br"),i(" mv fixed.zip problem-comic.cbz ")]),i(" You may also try "),o("code",null,"zip -FF"),i(" to fix comics which uses a different (not necissarily better) algorithm. If you fix some imports, and Codex does not immediately detect the change, poll the library which contains the fixed comics. ")],-1)),t[11]||(t[11]=o("h4",null,"Reporting Issues",-1)),o("p",null,[t[4]||(t[4]=i(" If the comic looks good to you, but still shows up as a failed import, it might be Codex's fault for not importing it correctly. Please file an ")),o("a",Oe,[t[3]||(t[3]=i("Issue Report")),r(O,{size:"small"},{default:s(()=>[i(_(l.mdiOpenInNew),1)]),_:1})]),t[5]||(t[5]=i(" and include the stack trace from the logs at ")),t[6]||(t[6]=o("code",null,"config/logs/codex.log",-1)),t[7]||(t[7]=i(" if you can. "))])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})])):k("",!0)}const Se=C(Ee,[["render",Re],["__scopeId","data-v-827c9a0b"]]),He={name:"AdminLibrariesTab",components:{AdminFailedImportsPanel:Se,AdminLibraryTable:M,AdminCreateUpdateDialog:N,AdminCustomCoversPanel:Ve},data(){return{AdminLibraryCreateUpdateInputs:j(K)}},computed:{...I(h,["normalLibraries"])},mounted(){this.loadTables(["Group","Library","FailedImport"])},methods:{...F(h,["loadTables"])}},$e={class:"tabHeader"};function Be(e,t,m,b,l,n){const d=u("AdminCreateUpdateDialog"),f=u("AdminLibraryTable"),y=u("AdminFailedImportsPanel"),c=u("AdminCustomCoversPanel");return p(),g("div",null,[o("header",$e,[r(d,{table:"Library",inputs:l.AdminLibraryCreateUpdateInputs},null,8,["inputs"])]),r(f,{items:e.normalLibraries,"sort-by":[{key:"path",order:"asc"}]},null,8,["items"]),r(R,null,{default:s(()=>[r(y,{id:"failedImports"})]),_:1}),r(R,null,{default:s(()=>[r(c,{id:"customCovers"})]),_:1})])}const lt=C(He,[["render",Be],["__scopeId","data-v-f2b8d856"]]);export{lt as default};