diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-10-01 12:01:25 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2022-10-01 12:01:25 -0500 |
| commit | 09ba5e716c3431cf4db1a8eea954ca420f3f05d7 (patch) | |
| tree | 4dc759752db9a62498d257dc4f349006ee25e49c | |
| parent | 51baabd760922d3cc2f75a327d442b8ac95e780b (diff) | |
| parent | 92d48858aa02f4900b7fe695f2c23fa3e86c8d74 (diff) | |
| download | slskd-09ba5e716c3431cf4db1a8eea954ca420f3f05d7.tar.gz | |
Merge remote-tracking branch 'origin/master' into share-refactor
| -rw-r--r-- | CONTRIBUTING.md | 50 | ||||
| -rw-r--r-- | README.md | 32 | ||||
| -rw-r--r-- | src/slskd/Shares/ShareScanner.cs | 4 | ||||
| -rw-r--r-- | src/web/src/components/Transfers/Transfers.css | 3 |
4 files changed, 87 insertions, 2 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..e3de8bdc --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,50 @@ +# Contributing + +When contributing to this repository, please first discuss the change you wish to make via issue, +email, or any other method with the owners of this repository before making a change. + +We don't maintain a Contributor License Agreement (CLA) but we do require that anyone that wishes to contribute agrees to the following: + +* You have the right to assign the copyright of your contribution. +* By making your contribution, you are giving up copyright of your contribution. + +This application is released under the [AGPL 3.0](https://github.com/slskd/slskd/blob/master/LICENSE) license, and no single individual or entity owns +or will ever own the copyright. + +## Contribution Workflow + +1. Assign yourself to the issue that you'll be working on. If you'd like to contribute something for which there is no + existing issue, consider creating one before you start so we can discuss. +1. Clone the repository and `git checkout master` to ensure you are on the master branch. +1. Create a new branch for your change with `git checkout -b <your-branch-name>` be descriptive, but terse. +1. Make your changes. When finished, push your branch with `git push origin --set-upstream <your-branch-name>`. +1. Create a pull request to merge `<your-branch-name>` into `master`. +1. A maintainer will review your pull request and may make comments, ask questions, or request changes. When all + feedback has been addressed the pull request will be approved, and after all checks have passed it will be merged by + a maintainer, or you may merge it yourself if you have the necessary access. +1. Delete your branch, unless you plan to submit additional pull request from it. + +Note that we require that all branches are up to date with target branch prior to merging. If you see a message about this +on your pull request, use `git fetch` to retrieve the latest changes, `git merge origin/master` to merge the changes from master +into your local branch, then `git push` to update your branch. + +## Environment Setup + +You'll need [.NET 6.0](https://dotnet.microsoft.com/en-us/download) to build and run the back end (slskd), and you'll +need [Nodejs](https://nodejs.org/en/) to build and debug the front end (web). + +You're free to use whichever development tools you prefer. If you don't yet have a preference, we recommend the following: + +[Visual Studio Code](https://code.visualstudio.com/) for front or back end development. + +[Visual Studio](https://visualstudio.microsoft.com/downloads/) for back end development. + +## Debugging + +### Back End + +Run `./bin/watch` from the root of the repository. + +### Front End + +Run `./bin/watch --web` from the root of the directory. Make sure the back end is running first. @@ -9,6 +9,38 @@ A modern client-server application for the [Soulseek](https://www.slsknet.org/news/) file-sharing network. +## Features + +### Secure access + +slskd runs as a daemon or Docker container in your network (or in the cloud!) and is accessible from a web browser. It's designed to be exposed to the internet, and everything is secured with a token that [you can control](https://github.com/slskd/slskd/blob/master/docs/config.md#authentication). It also supports [reverse proxies](https://github.com/slskd/slskd/blob/master/docs/reverse_proxy.md), making it work well with other self-hosted tools. + + + +### Search + +Search for things just like you're used to with the official Soulseek client. slskd makes it easy to enter multiple searches quickly. + + + +### Results + +Sort and filter search results using the same filters you use today. Dismiss results you're not interested in, and download the ones you want in a couple of clicks. + + + +### Downloads + +Monitor the speed and status of downloads, grouped by user and folder. Click the progress bar to fetch your place in queue, and use the selection tools to cancel, retry, or clear completed downloads. Use the controls at the top to quickly manage downloads by status. + + + +### Pretty much everything else + +slskd can do almost everything the official Soulseek client can; browse user shares, join chat rooms, privately chat with other users. + +New features are added all the time! + ## Quick Start ### With Docker diff --git a/src/slskd/Shares/ShareScanner.cs b/src/slskd/Shares/ShareScanner.cs index 08a4a425..3edd84c1 100644 --- a/src/slskd/Shares/ShareScanner.cs +++ b/src/slskd/Shares/ShareScanner.cs @@ -164,12 +164,14 @@ namespace slskd.Shares { try { - return System.IO.Directory.GetDirectories(share.LocalPath, "*", new EnumerationOptions() + var directories = System.IO.Directory.GetDirectories(share.LocalPath, "*", new EnumerationOptions() { AttributesToSkip = FileAttributes.Hidden | FileAttributes.System, IgnoreInaccessible = true, RecurseSubdirectories = true, }); + + return directories.Where(directory => !filters.Any(filter => filter.IsMatch(directory))); } catch (Exception ex) { diff --git a/src/web/src/components/Transfers/Transfers.css b/src/web/src/components/Transfers/Transfers.css index 88f9e736..0b787f5f 100644 --- a/src/web/src/components/Transfers/Transfers.css +++ b/src/web/src/components/Transfers/Transfers.css @@ -1,13 +1,14 @@ .transfers-header-segment { margin-top: 15px !important; height: 78px !important; - padding-top: 20px !important; + padding-top: 14px !important; display: flex; } .transfers-segment-icon { padding-top: 5px; padding-right: 1em; + margin-top: 6px; } .transfers-header-action-button { |
