aboutsummaryrefslogtreecommitdiff
path: root/src/namestore
diff options
context:
space:
mode:
authorAlessio Vanni <vannilla@firemail.cc>2021-10-14 21:22:40 +0200
committerAlessio Vanni <vannilla@firemail.cc>2021-11-21 15:23:26 +0100
commit48ccb35c9aea178d7103c3f198946c1bcbcc080c (patch)
treeefa23246d4b5a657d2a311a326346483ff1a5e54 /src/namestore
parent5cbf93d3c6c7a058d9a7893e2a3583a2b5b30d0e (diff)
downloadgnunet-48ccb35c9aea178d7103c3f198946c1bcbcc080c.tar.gz
gnunet-48ccb35c9aea178d7103c3f198946c1bcbcc080c.zip
Improve gnunet-bcd and update logo used in generated cards
The HTML forms now use a custom CSS instead of importing Bootstrap 4. This new CSS is basd on Bootstrap 5 with some minimal differences to make it look a bit like the older theme. Bootstrap was removed because these pages don't need its full power and also because it was difficult for some text editors to handle the one-long-line minified CSS embedded in the HTML. Since the forms are just a series of label + input elements, using a specific set of directives doesn't add any significant maintenance cost while making editing easiers. A new form to generate a simplified card was added. This card is desgined to reduce the leftover whitespace when some optional entries are left blank in the "full" form, while at the same time giving importance to the QR code containing the GNS address. Its layout can be improved. The simplified form can also be used to generate a PNG picture of the QR code, so that it can be included in other graphical media other than a business card, for example on a flyer or in the signature of a HTML-based e-mail. Generally, the gnunet-bcd service should provide a slightly better user experience, even if it's just to provide different pages for different errors but with a unified style. The logo used in the cards has been changed from the previous "gnu in front of a spiderweb" illustration to the new "gnu-shaped network of peers" image. It is also now a pure TikZ picture instead of being made using PSTricks, because, apparently, there is an incompatibility between the two packages in recent versions which made it impossible to compile the file. As a consequence of the incompatibility between TikZ and PSTricks, the QR code is now generated using the 'qrcode' package. This commit contains some changes to FCFS, but they're just some minor fixes and are unrelated to the changes to BCD.
Diffstat (limited to 'src/namestore')
-rw-r--r--src/namestore/gnunet-namestore-fcfsd.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/namestore/gnunet-namestore-fcfsd.c b/src/namestore/gnunet-namestore-fcfsd.c
index 95d4c5878..7ec9db156 100644
--- a/src/namestore/gnunet-namestore-fcfsd.c
+++ b/src/namestore/gnunet-namestore-fcfsd.c
@@ -205,6 +205,15 @@ do_shutdown (void *cls)
205 { 205 {
206 GNUNET_IDENTITY_disconnect (identity); 206 GNUNET_IDENTITY_disconnect (identity);
207 } 207 }
208
209 if (NULL != httpd_task)
210 {
211 GNUNET_SCHEDULER_cancel (httpd_task);
212 }
213 if (NULL != httpd)
214 {
215 MHD_stop_daemon (httpd);
216 }
208} 217}
209 218
210 219
@@ -985,7 +994,7 @@ identity_cb (void *cls,
985 * 994 *
986 * @param name name of the file to open 995 * @param name name of the file to open
987 * @param basedir directory where the file is located 996 * @param basedir directory where the file is located
988 * @return #GNUNET_SYSERR on error 997 * @return NULL on error
989 */ 998 */
990static struct StaticPage * 999static struct StaticPage *
991open_static_page (const char *name, const char *basedir) 1000open_static_page (const char *name, const char *basedir)