Commit Graph
209 Commits
Author SHA1 Message Date
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
Ilya Kreymer b304788a05 loading: more loading fixes in latest wabac.js (2.2.2)
ui: fix typo of using native fs when not available
2020-11-17 23:38:18 -08:00
Ilya Kreymer aa8ad02312 ui: icon update:
- use home icon for return to home page, rwp icon for about menu
- make appName customizable
- make browser contents icon stay in tablet layout, instead of home
2020-11-17 11:52:59 -08:00
Ilya Kreymer ea385d6d32 ui: auth/permissions modal: display custom modal overlay over iframe, fix google drive reauth, update to wabac.js 2.2.1 2020-11-16 21:00:03 -08:00
Ilya Kreymer 228e9bdff6 IPFS Support + Loading Improvements (Better local file handling) + Streamlined Collection View (#25)
* support ipfs:// urls!
misc: better error message for loading from http://
tabs: don't render pages/story/urls if hidden

* ipfs work: remove ww only use sw

* electron + ipfs: add ipfs support to electron app, using ipfs-core
- route ipfs requests to files proxy with 'ipfs=' query param

* file loading:
- add support for new Chrome native file system api with file handles, which allows persistent access to files vial file handles
- if window.showOpenFilePicker() is available use that, include file handle in load message
- support asking permissions for file handles, using similar workflow as google drive auth
- attempt to ask for file permission directly, show auth button if fails (user gestured required)
- replace auth modal with iframe replacement insert to ask for auth for google drive and local file

* ui overhaul for 1.3.0 / condense collection view:
- don't show navbar in collection view
- add logo to back to home page to location bar
- condense location bar buttons
- convert terms to general about dialog, available from collection context menu
- add info tab to collection view in place of drop-down info
- make <wr-coll-info> component, used in both collection list and info tab with additional details
- update to wabac.js 2.2.0

* update CHANGES.md
2020-11-16 18:31:15 -08:00
Ilya Kreymer 7c121a0e3a ui: switch location bar to plain text field to avoid extra 'x' in chrome
update to wabac.js 2.1.3 - rewriting fixes, fix regression in twitter rewriting
bump version to 1.2.2
2020-10-29 18:17:55 -07:00
Ilya Kreymer 7ff4284868 electron app refactor: wrap electron config in extendable ElectronReplayApp 2020-10-27 20:18:52 -07:00
Ilya Kreymer 21b796fa62 electron app: remove debugging message box for release 2020-10-25 09:40:29 -07:00
Ilya Kreymer e12407983c electron app:
- add file association for .wacz
- support opening wacz, warc, har files via double-click from os (fixes #24)
- command line: support opening files via command line, as well as specifying --url and --ts
- support cmdline args via 'yarn run start-electron <file> --url <url> --ts <ts>'
2020-10-25 09:04:40 -07:00
Ilya Kreymer 4083b10bd2 fixes for google driver reauth:
- move handler back to replay, reauth should now work
- wabac.js fixes: reauth flow only triggered when reauth is needed, not when exponential backoff is used for loading
- bump version to 1.2.1
2020-10-24 20:12:39 -07:00
Ilya Kreymer fa6e94bd52 url search: default to all urls instead of html only filter
wabac.js rewriting improvements: more careful 'this' rewriting in js
bump to 1.2.0-beta.2
2020-10-22 14:49:20 -07:00
Ilya Kreymer 92b875a29b location bar fixes:
- fix url not being updated from navigation
- reload current url when pressing enter in location bar
- revert to current url when losing focus and url is blank
- fix hitting 'escape' resets location bar to current url
- bump version to 1.2.0-beta.1

latest wabac.js: fixes for fetch credentials override, use wabac.js 2.1.0-beta.4
2020-10-19 17:43:18 -07:00
Ilya Kreymer 8144b602a7 ui work:
- show favicon in location bar, if available
- editable mode: experimental allow editing collection title from pages view, update using new api
- editable mode: disable selected only downloads if nothing is selected
- pageentry: simplify, use passed in date

wabac.js: update to latest dev wabac.js 2.1.0-beta.2, including improved fuzzy matching system, new rules for fb and twitter (beta)
2020-10-14 23:42:10 -07:00
Ilya Kreymer 5d44a7f8d9 wabac.js update
url search: fix loading of additional items for mime type search, sorter optionally pages results
bump to 1.1.2-beta.1
2020-10-02 16:09:28 -07:00
Ilya Kreymer 83ac63d0d8 sorter and search fixes:
- sorter: ensure sort settings are remembered
- sorter: remoe default attrs, just bind to 'sortKey' and 'sortDesc' to set the defaults
- pages: override sort order by best match when doing a text search, back to by date when showing page list
- page entries: fix date sorting, normalize page.timestamp and page.date on all page results
- url resources: fix 'contains' search, add highlighting to search results
- ensure textIndex cache is deleted when collection is removed
- bump electron to 10.1.3
- bump version to 1.1.1
2020-09-30 12:40:44 -07:00
Ilya Kreymer b0799256b3 embeds: only show replay in embedded mode when visible, using IntersectionObserver to detect when off-screen 2020-09-29 16:19:00 -07:00
Ilya Kreymer 5b1431fc5b update to wabac.js 2.0.7 (includes rewriting fixes for webworkers, wix, and embedded pages about:blank)
minor tweaks to pages/pageentry in editable mode
bump version to 1.1.0-beta.0
2020-09-27 11:31:52 -07:00