Skip to content

Commit

Permalink
nepnep: sort feature and refactor a lot of things (#295)
Browse files Browse the repository at this point in the history
* nepnep: sort feature and refactor a lot of things

* remove comma at end of list

* use Cow from alloc and fmt

* SortOptions enum

* use From trait

* fmt

* Delete ls
  • Loading branch information
yongsu-l authored Aug 7, 2023
1 parent 1998b4a commit b88f5b1
Show file tree
Hide file tree
Showing 7 changed files with 315 additions and 94 deletions.
58 changes: 57 additions & 1 deletion src/rust/en.nepnep/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/rust/en.nepnep/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ lto = true

[dependencies]
aidoku = { git = "https://github.com/Aidoku/aidoku-rs" }
serde = { version = "1.0.140", default-features = false, features = ["derive", "alloc"] }
serde_json = { version = "1.0.82", default-features = false, features = ["alloc"] }
24 changes: 24 additions & 0 deletions src/rust/en.nepnep/res/filters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[
{
"type": "title"
},
{
"type": "sort",
"name": "Sort",
"canAscend": false,
"options": [
"A-Z",
"Z-A",
"Recently Released Chapter",
"Year Released - Newest",
"Year Released - Oldest",
"Most Popular (All Time)",
"Most Popular (Monthly)",
"Least Popular"
],
"default": {
"index": 0,
"ascending": false
}
}
]
7 changes: 1 addition & 6 deletions src/rust/en.nepnep/res/source.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,13 @@
"id": "en.nepnep",
"lang": "en",
"name": "MangaSee",
"version": 9,
"version": 10,
"urls": [
"https://mangasee123.com",
"https://manga4life.com"
],
"nsfw": 1
},
"filters": [
{
"type": "title"
}
],
"listings": [
{ "name": "Hot Updates" }
]
Expand Down
Loading

0 comments on commit b88f5b1

Please sign in to comment.