Commit Graph
190 Commits
Author SHA1 Message Date
Matteo CargneluttiandHenry Wilkinson ca6c19ff0f Bugfix: "info" tab overflow is hidden (#197)
* Bugfix: "info" tab overflow is hidden

* add `height: fit-content` to info list

The scrollbar is added in the correct place, but without this the actual info text gets cut off based on the page size.

* Revert changes to compiled files

* re-commit compiled files

---------

Co-authored-by: Henry Wilkinson <henry@wilkinson.graphics>
2023-08-09 20:18:17 -07:00
Henry Wilkinson dbf8f90064 Reorder Archive Receipt Sections (#194)
* Reorder sections, move download above technical info
* Make the download button more prominent
2023-07-26 19:44:06 -07:00
Henry Wilkinson 2a2330e7f1 Adds the Observer Public Key field to Archive Info (#192) 2023-07-26 19:43:17 -07:00
Ilya Kreymer dbafc19522 ui: fix 'show non-seed pages' for multi wacz and for after first load (#187)
deps: bump to wabac.js 2.16.3
bump to 1.8.3
2023-06-27 22:51:12 -07:00
Ilya Kreymer 646f3f8d76 fix redirect loop (fixes #184): (#185)
- loading: fix redirect loop on 404s (via wabac.js 2.16.2)
- misc: additional check before autoupdate, update build deps to support Node 20
bump to 1.8.2
2023-06-20 18:21:55 -07:00
Ilya Kreymer f8116eeaa6 ruffle: update to ruffle 2023-05-13 release, later versions interfere… (#181)
* ruffle:
- switch to ruffle 2023-05-13 release, later versions interfere with loading, it seems (see #180)
fixes #180

* add ruffle toggling options
- disable by default in embed mode, can be enabled with 'useruffle' attr
- enable by default in standalone, can be disabled with 'skipruffle' attr
- fixes #182

* update CHANGES for 1.8.1
2023-06-16 16:01:31 -07:00
Ilya Kreymer b26f4b082d Compute unique collection id using full sourceUrl if relative url given (#179)
* loading: update sourceToId to resolve any pathname to absolute URL (via document.baseURI) for computing unique id (eg. to avoid conflicts of two 'webarchive.wacz' loaded from different paths) - matches behavior used in embed
embed demo: fix typo, don't change default service worker name
2023-06-15 09:45:01 -07:00
Ilya Kreymer 99a034af49 ui: don't show sidebar within sidebar 2023-06-14 18:16:46 -07:00
Ilya Kreymer 21ddc5b713 Show All Pages Option (#177)
* show all pages:
- add option to 'show all pages' if additional non-seed pages are present in the wacz file
- only show checkbox if there are additional pages
- tweak page results to just show 'Pages' or 'Pages Shown' to avoid confusion over 'Pages Found'
- bump to 1.8.0

fixes #176

CHANGES: add changes for 1.8.0
2023-06-14 17:17:20 -07:00
Ilya Kreymer d1e84b1b52 Custom SW filename (#175)
* embed: support using custom filename for service worker instead of sw.js
can be set via <replay-web-page swName='custom.js' ... > property
docs: update embedding docs to mention new option
fixes #160
2023-06-14 17:06:51 -07:00
Ilya Kreymer c7adbdeb0c file chooser: relax extension pattern to allow query/hash after extension (check for ?/#) (#171)
bump to 1.7.15
2023-05-12 13:52:33 +02:00
Matteo CargneluttiandIlya Kreymer 6a24be439c Show total pages count (#164)
* Update pages.js

* show x of y pages found when showing partial results

---------
Co-authored-by: Ilya Kreymer <ikreymer@gmail.com>
2023-04-06 10:10:26 -07:00
Matteo Cargnelutti b074cda6d8 Fixes background color in fullscreen mode (#165)
* Fixes background color in fullscreen mode

* Applied fix suggested by @curtgrimes
2023-04-03 11:17:34 -07:00
Curt Grimes d4832e4df9 Support dropping files onto window to load (#163)
- Allow dropping a supported file type onto the window to automatically
  load it as an alternative to clicking the "Choose File..." button,
  selecting a file in the file dialog, and clicking the "Load" button.
- Do not do anything when unsupported files are dropped.
2023-03-31 18:47:00 -07:00
Ilya Kreymer 05287749ca fidelity / loading fixes: (#159)
- Fidelity: Improved replay via unrewriting fixes of style urls, request/response urls (via wabac.js 2.15.3)
- Embeds: Support updating auth headers if custom headers provided in embed 'config'
- Dependencies: Update to wabac.js 2.15.3, wombat 3.4.6, Electron 23.1.1
- bump to 1.7.13
2023-02-25 16:38:10 -08:00
Ed Summers c0ff3b426b Use crt.sh (#144)
Switch back to using crt.sh for certificate lookups since censys now
require a login to search by cert fingerprint.
bump to 1.7.10
2023-01-04 10:12:18 -08:00
Ilya Kreymer e6f837df13 Cleanup Electron App + Dependency Update (#139)
* electron: clean-up / remove unused code in main process, including:
- remove native plugin init (no longer supported)
- remove auto-js-ipfs (used in render process)
- remove ipfs handling logic (handled in render process)
- use custom file2:// scheme for loading files, instead of custom prefix
- proxyLive supports POST requests, using original UA (if set, for archiveweb.page)
- webpack: remove unused __IPFS_CORE_URL__
- ci: add lint check

* dependency update:
- update to wabac.js 2.13.15 for latest auto-js-ipfs (2.1.0) and wombat (3.3.13)
- update to electron 22.0
- update webpack + electron updater to latest

* bump to 1.7.8
2022-12-07 13:33:36 -08:00
Ilya Kreymer bc5f8b07eb embeds: new embed option 'loading="eager"' to support eager loading entire WACZ file, instead of on-demand loading
deps: update to wabac 2.13.9 to support eager loading, update electron to 21.3.1
package: remove assets from package
bump to 1.7.4
2022-11-24 17:28:53 -08:00
Ilya Kreymer 54b53f9d9b dependencies: update to wabac.js 2.13.7, latest wombat (3.3.11), auto-js-ipfs 1.5.1
update CHANGES.md
2022-11-21 17:33:27 -08:00
Ilya Kreymer e006028bab electron app: fix app not loading preload.js, regression in 1.7.0
fidelity: Fixed embedded tweet video issue (via wabac.js)
fidelity: include target="new" in target rewriting (possibly fix for #118)
deps: bump to wabac.js 2.13.3
bump to 1.7.1
2022-10-09 23:55:49 -04:00
Ilya Kreymer feb1828141 app loading: load external URLs from not found page using default browser
update CHANGES.md
2022-10-04 17:12:10 -07:00
Ilya Kreymer ff746d8107 verification ui: display publicKey if no verification domain, update CHANGES 2022-10-04 16:54:43 -07:00
RangerMauveandIlya Kreymer f1df02ea3c remove js-ipfs in electron app, eslint to dev deps (#123)
- add ipfs:// protocol handlers, not enabled for now
- use browser-side auto-js-ipfs for loading from ipfs even in electron app
- deps: bump wabac.js to 2.13.0
- update CHANGES

Co-authored-by: Ilya Kreymer <ikreymer@gmail.com>
2022-10-04 15:54:43 -07:00
Ilya Kreymer 43122425e5 Restrict new windows in replay + improved service worker loading + better error messages (#126)
* embeds:
- support target rewriting with named iframe as per webrecorder/wombat#94
- refactor sw init: detect additional errors, such as CORS issues in nested iframes
- support cross-origin replaybase for embeds
- add 'requirecrossoriginiframe' to restrict embed to only be loaded in subdomain iframes, otherwise showing
- rename noSandbox -> sandbox, not enabled by default

init: set appName on service worker init
docs:
- add example embed to embedding doc
- update docs for noSandbox -> sandbox
- add warning if deprecated 'noSandbox' flag is used, explaining that it is now deprecated
- update embedding and CHANGES.md with latest features
- add tweet-example.wacz
- add embed.html to test embeds

bump to 1.7.0-beta.1
2022-10-03 20:04:35 -07:00
Henry Wilkinson 764e1c9e21 embed receipts ui: Adds title back to download button section (#127)
* Adds title back to download button section
* Update embed-receipt.js
- Re-order download text
- Finalized copy fixes
- Added space between button and text
2022-10-03 20:00:35 -07:00
Ilya Kreymer 27a8524aac Archive verification info + Embed improvements + Embed Receipts UI (#125)
info panel verification/integrity additions, (fixes on #113)
- info panel: display number of hashes verified valid (and invalid), observer domain (if any), and certificate fingerprint, creation software, and package digest
- info: ensure replayTS is updated, not just replayUrl, to ensure correct stats

404 page: improved formatting on 404 page (via wabac.js)

embeds:
- new embed 'replay-with-info mode, displays replay-only with dropdown showing archival 'receipt, which includes condensed info and verification (hashes valid/invalid, observer domain, cert fingerprint)
- support 'newWindowBase' attribute for specifying base replay URL for opening new window. default: use current url if deepLink enabled, otherwise use https://replayweb.page/
use transparent for embeds
- embed dropdown/receipt styling from @Shrinks99 
- automatically setting noCache and noWebWorker for older browsers (eg. safari < 16)
- add 'hideOffscreen' attribute to enable unloading embed when offscreen

dependencies: update to wabac.js 2.13.0-beta.0

bump version to 1.7.0-beta.0

Embed receipt styling co-authored-by: @Shrinks99
2022-10-01 18:22:30 -07:00
Matteo Cargnelutti 02ce33dc78 <replay-web-page> uses display: block by default for embed (#117) 2022-09-01 18:33:11 -07:00
Ilya Kreymer 6c6d66f03a loading: add 'noCache' option for <replay-web-page> embeds, ensure option is passed to wabac.js loader
dependencies: update to wabac.js 2.12.3 to fully support noCache for WARCs
bump to 1.6.4
2022-08-06 17:56:16 -07:00
Ilya Kreymer f1c5e931c8 extensability: make purge cache configurable
ui: fix date padding for month-day
package: add index.html to npm package
bump to 1.6.2, update CHANGES.md
2022-07-05 12:24:50 -07:00
Ilya Kreymer 54fd92c273 error fix + embedding extensability (#110)
* embed mode: make embedding options more extensible
ui: unify service worker not available errors, show same error in standard/embed mode, including when loaded over http
- more customizations for extended embed, allow hiding 'browse contents' button
- simplify title updates
- make error page / icon more customizable
- autoupdating in editable mode: don't update if previous one didn't finish, make customizable, don't autoupdate at all over >=100 pages

* dependencies: update ruffle to 2022-07-02

* bump to 1.6.1, update CHANGELIST
2022-07-05 10:48:32 -07:00
av8ta 9e75593429 Add pattern to file chooser for ssb urls (#103)
* add pattern to chooser to match ssb:// urls
* also gitignore ipfs bundle
2022-06-15 11:42:50 -07:00
Ilya Kreymer 36da7fa2c6 Add a 'noWebWorker=true' option to <replay-web-page> embed to disable loading in separate web worker (#102)
* add a 'noWebWorker' option to <replay-web-page> embed to disable the default webworker-based loading, and load via the service worker directly. this feature was previously available, but turned-off, as its less efficient (uses sw for what can be done in a separate web worker thread). however, service-worker based loading may be needed for certain edge cases (see #97), and this option enables this loading method to be turned back on for embedding.
* docs: update guide to include 'noWebWorker', also use include attribute for boolean attributes
* update CHANGES.md
* bump to 1.5.12
2022-06-15 11:38:04 -07:00
Ilya Kreymer 91ef718b08 dependency update release: update to wabac.js 2.10.0, wombat 3.3.6, electron 16.0.6, ruffle (2022-01-08)
bump to 1.5.7
2022-01-08 23:33:33 -08:00
Ilya Kreymer b60a0ee7d3 loading: fix cancel button broken by worker-based loading 2021-11-27 17:25:10 -08:00
Ilya Kreymer 178d0507eb * large WARC loading optimizations (attempted to fix #67)
- use dedicated web worker for loading, remove when done
- update to warcio 1.5.0 for faster loading of large WARCs
- show WARC records loading for better progress update

* fidelity: fix potentially invalid location redirect via wombat 3.3.5 (see: webrecorder/pywb#684)

* dependencies: wabac.js 2.10.0-beta.0 (includes warcio 1.5.0, wombat 3.3.5)

* bump to 1.5.6, update CHANGES
2021-11-27 17:06:37 -08:00
Ilya Kreymer 34b03e6b08 didelity: only wrap JS globals if necessary (via wabac.js 2.9.5)
update to wabac.js 2.9.5
bump to 1.5.5
2021-10-25 11:04:55 -07:00
Ilya Kreymer 10cfe36350 lint fix: remove accidental extra semi 2021-10-22 16:55:50 -07:00
Ilya Kreymer a261a61721 fidelity: fix eval edge case (via wombat), enable http->https check for wacz sources (via wabac.js)
dependency updates:
- switch to webpack 5 and related build dependencies
- update litelement -> 'lit'
- wabac.js 2.9.2, wombat 1.3.4

search:
- update to latest flexsearch
- optimize search by using single-field index

bump to 1.5.3
2021-09-18 12:32:00 -07:00
Ilya Kreymer d341c03350 ipfs improvements:
- fix ipfs for apple m1 osx builds by adding extra binary prebuilds (for now)
- use <profile directory>/js-ipfs for ipfs repo
- update to js-ipfs 0.10.6
bump to 1.5.2
2021-09-13 07:31:37 -07:00
Ilya Kreymer 589ea5ddd4 misc improvements for library usage:
- app: allow custom serviceworker path, or disable altogether
- page download options: add warc/1.0 option
- ui: remove unused small style from chooser
ui: tweak initial refresh time to half second

bump to 1.5.1
2021-09-07 22:42:13 -07:00
Ilya Kreymer f4699444fb 1.5.0 release:
- tweak CHANGES
- undo accidental change disabling skip-nav
2021-08-29 14:12:13 -07:00
Ilya Kreymer c090003d8a update to wabac.js 2.9.0-beta.0, smaller file size, loading improvements
ruffle: support for ruffle for flash loading, both hosted and in app
electron: update to latest beta (14) for latest chromium version
embed error messages: better error message when service worker can not be found
electron: build universal app for osx
bump to 1.5.0!
2021-08-28 13:55:57 -07:00
Ilya Kreymer e542d25a82 electron: fallback to load archived version instead of 404 if full url given
dependency: update to latest electron 11 minor version (11.4.8)
2021-06-04 15:37:28 -07:00
Ilya Kreymer 15720189b3 1.4.3 work (#51)
* update to 1.4.3-beta for testing auto-live-redirect in wabac.js

* update to latest wabac.js beta:
- limit prefix querying
- rewrite: ensure redirect http->https preserves original url in case of fuzzy matching

* update to latest wabac.js beta

* update to latest wabac.js beta, further auto-live-redir fixes

* ui: fix location bar not reloading with URLs that contain hashtags

* dependencies: bump to wabac.js 2.7.4

* bump to 1.4.3
2021-05-17 12:39:34 -07:00
Ilya Kreymer 0f08190aca misc fixes:
- fix file download in chrome
- fix full-text index loading in older wacz files
dependencies: updaate to wabac 2.7.1
bump to 1.4.1
2021-04-29 13:44:24 -07:00
Ilya Kreymer 5e72914bab ui collection load: retry loading if index api fails, smooth transition from previous version 2021-04-25 22:32:37 -07:00
Ilya Kreymer 0ef8f955db 1.4.0 Release (#45)
* customizations for chooser, coll-index and appmain to support usage in archiveweb.page
- chooser: support panel/message view
- move apiPrefix to misc
- make coll-index extensible, overridable styles, filtering

* api changes: make configurable in coll-index, now using '/w/' instead of '/wabac/', '/c/' prefix for coll apis

* lint pass!

* bulma: update to 0.9.2, fix delete spinner with latest bulma

* ui fixes:
- show 'Loading Archives...' on initial load until first api response succeeds
- fix typo in oncontrollerchange not actually resolving the promise!

* embed sandbox: add other allow options, except top-nav
- first api load: keep loading message until first successful api load
- don't reset hash on purge to keep current page
- sw config: fix typo with latest wabac.js
- embed: add 'noSandbox' option to avoid adding sandbox to iframe, needed to show PDFs, add more allow rules (all except top-navigation)

* ui improvements:
- refresh: ensure location refresh from hitting enter in location bar always resets url
- pageentry doubleclick: ensure double-clicking on page in sidebar always triggers reload, even if current page
- pageentry typo fix: fix missing var causing selection error (fixes webrecorder/archivewebpage#25)
- lint: don't include 'event' as global
- use latest wabac.js 2.7.0-beta.1

* add CHANGES for 1.4.0, add 'noSandbox' to embedding options
- electron app: fix path to 'w/'
- bump electron to 11.4.3

* docs: autoload current version from package.json
- chooser: support .json files for multiwacz (experimental)
- update CHANGES.md
- add missing .eslintrc.js file

* bump version to 1.4.0
2021-04-25 16:45:40 -07:00
Ilya Kreymer 7b41fdc234 embedding tweaks: resolve relative "source" URL to current page before passing to app
docs: embedding: add example using latest npm release for testing, recommend versioned releases for production
2021-03-18 22:17:41 -07:00
Ilya Kreymer 6035cbae50 loading fixes:
- update to wabac.js to fix regression with WARC loading, including accidental indexing of metadata records
- add periodic ping to service worker during loading, to avoid serviceworker shutdown in firefox
- ui: only show 'try again' button if trying again may be possible
- dependencies: use wabac 2.6.5
bump to 1.3.11
2021-03-14 21:27:19 -07:00
Ilya Kreymer 3eb4befa06 embed mode fix: set default replayBase to current directory ./replay/ (as documented) not /replay/ - fixes #36 2021-03-12 00:34:08 -08:00