Refactoring collections handler

This commit is contained in:
th3r00t
2023-03-20 12:12:55 -04:00
parent 11c0c89624
commit 3e89273cbc
10 changed files with 289 additions and 49 deletions

21
wiki/Automated Collections.wiki vendored Normal file
View File

@@ -0,0 +1,21 @@
= Automated Collection Management System =
The collection management system needs rewritten from the ground up.
The model should look something like this.
* [ ] TODO :: Refactor collections algorithm. #8f46262c
{{{python
Collection {
id: int
name: String
books: list(Book)
}
}}}
it is likely the book object will need rewritten as well.
{{{python
Book {
id: int
title: String
# other book metadata
collection: list(Collection.id)
}
}}}

View File

@@ -10,14 +10,14 @@ pyShelf features a recursive scraping algorithm that itterates over all
sub-folders in your collection.
== Scrapers ==
* [X] epub #75f00edf
* [X] mobi #2fe4b161
* [X] pdf #ffa7e7f0
* [ ] cbz #64b5da95
* [X] epub #2899a8e9
* [X] mobi #ec035720
* [X] pdf #05875e64
* [ ] cbz #4a513e39
== Collections ==
* [ ] Manual Collections #2e7e6fcf
* [X] Automated Collections #81db675a
* [ ] Manual Collections #b07156f4
* [ ] [[Automated Collections]] #f258c1f8
== State ==

41
wiki/Client.wiki vendored Normal file
View File

@@ -0,0 +1,41 @@
[[index|Home]] [[TOC]] [[https://github.com/th3r00t/pyShelf.git|github]]
= Client =
:frontend:ui:
== Dependency Management ==
:dependency:
* [X] npm #c5f8d347
* [X] sass #8f43ab4c
* [ ] pip #14ee256e
== [[https://create.t3.gg|T3.gg]] ==
=== User System ===
- NextAuthjs
- Authentication Providers
- Discord
Required: Client ID, Client Secret
- Github
Required: Client ID, Client Secret, only one callback per app.
{{https://next-auth.js.org/providers/github|NextAuthjs Github}}
=== User Experience ===
:ux:
* [ ] Favorites #0fc67f94
* [ ] Permissions / Roles #9c4f279e
* [ ] User Profile #289e0fe0
* [ ] User Settings #51955b33
=== Data Management ===
:data:
* [ ] Book Management System #92e523d2
* [ ] add #bda9a0f3
* [ ] remove #4b34e931
* [ ] update #eb959340
* [ ] access level #b00795a4
* [ ] ownership #8c80edc5
* [ ] attach #8acb21a9
* [ ] detach #2e263616

2
wiki/index.wiki vendored
View File

@@ -38,7 +38,7 @@ pyShelf supports the following formats:
== TODO ==
* [ ] [[Book Scraping System]] #f7edafb1
* [ ] [[REST API]] #c7bc51c5
* [ ] [[Frontend]] #a76c1038
* [ ] [[Client]] #c68b0664
== Development ==