mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 15:14:31 -04:00

Some checks are pending
Build Debian package / build (push) Waiting to run
Build Docker image / buildx (push) Waiting to run
Build Homebrew package / build (push) Waiting to run
Run linters / lint (push) Waiting to run
Build Pip package / build (push) Waiting to run
Run tests / python_tests (ubuntu-22.04, 3.11) (push) Waiting to run
Run tests / docker_tests (push) Waiting to run
25 lines
961 B
Python
25 lines
961 B
Python
__package__ = 'abx.archivebox'
|
|
|
|
import abx
|
|
|
|
|
|
class BaseReplayer:
|
|
"""Describes how to render an ArchiveResult in several contexts"""
|
|
|
|
url_pattern: str = '*'
|
|
|
|
row_template: str = 'plugins/generic_replayer/templates/row.html'
|
|
embed_template: str = 'plugins/generic_replayer/templates/embed.html'
|
|
fullpage_template: str = 'plugins/generic_replayer/templates/fullpage.html'
|
|
|
|
# row_view: LazyImportStr = 'plugins.generic_replayer.views.row_view'
|
|
# embed_view: LazyImportStr = 'plugins.generic_replayer.views.embed_view'
|
|
# fullpage_view: LazyImportStr = 'plugins.generic_replayer.views.fullpage_view'
|
|
# icon_view: LazyImportStr = 'plugins.generic_replayer.views.get_icon'
|
|
# thumbnail_view: LazyImportStr = 'plugins.generic_replayer.views.get_icon'
|
|
|
|
@abx.hookimpl
|
|
def get_REPLAYERS(self):
|
|
return [self]
|
|
|
|
# TODO: add hookimpl methods for get_row_template, get_embed_template, get_fullpage_template, etc...
|