书源编辑界面添加登录ui规则,和登录校验规则

pull/1264/head
gedoor 4 years ago
parent e4c0af598b
commit 2d856206e6
  1. 12
      app/src/main/java/io/legado/app/ui/book/source/edit/BookSourceEditActivity.kt
  2. 7
      app/src/main/res/values-es-rES/strings.xml
  3. 6
      app/src/main/res/values-ja-rJP/strings.xml
  4. 8
      app/src/main/res/values-pt-rBR/strings.xml
  5. 2
      app/src/main/res/values-zh-rHK/strings.xml
  6. 2
      app/src/main/res/values-zh-rTW/strings.xml
  7. 2
      app/src/main/res/values-zh/strings.xml
  8. 2
      app/src/main/res/values/strings.xml

@ -199,13 +199,9 @@ class BookSourceEditActivity :
add(EditEntity("bookSourceName", source?.bookSourceName, R.string.source_name))
add(EditEntity("bookSourceGroup", source?.bookSourceGroup, R.string.source_group))
add(EditEntity("bookSourceComment", source?.bookSourceComment, R.string.comment))
add(
EditEntity(
"loginUrl",
source?.loginUrl,
R.string.login_url
)
)
add(EditEntity("loginUrl", source?.loginUrl, R.string.login_url))
add(EditEntity("loginUi", GSON.toJson(source?.loginUi), R.string.login_ui))
add(EditEntity("loginCheckJs", source?.loginCheckJs, R.string.login_check_js))
add(EditEntity("bookUrlPattern", source?.bookUrlPattern, R.string.book_url_pattern))
add(EditEntity("header", source?.header, R.string.source_http_header))
add(
@ -303,6 +299,8 @@ class BookSourceEditActivity :
"bookSourceName" -> source.bookSourceName = it.value ?: ""
"bookSourceGroup" -> source.bookSourceGroup = it.value
"loginUrl" -> source.loginUrl = it.value
"loginUi" -> source.loginUi = GSON.fromJsonArray(it.value)
"loginCheckJs" -> source.loginCheckJs = it.value
"bookUrlPattern" -> source.bookUrlPattern = it.value
"header" -> source.header = it.value
"bookSourceComment" -> source.bookSourceComment = it.value ?: ""

@ -855,4 +855,11 @@
<string name="read_aloud_by_page_summary">及时翻页,翻页时会停顿一下</string>
<string name="check_source_show_debug_message">La fuente del libro de cheques muestra un mensaje de depuración</string>
<string name="check_source_show_debug_message_summary">Muestra los pasos y el tiempo de la solicitud de red durante la verificación de la fuente del libro</string>
<string name="login_ui">登录UI</string>
<string name="export_no_chapter_name">No export chapter names</string>
<string name="autobackup_fail">Autobackup failed</string>
<string name="login_check_js">登录检查JS</string>
<string name="background_image_blurring">Background image blurring</string>
<string name="background_image_blurring_radius">Blurring radius</string>
<string name="background_image_hint">Disabled when 0, enable range from 1 to 25\nThe greater the radius, the stronger the effect of blurring</string>
</resources>

@ -856,4 +856,10 @@
<string name="read_aloud_by_page_summary">及时翻页,翻页时会停顿一下</string>
<string name="check_source_show_debug_message">Check book source shows debug message</string>
<string name="check_source_show_debug_message_summary">Show network status and timestamp during source checking</string>
<string name="login_ui">登录UI</string>
<string name="autobackup_fail">Autobackup failed</string>
<string name="login_check_js">登录检查JS</string>
<string name="background_image_blurring">Background image blurring</string>
<string name="background_image_blurring_radius">Blurring radius</string>
<string name="background_image_hint">Disabled when 0, enable range from 1 to 25\nThe greater the radius, the stronger the effect of blurring</string>
</resources>

@ -855,4 +855,12 @@
<string name="read_aloud_by_page_summary">及时翻页,翻页时会停顿一下</string>
<string name="check_source_show_debug_message">Verificar a fonte do livro mostra uma mensagem de depuração</string>
<string name="check_source_show_debug_message_summary">Exibir etapas de solicitação de rede e tempo durante a verificação da fonte do livro</string>
<string name="login_ui">登录UI</string>
<string name="export_no_chapter_name">No export chapter names</string>
<string name="autobackup_fail">Autobackup failed</string>
<string name="login_check_js">登录检查JS</string>
<string name="background_image_blurring">Background image blurring</string>
<string name="background_image_blurring_radius">Blurring radius</string>
<string name="background_image_hint">Disabled when 0, enable range from 1 to 25\nThe greater the radius, the stronger the effect of blurring</string>
</resources>

@ -857,5 +857,7 @@
<string name="read_aloud_by_page_summary">及时翻页,翻页时会停顿一下</string>
<string name="check_source_show_debug_message">校驗書源顯示詳細信息</string>
<string name="check_source_show_debug_message_summary">書源校驗時顯示網絡請求步驟和時間</string>
<string name="login_ui">登录UI</string>
<string name="login_check_js">登录检查JS</string>
</resources>

@ -858,5 +858,7 @@
<string name="read_aloud_by_page_summary">及时翻页,翻页时会停顿一下</string>
<string name="check_source_show_debug_message">校驗書源顯示詳細信息</string>
<string name="check_source_show_debug_message_summary">書源校驗時顯示網絡請求步驟和時間</string>
<string name="login_ui">登录UI</string>
<string name="login_check_js">登录检查JS</string>
</resources>

@ -859,5 +859,7 @@
<string name="read_aloud_by_page_summary">及时翻页,翻页时会停顿一下</string>
<string name="check_source_show_debug_message">校验显示详细信息</string>
<string name="check_source_show_debug_message_summary">书源校验时显示网络请求步骤和时间</string>
<string name="login_ui">登录UI</string>
<string name="login_check_js">登录检查JS</string>
</resources>

@ -860,5 +860,7 @@
<string name="read_aloud_by_page_summary">及时翻页,翻页时会停顿一下</string>
<string name="check_source_show_debug_message">Check book source shows debug message</string>
<string name="check_source_show_debug_message_summary">Show network status and timestamp during source checking</string>
<string name="login_ui">Login UI</string>
<string name="login_check_js">登录检查JS</string>
</resources>

Loading…
Cancel
Save