Commit Graph

15 Commits

Author SHA1 Message Date
Lucien Cartier-Tilet 291fc9111b
[dart] Upgrade to Dart 2.12 and its null-safety features 2021-03-30 18:54:31 +02:00
Lucien Cartier-Tilet f9e0ffa0eb
Add explicit size to header image, bump last update date 2020-12-21 20:38:24 +01:00
Lucien Cartier-Tilet 9632b008ac
Replace header image extension with webp 2020-12-21 20:29:25 +01:00
Lucien Cartier-Tilet e69b9fb9c8
Image in header now round 2020-12-06 01:17:29 +01:00
Lucien Cartier-Tilet 16f23c08c6
[Dart] Cleaner code, force the web page to reload on modifier code
The code in `navbar.dart' is now more declarative and cleaner.

If the `lastUpdate' variable’s content change, then it will force the
user to reload the page, bypassing their cache. This can be useful in
case of an update with which the cache could break the website.
2020-08-28 22:23:35 +02:00
Lucien Cartier-Tilet f99d45e8ab
Simplify code, remove html dependency
This commit removes the `html' package dependency, speeding up the
compile time of the Dart code.

It also simplifies the code and removes some unused code. For instance
the sun, moon, and lightbulb icons is removed, the `Theme' class is
removed, and the `switchTheme' function is now merged into the
`setTheme' function. The `makeThemeItem' function has also had its
second argument removed.
2020-08-25 03:34:55 +02:00
Lucien Cartier-Tilet b804764e24
Fixed subtitle selection 2020-05-26 02:14:13 +02:00
Lucien Cartier-Tilet 08b8116f6f
Header image now easier to change, no need to modify source code 2020-05-21 08:29:59 +02:00
Lucien Cartier-Tilet 8ca55cb710
Better coding style 2020-05-10 12:37:22 +02:00
Lucien Cartier-Tilet 3c942b4b8f
Fixes bug introduced in e819866
Table of content was made unavailable regardless of whether one was
provided by the page or not. This commit fixes this issue by making an
unavailable TOC only if one is not provided by the web page, otherwise
the TOC will be available.
2020-05-09 14:45:26 +02:00
Lucien Cartier-Tilet e81986683c
Fixes issue #5
The absence of a table of contents made the Dart code crash. This commit
adds a default TOC if non already exists.
2020-05-07 15:36:50 +02:00
Lucien Cartier-Tilet cc6519c302
Link best practices, and removed font for faster loading time 2020-05-06 11:48:51 +02:00
Lucien Cartier-Tilet 61fe6f71a4
modified from final to const as it won’t change value 2020-05-05 19:33:57 +02:00
Lucien Cartier-Tilet 404e79211e
Made it easier to change header image 2020-05-05 19:20:28 +02:00
Lucien Cartier-Tilet 8b85ea5952
Initial commit, added all backend files 2020-05-05 14:49:26 +02:00