Git Product home page Git Product logo

Comments (3)

LoeiFy avatar LoeiFy commented on June 1, 2024
  1. 有这样需求的人比较少
  2. 实现起来有些麻烦:列表拉取的数据并没有正文的数据,所以需要二次取到正文数据才可以知道定义时间

from mirror.

MadIcecream avatar MadIcecream commented on June 1, 2024

可以考虑在issue的标题中添加额外数据,例如“博文名称[time=2017-12-24 08:00+8]”,这样解析时如果发现了存在额外数据,就以添加的为准。

我确实是需要这样的功能的,如果官方没有打算加,我可以自己实现,只是希望能为我提供一点实现思路 :)

from mirror.

LoeiFy avatar LoeiFy commented on June 1, 2024

在标题处加标记是一个办法,还有一个就是把正文内容首次就拿到

https://github.com/LoeiFy/Mirror/blob/master/src/api/issues.js#L28-L58

在 updatedAt 上面加上 bodyHTML,这样你就可以首次就获得正文数据,后续打开文章页也不需要再次拉取数据了,缺点是首次加载内容会多一些

from mirror.

Related Issues (20)

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.