Git Product home page Git Product logo

Comments (10)

tiansh avatar tiansh commented on June 20, 2024
  1. 阅读器没有保存原始的小说文件,小说文件在导入的时候被压了空行、一次性做了繁简转换。所以导出可能已经不是原本的文件了。
  2. 这个 Web App 保存东西其实不太稳定,浏览器一些情况下可能内容会清空,有时候阅读器挂了重装一下里面的文件就没了。如果做了导出功能,会担心有用户把这个阅读器当成囤东西的地方,然后东西丢了的话体验太糟糕了。如果没有导出功能显然不会有用户想要拿它存东西……
  3. 我需要确定一下什么平台能支持,还有就是实现有点问题,不过这个功能倒是可以加的。有空再说……

from reader.

buvta avatar buvta commented on June 20, 2024

主要在电脑上用python自建,单独用个浏览器作为阅读工具,一般不必自建多用缓存通过前进后退就能打开,从未清理过缓存数据也未丢失过,我确实将其当作了收集器

内容是直接存储在reader数据库的content表里吗?

也试过直接导出数据库(参考Export IndexedDB from a web app using devtools),但导出的是全部数据生成的单个文件太大了,文本编辑器打开不顺利,如果只是导出某本小说该怎么修改这行代码
theDB.version(verno).stores(tables.reduce((p,c) => {p[c.name] = c.schema.primKey.keyPath || ""; return p;}, {}));

from reader.

tiansh avatar tiansh commented on June 20, 2024

我没看懂你的问题,也没看懂你写的代码……

from reader.

tiansh avatar tiansh commented on June 20, 2024

总之做了一个导出的功能,但是还在beta分支,等我看看没问题了再上线。
还有就是强烈建议别用这个阅读器来存东西,他就是个阅读器,不是个文件存储软件。希望之后也别有人给我开issue说文件丢了,我到时候真的没办法解决。

from reader.

buvta avatar buvta commented on June 20, 2024

代码从参考链接处复制,直接备份浏览器缓存中web app的数据库

浏览器缓存的reader数据库,content能看到条目数量但显示空白,其他几张表都能看到内容,这是啥缘故?
2023-07-18-000926_607x723_scrot

from reader.

tiansh avatar tiansh commented on June 20, 2024

增加了一个下载/共享小说的按钮,在小说阅读界面的右上角可以找到。

from reader.

buvta avatar buvta commented on June 20, 2024

archlinux试过几个浏览器均未看到,直接删掉more按钮的hidden属性能在左下角看到但无法正常使用

from reader.

tiansh avatar tiansh commented on June 20, 2024

重新更新了一下……好象是之前写错了,不过我没有环境可以测试,你再看看……

from reader.

buvta avatar buvta commented on June 20, 2024

功能能用了,不过下载和取消按钮,前者偏左后者居中没有对齐,看起来有点别扭
2023-07-31-082050_560x128_scrot
我觉得将导出按钮放在小说条目,左拉时在删除按钮旁边一起显示更符合使用习惯
还是之所以如此设计,是为了避免麻烦防范滥用出现问题?

from reader.

tiansh avatar tiansh commented on June 20, 2024

没这么高级的考量,就是因为列表是我自己画的,没预留别的操作按钮的地方……
所以找了半天就这最方便了,毕竟以后再加别的功能也可以在这放

这个靠左之后可以考虑也改成居中,应该是很久以前抄的别的界面的做法做的。那就下次更新再说了……

from reader.

Related Issues (15)

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.