Skip to content

Commit

Permalink
[Source FR] add lelscanvf source for mmrcms template (#188)
Browse files Browse the repository at this point in the history
* add lelscanvf source

* fix size icon

* fix issues

---------

Co-authored-by: Skitty <[email protected]>
  • Loading branch information
Moomooo95 and Skittyblock authored Aug 7, 2023
1 parent b88f5b1 commit 3d05ede
Show file tree
Hide file tree
Showing 7 changed files with 116 additions and 8 deletions.
25 changes: 17 additions & 8 deletions src/rust/mmrcms/Cargo.lock

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

1 change: 1 addition & 0 deletions src/rust/mmrcms/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[workspace]
members = ["template", "sources/*"]
resolver = "2"

[profile.dev]
panic = "abort"
Expand Down
12 changes: 12 additions & 0 deletions src/rust/mmrcms/sources/lelscanvf/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[package]
name = "lelscanvf"
version = "0.1.0"
edition = "2021"

[lib]
crate-type = ["cdylib"]

[dependencies]
aidoku = { git = "https://github.com/Aidoku/aidoku-rs" }
mmrcms_template = { path = "../../template" }
lazy_static = { version = "1.4.0", features = ["spin_no_std"] }
Binary file added src/rust/mmrcms/sources/lelscanvf/res/Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions src/rust/mmrcms/sources/lelscanvf/res/filters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
[
{
"type": "title"
},
{
"type": "author"
},
{
"type": "select",
"name": "Category",
"options": [
"None",
"Action",
"Adventure",
"Comedy",
"Doujinshi",
"Drama",
"Ecchi",
"Fantasy",
"Gender Bender",
"Harem",
"Historical",
"Horror",
"Josei",
"Martial Arts",
"Mature",
"Mecha",
"Mystery",
"One Shot",
"Psychological",
"Romance",
"School Life",
"Sci-fi",
"Seinen",
"Shoujo",
"Shoujo Ai",
"Shounen",
"Shounen Ai",
"Slice of Life",
"Sports",
"Supernatural",
"Tragedy",
"Yaoi",
"Yuri"
]
},
{
"type": "sort",
"name": "Sort by",
"canAscend": true,
"options": [
"Title",
"Views"
],
"default": {
"index": 0,
"ascending": true
}
}
]
10 changes: 10 additions & 0 deletions src/rust/mmrcms/sources/lelscanvf/res/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"info": {
"id": "fr.lelscanvf",
"lang": "fr",
"name": "LelscanVF",
"version": 1,
"url": "https://lelscanvf.cc",
"nsfw": 1
}
}
16 changes: 16 additions & 0 deletions src/rust/mmrcms/sources/lelscanvf/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#![no_std]
use mmrcms_template::{mmrcms, template::MMRCMSSource};

extern crate alloc;
use alloc::string::ToString;

mmrcms! {
MMRCMSSource {
base_url: "https://lelscanvf.cc",
lang: "fr",
category_mapper: |idx| {
idx.to_string()
},
..Default::default()
}
}

0 comments on commit 3d05ede

Please sign in to comment.