1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-30 10:45:31 +02:00

15 Commits

Author SHA1 Message Date
Ilya Kreymer
613754307c fixes based on feedback from @ldko!
templates:
- add placeholder footer.html, head.html templates
- allow 'base_html', 'footer_html', 'head_html', 'header_html' to be added via wb-manager 'add-template' cmd
- automatically add 'base.html' when adding a copy of other templates, as jinja2 extends looks for templates locally

ui tweaks:
- vueui: support logo loaded from ui.logo
- make logo link to home page
- home page: don't show collection title if title is empty

documentation tweaks:
- clarify static_path is for loading path
- clarify footer and head templates are empty by default
- remove extra is_framed from top frame template documentation

bump to 2.7.0b1
2022-01-23 17:59:02 -08:00
Ilya Kreymer
77eefcdce6
- support for allow/block/exclude access controls (as per ukwa/ukwa-pywb#7)
- .aclj files contain access controls in reverse sorted, CDXJ-like format
- ./sample_archive/acl contains sample acl files
- directory and single-file acl sources (extend directory aggregator and file index source)
- tests for longest-prefix acl match
- tests for acl applied to collection
- pywb.utils.merge -- merge(..., reverse=True) support for py2.7 (backported from py3.5)
- acl types:
  * allow - all allowed
  * block - allowed in index (as blocked) but content not allowed, served as 451
  * exclude - removed from index and content, served as 404
- warcserver: AccessChecker inited if 'acl_paths' specified in custom collections
- exceptions:
  * clean up wbexception, subclasses provide the status code, message loaded automatically
  * warcserver handles AccessException with json response (now with 451 status)
  * pass status to template to allow custom handling
2019-09-03 17:44:51 -04:00
Ilya Kreymer
b631a24a0e config cleanup:
- auto/dyn collections: use overridable 'index_paths' and 'archive_paths', support list for archive_paths
- all-auto collection: supported at warcserver layer via special '$all' index
- cleanup default_config.yaml and config.yaml, remove obsolete properties
- remove obsolete docker-compose.yaml
- default_config: simplify list of managed properties
- test_cli: add tests for cli options
2017-10-03 15:31:08 -07:00
Ilya Kreymer
d98c1f6cf7 memento/api: add a new /collinfo.json end-point, enabled with 'enable_coll_info' config setting, which returns
the value fo collinfo.json template. Default template returns an entry for each handler route,
including the route path (id), title (name) and memento timegate and timemap paths, to be used with
an aggregator. Using a custom 'info_json' template can specify a different collinfo template, alternative to #69 (local aggregation)
Closes #146
2015-11-04 15:36:44 -08:00
Ilya Kreymer
e4a271f22f framed mode: default to new framed replay, instead of legacy mode 2015-09-03 15:33:07 -07:00
Ilya Kreymer
a2b9ac89e6 pywb config: add 'template_packages' option to config to allow custom list of packages for templates 2015-08-08 02:13:32 -07:00
Ilya Kreymer
5cf7368f90 default config: set default 'archive_paths' to current directory, to avoid exception no startup 2015-05-14 22:32:10 -07:00
Ilya Kreymer
10d9a6ac9a jinja templates: add 'templates' as default lookup dir, allow specifying
custom dir via config. when specifiying custom paths, need not use full dir
as per usual paradigm
2015-04-04 12:53:07 -07:00
Ilya Kreymer
bfe590996b auto-config: add support for loading from root ./static/ directory,
available under /static/__shared/ path
default path changed from /static/default -> /static/__pywb/
rename wayback-manager to wb-manager
2015-03-17 19:05:39 -07:00
Ilya Kreymer
4b45e789df templates: ensure shared templates are loaded from root templates/ subdir
manager: add shared templates to templates subdir, not root dir #55 and #74
2015-03-16 19:57:28 -07:00
Ilya Kreymer
2f6780a576 rename for 0.9.0:
rename default templates package from ui/* templates to templates/*
rename default subdirs: warcs -> archive, cdx -> indexes
2015-03-16 18:48:09 -07:00
Ilya Kreymer
19b8650891 manager: templates: add collections manager (#74) commands for adding, removing and listing
available ui templates. Support for both collection and shared templates.
confirmation for overwrite/remove
updated full template list in default_config and added tests
2015-03-16 16:55:06 -07:00
Ilya Kreymer
69613a0e25 tests: disable 'invalid config' test as its no longer applicable, fix default banner to just 'banner.html' 2015-02-25 13:18:32 -08:00
Ilya Kreymer
e39d6e207c config & collections: auto static path and templates working! #55 2015-02-24 14:32:51 -08:00
Ilya Kreymer
435fa390ed config system: initial work on automated directory-convention based config!
config.yaml file now optional, add default_config.yaml which for default settings #55
2015-02-23 21:59:41 -08:00