Nuggets third-party version--Non-Nuggets official mini program
The official has implemented anti-leeching treatment on the pictures, so most of the pictures on the mini program (a very few avatars whose hostname starts with mirror can be displayed) cannot be displayed normally using conventional methods (limited by the mini program, and the referer cannot be set). ). To be simple and crude, you can directly find a third-party image service, such as images.weserv.nl, and adjust the image src
uniformly in the mini program (you can check the modifications provided by FFFXUE); if you want to be self-reliant, you can set up your own image server
transfer one time.
This is not the official applet of the Nuggets (it seems that there is no official applet corresponding to the Nuggets APP
). It is completely developed by a third-party developer and is only used for learning and communication. It is prohibited to be used for other purposes. If you want to use the official version, you can visit the Nuggets official website, or download the Nuggets official APP, or visit other Nuggets official channels.
All API
of this applet are from the Nuggets official web
website and official Android
APP
(mainly web
), and UI
is copied from the Nuggets official Android
APP(ver 5.4.3)
. Some static resources ( icon
, pictures, etc.) are copied directly from the Nuggets official apk
.
The code of this mini program has been open sourced. Click to view the source code and star it at will. You can also scan the mini program code below to experience it directly.
none
The corresponding page can open the Nuggets official
APP
for comparison.
The article data entry has been adjusted and the animation is retained.
There are really a lot of things in APP
, including pages and interactions, which need to be completely copy Implementation does require some time and effort. Things like UI
are implemented through simple measurement + naked eye debugging. The completion of the page and interaction is listed below. This should only list most of them (still the same sentence above, in APP
There are really a lot of things), and the follow-up that is not listed or implemented will be implemented based on time and energy.
Please focus on the actual completion level based on the code (the online mini program will also be continuously updated).
Comments, messages, following, adding to collections, likes, posting hot spots, etc. are not implemented for the time being because there are really a lot of things in the APP...
API
domain names (secondary level). The backend domain name whitelist of the mini program can only be allocated up to 20
names. Now it has accounted for 16
names. It feels like it needs to be complete.APP
version of the mini program, the quota is not enough. If that doesn't work, you can only use a server
proxy;APP
, and the request fields need to be slightly adjusted according to web
; corresponding header
must also be set for individual interfaces;content
of the entire article in html
format. The open source wxParse is used here for rich text analysis;url
cannot be opened in webview
, so I lose if I can click on the external links in the article;tab
page, if it has slid to the top, onShow
will get new data, otherwise, it will not be refreshed; when not logged in, the API called by the homepage APP
is get_recommended_entry
.get_entry_by_timeline
is still used in the mini program; the others will not be described one by one, but you can view the source code for details;API
require the right time, place, and right people. The data format returned by some API
has not been obtained, so the corresponding pages have not been written, such as: system message page (there has been no system message recently), etc.;category
include collection
, comment
, follow
, comment-like
, pin-like
, and pin-comment
. There may be other message types. If you encounter Will make it up one by one; there are also dynamic pages, which have the same problem; there may be other data that is not fully covered;illegal token
, or the articles are not displayed normally. It should be that the request parameters need to be slightly adjusted, or the article type needs to be judged. Small issues like this will be adjusted and supplemented in the future;100%
copy of an APP
with rich content. This will appear bloated. There should be but
, this applet is only for the purpose of learning and communication, so this issue is not within the scope of our consideration;If my project is helpful to you, you can buy me a cup of coffee~
MIT
Copyright (c) 2018-present, myvin