1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 08:04:49 +01:00

2295 Commits

Author SHA1 Message Date
Ed Summers
e824ffda8a
pop_path_info
This was removed in werkzeug 2.3 and exists as shift_pop_info in
wsgiref:

https://github.com/pallets/werkzeug/pull/2415
2023-06-29 16:57:44 -04:00
Ed Summers
3ccc7ea759
Use httpbin fork
Add aaronhmiller/httpbin fork which has had https://github.com/aaronhmiller/httpbin.git applied so it can work with latest werkzeug.
2023-04-12 08:34:35 -04:00
Ed Summers
480768fc2e
updated dependencies 2023-04-11 08:26:54 -04:00
Tessa Walsh
83b2113be2
Add config.yaml UI option to disable printing from replay banner (#815)
* Add UI option to disable printing

* Initialize VueUI.main with config dict
2023-03-27 10:23:37 -04:00
Tessa Walsh
ed36830dc5
Pass env vars to tox (#823)
This enables us to skip youtube-dl tests in GitHub Actions by
ensuring that the "CI" env var is passed to tox.
2023-03-26 16:12:13 -04:00
aponb
81b6a57dfb
Update usage.rst Docker examples (#816) 2023-02-20 10:10:08 -05:00
Jonas Linde
5c427b9ff2
[#715] Forward custom headers for cdx queries (#813)
In particular the X-Pywb-ACL-User header must be forwarded in order
for it to be able to control CDX-queries
2023-02-15 17:05:21 -05:00
kuechensofa
454486bf75
[#799] wb-manager: Add wacz archives to collection with --uncompress-wacz (#800)
Add WACZ support for `wb-manager add` by unpacking WACZ files with --uncompress-wacz.

A future commit will add pywb support for WACZ files without requiring them to be unpacked.
2023-02-15 17:00:38 -05:00
Tessa Walsh
b8693307d1 Bump version to 2.8.0-dev 2023-02-15 15:38:10 -05:00
Jonas Linde
98be48d6e4
Add a button to print the replay frame (#814) 2023-02-15 15:36:30 -05:00
Sara Tavares
c441d83435
chore(typos): fix typos across codebase (#811)
Co-authored-by: stavares843 <stavares843@users.noreply.github.com>
2023-02-15 13:04:20 -05:00
Ilya Kreymer
4a3e7ddff7 update CHANGES for 2.7.3 v-2.7.3 2023-02-02 16:22:24 -08:00
Ilya Kreymer
02288db81c
bump wombat to 3.4.4 (#808) 2023-02-02 16:21:02 -08:00
Ilya Kreymer
4fc2b451d7 templates: fix typo 2023-02-02 15:10:18 -08:00
Tessa Walsh
c8e78fd7c1 Add yarn install to Vue build script 2023-02-02 16:24:01 -05:00
Tessa Walsh
d44d640b93 Set logoHomeUrl to last option in Vue.main
This ensures that any locally modified templates won't break when
upgrading to pywb 2.7.3.
2023-02-02 16:24:01 -05:00
Ilya Kreymer
03f9708d8d CHANGELIST: Update changelist for 2.7.3 2023-02-01 17:44:50 -08:00
Ilya Kreymer
406fad95c2
rules: add 'debugNoBatch' rewrite for fb and insta (#806) 2023-02-01 10:45:22 -08:00
dependabot[bot]
d207c76bae
Bump decode-uri-component from 0.2.0 to 0.2.2 in /pywb/vueui (#786)
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-31 18:49:25 -08:00
dependabot[bot]
131732d238
Bump minimatch from 3.0.4 to 3.1.2 in /pywb/vueui (#777)
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.1.2.
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.2)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-31 18:49:13 -08:00
Mark Johnson
59d9beac05
feat: regex substitution on surt rules match (#780)
substituion functionality already exists on a global level for matched
rules but this causes issues when rule sets conflict in the desired
outcome. This change enables setting regex substitution at the rule
level to avoid these conflicts.
2023-01-31 18:48:19 -08:00
Tessa Walsh
0758e81b62
Add default_locale fix to 2.7.3 changelog 2023-01-31 15:02:48 -05:00
Jonas Linde
d392a8d908
[#804] Use default_locale when lang not set in the request (#805) 2023-01-31 13:47:50 -05:00
Tessa Walsh
9bc8a2e1ef
Modify search template buttons (#801)
* Modify search page button colors

* Rename Clear Options to Reset and reset URL as well

* Add search improvements to CHANGES
2023-01-25 13:33:18 -05:00
Jonas Linde
43e5c8bac0
Make search page more intuitive (#794)
* Add date-range feedback for i18n
* Make search page more intuitive and add help text
* Add a clear-options button to the search page
2023-01-23 17:17:40 -05:00
Tessa Walsh
cdab280669 Add 2.7.3 changes 2023-01-19 11:30:42 -05:00
kuechensofa
e6ec8b4aeb
[#795] wb-manager: Show error when adding duplicate warc files (#797) 2023-01-19 11:26:56 -05:00
Tessa Walsh
1790fd006a Bump version to 2.7.3 2023-01-05 17:34:17 -05:00
Tessa Walsh
3d0673e32a
Add ui.logo_home_url as config.yaml option (#790)
* Add ui.logo_home_url as config option
* Add ui.logo_home_url to docs
2023-01-05 17:33:00 -05:00
oskarhek
3050fd2b2b
issue_792 catch warcio exception (#793) 2023-01-05 17:15:49 -05:00
Tessa Walsh
3c94da04a2
2.7.2 patch release (#787)
* Fix 2.7.1 regressions

* Bump to 2.7.2

* fix redirect-to-exact false:
- check if current loaded timestamp is the same as to-redirected to timestamp, and avoid reload

* additional ui fixes:
- location bar: reload with current timestamp, instead of going to calendar
- ensure calendar popup on replay view is scrollable
- 'Live' mode fixes: don't cache live cdx entry, don't add timestamp when navigating in live mode without timestamp
- remember timeline view toggle on replay
- title: add 'Archived Page: ' prefix to document.title, consistent with old version
- ensure 'Archived Page: ' text is localizable
- ui: change ',' to '|' on capture display

* update CHANGES for 2.7.2

Co-authored-by: Ilya Kreymer <ikreymer@gmail.com>
v-2.7.2
2022-12-08 16:35:39 -08:00
Tessa Walsh
2d19b6b18d
Merge 2.7.1 development branch (#785)
* Add locale-dependent handling of first day of week

The Intl.Locale is a proposed standard not yet supported by Firefox so
in Firefox the first day of week will default to Monday (as specified
in ISO-8601).

* Set top frame document title when Vue updates

* Update template guide for 2.7

* Drop Python 3.6 and add 3.10 in test CI

* Allow either JS mimetype in test_add_static

* Add convenience build script for Vue UI

* Add build flag to docker compose example

* Fix Vue app issue with redirect_to_exact: false

Fixes #779

Undated URLs were resulting in a broken calendar and timeline in the
Vue app when redirect_to_exact was set to false. This was due to
TopFrameView using the current datetime if no timestamp was included,
which caused a failed snapshot lookup in the Vue app.

This commit changes the default timestamp in TopFrameView to None and
adds additional logic in the Vue app to use the last snapshot's
timestamp as the default if one is not present to match the snapshot
that pywb loads by default under the same conditions.

* Add filter instead of submitting form when pressing enter in the filtering expression field

* Make filter expressions translatable

* Add missing tooltip strings to vue_loc

* Add changelog

* Bump version to 2.7.1

* Use empty string as default template timestamp

* Bump wombat to 3.3.13

Co-authored-by: Jonas Linde <jonasjlinde@gmail.com>
v-2.7.1
2022-12-07 18:16:18 -08:00
Tessa Walsh
6cc9cdc3ad Remove debugging cdx sources 2022-11-24 16:03:10 -05:00
Tessa Walsh
138e2b284d Add 2.7.0 to changelog v-2.7.0 2022-11-23 14:54:50 -05:00
Tessa Walsh
3b49c2229e Increment version to 2.7.0 2022-11-23 14:54:50 -05:00
Tessa Walsh
fec9cef818 Add note about Vue UI to New Features 2022-11-23 14:54:50 -05:00
Tessa Walsh
d81c2f0303 Add contributing guide 2022-11-23 14:54:44 -05:00
Tessa Walsh
3d8015c444 Update version number in README 2022-11-23 14:54:44 -05:00
Tessa Walsh
91cf74a2a9 Make final pywb 2.7 UI tweaks
- Remove redundant icon title
- Fix display date in TimelineLinear tooltip
- Adjust calendar spacing, add border and shadow
- Remove tooltip scroll
- Auto-size calendar to contents
- Make display date consistent across browsers
- Render calendar for all months regardless of captures
- Fix weekday labels to avoid off-by-one
- Grey out calendar days without captures
2022-11-23 14:53:51 -05:00
Tessa Walsh
373eca641c Default to old search results view for advanced search
Use old results view if matchType or filter params are present in query
string.
2022-11-21 12:46:55 -05:00
Tessa Walsh
2ad7eaee4b Update docs
- Add thorough Vue theming instructions
- Update frameless replay banner info
2022-11-21 12:46:55 -05:00
Tessa Walsh
ca6587caac Make accessibility improvements
- Add URL search bar title and aria-label
- Ensure WCAG AA-acceptable contrast in calendar
2022-11-21 12:46:37 -05:00
Ilya Kreymer
e20fac2c75 head_insert: don't include banner_html, only used for framed replay now
wombat: bump to latest wombat 3.3.7
add new custom_banner to head_insert template for frameless replay
2022-11-21 12:46:28 -05:00
Tessa Walsh
c28941a0b6 Rework Vue banner UI
- Make Vue banner responsive with Bootstrap 4
- Add previous/next year arrows to calendar
- Make navbar background, text color, and button outlines configurable
via config.yaml
- Toggle calendar and timeline separately
- Fix bug preventing title from displaying
- Make app keyboard-navigable
- Fix banner background color configuration
- Comment out vue_navbar_background_hash
- Display linear timeline tooltip centrally on enter
- Improve header styling on small screens
- Add titles to font awesome icons
- Remove old default banner (calendar retained for advanced search
  results)
- Fix TimelineLinear TypeError that broke calendar
- Bump version to 2.7.0b2
- Set Cache-Control header on CDXJ API response to mark returned CDX as
stale after 1 day
- Add commented out UI values to config.yaml to aid users
- Remove timeline and calendar card borders
- Fix issues with snapshot navigation
- Center search bar and align with buttons
- Make Vue app bfcache-ineligible: By adding an empty unload event
listener, we make pages serving the Vue app ineligible for bfcache,
which prevents unexpected behavior when navigating via the browser's
back/forward buttons.
2022-11-21 12:46:09 -05:00
Tessa Walsh
ff7783aa74 Add basic dev docker-compose.yaml 2022-11-21 12:46:09 -05:00
Tessa Walsh
5e2f47a049 Prevent flashing content and unnecessary iframe reload
Connected to https://github.com/webrecorder/pywb/issues/717

When a user navigated to a new URL by clicking on a link in the
replay iframe, the new Vue app was unnecessarily triggering a
reload, causing what looks like a flash of the page content. This
commit modifies the Vue app to only reload the iframe if a user
selected a new snapshot from the calendar or timeline.
2022-11-21 12:46:09 -05:00
Ilya Kreymer
19032e4512 misc vue + i18n fixes:
- make calendar tooltips into real links and clickable and ctrl+clickable
- ensure advanced view uses old ui (not supported in new ui)
- add language popup on frame_insert for vueui
- i18n: consolidate loc strings for vueui into vue_loc.html
- spinner: for replay, only show over banner
- spinner: show after 500ms delay
- i18n: add one more string ('no captures')
- make calendar popup links regular links to support cmd+click
- i18n: implement lang switcher in vue as well (for query and framed_insert), don't include non-vue language switcher in header
2022-11-21 12:46:09 -05:00
Ivan Velev
72cb588936 vueui: i18n support (from @vanecat):
- add localized text to frame_insert.html and query.html (for now) to be passed to vueui
- ensure all vue strings localized
- use variable names in localizabls strings, eg. "view capture on {date}"
- simplified text (no cardinal suffixes, use 24-hourt clock)
2022-11-21 12:46:09 -05:00
Ilya Kreymer
14e464bd1c ui fixes:
- fix static prefix path customization
- fix old ui logo link without locales
2022-11-21 12:46:09 -05:00
Ivan Velev
dc81e78393 vueui: second batch of fixes from @vanecat:
- support for 'cdx-simulator'
- add loading spinner
2022-11-21 12:46:09 -05:00