mirror of
https://github.com/sissbruecker/linkding.git
synced 2025-08-07 18:58:30 +02:00
Avoid page reload when triggering actions in bookmark list (#506)
* Extract bookmark view contexts * Implement basic partial updates for bookmark list and tag cloud * Refactor confirm button JS into web component * Refactor bulk edit JS into web component * Refactor tag autocomplete JS into web component * Refactor bookmark page JS into web component * Refactor global shortcuts JS into web component * Update tests * Add E2E test for partial updates * Add partial updates for archived bookmarks * Add partial updates for shared bookmarks * Cleanup helpers * Improve naming in bulk edit * Refactor shared components into behaviors * Refactor bulk edit components into behaviors * Refactor bookmark list components into behaviors * Update tests * Combine all scripts into bundle * Fix E2E CI
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
from django.urls import re_path
|
||||
from django.urls import path, include
|
||||
from django.urls import re_path
|
||||
from django.views.generic import RedirectView
|
||||
|
||||
from bookmarks.api.routes import router
|
||||
from bookmarks import views
|
||||
from bookmarks.api.routes import router
|
||||
from bookmarks.feeds import AllBookmarksFeed, UnreadBookmarksFeed
|
||||
from bookmarks.views import partials
|
||||
|
||||
app_name = 'bookmarks'
|
||||
urlpatterns = [
|
||||
@@ -18,6 +19,16 @@ urlpatterns = [
|
||||
path('bookmarks/close', views.bookmarks.close, name='close'),
|
||||
path('bookmarks/<int:bookmark_id>/edit', views.bookmarks.edit, name='edit'),
|
||||
path('bookmarks/action', views.bookmarks.action, name='action'),
|
||||
# Partials
|
||||
path('bookmarks/partials/bookmark-list/active', partials.active_bookmark_list,
|
||||
name='partials.bookmark_list.active'),
|
||||
path('bookmarks/partials/tag-cloud/active', partials.active_tag_cloud, name='partials.tag_cloud.active'),
|
||||
path('bookmarks/partials/bookmark-list/archived', partials.archived_bookmark_list,
|
||||
name='partials.bookmark_list.archived'),
|
||||
path('bookmarks/partials/tag-cloud/archived', partials.archived_tag_cloud, name='partials.tag_cloud.archived'),
|
||||
path('bookmarks/partials/bookmark-list/shared', partials.shared_bookmark_list,
|
||||
name='partials.bookmark_list.shared'),
|
||||
path('bookmarks/partials/tag-cloud/shared', partials.shared_tag_cloud, name='partials.tag_cloud.shared'),
|
||||
# Settings
|
||||
path('settings', views.settings.general, name='settings.index'),
|
||||
path('settings/general', views.settings.general, name='settings.general'),
|
||||
|
Reference in New Issue
Block a user