Files
flipper/desktop/scripts
Michel Weststrate 2b2cbb1103 Move offline icon storage to app/
Summary:
This diff splits Facebook management into a ui-core and electron part:

* Cleaned up code and introduces a uniform Icon type to describe a requested icon
* Computing icon urls is done in the ui-core
* Introduced a RenderHost hook that can transform the request icon into a different url, in this case, a url to load icons from disk in production builds

For the browser UI, the urls are currently no rewritten since we have only dev builds (which always used only FB urls already). We could do the same rewrite in the future and download the static assets during build time. But for now this means that in the browser implementation we depend on normal browser caching, with the biggest downside that icons might not appear if the user has no internet connections.

With this change we lost our last usage of staticPath computations in ui-core

Reviewed By: aigoncharov

Differential Revision: D32767426

fbshipit-source-id: d573b6a373e649c7dacd380cf63a50c2dbbd9e70
2021-12-08 04:30:57 -08:00
..
2021-09-13 02:32:07 -07:00
2021-09-13 02:32:07 -07:00
2021-09-13 02:32:07 -07:00
2020-03-27 03:26:51 -07:00
2021-09-13 02:32:07 -07:00
2021-09-13 02:32:07 -07:00
2021-09-14 02:55:01 -07:00
2021-09-13 02:32:07 -07:00
2021-09-13 02:32:07 -07:00