Skip to content

Commit

Permalink
feat(boylove): add sign in setting (#423)
Browse files Browse the repository at this point in the history
* chore(boylove): update source's version

* refactor(boylove): separate `Url` into `url.rs`

* feat(boylove): sign in

* chore(boylove): add setting group title

* chore(boylove): add setting group footer

* feat(boylove): auto check in

* refactor(boylove): make `request` as a `Url` method

* style(boylove): remove trailing slash in toml file

* style(boylove): doc comments
  • Loading branch information
aphronyx authored Aug 26, 2023
1 parent acbafed commit 612bb1a
Show file tree
Hide file tree
Showing 7 changed files with 416 additions and 231 deletions.
21 changes: 14 additions & 7 deletions src/rust/zh.boylove/Cargo.lock

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

3 changes: 2 additions & 1 deletion src/rust/zh.boylove/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ strip = true
lto = true

[dependencies]
aidoku = { git = "https://github.com/Aidoku/aidoku-rs/", features = ["helpers"] }
aidoku = { git = "https://github.com/Aidoku/aidoku-rs", features = ["helpers"] }
base64 = { version = "0.21.2", default-features = false, features = ["alloc"] }
9 changes: 9 additions & 0 deletions src/rust/zh.boylove/res/filters.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
{
"type": "title"
},
{
"type": "select",
"name": "閱覽權限",
"options": [
"全部",
"一般",
"VIP"
]
},
{
"type": "select",
"name": "連載狀態",
Expand Down
43 changes: 43 additions & 0 deletions src/rust/zh.boylove/res/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[
{
"type": "group",
"title": "變更語系",
"items": [
{
"type": "switch",
Expand All @@ -10,5 +11,47 @@
"default": true
}
]
},
{
"type": "group",
"title": "用戶登入",
"footer": "驗證碼欄位非四位數字時按登入,可取得驗證碼圖片;圖片以Base64編碼,可使用捷徑或線上工具解碼。",
"items": [
{
"type": "text",
"key": "username",
"placeholder": "用戶名",
"autocapitalizationType": 0,
"autocorrectionType": 1,
"spellCheckingType": 1,
"keyboardType": 1
},
{
"type": "text",
"key": "password",
"placeholder": "密碼",
"autocapitalizationType": 0,
"autocorrectionType": 1,
"spellCheckingType": 1
},
{
"type": "text",
"key": "captcha",
"placeholder": "驗證碼",
"keyboardType": 4
},
{
"type": "button",
"title": "登入",
"action": "signIn",
"destructive": true
},
{
"type": "switch",
"key": "autoCheckIn",
"title": "自動簽到",
"default": false
}
]
}
]
2 changes: 1 addition & 1 deletion src/rust/zh.boylove/res/source.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"id": "zh.boylove",
"lang": "zh",
"name": "香香腐宅",
"version": 3,
"version": 4,
"url": "https://boylove.cc",
"urls": [
"https://boylove.cc",
Expand Down
Loading

0 comments on commit 612bb1a

Please sign in to comment.