aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorLines
2023-06-22tweak endpointsJP Dillingham-7/+89
2023-06-22obscure full path of files, throw ForbiddenException if root is not whitelistedJP Dillingham-23/+25
2023-06-22remove parent propJP Dillingham-4/+0
2023-06-22swap exceptionsJP Dillingham-11/+11
2023-06-21implement download fetchJP Dillingham-81/+9
2023-06-21wire up DIJP Dillingham-0/+2
2023-06-21return files + dirs togetherJP Dillingham-5/+21
2023-06-21add types to represent files and dirsJP Dillingham-0/+94
2023-06-21add initial endpointsJP Dillingham-0/+154
2023-06-21simplify contents listingJP Dillingham-34/+11
2023-06-20implement file serviceJP Dillingham-27/+119
2023-06-19rough in download listingJP Dillingham-8/+14
2023-06-19just pass EnumerationOptionsJP Dillingham-0/+47
2023-06-19stub IFileServiceJP Dillingham-0/+68
2023-06-11pin craco to resolve conflicting depsJP Dillingham-1/+2
2023-06-11update depsJP Dillingham-15530/+3507
2023-06-11override css-what per https://github.com/advisories/GHSA-q8pj-2vqx-8ggcJP Dillingham-0/+1
2023-06-11override css select per https://github.com/advisories/GHSA-rp65-9cf3-cjxrJP Dillingham-0/+1
2023-04-28remove deprecated usingJP Dillingham-1/+0
2023-03-22base64 encode the X-Relay-Filename header (and append Base64)JP Dillingham-2/+3
2023-03-22move Base62Extensions, add Base64ExtensionsJP Dillingham-1/+49
2023-03-21remove required roles from policiesJP Dillingham-12/+11
2023-03-21add a Guest role, add AuthRole to avoid magic stringsJP Dillingham-1/+35
2023-03-21remove roles from ApiKeyOnly policyJP Dillingham-1/+0
2023-03-21debug log when validation failsJP Dillingham-2/+8
2023-03-21update credential checks to use InstanceNameJP Dillingham-5/+9
2023-03-21tweak validationJP Dillingham-0/+17
2023-03-21fetch agent config by InstanceName property instead of keyJP Dillingham-2/+17
2023-03-21fix loggerJP Dillingham-1/+1
2023-03-15Bump webpack from 5.73.0 to 5.76.1 in /src/webdependabot[bot]-18/+18
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>
2023-03-03Bump dns-packet from 5.3.1 to 5.4.0 in /src/webdependabot[bot]-6/+6
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>
2023-02-19Trying to speed up the performance of the Browse tab.Matt Goldspink-16/+34
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
2023-02-05Merge branch 'master' into feature/dark-modeJP Dillingham-1/+1
2023-02-04fix typoJP Dillingham-1/+1
2023-02-04Revert "Merge pull request #874 from slskd/revert-862-port"JP Dillingham-6/+7
This reverts commit 02364ac34c7ebabbb348a0806a36f6bc2153a609, reversing changes made to 3162a3f7964e924372a7744f4ce02951894dfe38.
2023-02-03Merge branch 'feature/dark-mode' of github.com:mattgoldspink/slskd into ↵Matt Goldspink-191/+299
feature/dark-mode
2023-02-03Fixing things based on feedback on previous PR.Matt Goldspink-35/+122
- 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.
2023-02-03Revert "Change default ports for HTTP, HTTPS, and Soulseek to 5030, 5031, ↵JP Dillingham-7/+6
and 50300, respectively"
2023-02-03Merge branch 'slskd:master' into feature/dark-modeMatt Goldspink-191/+299
2023-01-30Merge branch 'master' into portJP Dillingham-185/+292
2023-01-29wrap each set of routes in a SwitchJP Dillingham-39/+38
2023-01-29revert back to catch-allJP Dillingham-5/+1
2023-01-28disable lint ruleJP Dillingham-0/+1
2023-01-28tweak route matching regexJP Dillingham-1/+1
2023-01-28suppress ASP0014JP Dillingham-0/+6
2023-01-28fix version check (again)JP Dillingham-2/+2
2023-01-23Merge branch 'master' into feature/fix-reload-to-stay-on-current-searchJP Dillingham-143/+245
2023-01-23Merge branch 'master' into relay-cleanupJP Dillingham-3/+1
2023-01-23Fixing #555 to allow browser reload to stay on the same page.Matt Goldspink-2/+5
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.
2023-01-23docsJP Dillingham-7/+6