Commit Graph
22 Commits
Author SHA1 Message Date
641fa857b4 perf(bundle): improve initial load + loading of tools (#575)
* perf(bundle): improve initial load + loading of tool

Render the sider once and only build the parts of it that are visible.

- App.vue renders BaseLayout around the layout switch instead of inside each
  layout, so moving between a plain route and a tool route no longer unmounts
  and rebuilds the whole sider (~460 menu items) on every navigation.
- CollapsibleToolMenu mounts a category's items the first time it opens. Every
  category starts collapsed, so the menu was built entirely out of view.
- Its menuOptions computed no longer folds in the collapsed/active flags, which
  rebuilt every category's tools array -- and re-rendered every item -- per route
  change. They are read from the template instead.
- MenuItemTooltip measures truncation with scrollWidth/clientWidth rather than a
  canvas measureText(), dropping a throwaway <canvas> and a getComputedStyle per
  menu item.

Production build, 3 runs each, fresh profile per run:

  first contentful paint   2476-2735ms -> 814-974ms
  main-thread blocking     1806-2024ms -> 250-294ms
  requests at boot         384         -> 208
  click a tool from home   991-1014ms  -> 178-197ms
  switch between tools     281-322ms   -> 74-125ms

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* Fix small width in mermaid exporter

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: sharevb <sharevb@gmail.com>
2026-09-27 12:04:23 +02:00
ShareVB bc44870665 chore: global code formatting 2026-09-06 09:02:45 +02:00
SebastianandClaude Fable 5 239c69ee40 feat: mobile UX overhaul, theme flash prevention and build cleanup (#474)
* feat: mobile UX overhaul, theme flash prevention and build cleanup

UI/UX (mostly mobile):
- Prevent white flash on load: pre-paint inline style + script in
  index.html applies the persisted theme before first paint.
- Match browser chrome to the app background: theme-color meta kept in
  sync for Android/older iOS, and body background pinned to the Layout
  color for Safari 26+, which ignores theme-color and samples the page.
- Make the document the app's scroller instead of n-layout's nested
  container: single scrollbar, native iOS tap-status-bar-to-scroll-top,
  natural toolbar collapsing; desktop sider becomes sticky and router
  scrollBehavior restores/resets scroll on navigation.
- Full-width mobile menu that fades in under an always-visible sticky
  top bar, seamless app background without the hero gradient, closes on
  navigation (including About while already on /about), scroll-locked
  behind, symmetric spacing around the title block and icon row.
- Language selector and theme toggle become icon dropdowns; theme
  supports System/Light/Dark via useColorMode (same storage as before).
- Route-change loading spinner scoped to the page area so the nav bar
  stays visible; spinner remains cosmetic-only (350ms delay).
- Halve content padding on small screens; reduce home top padding.
- Full-width expand/collapse tools button so its width doesn't jump.
- No sticky hover styles on touch devices (hover gated behind
  @media (hover: hover)).

Build:
- Rename deprecated rolldown output.advancedChunks to codeSplitting.
- Fix unocss 'unmatched utility' warnings in the pretty-scrollbar
  shortcut; override js-sha256 to 0.11.x (drops eval); bump
  javascript-obfuscator to 5.4.6.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TNayL5ianBBucVapfkM8CC

* Remove unnecessary comment

* Refresh lockfile, remove releaseage ignore

Signed-off-by: Sebastian Danielsson <sebastian.danielsson@proton.me>

* chore: remove unused LocaleSelector component

Language selection moved into the NavbarButtons dropdown; nothing
references this component anymore. Its i18n keys are left in place.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TNayL5ianBBucVapfkM8CC

---------

Signed-off-by: Sebastian Danielsson <sebastian.danielsson@proton.me>
Co-authored-by: Claude <noreply@anthropic.com>
2026-07-11 23:21:34 +02:00
Dark_Phoenix_ b37ae30d94 - Added Webkit and IOS specific optimizations to the CSS properties (#292)
- Added  a performance improvement for the homepage to only load in tiles when the user scrolls to the bottom, instead of loading it in batches which looped forever each 150 ms
- Changed the animation type and dynamic durations of the side bar to feel more snappy and consistent
2026-01-07 09:23:22 +01:00
ShareVB 63065a59e5 feat: tools default params and default language at runtime and more url parameters
Fix #1624, #1537, #906, #654
2025-08-19 19:57:12 +02:00
Dark_Phoenix_ 0325b11746 - Added a loading background color for light and dark theme (#166)
- Changed the color of the loader from white to the primary green color of IT-Tools
- Made the background of the splashscreen a slightly lighter gray to ease the difference between the loading background color of light and dark mode

FIx #161
2025-08-01 09:14:53 +02:00
ShareVB db0aff39c3 fix: add loading progress on tool load
Fix part of #32
2025-06-08 23:57:44 +02:00
Corentin THOMASSET e86fd96ae3 feat(i18n): language selector (#710) 2023-11-01 15:38:19 +01:00
Corentin Thomasset fe61f0f2f2 refactor(imports): removed unnecessary imports to vue 2023-06-10 17:24:10 +02:00
Corentin Thomasset 33c9b6643f chore(lint): switched to a better lint config 2023-05-28 23:29:14 +02:00
Corentin Thomasset ad202bd372 revert(pwa): fallback to autoUpdate 2023-03-01 23:35:17 +01:00
Corentin Thomasset 53ce079dff refactor(pwa): prompt for pwa update 2023-03-01 22:00:29 +01:00
Corentin Thomasset 208a373fd0 refactor(lint): added import rules 2022-08-04 22:46:50 +02:00
Corentin Thomasset 086d31eab5 refactor(lint): linter auto fix 2022-04-22 23:31:40 +02:00
Corentin Thomasset 724e142222 refactor: clean imports 2022-04-16 20:59:44 +02:00
Corentin Thomasset 6b58ec554a refactor(style): updated linter config 2022-04-15 23:10:47 +02:00
Corentin Thomasset 8559fbd774 refactor: removed theme editor 2022-04-14 23:30:06 +02:00
Corentin Thomasset 5cd9997a84 feat(tool): git memo 2022-04-12 13:24:14 +02:00
Corentin Thomasset d542688664 feat(style): theme overrides 2022-04-04 14:07:24 +02:00
Corentin Thomasset 3e92b7f1e0 feat(style): dark mode 2022-04-04 01:52:59 +02:00
Corentin Thomasset 25a8659786 chore: components base 2022-04-04 00:24:45 +02:00
Corentin Thomasset 64c92a661c chore: first commit 2022-03-31 00:33:29 +02:00