jvoisin
68984da332
perf(static): minimize the SVG
...
Since tdewolff/minify supports SVG minimization, let's make use of it. As we
need to keep the license in the SVG because we're nice netizens, we can at
least use SPDX identifiers instead of using it verbatim.
This does save a couple of kB.
2025-08-09 15:38:43 -07:00
Frédéric Guillot
b20a8c97b0
fix(ui): invert toast notification icons
2025-08-09 14:23:20 -07:00
jvoisin
b4c82a4c53
perf(static): minimize images
2025-08-08 10:16:32 -07:00
Frédéric Guillot
4d7c601f6d
feat(ui): add PWA app shortcuts
...
References:
- https://web.dev/articles/app-shortcuts
- https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Manifest/Reference/shortcuts
2025-08-07 20:47:08 -07:00
Frédéric Guillot
f7e672452b
feat(js): force page reload to prevent stale data from bfcache
...
The unread page may show outdated entries when navigating back from an article, due to Chrome's back/forward cache (bfcache) restoring the page from memory.
Reference: https://web.dev/articles/bfcache
2025-08-07 19:35:16 -07:00
Frédéric Guillot
6532435db9
fix(css): align icon labels vertically in entry actions
2025-08-07 17:50:17 -07:00
Julien Voisin
798bc4cd2d
refactor(static): use a simple struct instead of two slices to store assets data and checksums
...
- Use a simple struct instead of two slices to store the data and the checksums
of resources
- Remove a superfluous call to Sprintf
- Factorise presence check and data retrieval in some maps
- Size the maps when possible
2025-08-05 19:35:27 -07:00
Frédéric Guillot
3bb965913d
refactor(js): create utility functions to manage buttons state
2025-08-02 21:37:16 -07:00
Frédéric Guillot
b505a63f3b
refactor(js): rewrite toast notification implementation
2025-08-02 21:37:16 -07:00
Frédéric Guillot
e9d9256ae2
refactor(js): rename functions to include action suffix
2025-08-02 18:44:12 -07:00
Frédéric Guillot
391792a424
refactor(js): combine handleBookmark
and toggleBookmark
functions
2025-08-02 18:44:12 -07:00
Frédéric Guillot
d2cfca589b
refactor(js): combine handleSaveEntry()
and saveEntry()
functions
2025-08-02 18:44:12 -07:00
Frédéric Guillot
f2e34cf07f
refactor(js): split openOriginalLink()
into smaller functions
2025-08-02 18:44:12 -07:00
Frédéric Guillot
5c3be3e74f
refactor(js): combine handleShare()
and triggerWebShare()
functions
2025-08-02 18:44:12 -07:00
Frédéric Guillot
2e28bf78bd
refactor(js): improve item navigation logic in goToListItem function
2025-08-02 16:12:53 -07:00
Frédéric Guillot
52c1386450
refactor(js): enable touch handlers only on touch devices and fix various issues in WebAuthnHandler
2025-08-02 15:39:01 -07:00
Frédéric Guillot
4910f1f0f4
refactor(js): remove RequestBuilder
2025-08-02 15:14:35 -07:00
Frédéric Guillot
bbe3c2ea71
refactor(js): simplify some functions using modern JavaScript
2025-08-02 14:06:18 -07:00
Frédéric Guillot
b116da85a9
refactor(js): remove bootstrap.js
2025-08-02 13:41:40 -07:00
Frédéric Guillot
07246e2b59
refactor(js): improve menu handlers
2025-08-02 13:09:57 -07:00
Frédéric Guillot
62410659d5
refactor(js): code cleanup and add jshint comments
2025-08-02 12:38:29 -07:00
Frédéric Guillot
3e1a7e411c
feat(js): register the service worker as JavaScript module
2025-08-02 11:26:43 -07:00
Frédéric Guillot
bfbc1c88c3
feat(js): load app.js
using JavaScript module
...
- The JS bundle has its own isolated scope
- There is no need to use IIFEs anymore (Immediately Invoked Function Expressions)
- Modules are executed after the HTML document is fully parsed, similar to `defer` attribute
- There is no need to use `DOMContentLoaded` anymore
- Module scripts inherently run in strict mode (no need to define `use strict` anymore)
2025-08-02 11:07:27 -07:00
Frédéric Guillot
50197c2be3
refactor(js): reorder functions and add comments
2025-08-01 21:56:25 -07:00
Frédéric Guillot
7a25cf5037
fix(js): handle multiple buttons in a single form when showing loading state
2025-08-01 20:53:59 -07:00
Frédéric Guillot
1ec90e34f5
refactor(js): simplify CSRF token retrieval from the document
2025-08-01 20:44:40 -07:00
Frédéric Guillot
5e07278e87
feat(ui): refresh the page when marking as read the last visible entry
2025-08-01 20:16:45 -07:00
Frédéric Guillot
bfd8cb3d22
feat(ui): add icons to main menu
2025-07-30 19:12:50 -07:00
jvoisin
32fbb4e882
fix(ui): improve margins consistency wrt. header/footer
2025-07-08 19:30:13 -07:00
jvoisin
93b17af78b
refactor(appjs): no need to check if always present elements are always present
2025-06-20 13:16:57 -07:00
Frédéric Guillot
b0a10f02fd
feat(css): add margin-bottom to input for consistent spacing
2025-06-19 16:35:17 -07:00
Frédéric Guillot
70b513b8db
feat(ui): display external URL in single entry view
...
Display the article's external URL directly in the single entry view.
Rationale: On mobile devices, users couldn't see where a link pointed before tapping it.
Previously, the only way to view the external URL was by hovering - an action not available on touch devices.
2025-06-09 21:14:55 -07:00
Frédéric Guillot
a8bb7a48d7
feat(ui): avoid showing an excessive number of tags
2025-06-08 15:29:09 -07:00
Frédéric Guillot
764212f37c
refactor(js): replace DomHelper
methods with standalone functions
2025-04-17 18:15:08 -07:00
Tali Auster
e02b65d4bc
fix: deal with navigator.share exceptions
...
Navigator.share returns a promise that's executed in the background, but
unless we await it explicitly, we won't get the exceptions in the
try/catch block.
2025-04-17 17:07:38 -07:00
Frédéric Guillot
969efd2af7
fix(ui): update share feature to correctly select title element and handle empty title
2025-03-28 15:36:43 -07:00
Frédéric Guillot
87fccfee3a
fix(ui): remove touch-action style because it could cause horizontal scrolling issue
2025-03-28 15:20:31 -07:00
Frédéric Guillot
991c54150d
fix(css): avoid aside overflow on the pagination menu
2025-02-15 17:15:52 -08:00
Frédéric Guillot
0c74497ef7
fix(js): regression introduced in commit ffe1be5
...
The default argument should be set to false.
2025-01-24 17:52:58 -08:00
jvoisin
ffe1be59ea
Use a default parameter for goToPage as isn't ~always called with a single one
2025-01-23 19:20:13 -08:00
jvoisin
2318e9011d
Use proper types in app.js
2025-01-23 19:20:13 -08:00
jvoisin
67df305ac2
Use shortcuts to declare padding
2025-01-23 19:20:13 -08:00
jvoisin
71c7845c42
Anchor =
removal in webauthn_handler.js
...
Since we're base64-encoding, `=` can only happen at the end, so no need to
traverse the whole payload.
2025-01-23 19:20:13 -08:00
jvoisin
aa56d23551
Replace the deprecated window.pageYOffset with window.scollY
...
See https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollY
2025-01-23 19:20:13 -08:00
jvoisin
3cd448099d
Remove a useless return
2025-01-23 19:20:13 -08:00
Frédéric Guillot
47ccefba4e
fix(css): --entry-content-aside-border-color
is missing from
...
`system.css`
2025-01-22 21:00:50 -08:00
Frédéric Guillot
e74d875d95
feat(css): improve aside element position on smartphone
2025-01-22 20:24:33 -08:00
Frédéric Guillot
c9c422b135
feat: bump linter and minifier from ECMAScript 2017 to 2020 (ES11)
2025-01-18 11:32:50 -08:00
Julien Voisin
91f9a7650e
refactor(js): add jshint check for strict comparison
2025-01-16 17:50:09 -08:00
jvoisin
605eeb4525
Fix a mistake introduced in f67d2e230b
...
Spotted by @michaelkuhn
2025-01-16 17:37:54 -08:00