diff --git a/bookmarks/frontend/index.js b/bookmarks/frontend/index.js index 94d9ebc..2f115fc 100644 --- a/bookmarks/frontend/index.js +++ b/bookmarks/frontend/index.js @@ -1,10 +1,10 @@ -import './behaviors/bookmark-page'; -import './behaviors/bulk-edit'; -import './behaviors/confirm-button'; -import './behaviors/dropdown'; -import './behaviors/modal'; -import './behaviors/global-shortcuts'; -import './behaviors/tag-autocomplete'; -export { default as TagAutoComplete } from './components/TagAutocomplete.svelte'; -export { default as SearchAutoComplete } from './components/SearchAutoComplete.svelte'; -export { ApiClient } from './api'; +import "./behaviors/bookmark-page"; +import "./behaviors/bulk-edit"; +import "./behaviors/confirm-button"; +import "./behaviors/dropdown"; +import "./behaviors/modal"; +import "./behaviors/global-shortcuts"; +import "./behaviors/tag-autocomplete"; +export { default as TagAutoComplete } from "./components/TagAutocomplete.svelte"; +export { default as SearchAutoComplete } from "./components/SearchAutoComplete.svelte"; +export { ApiClient } from "./api"; diff --git a/bookmarks/tests/test_metadata_view.py b/bookmarks/tests/test_metadata_view.py index b6318db7..2129ab0 100644 --- a/bookmarks/tests/test_metadata_view.py +++ b/bookmarks/tests/test_metadata_view.py @@ -23,37 +23,37 @@ class MetadataViewTestCase(TestCase): "src": "/static/logo.svg", "type": "image/svg+xml", "sizes": "512x512", - "purpose": "any" + "purpose": "any", }, { "src": "/static/logo-512.png", "type": "image/png", "sizes": "512x512", - "purpose": "any" + "purpose": "any", }, { "src": "/static/logo-192.png", "type": "image/png", "sizes": "192x192", - "purpose": "any" + "purpose": "any", }, { "src": "/static/maskable-logo.svg", "type": "image/svg+xml", "sizes": "512x512", - "purpose": "maskable" + "purpose": "maskable", }, { "src": "/static/maskable-logo-512.png", "type": "image/png", "sizes": "512x512", - "purpose": "maskable" + "purpose": "maskable", }, { "src": "/static/maskable-logo-192.png", "type": "image/png", "sizes": "192x192", - "purpose": "maskable" + "purpose": "maskable", }, ], "shortcuts": [ @@ -76,14 +76,14 @@ class MetadataViewTestCase(TestCase): { "name": "Shared", "url": "/bookmarks/shared", - } + }, ], "screenshots": [ { "src": "/static/linkding-screenshot.png", "type": "image/png", "sizes": "2158x1160", - "form_factor": "wide" + "form_factor": "wide", } ], "share_target": { @@ -94,8 +94,8 @@ class MetadataViewTestCase(TestCase): "url": "url", "text": "url", "title": "title", - } - } + }, + }, } self.assertDictEqual(response_body, expected_body) @@ -120,37 +120,37 @@ class MetadataViewTestCase(TestCase): "src": "/linkding/static/logo.svg", "type": "image/svg+xml", "sizes": "512x512", - "purpose": "any" + "purpose": "any", }, { "src": "/linkding/static/logo-512.png", "type": "image/png", "sizes": "512x512", - "purpose": "any" + "purpose": "any", }, { "src": "/linkding/static/logo-192.png", "type": "image/png", "sizes": "192x192", - "purpose": "any" + "purpose": "any", }, { "src": "/linkding/static/maskable-logo.svg", "type": "image/svg+xml", "sizes": "512x512", - "purpose": "maskable" + "purpose": "maskable", }, { "src": "/linkding/static/maskable-logo-512.png", "type": "image/png", "sizes": "512x512", - "purpose": "maskable" + "purpose": "maskable", }, { "src": "/linkding/static/maskable-logo-192.png", "type": "image/png", "sizes": "192x192", - "purpose": "maskable" + "purpose": "maskable", }, ], "shortcuts": [ @@ -173,14 +173,14 @@ class MetadataViewTestCase(TestCase): { "name": "Shared", "url": "/linkding/bookmarks/shared", - } + }, ], "screenshots": [ { "src": "/linkding/static/linkding-screenshot.png", "type": "image/png", "sizes": "2158x1160", - "form_factor": "wide" + "form_factor": "wide", } ], "share_target": { @@ -191,7 +191,7 @@ class MetadataViewTestCase(TestCase): "url": "url", "text": "url", "title": "title", - } - } + }, + }, } self.assertDictEqual(response_body, expected_body) diff --git a/bookmarks/views/manifest.py b/bookmarks/views/manifest.py index 42eca5f..d52400d 100644 --- a/bookmarks/views/manifest.py +++ b/bookmarks/views/manifest.py @@ -11,43 +11,45 @@ def manifest(request): "display": "standalone", "scope": "/" + settings.LD_CONTEXT_PATH, "theme_color": "#5856e0", - "background_color": "#161822" if request.user_profile.theme == "dark" else "#ffffff", + "background_color": ( + "#161822" if request.user_profile.theme == "dark" else "#ffffff" + ), "icons": [ { "src": "/" + settings.LD_CONTEXT_PATH + "static/logo.svg", "type": "image/svg+xml", "sizes": "512x512", - "purpose": "any" + "purpose": "any", }, { "src": "/" + settings.LD_CONTEXT_PATH + "static/logo-512.png", "type": "image/png", "sizes": "512x512", - "purpose": "any" + "purpose": "any", }, { "src": "/" + settings.LD_CONTEXT_PATH + "static/logo-192.png", "type": "image/png", "sizes": "192x192", - "purpose": "any" + "purpose": "any", }, { "src": "/" + settings.LD_CONTEXT_PATH + "static/maskable-logo.svg", "type": "image/svg+xml", "sizes": "512x512", - "purpose": "maskable" + "purpose": "maskable", }, { "src": "/" + settings.LD_CONTEXT_PATH + "static/maskable-logo-512.png", "type": "image/png", "sizes": "512x512", - "purpose": "maskable" + "purpose": "maskable", }, { "src": "/" + settings.LD_CONTEXT_PATH + "static/maskable-logo-192.png", "type": "image/png", "sizes": "192x192", - "purpose": "maskable" + "purpose": "maskable", }, ], "shortcuts": [ @@ -70,14 +72,16 @@ def manifest(request): { "name": "Shared", "url": "/" + settings.LD_CONTEXT_PATH + "bookmarks/shared", - } + }, ], "screenshots": [ { - "src": "/" + settings.LD_CONTEXT_PATH + "static/linkding-screenshot.png", + "src": "/" + + settings.LD_CONTEXT_PATH + + "static/linkding-screenshot.png", "type": "image/png", "sizes": "2158x1160", - "form_factor": "wide" + "form_factor": "wide", } ], "share_target": { @@ -88,8 +92,8 @@ def manifest(request): "url": "url", "text": "url", "title": "title", - } - } + }, + }, } return JsonResponse(response, status=200)