Commit Graph
175 Commits
Author SHA1 Message Date
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
Ilya Kreymer b388b9d9e1 update to wabac.js 2.6.3, loading improvements with using event.waitUntil() in message haandler to wait for loading to be done!
ui: add ability to retry loading in non-embedded mode
2021-03-10 14:41:46 -08:00
Ilya Kreymer 72194c308a ui tweaks for downstream (archiveweb.page):
- don't show page editing options when in sidebar mode
- don't autorefresh in replay and sidebar not visibile
- disable plugins by default now
2021-02-15 15:24:22 -08:00
Ilya Kreymer 2fbea9b970 dependencies: update to wabac.js 0.6.0-beta.0, wombat 3.1.0, numerous fidelity improvements for tableau dashboards, POST request replay
library/ui: fix spinner style for page deletion
bump to 1.3.9
2021-02-12 09:09:54 -08:00
Ilya Kreymer bf4194e0ae ui: support asking permission if needed when reloading a local file with 'purge cache and full reload' 2021-01-28 17:18:12 -08:00
Ilya Kreymer 064f7e180f ui awp support:
- move <wr-modal> from awp here
- support page deletion confirmation dialog (in editing mode)
- support deleting multiple pages, deleting current selection (after confirmation)
- bump to wabac.js 2.5.1
- bump to 1.3.8
2021-01-15 01:36:23 -08:00
Ilya Kreymer 305b2a689c electron app: switch back to electron 11.2 / chrome 87 to keep flash plugin support
bump version to 1.3.6
2021-01-13 13:50:46 -08:00
Ilya Kreymer dcf79b9af4 app: testing autoupdate with alpha build, bump version to 1.3.6-alpha.0 2021-01-13 11:32:14 -08:00
Ilya Kreymer 69246e75df ipfs: enable custom preloading
update to wabac.js 2.4.2
2020-12-15 23:57:56 -08:00
Ilya Kreymer 042fefa66d ui: use current page with no querey as home page instead of '/'
update to latest wabac.js
2020-12-13 22:06:28 -08:00
Ilya Kreymer f6de8dfaf0 library support improvements: add index.js which exports all from ui.js
update to latest wabac.js -- smaller size
support for 'source' param on <replay-app-main> which sets sourceUrl and forces direct loading of a single archive only
bump version to 1.3.5
2020-12-13 00:18:55 -08:00
Ilya Kreymer 97163edfac initial autoupdate support:
- add support via electron-updater, use electron-log for logging
- targets: update to dmg+zip and nsis to support autoupdater
- run autoupdate check on load
2020-12-10 21:08:44 -08:00
Ilya Kreymer cd40979625 app: ipfs loading improvements:
use IPFSClient from wabac.js
app: remove # from ipfs paths sent to app
preload interface made more extensible
2020-12-09 22:46:16 -08:00
Ilya Kreymer dfdebe9f69 ui: make coll-index more extensible
update CHANGES.md
update to latest wombat
bump version to 1.3.3
2020-12-08 23:35:07 -08:00
Ilya Kreymer 40c2e937dc ui improvements:
- condense navbar, always show with breadcrumbs for collection title and current page
- add update-title event to propagate replay page title for breadcrumb, also updates document.title
- appmain: make app component more extensible, make coll-index also extensible with custom coll info component
- condense index view headers
- bump to 1.3.2
2020-12-07 22:37:08 -08:00
Ilya Kreymer 4155b9af33 wacz loading: support wacz 1.0.0! -- update to wabac.js 2.3.0
local file loading: support purge cache + reload for local files when filehandles are used (chrome)
update CHANGES.md
bump to 1.3.1
2020-11-20 15:38:12 -08:00