moviewyrm/bookwyrm/views/__init__.py

130 lines
4.1 KiB
Python
Raw Normal View History

2021-03-08 16:49:10 +00:00
""" make sure all our nice views are available """
2021-09-28 18:23:47 +00:00
# site admin
2022-02-11 19:38:13 +00:00
from .admin.announcements import Announcements, Announcement
from .admin.announcements import EditAnnouncement, delete_announcement
2022-02-24 20:15:31 +00:00
from .admin.automod import AutoMod, automod_delete, run_automod
2021-09-11 04:12:08 +00:00
from .admin.dashboard import Dashboard
from .admin.federation import Federation, FederatedServer
from .admin.federation import AddFederatedServer, ImportServerBlocklist
2022-02-28 21:09:43 +00:00
from .admin.federation import block_server, unblock_server, refresh_server
from .admin.email_blocklist import EmailBlocklist
2021-09-17 19:59:16 +00:00
from .admin.ip_blocklist import IPBlocklist
from .admin.invite import ManageInvites, Invite, InviteRequest
from .admin.invite import ManageInviteRequests, ignore_invite_request
2022-01-10 19:19:20 +00:00
from .admin.link_domains import LinkDomain, update_domain_status
from .admin.reports import (
2022-01-10 22:55:10 +00:00
ReportAdmin,
ReportsAdmin,
resolve_report,
suspend_user,
unsuspend_user,
moderator_delete_user,
)
from .admin.site import Site
2022-02-28 17:54:07 +00:00
from .admin.themes import Themes, delete_theme
from .admin.user_admin import UserAdmin, UserAdminList
2021-09-28 18:27:16 +00:00
2021-09-28 18:23:47 +00:00
# user preferences
from .preferences.change_password import ChangePassword
from .preferences.edit_user import EditUser
from .preferences.delete_user import DeleteUser
from .preferences.block import Block, unblock
2021-09-28 18:27:16 +00:00
2021-09-29 20:39:12 +00:00
# books
2021-12-15 20:40:01 +00:00
from .books.books import (
Book,
upload_cover,
add_description,
resolve_book,
)
2021-12-05 21:02:42 +00:00
from .books.books import update_book_from_remote
2021-09-29 20:39:12 +00:00
from .books.edit_book import EditBook, ConfirmEditBook
from .books.editions import Editions, switch_edition
2022-01-17 17:57:47 +00:00
from .books.links import BookFileLinks, AddFileLink, delete_link
2021-09-29 20:39:12 +00:00
2021-10-16 18:45:55 +00:00
# landing
from .landing.about import about, privacy, conduct
from .landing.landing import Home, Landing
2021-10-16 18:45:55 +00:00
from .landing.login import Login, Logout
from .landing.register import Register, ConfirmEmail, ConfirmEmailCode, resend_link
from .landing.password import PasswordResetRequest, PasswordReset
2021-10-20 20:08:33 +00:00
# shelves
from .shelf.shelf import Shelf
2021-10-20 20:15:43 +00:00
from .shelf.shelf_actions import create_shelf, delete_shelf
from .shelf.shelf_actions import shelve, unshelve
2021-10-20 20:08:33 +00:00
2021-11-12 23:43:15 +00:00
# csv import
2021-11-12 23:50:33 +00:00
from .imports.import_data import Import
2021-11-14 18:58:46 +00:00
from .imports.import_status import ImportStatus, retry_item
2021-11-13 00:23:56 +00:00
from .imports.troubleshoot import ImportTroubleshoot
2021-11-13 01:10:47 +00:00
from .imports.manually_review import (
ImportManualReview,
approve_import_item,
delete_import_item,
)
2021-11-12 23:43:15 +00:00
2022-01-25 01:41:21 +00:00
# lists
from .list.curate import Curate
2022-01-25 21:37:57 +00:00
from .list.embed import unsafe_embed_list
2022-01-25 16:44:04 +00:00
from .list.list_item import ListItem
2022-01-25 01:41:21 +00:00
from .list.lists import Lists, SavedLists, UserLists
from .list.list import (
List,
save_list,
unsave_list,
delete_list,
add_book,
remove_book,
set_book_position,
)
2021-09-28 18:23:47 +00:00
# misc views
2021-12-05 21:24:40 +00:00
from .author import Author, EditAuthor, update_author_from_remote
2021-03-21 23:37:52 +00:00
from .directory import Directory
2021-08-07 18:15:02 +00:00
from .discover import Discover
2021-01-29 18:25:31 +00:00
from .feed import DirectMessage, Feed, Replies, Status
2021-11-28 10:38:28 +00:00
from .follow import (
follow,
unfollow,
ostatus_follow_request,
ostatus_follow_success,
remote_follow,
remote_follow_page,
)
from .follow import accept_follow_request, delete_follow_request
from .get_started import GetStartedBooks, GetStartedProfile, GetStartedUsers
from .goal import Goal, hide_goal
2021-10-04 10:31:28 +00:00
from .group import (
Group,
UserGroups,
FindUsers,
delete_group,
2021-10-04 10:31:28 +00:00
invite_member,
remove_member,
accept_membership,
reject_membership,
)
2021-02-16 00:26:48 +00:00
from .inbox import Inbox
2021-01-13 16:10:50 +00:00
from .interaction import Favorite, Unfavorite, Boost, Unboost
from .isbn import Isbn
2021-01-13 20:08:35 +00:00
from .notifications import Notifications
2021-01-13 21:36:01 +00:00
from .outbox import Outbox
2022-01-11 18:40:32 +00:00
from .reading import ReadThrough, delete_readthrough, delete_progressupdate
from .reading import ReadingStatus
2022-01-10 22:55:10 +00:00
from .report import Report
2021-01-29 17:28:00 +00:00
from .rss_feed import RssFeed
2021-01-13 20:08:35 +00:00
from .search import Search
2022-02-17 21:01:36 +00:00
from .setup import InstanceConfig, CreateAdmin
2021-10-14 23:30:27 +00:00
from .status import CreateStatus, EditStatus, DeleteStatus, update_progress
from .status import edit_readthrough
from .updates import get_notification_count, get_unread_status_string
from .user import User, Followers, Following, hide_suggestions, user_redirect
2021-03-29 21:36:24 +00:00
from .wellknown import *
from .annual_summary import (
AnnualSummary,
personal_annual_summary,
2021-12-22 14:12:56 +00:00
summary_add_key,
summary_revoke_key,
)