Coder Social home page Coder Social logo

legado-webui's People

Contributors

letterk avatar

Watchers

 avatar  avatar

legado-webui's Issues

bug和一些建议

bug

Traceback
127.0.0.1 - - [29/May/2022 21:49:05] "GET /bookshelf/ HTTP/1.1" 500 -
127.0.0.1 - - [29/May/2022 21:49:05] "GET /favicon.ico HTTP/1.1" 404 -
127.0.0.1 - - [29/May/2022 21:49:08] "GET / HTTP/1.1" 302 -
请求app获取书架
[2022-05-29 21:49:08,969] ERROR in app: Exception on /bookshelf/ [GET]
Traceback (most recent call last):
  File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\flask\app.py", line 2051, in wsgi_app
    response = self.full_dispatch_request()
  File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\flask\app.py", line 1501, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\flask\app.py", line 1499, in full_dispatch_request
    rv = self.dispatch_request()
  File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\flask\app.py", line 1485, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "D:\github\legado-webui\app.py", line 277, in bookshelf
    return redirect(url_for("set_ip"))
  File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\flask\helpers.py", line 334, in url_for
    return appctx.app.handle_url_build_error(error, endpoint, values)
  File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\flask\helpers.py", line 321, in url_for
    rv = url_adapter.build(
  File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\werkzeug\routing.py", line 2301, in build
    raise BuildError(endpoint, values, method, self)
werkzeug.routing.BuildError: Could not build url for endpoint 'set_ip'. Did you mean 'static' instead?
127.0.0.1 - - [29/May/2022 21:49:08] "GET /bookshelf/ HTTP/1.1" 500 -

似乎是因为 set_ip 入口端点函数被注释了导致了,我取消注释就好了


建议,可以优化一下未读章节数的显示

修改后效果

image

代码
<td>
  {% if book.unread %}
  <div id="unread">{{ book.unread }}</div>
  {% else %}
  <div id="unread" style="background-color: #bbb">
    {{ book.unread }}
  </div>
  {% endif %}
</td>

建议加个源站点URL的显示,可以点击直接跳转到源站点

我给这个网站写了个站点规则,在阅读模式下翻页可以自动记书签,注意要关闭预载下一章,否则会多记到下一章
访问 这个地址 就可以启用站点规则

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.