| Age | Commit message (Collapse) | Author | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Bumps [webpack](https://github.com/webpack/webpack) from 5.73.0 to 5.76.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.76.1)
---
updated-dependencies:
- dependency-name: webpack
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
|
|
Bumps [dns-packet](https://github.com/mafintosh/dns-packet) from 5.3.1 to 5.4.0.
- [Release notes](https://github.com/mafintosh/dns-packet/releases)
- [Changelog](https://github.com/mafintosh/dns-packet/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mafintosh/dns-packet/compare/v5.3.1...5.4.0)
---
updated-dependencies:
- dependency-name: dns-packet
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
|
|
It looks like there's a couple of issues with the current implementation which shows in Performance tab in Chrome:
1) getChildDirectories and in particular the split function. When you look at the code we're doing 3 filters on a reduced array each time, but always starting with the full list of directories. So for every child directory we iterate once over the entire array of all directories to remove 1 item, then for n-1 items we split them, then we find the ones who start with the parent path name. This is very inefficient.
To fix this I added one first iteration that will split the names on them all once and use that depth as a key into a Map and store an Array of the items at that depth. We could possibly go one step further and iterate the array store the d.name split on the last index of the seperator as a key to speed this up? But the new version is already orders of magnitude faster
2) The compression on saveState into localStorage is slow and blocking the UI thread. Given that the saveState doesn't affect the actual state in the component or whats rendered I've moved it out of the current tick of rendering and shifted it in most browsers to be done when the screen is idle (i.e. user is not doing anything). Or in the case of Safari falling back to the next tick.
This dropped render time for on one user with 6000+ directories from 1 minute to around 15s, of which a large chunk is the server calls.
Fixes #317
|
|
|
|
|
|
This reverts commit 02364ac34c7ebabbb348a0806a36f6bc2153a609, reversing
changes made to 3162a3f7964e924372a7744f4ce02951894dfe38.
|
|
feature/dark-mode
|
|
- Added a new menu item to the header to toggle the theme. The default is still the OS but it can be turned on or off. For now this is not controlled from the user Options. I'll look to see if we can do that, and make sure we honor precedence.
- The above required me to shift the prefered media detection into App.js from CodeEditor.js and now I pass theme down through the components to reach it.
- Fixed styling of DirectoryTree - had to move styles hardcoded into component into css
- Fixed gaps in styling of logs so that different rows are color coded correctly.
|
|
and 50300, respectively"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
There were 2 issues here:
1. The Redirect in App.js seems to be being hit on reload always and would always force a redirect. I tried googling but couldn't find a good answer why and how to workaround it, so I've just excluded our known paths from that redirect.
2. Even after this in Searches.js there's a race condition with the component being connected and starting to process the searchId, but the searches haven't been set yet, so it assumes it's invalid and resets to /searches. So I've swapped the order in onUpdate and that seems to fix it with no side effects.
|
|
|
|
|
|
This initial version is done based on the OS theme (so it'll only be dark mode if the OS setting is dark mode).
In order for this to work I've added the customised less files for semantic locally and this requires a change
from the react build scripts to craco because react doesn't support less compilation.
I've verified as many screens as I can to make sure they're all looking ok but I'm sure I missed some parts.
CodeMirror needs a slightly different solution which needed JS code to detect the current theme.
The color scheme is heavily based on githubs dark mode and is using mostly css variable support. This should
make it easy to tweak in the future too.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
always show it. That way a user knows the size of pending downloads too.
Fixes #600
|
|
|