This commit is contained in:
kunfei 2023-02-07 21:46:08 +08:00
parent de67b6840c
commit e94f9e0c20
8 changed files with 30 additions and 0 deletions

View File

@ -185,6 +185,20 @@ class RssSourceEditActivity :
add(EditEntity("ruleContent", source?.ruleContent, R.string.r_content))
add(EditEntity("style", source?.style, R.string.r_style))
add(EditEntity("injectJs", source?.injectJs, R.string.r_inject_js))
add(
EditEntity(
"contentWhitelist",
source?.contentWhitelist,
R.string.content_whitelist
)
)
add(
EditEntity(
"contentBlacklist",
source?.contentBlacklist,
R.string.content_blacklist
)
)
}
adapter.editEntities = sourceEntities
}
@ -228,6 +242,8 @@ class RssSourceEditActivity :
viewModel.ruleComplete(it.value, source.ruleArticles)
"style" -> source.style = it.value
"injectJs" -> source.injectJs = it.value
"contentWhitelist" -> source.contentWhitelist = it.value
"contentBlacklist" -> source.contentBlacklist = it.value
}
}
return source

View File

@ -1065,4 +1065,6 @@
<string name="update_book_fail">更新失败</string>
<string name="notification_permission_rationale">阅读需要发送通知来显示朗读控制和下载进度</string>
<string name="webdav_after_local_restore_confirm">webDav书源比本地新,是否恢复</string>
<string name="content_whitelist">白名单(contentWhitelist)</string>
<string name="content_blacklist">黑名单(contentBlacklist)</string>
</resources>

View File

@ -1068,4 +1068,6 @@
<string name="update_book_fail">更新失败</string>
<string name="notification_permission_rationale">阅读需要发送通知来显示朗读控制和下载进度</string>
<string name="webdav_after_local_restore_confirm">webDav书源比本地新,是否恢复</string>
<string name="content_whitelist">白名单(contentWhitelist)</string>
<string name="content_blacklist">黑名单(contentBlacklist)</string>
</resources>

View File

@ -1068,4 +1068,6 @@
<string name="update_book_fail">更新失败</string>
<string name="notification_permission_rationale">阅读需要发送通知来显示朗读控制和下载进度</string>
<string name="webdav_after_local_restore_confirm">webDav书源比本地新,是否恢复</string>
<string name="content_whitelist">白名单(contentWhitelist)</string>
<string name="content_blacklist">黑名单(contentBlacklist)</string>
</resources>

View File

@ -1065,4 +1065,6 @@
<string name="update_book_fail">更新失败</string>
<string name="notification_permission_rationale">阅读需要发送通知来显示朗读控制和下载进度</string>
<string name="webdav_after_local_restore_confirm">webDav书源比本地新,是否恢复</string>
<string name="content_whitelist">白名单(contentWhitelist)</string>
<string name="content_blacklist">黑名单(contentBlacklist)</string>
</resources>

View File

@ -1067,4 +1067,6 @@
<string name="update_book_fail">更新失败</string>
<string name="notification_permission_rationale">阅读需要发送通知来显示朗读控制和下载进度</string>
<string name="webdav_after_local_restore_confirm">webDav书源比本地新,是否恢复</string>
<string name="content_whitelist">白名单(contentWhitelist)</string>
<string name="content_blacklist">黑名单(contentBlacklist)</string>
</resources>

View File

@ -1067,4 +1067,6 @@
<string name="update_book_fail">更新失败</string>
<string name="notification_permission_rationale">阅读需要发送通知来显示朗读控制和下载进度</string>
<string name="webdav_after_local_restore_confirm">webDav书源比本地新,是否恢复</string>
<string name="content_whitelist">白名单(contentWhitelist)</string>
<string name="content_blacklist">黑名单(contentBlacklist)</string>
</resources>

View File

@ -1068,4 +1068,6 @@
<string name="update_book_fail">Update failed</string>
<string name="notification_permission_rationale">Reading requires sending notifications to show reading control and download progress</string>
<string name="webdav_after_local_restore_confirm">The webDav book source is newer than the local one, whether to restore it or not</string>
<string name="content_whitelist">白名单(contentWhitelist)</string>
<string name="content_blacklist">黑名单(contentBlacklist)</string>
</resources>