1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 16:14:48 +01:00

2295 Commits

Author SHA1 Message Date
Ivan Velev
47ada39b16 vue ui i18n: fixed bug: if multiple embedded named strings in localized string must replace ALL (use global regex flag) 2022-02-07 18:59:25 -08:00
Ivan Velev
6e7f0216e1 vue ui i18n: localized "view capture on {date}" 2022-02-07 18:40:17 -08:00
Ivan Velev
266dd1c635 vue ui i18n: localized show/hide timeline/calendar hover-over text 2022-02-07 18:35:01 -08:00
Ivan Velev
33fd89e7e2 vue ui i18n: localized show/hide timeline/calendar hover-over text 2022-02-07 18:33:57 -08:00
Ivan Velev
e6280500ff vue ui i18n: allowed embedded named string variables within translatable strings: e.g. "this {name1} with that {name2}" 2022-02-07 18:26:16 -08:00
Ivan Velev
ec02333ba4 vue ui i18n: date disabled cardinal suffix and time 12-hour am-pm format as it was too complicated (and not requested yet) to translate to other locales/languages 2022-02-07 17:47:10 -08:00
Ivan Velev
f6f1adae7a vue ui i18n: made All-time localized 2022-02-07 17:46:27 -08:00
Ivan Velev
ea2e3d7120 vue ui: added i18n to loader and vue app; added a i18n model that initializes with a config from the server/template and can be used directly or via the vue app root _() method 2022-02-07 16:49:49 -08:00
Ivan Velev
af04deabe6 vue ui: integrated vanilla js loading spinner (turned off vue-spinner as it was starting "loading" too late, when some data might have already loaded); moved vueui bootstrapping to "bottom" aka body of frame_insert.html (it was getting bootstrapped into the head of the rendered HTML) 2022-02-06 03:00:42 -08:00
Ivan Velev
27d4d0a62d added vanilla js loading spinner 2022-02-06 02:24:24 -08:00
Ivan Velev
173912f963 vue ui: added progress indicator/loader 2022-02-05 17:09:01 -08:00
Ivan Velev
0ff8df44cb vue app init: simplified logic in order to facilitate loader/progress UI and loader simulator to test various scenarios
update:
1. use ONE method to set current replay/snapshot (do NOT use a second way: e.g. config.initialView to set initial replay! BAD!)
2. use ONE method to set app data AND current snapshot (regardless of whether it's from a URL re-load, from an iframe bubble-URL change load)
3. make init app method deal ONLY with app init and move data-setter into another (see 2.)
4. on VUE APP INIT: add specific data-set method
2022-02-05 17:08:03 -08:00
Ivan Velev
291766d2c2 vue ui DOM must come before the init JS 2022-02-05 16:05:22 -08:00
Ivan Velev
9591e5e5c7 vue ui DOM must come before the init JS 2022-02-05 15:44:12 -08:00
Ivan Velev
7290594d4c added CDX Loader simulator updates; removed from default index file 2022-02-05 15:39:18 -08:00
Ivan Velev
9276466736 added CDX Loader simulator 2022-02-04 17:59:56 -08:00
Ivan Velev
2ec6db1f99 COMPILED: added fullId to v-for loops for safety of rendering and default unique IDs value to fullId in model; researched and tested showing multiple collections on same timeline; 2022-02-04 14:55:54 -08:00
Ivan Velev
aae96b57bb added fullId to v-for loops for safety of rendering and default unique IDs value to fullId in model; researched and tested showing multiple collections on same timeline; 2022-02-04 14:55:45 -08:00
Ivan Velev
718112884f vue ui bug fix: duplicate snapshots of same timestamp should be de-duped; was causing a bug as code was assuming de-duped snapshots from server 2022-02-02 15:59:44 -08:00
Ivan Velev
46cc04bafd vue ui bug fix: bugs in capture list on calendar day click
had to add a single-snapshot check for each period of each type: year/month/day/hour, at end of snapshot loop; as all snapshots are now added to the period hierarchy;  bug was that the last period of each type did not have the calculation "isContainsSingleSnapshotOnly" run on it
2022-02-02 15:23:53 -08:00
Ilya Kreymer
24223bcda5 testing: add 'is' endpoint for testing 2022-02-02 12:59:30 -08:00
Ilya Kreymer
8d85fefa57 ui: logo: don't require '/static/' before logo in old ui - consistent with new ui, update docs 2022-01-27 11:06:46 -08:00
Ilya Kreymer
08826f886b Merge branch 'main' into new-ui-work 2022-01-25 23:20:24 -08:00
Ilya Kreymer
0f05dbde55 CHANGES: update changelist for 2.6.4 release v-2.6.4 2022-01-25 23:19:23 -08:00
Philip Clegg
825e4e54ab
rules: feat: remove fbclids (#691)
- fuzzy match 'fbclid=' query arguments (from facebook redirects)
2022-01-25 21:40:53 -08:00
Ilya Kreymer
38b1952d34
live route fix: (#692)
- when 'redirect_to_exact' is enabled, the top-frame expects a redirect for top-frame, however, live mode does not result in redirect to top-frame, so render live top-frame same as before
- tests: ensure top-frame loads correctly for live mode with redirect_to_exact enabled
- tests: fix webenact index tests
2022-01-25 19:10:28 -08:00
Tim Gates
c42833d4ad
docs: Fix a few typos (#669)
There are small typos in:
- pywb/utils/test/test_binsearch.py
- pywb/warcserver/resource/responseloader.py
- pywb/warcserver/resource/test/test_pathresolvers.py

Fixes:
- Should read `length` rather than `lenghth`.
- Should read `equals` rather than `eqauls`.
- Should read `assume` rather than `asume`.
2022-01-25 18:21:01 -08:00
Mat Kelly
ddcbde573c
Documentation: Add periods to end of list of access types in docs to make consistent (#670)
The top two access types end in a ".". The final two do not. This simply adds periods to the third and fourth list items to make punctuation consistent among the bullets.
2022-01-25 18:19:51 -08:00
Ilya Kreymer
581e4601bb template fixes: fix comment in head, footer, header templates
vueui fixes:
- fix error if no urls found on calendar page
- convert url to text box to allow enter new urls
- fix suport for logo, have logo link to home page
2022-01-24 23:49:51 -08:00
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
6bde8fd8c4 wombat.js: rebuild wombat.js to 3.3.6 (was not properly rebuilt previously), alternative fix to #690
update CHANGES
bump to 2.6.4
2022-01-19 18:35:39 -08:00
Ilya Kreymer
18c09266e6 Merge changes from 2.6.3 into 2.7.0b0 2021-12-22 18:16:48 -08:00
Ilya Kreymer
7ff789f1a8 CHANGES: fix typos in changelist v-2.6.3 2021-12-22 17:42:19 -08:00
Ilya Kreymer
c0519a53c3 ci release: update description 2021-12-22 17:38:29 -08:00
Ilya Kreymer
de9b9310d4
Additional fixes for 2.6.3 (#689)
CHANGES: update changes for 2.6.3

location rewrite: pass 'arguments' to rewrite func to guard against rewriting local 'location' in some circumstances, partial fix for #684

ci: add automated docker push on new v-* tag
v-2.6.3b0
2021-12-22 17:26:45 -08:00
Ilya Kreymer
0c4e406876 quickfix: localization: ensure placeholder text also marked as localized, fixes #685 2021-12-22 16:51:02 -08:00
Ilya Kreymer
c97a66703b
More consistent env var setting / static path fix (#688)
* template/custom env var fix:
- ensure pywb.host_prefix, pywb.app_prefix and pywb.static_prefix set for all requests via prepare_env()
- ensure X-Forwarded-Proto is accounted for in pywb.host_prefix
- call prepare_env() in handle_request(), and also in rewriterapp (in case using a different front-end app).

* update wombat to 3.3.6 (includes partial fix for #684)
* bump version to 2.6.3
2021-12-22 16:15:27 -08:00
Lauren Ko
118400c641
New UI corrections (#687)
* Fix typos.

* Make ui variable available to collection page
2021-12-22 15:55:10 -08:00
Ilya Kreymer
edecbbba91 add missing file 2021-12-14 07:53:32 -08:00
Ilya Kreymer
de46c2b4fe docs: tweak ui docs 2021-12-14 07:44:40 -08:00
Ilya Kreymer
a4bf182961 docs: tweak outline headings, add banner image 2021-12-14 00:23:31 -08:00
Ilya Kreymer
a85ff06291 add new UI docs:
- add ui-overview as UI toc page
- refactor ui-customization to top-level customizations page
- add template-guide for in-depth template reference
- add new-vue-ui page for docs on new ui, with images
- fix adding logo to old ui, add to docs
2021-12-13 23:47:19 -08:00
Ilya Kreymer
d83c92ef8a Merge branch 'main' into new-ui-work 2021-12-13 19:20:25 -08:00
Ilya Kreymer
904d790a5d ui: config: rename ui vars to 'vue_calendar_ui' and 'vue_timeline_banner'
ui: fix loading search page
ensure embedded mode is working
update to wombat 3.3.6
bump to 2.7.0b0
2021-12-13 19:03:43 -08:00
Lauren Ko
5c35a43dac
Modify examples in cdx-indexer help text to do as stated (#683) 2021-12-07 16:09:44 -08:00
Ilya Kreymer
e64e58f040
2.6.2 fix (#682)
2.6.2 release:
* fix for regression caused by 2.6.1, invalid static path #681
* add missing base.css
v-2.6.2
2021-11-12 17:51:34 -08:00
Ilya Kreymer
a6be76642a
2.6.1 Release Work (#679)
* rules: add custom twitter video rewriting to capture non-chunked twitter video (max bitrate of 5000000)

* autoescaping regression fix: don't escape URL in frame_insert.html, use as is

* html rewriting:
- don't rewrite 'data-' attributes, no longer necessary for best fidelity
- do rewrite <link rel='alternate'> as main page (mp_)
- update html rewriting test

* feature: support customizing the static path used in pywb via 'static_prefix' config option (defaults to 'static')

* update to latest wombat (3.3.4)

* bump to 2.6.1, update CHANGES for 2.6.1
v-2.6.1
2021-11-11 22:30:54 -08:00
Ivan Velev
eae6a2e3d1 vue ui: fixed model "contains" in situation when checking if it contains a snapshot 2021-09-28 01:09:41 -07:00
Ivan Velev
fa317deeb4 vueui: check current snapshot first when using its props 2021-09-28 00:56:54 -07:00
Ivan Velev
2ac83c61fd vueui: add highlighting for current snapshot and its parent period to both timeline and calendar full-view/linear-view 2021-09-28 00:09:46 -07:00