From 0061e82ecd62880d5db5c6e2935cbe62efabb6c3 Mon Sep 17 00:00:00 2001 From: jo Date: Fri, 18 Nov 2022 22:12:21 +0100 Subject: [PATCH] chore: clean files using pre-commit --- .gitlab/issue_templates/Default.md | 9 ++++----- .../merge_request_templates/Merge request.md | 2 +- .gitlab/renovate.json | 2 +- .gitpod/Dockerfile | 2 +- .gitpod/docker-compose.yml | 2 +- .pre-commit-config.yaml | 1 + .vscode/launch.json | 5 +---- api/.pylintrc | 4 ++-- api/funkwhale_api/users/rest_auth_urls.py | 2 +- api/manage.py | 3 ++- api/tests/music/licenses.json | 2 +- changes/changelog.d/1563-enhancement | 2 +- changes/changelog.d/1711.enhancement | 2 +- changes/changelog.d/1720.bugfix | 2 +- changes/changelog.d/1815.enhancement | 2 +- changes/changelog.d/1831.feature | 2 +- changes/changelog.d/1866.enchancement | 2 +- changes/changelog.d/1875.enchancement | 2 +- changes/changelog.d/1968.enhancement | 2 +- changes/changelog.d/auto-darkmode.enhancement | 2 +- changes/changelog.d/install-guides.enhancement | 2 +- changes/changelog.d/nodeinfo.enhancement | 2 +- .../changelog.d/scan_library_task.enhancement | 2 +- changes/notes.rst | 2 +- deploy/Gentoo/README.md | 4 ++-- deploy/Gentoo/funkwhale_beat | 8 ++++---- deploy/Gentoo/funkwhale_server | 0 deploy/Gentoo/funkwhale_worker | 8 ++++---- docs/Makefile | 2 +- .../configuration_docs/instance_settings.md | 2 +- .../configuration_docs/object_storage.md | 2 +- .../import_docs/index.md | 2 +- .../installation_docs/debian.md | 14 +++++++------- .../installation_docs/docker.md | 2 +- .../installation_docs/migrate.md | 2 +- .../manage_script/create_library.md | 2 +- docs/api/definitions.yml | 6 +++--- docs/api/parameters.yml | 6 +++--- docs/conf.py | 0 docs/developer_documentation/api/index.md | 2 +- docs/developer_documentation/contribute/api.md | 2 +- .../federation/index.md | 6 +++--- docs/developer_documentation/plugins/create.md | 10 +++++----- docs/glossary.md | 2 +- .../content/handle_edits.md | 2 +- .../internal_users/handle_registration.md | 8 ++++---- .../reports/internal_notes.md | 12 ++++++------ docs/serve.py | 0 docs/user_documentation/info/cli.rst | 4 ++-- docs/user_documentation/libraries/tag_music.md | 8 ++++---- .../playlists/add_content.md | 4 ++-- docs/user_documentation/radios/create_radio.md | 4 ++-- front/scripts/contextualize.py | 2 ++ front/scripts/fix-fomantic-css.py | 1 + front/scripts/fix-fomantic-css.sh | 2 +- front/scripts/print-duplicates-source.py | 2 ++ front/scripts/utils.sh | 2 +- front/src/assets/logo/logo.svg | 2 +- front/src/assets/logo/text.svg | 18 +++++++++--------- .../style/components/_attachment_input.scss | 2 +- front/src/style/components/_builder.scss | 2 +- front/src/style/components/_card.scss | 2 +- front/src/style/components/_form.scss | 2 +- front/src/style/components/_fs_browser.scss | 2 +- front/src/style/components/_fs_logs.scss | 2 +- front/src/style/components/_label.scss | 2 +- .../src/style/components/_play_indicator.scss | 6 +++--- front/src/style/components/_search.scss | 2 +- front/src/style/components/_track_table.scss | 4 ++-- front/src/style/components/_user_modal.scss | 2 +- front/src/style/globals/_app.scss | 2 +- front/src/style/globals/_typography.scss | 2 -- front/src/style/globals/_utils.scss | 2 +- front/src/style/pages/_about.scss | 6 +++--- front/src/style/pages/_artists.scss | 2 +- front/src/style/pages/_library.scss | 2 +- front/stats.json | 1 + scripts/check-api-deps.sh | 2 ++ scripts/clean-unused-artifacts.py | 2 ++ scripts/get-contributions-stats.py | 2 ++ scripts/is-docker-latest.py | 1 + 81 files changed, 137 insertions(+), 128 deletions(-) mode change 100644 => 100755 deploy/Gentoo/funkwhale_beat mode change 100644 => 100755 deploy/Gentoo/funkwhale_server mode change 100644 => 100755 deploy/Gentoo/funkwhale_worker mode change 100644 => 100755 docs/conf.py mode change 100644 => 100755 docs/serve.py mode change 100644 => 100755 front/scripts/contextualize.py mode change 100644 => 100755 front/scripts/print-duplicates-source.py mode change 100644 => 100755 front/scripts/utils.sh mode change 100644 => 100755 scripts/clean-unused-artifacts.py mode change 100644 => 100755 scripts/get-contributions-stats.py diff --git a/.gitlab/issue_templates/Default.md b/.gitlab/issue_templates/Default.md index 71b38bf37..4aaccea40 100644 --- a/.gitlab/issue_templates/Default.md +++ b/.gitlab/issue_templates/Default.md @@ -7,15 +7,15 @@ Before you begin, here are some helpful tips for submitting an issue: * If you need help setting up or using Funkwhale, try asking in our [forum's support board](https://forum.funkwhale.audio/support) or our [support chat room](https://riot.im/app/#/room/#funkwhale-support:tchncs.de). -* If you think you've found a bug but aren't sure, you can ask in one of the above channels - first. Once you're confident it's a bug, go ahead and create an issue for us to investigate. +* If you think you've found a bug but aren't sure, you can ask in one of the above channels + first. Once you're confident it's a bug, go ahead and create an issue for us to investigate. Select the **Bug** template in the **Description** dropdown menu. This template contains helpful tips for creating your report. * For smaller additions and enhancements, please file a feature request. Select the **Feature Request** template in the **Description** dropdown menu. This template contains helpful tips for creating your request. -* If you have ideas for new features or use cases, consider opening a thread in our - [forum](https://forum.funkwhale.audio/t/development). This enables us to +* If you have ideas for new features or use cases, consider opening a thread in our + [forum](https://forum.funkwhale.audio/t/development). This enables us to discuss the feature, its use cases, and the development effort it requires. We always like hearing ideas from our community. If you're still not sure, click @@ -24,4 +24,3 @@ the **Create issue** button and we'll work with you to sort out the issue. Happy listening! :whale: --> - diff --git a/.gitlab/merge_request_templates/Merge request.md b/.gitlab/merge_request_templates/Merge request.md index d7b1758d1..f83874d47 100644 --- a/.gitlab/merge_request_templates/Merge request.md +++ b/.gitlab/merge_request_templates/Merge request.md @@ -1,4 +1,4 @@ -Please avoid merging the base branch into your feature branch. We are working with rebases and those merged tend to cause trouble. +Please avoid merging the base branch into your feature branch. We are working with rebases and those merged tend to cause trouble. For further questions, join us at Matrix: https://matrix.to/#/#funkwhale-dev:matrix.org If your contribution is fixing an issue by a small change, please consider a merge into `stable` by using it as target branch. diff --git a/.gitlab/renovate.json b/.gitlab/renovate.json index 2f856218a..4f4a987ee 100644 --- a/.gitlab/renovate.json +++ b/.gitlab/renovate.json @@ -51,7 +51,7 @@ }, { "matchPackageNames": ["node"], - "allowedVersions": "/\d+[02468]$/" + "allowedVersions": "/\\d+[02468]$/" }, { "matchFiles": ["deploy/docker-compose.yml"], diff --git a/.gitpod/Dockerfile b/.gitpod/Dockerfile index 1603291a6..76d531f55 100644 --- a/.gitpod/Dockerfile +++ b/.gitpod/Dockerfile @@ -6,4 +6,4 @@ RUN sudo apt update -y \ RUN pip install poetry \ && poetry config virtualenvs.create true \ - && poetry config virtualenvs.in-project true \ No newline at end of file + && poetry config virtualenvs.in-project true diff --git a/.gitpod/docker-compose.yml b/.gitpod/docker-compose.yml index c4410e3cd..ad3d472f2 100644 --- a/.gitpod/docker-compose.yml +++ b/.gitpod/docker-compose.yml @@ -40,4 +40,4 @@ services: - ../deploy/funkwhale_proxy.conf:/etc/nginx/funkwhale_proxy.conf:ro - ../docker/nginx/conf.dev:/etc/nginx/nginx.conf.template:ro - ../docker/nginx/entrypoint.sh:/entrypoint.sh:ro - - ../front:/frontend:ro \ No newline at end of file + - ../front:/frontend:ro diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c4585b920..34a7535eb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,5 +20,6 @@ repos: - id: check-vcs-permalinks - id: check-merge-conflict - id: end-of-file-fixer + exclude: ^(docs/locales/.*/LC_MESSAGES) - id: mixed-line-ending - id: trailing-whitespace diff --git a/.vscode/launch.json b/.vscode/launch.json index fa20725c9..5c679250b 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,7 +1,4 @@ { - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { @@ -31,4 +28,4 @@ "django": true } ] -} \ No newline at end of file +} diff --git a/api/.pylintrc b/api/.pylintrc index 2117a3951..98584de45 100644 --- a/api/.pylintrc +++ b/api/.pylintrc @@ -1,5 +1,5 @@ [MASTER] -load-plugins=pylint_common, pylint_django, pylint_celery +load-plugins=pylint_common, pylint_django, pylint_celery [FORMAT] max-line-length=120 @@ -8,4 +8,4 @@ max-line-length=120 disable=missing-docstring,invalid-name [DESIGN] -max-parents=13 \ No newline at end of file +max-parents=13 diff --git a/api/funkwhale_api/users/rest_auth_urls.py b/api/funkwhale_api/users/rest_auth_urls.py index 8733116b9..446b69e4f 100644 --- a/api/funkwhale_api/users/rest_auth_urls.py +++ b/api/funkwhale_api/users/rest_auth_urls.py @@ -46,7 +46,7 @@ urlpatterns = [ # with proper key. # If you don't want to use API on that step, then just use ConfirmEmailView # view from: - # djang-allauth https://github.com/pennersr/django-allauth/blob/master/allauth/account/views.py#L190 + # https://github.com/pennersr/django-allauth/blob/a62a370681/allauth/account/views.py#L291 url( r"^registration/account-confirm-email/(?P\w+)/?$", TemplateView.as_view(), diff --git a/api/manage.py b/api/manage.py index 8331a33ec..8b855fa71 100755 --- a/api/manage.py +++ b/api/manage.py @@ -1,4 +1,5 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 + import django import os import sys diff --git a/api/tests/music/licenses.json b/api/tests/music/licenses.json index 4b6251c07..f5a7ca9b7 100644 --- a/api/tests/music/licenses.json +++ b/api/tests/music/licenses.json @@ -4549,4 +4549,4 @@ "http://creativecommons.org/publicdomain/zero/1.0/" ] } -] \ No newline at end of file +] diff --git a/changes/changelog.d/1563-enhancement b/changes/changelog.d/1563-enhancement index dd31a1c79..bc0699843 100644 --- a/changes/changelog.d/1563-enhancement +++ b/changes/changelog.d/1563-enhancement @@ -1 +1 @@ -Adding support for play all radio in search result page (#1563) \ No newline at end of file +Adding support for play all radio in search result page (#1563) diff --git a/changes/changelog.d/1711.enhancement b/changes/changelog.d/1711.enhancement index 8d13a6f80..913939dd9 100644 --- a/changes/changelog.d/1711.enhancement +++ b/changes/changelog.d/1711.enhancement @@ -1 +1 @@ -New task checking if remote instance is reachable to avoid playback latence (#1711) \ No newline at end of file +New task checking if remote instance is reachable to avoid playback latence (#1711) diff --git a/changes/changelog.d/1720.bugfix b/changes/changelog.d/1720.bugfix index 2bd54307a..5a804da06 100644 --- a/changes/changelog.d/1720.bugfix +++ b/changes/changelog.d/1720.bugfix @@ -1 +1 @@ -Hide create custom radio to un-authenticated users (#1720) \ No newline at end of file +Hide create custom radio to un-authenticated users (#1720) diff --git a/changes/changelog.d/1815.enhancement b/changes/changelog.d/1815.enhancement index 5e481a0dd..689ec0cfa 100644 --- a/changes/changelog.d/1815.enhancement +++ b/changes/changelog.d/1815.enhancement @@ -1 +1 @@ -Update migration after django update (#1815) \ No newline at end of file +Update migration after django update (#1815) diff --git a/changes/changelog.d/1831.feature b/changes/changelog.d/1831.feature index ed6dd552c..36abc2a28 100644 --- a/changes/changelog.d/1831.feature +++ b/changes/changelog.d/1831.feature @@ -1 +1 @@ -Add Gitpod configuration and guide \ No newline at end of file +Add Gitpod configuration and guide diff --git a/changes/changelog.d/1866.enchancement b/changes/changelog.d/1866.enchancement index 4ac75b748..3984d3256 100644 --- a/changes/changelog.d/1866.enchancement +++ b/changes/changelog.d/1866.enchancement @@ -1 +1 @@ -Add playable tracks to gitpod instance \ No newline at end of file +Add playable tracks to gitpod instance diff --git a/changes/changelog.d/1875.enchancement b/changes/changelog.d/1875.enchancement index 0026c1ff4..5d1140f54 100644 --- a/changes/changelog.d/1875.enchancement +++ b/changes/changelog.d/1875.enchancement @@ -1 +1 @@ -Add python debug and test support for gitpod \ No newline at end of file +Add python debug and test support for gitpod diff --git a/changes/changelog.d/1968.enhancement b/changes/changelog.d/1968.enhancement index 0eddf3d02..ea6e5e7dc 100644 --- a/changes/changelog.d/1968.enhancement +++ b/changes/changelog.d/1968.enhancement @@ -1 +1 @@ -Add playlists radio to search page (#1968) \ No newline at end of file +Add playlists radio to search page (#1968) diff --git a/changes/changelog.d/auto-darkmode.enhancement b/changes/changelog.d/auto-darkmode.enhancement index 3e0b2c364..1657bfdd2 100644 --- a/changes/changelog.d/auto-darkmode.enhancement +++ b/changes/changelog.d/auto-darkmode.enhancement @@ -1 +1 @@ -Allow using default browser dark mode and update UI dynamically on change \ No newline at end of file +Allow using default browser dark mode and update UI dynamically on change diff --git a/changes/changelog.d/install-guides.enhancement b/changes/changelog.d/install-guides.enhancement index 75287d06f..8b82eaede 100644 --- a/changes/changelog.d/install-guides.enhancement +++ b/changes/changelog.d/install-guides.enhancement @@ -1 +1 @@ -Updated the installation guides to make installation steps clearer. \ No newline at end of file +Updated the installation guides to make installation steps clearer. diff --git a/changes/changelog.d/nodeinfo.enhancement b/changes/changelog.d/nodeinfo.enhancement index d125fedf6..5abe3273a 100644 --- a/changes/changelog.d/nodeinfo.enhancement +++ b/changes/changelog.d/nodeinfo.enhancement @@ -1 +1 @@ -Refactor node info endpoint to use proper serializers \ No newline at end of file +Refactor node info endpoint to use proper serializers diff --git a/changes/changelog.d/scan_library_task.enhancement b/changes/changelog.d/scan_library_task.enhancement index 5c70ef040..a5a4ecaa8 100644 --- a/changes/changelog.d/scan_library_task.enhancement +++ b/changes/changelog.d/scan_library_task.enhancement @@ -1 +1 @@ -Add a celery task to scan remote library (#1712) \ No newline at end of file +Add a celery task to scan remote library (#1712) diff --git a/changes/notes.rst b/changes/notes.rst index d11ca6c99..81fe48fae 100644 --- a/changes/notes.rst +++ b/changes/notes.rst @@ -52,4 +52,4 @@ API breaking change in ``/api/v1/albums`` To increase performance, querying ``/api/v1/albums`` doesn't return album tracks anymore. This caused some performance issues, especially as some albums and series have dozens or even hundreds of tracks. -If you want to retrieve tracks for an album, you can query ``/api/v1/tracks/?album=``. \ No newline at end of file +If you want to retrieve tracks for an album, you can query ``/api/v1/tracks/?album=``. diff --git a/deploy/Gentoo/README.md b/deploy/Gentoo/README.md index b4f90b660..1c04f8729 100644 --- a/deploy/Gentoo/README.md +++ b/deploy/Gentoo/README.md @@ -1,4 +1,4 @@ -### Gentoo init scripts +### Gentoo init scripts Copy the files to `/etc/init.d/` @@ -16,4 +16,4 @@ Starting funkwhale_server will automatically start the other two, as well as ngi ``` # rc-service funkwhale_server start -``` \ No newline at end of file +``` diff --git a/deploy/Gentoo/funkwhale_beat b/deploy/Gentoo/funkwhale_beat old mode 100644 new mode 100755 index 49d427437..5e4fdd95a --- a/deploy/Gentoo/funkwhale_beat +++ b/deploy/Gentoo/funkwhale_beat @@ -2,18 +2,18 @@ NAME=funkwhalebeat PIDFILE=/var/run/$NAME.pid USER=funkwhale -WORKDIR=/srv/funkwhale/api -Celery=/srv/funkwhale/virtualenv/bin/celery +WORKDIR=/srv/funkwhale/api +Celery=/srv/funkwhale/virtualenv/bin/celery BEAT_ARGS="-A funkwhale_api.taskapp beat -l INFO" depend() { - need net + need net } start() { ebegin "Starting Funkwhale Beat" cd /srv/funkwhale/api set -a && source /srv/funkwhale/config/.env && set +a - echo ' start beat' + echo ' start beat' start-stop-daemon --start --user $USER --make-pidfile --pidfile $PIDFILE -d $WORKDIR --exec $Celery -- $BEAT_ARGS >> /var/log/funk/worker.log 2>&1& echo 'Started Beat' echo diff --git a/deploy/Gentoo/funkwhale_server b/deploy/Gentoo/funkwhale_server old mode 100644 new mode 100755 diff --git a/deploy/Gentoo/funkwhale_worker b/deploy/Gentoo/funkwhale_worker old mode 100644 new mode 100755 index faa54f292..daca4d94d --- a/deploy/Gentoo/funkwhale_worker +++ b/deploy/Gentoo/funkwhale_worker @@ -2,19 +2,19 @@ NAME=funkwhaleworker PIDFILE=/var/run/$NAME.pid USER=funkwhale -WORKDIR=/srv/funkwhale/api -Celery=/srv/funkwhale/virtualenv/bin/celery +WORKDIR=/srv/funkwhale/api +Celery=/srv/funkwhale/virtualenv/bin/celery WORKER_ARGS=" -A funkwhale_api.taskapp worker -l INFO" depend() { - need net + need net } start() { ebegin "Starting Funkwhale Worker" cd /srv/funkwhale/api set -a && source /srv/funkwhale/config/.env && set +a - echo ' start beat' + echo ' start beat' start-stop-daemon --start --user $USER --make-pidfile --pidfile $PIDFILE -d $WORKDIR --exec $Celery -- $WORKER_ARGS >> /var/log/funk/worker.log 2>&1& echo 'Started Worker' echo diff --git a/docs/Makefile b/docs/Makefile index 38a09780a..e87d7aea0 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -17,4 +17,4 @@ help: # Catch-all target: route all unknown targets to Sphinx using the new # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). %: Makefile - @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) \ No newline at end of file + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) diff --git a/docs/administrator_documentation/configuration_docs/instance_settings.md b/docs/administrator_documentation/configuration_docs/instance_settings.md index bd936dad4..663105234 100644 --- a/docs/administrator_documentation/configuration_docs/instance_settings.md +++ b/docs/administrator_documentation/configuration_docs/instance_settings.md @@ -148,7 +148,7 @@ Publish your allowed-domains list Whether to make your list of allowed domains public. Enable this if you want users to check who you are federating with. Accountless report categories - A list of {term}`categories ` that {term}`anonymous` users can submit. + A list of {term}`categories ` that {term}`anonymous` users can submit. ``` diff --git a/docs/administrator_documentation/configuration_docs/object_storage.md b/docs/administrator_documentation/configuration_docs/object_storage.md index d48160210..df45f7a85 100644 --- a/docs/administrator_documentation/configuration_docs/object_storage.md +++ b/docs/administrator_documentation/configuration_docs/object_storage.md @@ -131,7 +131,7 @@ Serving files from an object store requires some changes to the reverse proxy. 4. Add your S3 store URL to the `img-src` and `media-src` headers. ```{code-block} text - add_header Content-Security-Policy "...img-src 'self' https:// data:;...media-src https:// 'self' data:"; + add_header Content-Security-Policy "...img-src 'self' https:// data:;...media-src https:// 'self' data:"; ``` 5. Test your Nginx configuration. diff --git a/docs/administrator_documentation/import_docs/index.md b/docs/administrator_documentation/import_docs/index.md index 589d62cca..994bd50df 100644 --- a/docs/administrator_documentation/import_docs/index.md +++ b/docs/administrator_documentation/import_docs/index.md @@ -260,7 +260,7 @@ docker-compose run --rm api python manage.py import_files $LIBRARY_ID "/srv/funk Funkwhale doesn't delete track metadata when you delete a track. This is useful if you want to delete a file but keep a record of a track for created playlists or favorites. -If you want to remove the file's metadata when you delete the file, run `import_files` with the `--prune` flag. This flag removes the metadata of any +If you want to remove the file's metadata when you delete the file, run `import_files` with the `--prune` flag. This flag removes the metadata of any ```{note} You can use the `--prune` flag with the `--watch` flag. This means Funkwhale removes the metadata of referenced files you delete from your storage. diff --git a/docs/administrator_documentation/installation_docs/debian.md b/docs/administrator_documentation/installation_docs/debian.md index f398cdf5f..0c6fcb607 100644 --- a/docs/administrator_documentation/installation_docs/debian.md +++ b/docs/administrator_documentation/installation_docs/debian.md @@ -86,7 +86,7 @@ That's it! Your directory structure should look like this: ├── data # files served by the API └── static # storage location for persistent data └── media # storage location for media files - └── music # storage location for audio files + └── music # storage location for audio files └── front # frontend files for the user interface ``` @@ -98,17 +98,17 @@ Once you've created the directory structure you can download Funkwhale. Funkwhal ```{code-block} sh curl -L -o "api-$FUNKWHALE_VERSION.zip" "https://dev.funkwhale.audio/funkwhale/funkwhale/-/jobs/artifacts/$FUNKWHALE_VERSION/download?job=build_api" - unzip "api-$FUNKWHALE_VERSION.zip" -d extracted - mv extracted/api/* api/ + unzip "api-$FUNKWHALE_VERSION.zip" -d extracted + mv extracted/api/* api/ rm -rf extracted api-$FUNKWHALE_VERSION.zip ``` 2. Download the frontend ```{code-block} sh - curl -L -o "front-$FUNKWHALE_VERSION.zip" "https://dev.funkwhale.audio/funkwhale/funkwhale/-/jobs/artifacts/$FUNKWHALE_VERSION/download?job=build_front" - unzip "front-$FUNKWHALE_VERSION.zip" -d extracted - mv extracted/front . + curl -L -o "front-$FUNKWHALE_VERSION.zip" "https://dev.funkwhale.audio/funkwhale/funkwhale/-/jobs/artifacts/$FUNKWHALE_VERSION/download?job=build_front" + unzip "front-$FUNKWHALE_VERSION.zip" -d extracted + mv extracted/front . rm -rf extracted front-$FUNKWHALE_VERSION.zip ``` @@ -332,7 +332,7 @@ Funkwhale uses a reverse proxy to serve content to users. We use [Nginx](https:/ # Log in to a root shell. sudo su - + # Create an Nginx configuration using the Funkwhale template with details from your `.env` file. set -a && source /srv/funkwhale/config/.env && set +a diff --git a/docs/administrator_documentation/installation_docs/docker.md b/docs/administrator_documentation/installation_docs/docker.md index 8cb01c332..5b4387d0d 100644 --- a/docs/administrator_documentation/installation_docs/docker.md +++ b/docs/administrator_documentation/installation_docs/docker.md @@ -161,7 +161,7 @@ Funkwhale uses a reverse proxy to serve content to users. We use [Nginx](https:/ # Log in to a root shell. sudo su - + # Create an Nginx configuration using the Funkwhale template with details from your `.env` file. set -a && source /srv/funkwhale/.env && set +a diff --git a/docs/administrator_documentation/installation_docs/migrate.md b/docs/administrator_documentation/installation_docs/migrate.md index 438fa17b6..ca9a26d1b 100644 --- a/docs/administrator_documentation/installation_docs/migrate.md +++ b/docs/administrator_documentation/installation_docs/migrate.md @@ -157,7 +157,7 @@ You need to initialize the postgres container on your {term}`destination server` CREATE USER funkwhale; \ GRANT ALL PRIVILEGES ON DATABASE funkwhale TO funkwhale;" > init.sql # Create an init.sql file with the correct permissions - docker-compose run --rm postgres psql -U postgres -d postgres < "init.sql" # Import the init.sql file + docker-compose run --rm postgres psql -U postgres -d postgres < "init.sql" # Import the init.sql file ``` 2. Import your database backup. diff --git a/docs/administrator_documentation/manage_script/create_library.md b/docs/administrator_documentation/manage_script/create_library.md index 0963b9431..327c393be 100644 --- a/docs/administrator_documentation/manage_script/create_library.md +++ b/docs/administrator_documentation/manage_script/create_library.md @@ -19,7 +19,7 @@ Use the `create_library` command to create new libraries for a given user. * - `--privacy-level` - Enum (String) - - The [privacy level](../../user_documentation/libraries/create_library.md) of the library + - The [privacy level](../../user_documentation/libraries/create_library.md) of the library - `"me"` (default) - `"instance"` - `"everyone"` diff --git a/docs/api/definitions.yml b/docs/api/definitions.yml index 25abbc7a4..91353613a 100644 --- a/docs/api/definitions.yml +++ b/docs/api/definitions.yml @@ -856,7 +856,7 @@ RadioSessionCreate: description: | The type of radio to start. Depending of the type, the `related_object_id` field will need to be set to a non null value: - + - tag: tag `name` - artist: artist `id` - library: library `uuid` @@ -870,9 +870,9 @@ RadioSessionCreate: - less-listened - actor-content - library - + related_object_id: - type: string + type: string default: null description: Value may be an integer depending of the `radio_type`. diff --git a/docs/api/parameters.yml b/docs/api/parameters.yml index e40787298..e7e2557c5 100644 --- a/docs/api/parameters.yml +++ b/docs/api/parameters.yml @@ -78,7 +78,7 @@ Library: schema: type: string format: uuid - + ObjectId: name: id in: path @@ -145,7 +145,7 @@ Related: type: integer format: int64 - + Scope: name: "scope" in: "query" @@ -175,7 +175,7 @@ ContentCategory: in: "query" description: | Limits the results to those whose artist content type matches the query. - + required: false schema: type: "string" diff --git a/docs/conf.py b/docs/conf.py old mode 100644 new mode 100755 diff --git a/docs/developer_documentation/api/index.md b/docs/developer_documentation/api/index.md index 07c63ae04..e5e9ef9b2 100644 --- a/docs/developer_documentation/api/index.md +++ b/docs/developer_documentation/api/index.md @@ -15,4 +15,4 @@ authentication rate_limit subsonic -``` \ No newline at end of file +``` diff --git a/docs/developer_documentation/contribute/api.md b/docs/developer_documentation/contribute/api.md index 87d03eae7..af7e0ba74 100644 --- a/docs/developer_documentation/contribute/api.md +++ b/docs/developer_documentation/contribute/api.md @@ -147,4 +147,4 @@ You can check the full list of options by passing the `-h` flag: ```sh docker-compose -f dev.yml run --rm api pytest -h -``` \ No newline at end of file +``` diff --git a/docs/developer_documentation/federation/index.md b/docs/developer_documentation/federation/index.md index 1a18bc149..ef28bd688 100644 --- a/docs/developer_documentation/federation/index.md +++ b/docs/developer_documentation/federation/index.md @@ -210,7 +210,7 @@ In this example, **Alice** notifies **Bob** that she's undoing her follow. See [the `Audio` object reference](#audio) for details on the object's structure. ``` -When Funkwhale receives a `Create` activity with an [`Audio` object](#audio), it persists a local upload in the database. It then associates the upload to related library and track information. If no track matches the audio metadata, Funkwhale creates on using the `metadata` attribute in the object. +When Funkwhale receives a `Create` activity with an [`Audio` object](#audio), it persists a local upload in the database. It then associates the upload to related library and track information. If no track matches the audio metadata, Funkwhale creates on using the `metadata` attribute in the object. #### Checks @@ -363,7 +363,7 @@ In this example, **Bob** deletes three audio objects in a library and notifies t ### Artist -An `Artist` is a custom object used to store musical artist and podcast creator information. +An `Artist` is a custom object used to store musical artist and podcast creator information. #### Properties @@ -404,7 +404,7 @@ An `Artist` is a custom object used to store musical artist and podcast creator ### Album -An `Album` is a custom object used to store album and podcast series information. +An `Album` is a custom object used to store album and podcast series information. #### Properties diff --git a/docs/developer_documentation/plugins/create.md b/docs/developer_documentation/plugins/create.md index f65cb2632..7812a5941 100644 --- a/docs/developer_documentation/plugins/create.md +++ b/docs/developer_documentation/plugins/create.md @@ -100,16 +100,16 @@ Your `plugins` should include the following information: * - `name` - String - The name of your plugin, used in the `.env` file - * - `label` + * - `label` - String - The readable label that appears in the Funkwhale frontend - * - `description` + * - `description` - String - A meaningful description of your plugin and what it does - * - `version` + * - `version` - String - The version number of your plugin - * - `user` + * - `user` - Boolean - Whether the plugin is a **user-level** plugin or a **pod-level** plugin. See [scopes](#scopes) for more information * - `conf` @@ -197,4 +197,4 @@ Here is an example of how the above plugin works: 1. User "Harry" enables the plugin 2. "Harry" changes the greeting to "You're a wizard" 3. "Harry" visits the `/greeting` endpoint in their browser -4. The browser returns the message "You're a wizard Harry" +4. The browser returns the message "You're a wizard Harry" diff --git a/docs/glossary.md b/docs/glossary.md index eb2d29ee9..b19921863 100644 --- a/docs/glossary.md +++ b/docs/glossary.md @@ -17,7 +17,7 @@ Permissions Additional rights that an administrator/moderator can grant to a user. Permissions grant access to menus and actions in Funkwhale. Available permissions: - + - {guilabel}`Moderation` – Grants access to the {guilabel}`Moderation` menu. Enables the user to moderate users, domains, and the allow-list. - {guilabel}`Manage library` – Grants access to the {guilabel}`Library` menu. Enables the user to make changes to library content. This includes deleting local objects and handling edit suggestions. - {guilabel}`Manage instance-level settings` – Grants access to the {guilabel}`Settings` menu. Enables the user to make changes to pod-level settings such as security settings and API behavior. diff --git a/docs/moderator_documentation/content/handle_edits.md b/docs/moderator_documentation/content/handle_edits.md index b8d0d5d88..e264d2f9e 100644 --- a/docs/moderator_documentation/content/handle_edits.md +++ b/docs/moderator_documentation/content/handle_edits.md @@ -1,7 +1,7 @@ # Handle edits ```{note} -Users can edit content in their own libraries. Moderators don't need to approve these edits. The edits appear in the __Edits__ queue to give admins and moderators a full timeline of changes. +Users can edit content in their own libraries. Moderators don't need to approve these edits. The edits appear in the __Edits__ queue to give admins and moderators a full timeline of changes. ``` Users can suggest metadata edits on objects they can access. When a user suggests an edit, it's sent to the __Edits__ queue for review. Moderators and pod admins can accept or reject these edits. diff --git a/docs/moderator_documentation/internal_users/handle_registration.md b/docs/moderator_documentation/internal_users/handle_registration.md index 877ddb331..f038e0f03 100644 --- a/docs/moderator_documentation/internal_users/handle_registration.md +++ b/docs/moderator_documentation/internal_users/handle_registration.md @@ -35,7 +35,7 @@ To approve a sign-up request: 2. Select the wrench icon ({fa}`wrench`) at the top of the sidebar to open the {guilabel}`Administration` menu. 3. Select {guilabel}`Moderation`. The {guilabel}`Reports` page opens. 4. Select {guilabel}`User Requests` at the top of the screen. A list of pending requests appears. -5. Read through the details of the request. +5. Read through the details of the request. 6. Select {guilabel}`Approve` in the {guilabel}`Actions` section. ::: @@ -47,7 +47,7 @@ To approve a sign-up request: 2. Select the wrench icon ({fa}`wrench`) at the top of the screen to open the {guilabel}`Administration` menu. 3. Select {guilabel}`Moderation`. The {guilabel}`Reports` page opens. 4. Select {guilabel}`User Requests` at the top of the screen. A list of pending requests appears. -5. Read through the details of the request. +5. Read through the details of the request. 6. Select {guilabel}`Approve` in the {guilabel}`Actions` section. ::: @@ -68,7 +68,7 @@ To refuse a sign-up request: 2. Select the wrench icon ({fa}`wrench`) at the top of the sidebar to open the {guilabel}`Administration` menu. 3. Select {guilabel}`Moderation`. The {guilabel}`Reports` page opens. 4. Select {guilabel}`User Requests` at the top of the screen. A list of pending requests appears. -5. Read through the details of the request. +5. Read through the details of the request. 6. Select {guilabel}`Refuse` in the {guilabel}`Actions` section. ::: @@ -80,7 +80,7 @@ To refuse a sign-up request: 2. Select the wrench icon ({fa}`wrench`) at the top of the screen to open the {guilabel}`Administration` menu. 3. Select {guilabel}`Moderation`. The {guilabel}`Reports` page opens. 4. Select {guilabel}`User Requests` at the top of the screen. A list of pending requests appears. -5. Read through the details of the request. +5. Read through the details of the request. 6. Select {guilabel}`Refuse` in the {guilabel}`Actions` section. ::: diff --git a/docs/moderator_documentation/reports/internal_notes.md b/docs/moderator_documentation/reports/internal_notes.md index 21415b685..4318cf40d 100644 --- a/docs/moderator_documentation/reports/internal_notes.md +++ b/docs/moderator_documentation/reports/internal_notes.md @@ -18,7 +18,7 @@ You can add notes to __Unresolved__ and __Resolved__ reports. To add an internal :sync: desktop 1. Log in to your {term}`pod`. -2. Select the wrench icon ({fa}`wrench`) at the top of the sidebar to open the {guilabel}`Administration` menu. +2. Select the wrench icon ({fa}`wrench`) at the top of the sidebar to open the {guilabel}`Administration` menu. 3. Select {guilabel}`Moderation`. The {guilabel}`Reports` page opens. 4. [Search for the report](search_reports.md). 5. {guilabel}`Write` your note in the {guilabel}`Internal notes` section. This input field supports Markdown syntax. You can {guilabel}`Preview` how the note will look to other users. @@ -29,8 +29,8 @@ You can add notes to __Unresolved__ and __Resolved__ reports. To add an internal :::{tab-item} Mobile :sync: mobile -1. Log in to your {term}`pod`. -2. Select the wrench icon ({fa}`wrench`) at the top of the screen to open the {guilabel}`Administration` menu. +1. Log in to your {term}`pod`. +2. Select the wrench icon ({fa}`wrench`) at the top of the screen to open the {guilabel}`Administration` menu. 3. Select {guilabel}`Moderation`. The {guilabel}`Reports` page opens. 4. [Search for the report](search_reports.md). 5. {guilabel}`Write` your note in the {guilabel}`Internal notes` section. This input field supports Markdown syntax. You can {guilabel}`Preview` how the note will look to other users. @@ -52,8 +52,8 @@ You can delete your own notes and the notes of other moderators. You can do this :::{tab-item} Desktop :sync: desktop -1. Log in to your {term}`pod`. -2. Select the wrench icon ({fa}`wrench`) at the top of the sidebar to open the {guilabel}`Administration` menu. +1. Log in to your {term}`pod`. +2. Select the wrench icon ({fa}`wrench`) at the top of the sidebar to open the {guilabel}`Administration` menu. 3. Select {guilabel}`Moderation`. The {guilabel}`Reports` page opens. 4. [Search for the report](search_reports.md). 5. Find the note you want to delete in the {guilabel}`Internal notes` section. @@ -65,7 +65,7 @@ You can delete your own notes and the notes of other moderators. You can do this :sync: mobile 1. Log in to your {term}`pod`. -2. Select the wrench icon ({fa}`wrench`) at the top of the screen to open the {guilabel}`Administration` menu. +2. Select the wrench icon ({fa}`wrench`) at the top of the screen to open the {guilabel}`Administration` menu. 3. Select {guilabel}`Moderation`. The {guilabel}`Reports` page opens. 4. [Search for the report](search_reports.md). 5. Find the note you want to delete in the {guilabel}`Internal notes` section. diff --git a/docs/serve.py b/docs/serve.py old mode 100644 new mode 100755 diff --git a/docs/user_documentation/info/cli.rst b/docs/user_documentation/info/cli.rst index 75f7acae2..dde6a426a 100644 --- a/docs/user_documentation/info/cli.rst +++ b/docs/user_documentation/info/cli.rst @@ -66,7 +66,7 @@ To get the help of a specific namespace and list all its available commands, sim Authentication -------------- -The CLI uses Oauth tokens to interact with the API. +The CLI uses Oauth tokens to interact with the API. To get started, you need to create an application for the CLI. To do this: @@ -76,7 +76,7 @@ To get started, you need to create an application for the CLI. To do this: 4. Scroll down to the :guilabel:`Your applications` section. 5. Select :guilabel:`Register a new application` to create a new application. 6. Give your application an appropriate name (e.g. "Funkwhale CLI"). -7. Give your application the permissions you require. +7. Give your application the permissions you require. 8. Select :guilabel:`Create application`. A screen appears showing :guilabel:`Application details`. 9. Copy the app's :guilabel:`Access token`. diff --git a/docs/user_documentation/libraries/tag_music.md b/docs/user_documentation/libraries/tag_music.md index 66cc991ae..30f47f5d7 100644 --- a/docs/user_documentation/libraries/tag_music.md +++ b/docs/user_documentation/libraries/tag_music.md @@ -32,7 +32,7 @@ This guide shows you how to tag your content with MusicBrainz Picard. - The album artist name (can be different than the track artist). - `Trent Reznor` * - `Genre` - - A comma separated list of tags to associate with the track. + - A comma separated list of tags to associate with the track. Other supported separators: `;` and `/`. - `Industrial, Metal` * - `Track number` @@ -45,16 +45,16 @@ This guide shows you how to tag your content with MusicBrainz Picard. - The release date of the track or album. - `2019` * - `License` - - The license associated with this work. + - The license associated with this work. The first URL found is checked against our list of supported licenses. - `CC-BY 3.0: http://creativecommons.org/licenses/cc-by/3.0/` * - `Copyright` - - The license associated with this work. The first URL found is checked against our list of supported licenses. + - The license associated with this work. The first URL found is checked against our list of supported licenses. Used if no license found in the `License` tag. - `CC-BY 3.0: http://creativecommons.org/licenses/cc-by/3.0/` * - `Pictures` - The first embeded picture found is used as the album cover. - - + - * - `MusicBrainz Recording ID` - The MusicBrainz ID for the recording. - `99244237-850b-4a93-904d-57305bcadb4e` diff --git a/docs/user_documentation/playlists/add_content.md b/docs/user_documentation/playlists/add_content.md index 3253bfb28..0b4156335 100644 --- a/docs/user_documentation/playlists/add_content.md +++ b/docs/user_documentation/playlists/add_content.md @@ -69,7 +69,7 @@ That's it! You've added the contents from your queue to a playlist. You can add a track to a playlist from the track details page. To do this: 1. Go to the track details page of the track you want to add. -2. Select the playlist icon ({fa}`list`) at the top of the screen. The {guilabel}`Manage playlists` screen appears. +2. Select the playlist icon ({fa}`list`) at the top of the screen. The {guilabel}`Manage playlists` screen appears. 3. Select {guilabel}`+ Add track` next to the playlist you want to add the track to. That's it! The track is available in your playlist. @@ -80,7 +80,7 @@ You can add tracks from any page with a track table. This includes artist pages, 1. Find your track in a track table. 2. Select the kebab menu ({fa}`ellipsis-v`) next to the track to open the track options menu. -3. Select {guilabel}`Add to playlist…`. The {guilabel}`Manage playlists` screen appears. +3. Select {guilabel}`Add to playlist…`. The {guilabel}`Manage playlists` screen appears. 4. Select {guilabel}`+ Add track` next to the playlist you want to add the track to. Well done! You've added the track to your playlist. diff --git a/docs/user_documentation/radios/create_radio.md b/docs/user_documentation/radios/create_radio.md index 5bae409c2..f3127b909 100644 --- a/docs/user_documentation/radios/create_radio.md +++ b/docs/user_documentation/radios/create_radio.md @@ -22,7 +22,7 @@ To create a new radio: 7. Select {guilabel}`Add filter` to add the filter to your radio. 8. Configure your filter: 1. Enable the {guilabel}`Exclude` switch to exclude results from your selection in the radio. Disable this switch to include results from your selection in the radio. - 2. Choose your __Artists__ or __Tags__ in the {guilabel}`Config` dropdown menu. + 2. Choose your __Artists__ or __Tags__ in the {guilabel}`Config` dropdown menu. 3. The {guilabel}`Candidates` column shows the number of tracks included. Select the {guilabel}`{count} tracks matching filter` option to view some of these tracks. 9. Check the tracks under the {guilabel}`{count} tracks matching combined filters` section. 10. Select {guilabel}`Save` to save your radio. @@ -42,7 +42,7 @@ To create a new radio: 8. Select {guilabel}`Add filter` to add the filter to your radio. 9. Configure your filter: 1. Enable the {guilabel}`Exclude` switch to exclude results from your selection in the radio. Disable this switch to include results from your selection in the radio. - 2. Choose your __Artists__ or __Tags__ in the {guilabel}`Config` dropdown menu. + 2. Choose your __Artists__ or __Tags__ in the {guilabel}`Config` dropdown menu. 3. The {guilabel}`Candidates` column shows the number of tracks included. Select the {guilabel}`{count} tracks matching filter` option to view some of these tracks. 10. Check the tracks under the {guilabel}`{count} tracks matching combined filters` section. 11. Select {guilabel}`Save` to save your radio. diff --git a/front/scripts/contextualize.py b/front/scripts/contextualize.py old mode 100644 new mode 100755 index edff72145..e3e08c076 --- a/front/scripts/contextualize.py +++ b/front/scripts/contextualize.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + import argparse import polib diff --git a/front/scripts/fix-fomantic-css.py b/front/scripts/fix-fomantic-css.py index eb5b3d156..4ea40f1b4 100755 --- a/front/scripts/fix-fomantic-css.py +++ b/front/scripts/fix-fomantic-css.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 + """ This scripts handles all the heavy-lifting of parsing CSS files from ``fomantic-ui-css`` and: diff --git a/front/scripts/fix-fomantic-css.sh b/front/scripts/fix-fomantic-css.sh index 30a63d918..76ec60971 100755 --- a/front/scripts/fix-fomantic-css.sh +++ b/front/scripts/fix-fomantic-css.sh @@ -9,4 +9,4 @@ sed -i '/@import url(/d' node_modules/fomantic-ui-css/components/site.css echo "Replacing hardcoded values by CSS vars…" scripts/fix-fomantic-css.py node_modules/fomantic-ui-css node_modules/fomantic-ui-css/tweaked echo 'Fixing jQuery import…' -sed -i '1s/^/import jQuery from "jquery"\n/' `find node_modules/fomantic-ui-css/ -name '*.js'` \ No newline at end of file +sed -i '1s/^/import jQuery from "jquery"\n/' `find node_modules/fomantic-ui-css/ -name '*.js'` diff --git a/front/scripts/print-duplicates-source.py b/front/scripts/print-duplicates-source.py old mode 100644 new mode 100755 index 32526c257..f28b3a1a7 --- a/front/scripts/print-duplicates-source.py +++ b/front/scripts/print-duplicates-source.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + import argparse import collections import polib diff --git a/front/scripts/utils.sh b/front/scripts/utils.sh old mode 100644 new mode 100755 index 2c8fd476a..727318948 --- a/front/scripts/utils.sh +++ b/front/scripts/utils.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash -S -eux +#!/usr/bin/env -S bash -eux npm_binaries () { command -v yarn > /dev/null && yarn bin || npm bin diff --git a/front/src/assets/logo/logo.svg b/front/src/assets/logo/logo.svg index fe3141b68..95a2afe18 100644 --- a/front/src/assets/logo/logo.svg +++ b/front/src/assets/logo/logo.svg @@ -88,4 +88,4 @@ style="fill:#3c3c3b" /> - \ No newline at end of file + diff --git a/front/src/assets/logo/text.svg b/front/src/assets/logo/text.svg index b09a620de..97684b3dc 100644 --- a/front/src/assets/logo/text.svg +++ b/front/src/assets/logo/text.svg @@ -18,15 +18,15 @@ sodipodi:docname="with-text.svg"> - - - - - - - - - + + + + + + + + + .card, .ui.card { color: var(--card-text-color); - background: var(--card-background); + background: var(--card-background); &:not(.flat) { box-shadow: var(--card-box-shadow); } diff --git a/front/src/style/components/_form.scss b/front/src/style/components/_form.scss index 9d5951a8d..107e2a46f 100644 --- a/front/src/style/components/_form.scss +++ b/front/src/style/components/_form.scss @@ -45,4 +45,4 @@ input + .help { .ui.toggle.checkbox label::before { background-color: var(--input-selection-background); -} \ No newline at end of file +} diff --git a/front/src/style/components/_fs_browser.scss b/front/src/style/components/_fs_browser.scss index e55cbe8cb..71cc51478 100644 --- a/front/src/style/components/_fs_browser.scss +++ b/front/src/style/components/_fs_browser.scss @@ -1,4 +1,4 @@ .component-fs-browser { max-height: 400px; overflow-y: auto; -} \ No newline at end of file +} diff --git a/front/src/style/components/_fs_logs.scss b/front/src/style/components/_fs_logs.scss index 0f5778714..27faa197c 100644 --- a/front/src/style/components/_fs_logs.scss +++ b/front/src/style/components/_fs_logs.scss @@ -3,4 +3,4 @@ overflow-y: auto; background-color: rgba(25, 25, 25) !important; color: white !important; -} \ No newline at end of file +} diff --git a/front/src/style/components/_label.scss b/front/src/style/components/_label.scss index 254d52ace..d2c833b8e 100644 --- a/front/src/style/components/_label.scss +++ b/front/src/style/components/_label.scss @@ -13,4 +13,4 @@ background-color: var(--accent-color); border-color: var(--accent-color); color: #fff; -} \ No newline at end of file +} diff --git a/front/src/style/components/_play_indicator.scss b/front/src/style/components/_play_indicator.scss index d56df945d..380ab3951 100644 --- a/front/src/style/components/_play_indicator.scss +++ b/front/src/style/components/_play_indicator.scss @@ -15,11 +15,11 @@ @keyframes sound { 0% { opacity: .35; - height: .1em; + height: .1em; } 100% { - opacity: 1; - height: 1em; + opacity: 1; + height: 1em; } } diff --git a/front/src/style/components/_search.scss b/front/src/style/components/_search.scss index 502e14af7..9afd412bf 100644 --- a/front/src/style/components/_search.scss +++ b/front/src/style/components/_search.scss @@ -5,4 +5,4 @@ text-align: right; } } -} \ No newline at end of file +} diff --git a/front/src/style/components/_track_table.scss b/front/src/style/components/_track_table.scss index 327cb5f91..37f099ff4 100644 --- a/front/src/style/components/_track_table.scss +++ b/front/src/style/components/_track_table.scss @@ -235,7 +235,7 @@ margin-left: 26px; display: -webkit-box; -webkit-line-clamp: 2; - -webkit-box-orient: vertical; + -webkit-box-orient: vertical; overflow: hidden; .podcast-episode-title { @@ -248,4 +248,4 @@ margin-inline-end: 0px; } } -} \ No newline at end of file +} diff --git a/front/src/style/components/_user_modal.scss b/front/src/style/components/_user_modal.scss index 9fc87aa0e..ab1f0cfae 100644 --- a/front/src/style/components/_user_modal.scss +++ b/front/src/style/components/_user_modal.scss @@ -28,4 +28,4 @@ width: 0px; background: transparent; } -} \ No newline at end of file +} diff --git a/front/src/style/globals/_app.scss b/front/src/style/globals/_app.scss index 7c1199f6b..d921c4d62 100644 --- a/front/src/style/globals/_app.scss +++ b/front/src/style/globals/_app.scss @@ -10,4 +10,4 @@ html { input[type=search]::-webkit-search-cancel-button { appearance: none; -} \ No newline at end of file +} diff --git a/front/src/style/globals/_typography.scss b/front/src/style/globals/_typography.scss index 3b7e3abd6..5d787e9d9 100644 --- a/front/src/style/globals/_typography.scss +++ b/front/src/style/globals/_typography.scss @@ -12,5 +12,3 @@ body { text-decoration: var(--link-hover-text-decoration); } } - - diff --git a/front/src/style/globals/_utils.scss b/front/src/style/globals/_utils.scss index c595d8bfa..2b4e5c0e7 100644 --- a/front/src/style/globals/_utils.scss +++ b/front/src/style/globals/_utils.scss @@ -115,4 +115,4 @@ span.diff.removed { > .ui.dimmer { color: var(--dimmer-color); } -} \ No newline at end of file +} diff --git a/front/src/style/pages/_about.scss b/front/src/style/pages/_about.scss index e7727c19d..027ffdf6e 100644 --- a/front/src/style/pages/_about.scss +++ b/front/src/style/pages/_about.scss @@ -191,11 +191,11 @@ } .pod-description { flex-direction: column; - display: flex; + display: flex; p { margin: auto; padding: 1.2em; - } - } + } + } } } diff --git a/front/src/style/pages/_artists.scss b/front/src/style/pages/_artists.scss index 76274ac31..86689cf4c 100644 --- a/front/src/style/pages/_artists.scss +++ b/front/src/style/pages/_artists.scss @@ -17,4 +17,4 @@ .ui.multiple.search.dropdown>input.search { width: auto; -} \ No newline at end of file +} diff --git a/front/src/style/pages/_library.scss b/front/src/style/pages/_library.scss index ea79b1743..a97062d19 100644 --- a/front/src/style/pages/_library.scss +++ b/front/src/style/pages/_library.scss @@ -5,7 +5,7 @@ .ui.card { min-height: 200px; } - } + } .ui.segment.head { background-size: cover; background-position: center; diff --git a/front/stats.json b/front/stats.json index e69de29bb..0967ef424 100644 --- a/front/stats.json +++ b/front/stats.json @@ -0,0 +1 @@ +{} diff --git a/scripts/check-api-deps.sh b/scripts/check-api-deps.sh index 5d73372bf..e0a93df9e 100755 --- a/scripts/check-api-deps.sh +++ b/scripts/check-api-deps.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + outdated=$(pip list -o) echo -n "$outdated" return_code=$(echo -n "$outdated" | wc -l) diff --git a/scripts/clean-unused-artifacts.py b/scripts/clean-unused-artifacts.py old mode 100644 new mode 100755 index 097ed35ce..ff3f63bc7 --- a/scripts/clean-unused-artifacts.py +++ b/scripts/clean-unused-artifacts.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + import gitlab TOKEN = "CHANGEME" diff --git a/scripts/get-contributions-stats.py b/scripts/get-contributions-stats.py old mode 100644 new mode 100755 index 85f4db5e8..7c8e4ffdc --- a/scripts/get-contributions-stats.py +++ b/scripts/get-contributions-stats.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + import argparse import requests import os diff --git a/scripts/is-docker-latest.py b/scripts/is-docker-latest.py index 2e3854989..f2f266e33 100755 --- a/scripts/is-docker-latest.py +++ b/scripts/is-docker-latest.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 + import argparse import json import sys