#6292 (Move the local.css from react to jinja)
by Luc Saffre · in Developers · assigned to Luc Saffre
Kokkuvõte
Before any change I did some cleanup:
- Remove build_site_cache_url() because it is the same as build_media_url().
- Remove never_build_site_cache because it is no longer relevant.
Children
Kommentaarid
- 8 kuud, 4 nädalat ago by Luc Saffre about #6292 (Move the local.css from react to jinja) : The font-size was given in px at some places in local.css, I replaced these values by values in rem.
- 1 aasta ago by Luc Saffre in reply to Luc Saffre about #6292 (Move the local.css from react to jinja) : Oops, no, the tile_width and background_color settings aren't in system but in jinja (because system isn't always available).
- 1 aasta ago by Luc Saffre about #6292 (Move the local.css from react to jinja) (1 reply) : Uff! This took me some time. It's now done by core.Renderer.build_js_cache(). It's still being generated once for every language and user_type. And it uses two new settings of the system plugin: tile_width and background_color. It is a part of the core because (a) Lino might support other templating...
- 1 aasta ago by Luc Saffre about #6292 (Move the local.css from react to jinja) : Hey, I now thought that build_local_css() should not be in any plugin at all, but directly in Site.build_site_cache(). Because it's theoretically possible that we would use another default templating system than jinja.
- 1 aasta ago by Luc Saffre about #6292 (Move the local.css from react to jinja) : Move build_local_css() to Plugin and implement it in Jinaj, and callit in Site.build_site_cache() only once at startup (not as it does right now once for each user type and language).
- 1 aasta ago by Luc Saffre in reply to Luc Saffre about #6292 (Move the local.css from react to jinja) : It's only after "pm prep". So it is not yet "necessary" (in a demo we could live without it).
- 1 aasta ago by Luc Saffre about #6292 (Move the local.css from react to jinja) (1 reply) : It is now necessary because runserver in vedi1 has the side effect that local.css isn't yet there until react has been called at least once.
- 1 aasta, 1 kuu ago by Luc Saffre about #6292 (Move the local.css from react to jinja) : Created new Ticket #6292 (Move the local.css from react to jinja) as child of #6285 (Visually editable images).