Code Monkey home page Code Monkey logo

zhihu's People

Contributors

merrickz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

jiyahan aiff

zhihu's Issues

部分日报没有内容

由于广告过滤CSS没能正确处理不同页面的内容
导致部分页面内容没有显示

主题切换

上个版本中因故取消的主题切换功能
以及新版本的亮暗主题样式

日报查看方式优化

目前的日报在阅览时,是直接打开的web版阅读页面,并加入去广告处理。
这种方式的优点,是样式上与知乎官方保持一致;
这种方式的缺点在于:
当获取到该期日报web版链接的时候,已经拿到了全文HTML内容(在返回的数据体/body内)
导致文本类日报的流量是正常流量的2倍。

提供纯文本阅读功能

优势:
1,节省流量,不加载图片/CSS
2,使用Label显示纯文本,速度快

实现:
1,获取日报信息的返回值中,取出body
2,对body进行html 2 text处理,得到纯文本
3,在label中显示该文本

框架变更:
1,根据选项启用情况,决定日报查看时采用网页模式还是纯文本模式
2,纯文本模式下可以打开网页查看
3,该选项在下拉菜单中应该可见

首页改为无限列表

目前使用的是显示今天日报的API,
需要改为/before类的API,并使其可以无限滚动。

Passport使用新版知乎日报时遇见的问题

1、Passport的键盘滑动得到了支持,但是只支持上下滑动而没有支持左右滑动;
2、在查看具体内容中,触屏上下滑动时左右抖动严重,经常出现不小心返回到首页。

日报浏览时会左右动

由于webview需要可缩放,现在在阅读时会出现左右可移动的情况
需要禁用这一特性,保留缩放功能。

放大缩小速度太慢

由于webview性能原因,更改device ratio时速度超慢,
现已改为css注入修改方式。

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.