Emmanuel Pelletier
3740f45b70
integration: easily view all service homepages
2024-05-16 10:44:37 +02:00
Emmanuel Pelletier
3dfa3c1ca7
website: better gaufre docs for mobile usage
2024-05-15 20:50:01 +02:00
Emmanuel Pelletier
a253bd76df
integration v0.1.6
2024-05-15 10:08:56 +02:00
Emmanuel Pelletier
1618bb1d1b
gaufre: hide it if the server is unavailable
...
use visiblity: hidden instead of display: none to prevent layout shifts.
2024-05-15 09:52:42 +02:00
Emmanuel Pelletier
bdf31c94a0
gaufre: handle DSFR dark theme
2024-05-15 09:49:31 +02:00
Emmanuel Pelletier
89de926f9c
gaufre: remove border radius to better match DSFR styles
2024-05-15 09:47:49 +02:00
Emmanuel Pelletier
5399c75379
integration v0.1.5 (last published version had wrong env vars… oops)
2024-05-15 08:08:53 +02:00
Emmanuel Pelletier
c02a1b0676
website: fix wrong service urls in services json api endpoint
2024-05-15 08:03:54 +02:00
Emmanuel Pelletier
3d230aa545
integration v0.1.4
2024-05-15 07:51:01 +02:00
Emmanuel Pelletier
3fcc774954
website: show html code example first
...
makes more sense as more people will use the HTML than the react code
2024-05-15 07:47:43 +02:00
Emmanuel Pelletier
1a436de8dc
api/gaufre: fix crash on safari
...
the popup didn't open correctly on webkit based browsers,
now it does!
2024-05-13 16:00:39 +02:00
Emmanuel Pelletier
404f712b56
website: adding favicon variants for better browser support
2024-05-13 15:57:20 +02:00
Emmanuel Pelletier
eff5d0037e
website: enable cors, allow requests to gaufre.js from any site
2024-05-13 14:38:16 +02:00
Emmanuel Pelletier
0593bbad15
website: precompress static files instead of relying on fastify compress
...
- no need to generate the compressed files at runtime
- this prevents an issue with fastify compressing pagefind files
2024-05-13 14:36:23 +02:00
Emmanuel Pelletier
32a70597f9
integration v0.1.3
2024-05-07 22:38:23 +02:00
Emmanuel Pelletier
63d34d2315
api/gaufre: make sure the popup is shown in the viewport
...
small test that anchors the popup to the left of the viewport, this
quickly fixes the popup going out of viewport if the Gaufre button is
used on the left of a header bar
2024-05-07 22:11:54 +02:00
Emmanuel Pelletier
087bc5a889
api/gaufre: stop using an iframe
...
iframe was great because we controlled our page context to style things
easily, handle assets easily.
But since it's not on the same domain as the services consuming it, it
implied configuration here and there. Also some behaviors were annoying
to implement (for example, keyboard navigation). I'm sure everything we
do is possible via iframe but I feel like I'll go from barrier to
barrier at every new thing we want to do…
I feel like, at the cost of handling style-conflicts, just rendering
everything in the real page context is more future-proof.
2024-05-07 21:59:58 +02:00
Emmanuel Pelletier
2a12f312c2
integration/styles: better style scopingwhen using embedded dsfr
...
- the CSS that included the DSFR excerpt we needed styled some base html
tags directly. It might collide with a service CSS already there. Now a
postcss plugin applies a CSS prefix to everything
- we output in the lib two DSFR file versions: one with prefixed
selectors, one raw.
2024-05-07 20:42:03 +02:00
Emmanuel Pelletier
3c2a6fd0cf
api/gaufre: fix local version
...
forgot a filename change… woops.
2024-05-07 20:42:03 +02:00
Emmanuel Pelletier
10203cf2bd
homepage generator: logos are not available through api
2024-05-02 17:49:04 +02:00
Emmanuel Pelletier
e4c341d6d0
export more CSS to enable more precise usage of CSS imports
2024-05-02 13:27:43 +02:00
Emmanuel Pelletier
4b7dff5345
fix wrong anchor on content
2024-05-02 13:07:28 +02:00
Emmanuel Pelletier
1fb82db5e2
oops… i really should try to focus (forgot to rename a file)
2024-05-02 13:00:42 +02:00
Emmanuel Pelletier
c041c77360
adding 'la suite territoriale' specific gaufre button/endpoint
2024-05-02 12:58:24 +02:00
Emmanuel Pelletier
001ca61773
using latest integration package on website
2024-05-02 12:22:53 +02:00
Emmanuel Pelletier
5aabe78fba
woops: fix missing entity field in services data, it broke TS
2024-05-02 12:16:34 +02:00
Emmanuel Pelletier
ab7cf18638
adding services to the gaufre button
...
hiding audioconf for now as i dont have any logo
2024-05-02 12:07:25 +02:00
Emmanuel Pelletier
eef8ec0d3c
replace astro default favicon with our own
2024-05-02 11:12:26 +02:00
Emmanuel Pelletier
b20d116746
scalingo server: dont listen only on localhost so that the server works
2024-05-02 10:53:51 +02:00
Emmanuel Pelletier
472e54237e
stop using prettier only to indent our html
...
it weighted *a lot* just for that. now we use a tiny function
that only break lines between html tags, not as good but the JS
weight gain is huge
2024-05-02 10:52:58 +02:00
Emmanuel Pelletier
21521277b0
misc changes on website:
...
- correct a few content mistakes
- activate compression on production server
- suppress a few TS warnings (with anys, I know)
2024-05-02 09:48:59 +02:00
Emmanuel Pelletier
14044e95a4
serving built app on port 3000 when starting with fastify
...
this eases up scalingo deployment
2024-05-02 01:11:01 +02:00
Emmanuel Pelletier
0ce04a420d
fix website integration dependency
2024-05-02 00:47:54 +02:00
Emmanuel Pelletier
d9859f1564
first commit:
...
- we have a static astro website under /website. It has the
implementation docs of the homepage/gaufre templates, and it handles the
few API endpoints (the gaufre js, backgrounds, logos)
- we have a vite app under /packages/integration. It has the react
components generating the homepage and the gaufre button, and their css.
Its used to generate an npm package
2024-05-02 00:35:38 +02:00