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

2276 Commits

Author SHA1 Message Date
Ivan Velev
c5629f8c41 vueui: make breadcrumbs centered 2021-09-20 19:38:44 -07:00
Ivan Velev
f5ea5da40d Merge branch 'new-ui-work' of github.com:webrecorder/pywb into new-ui-work 2021-09-20 19:12:56 -07:00
Ilya Kreymer
9eac529bee ui work:
- support passing 'ui' params from config to top frame/banner rendering
- remoteindexsource: fix live proxy from existing index
- add vue_banner.css for vueui, don't use default_banner.css
2021-09-20 19:10:19 -07:00
Ivan Velev
3a25523513 vueui: removed debugs 2021-09-20 13:33:11 -07:00
Ivan Velev
71f305b997 vueui: fixed date/time labels for hover-over period 2021-09-20 13:32:17 -07:00
Ivan Velev
7d63e6be43 vueui: shorten banner 2021-09-20 12:46:48 -07:00
Ivan Velev
180d3f779d vueui: make session storage zoom level for current url be standardized 2021-09-20 12:31:54 -07:00
Ivan Velev
0d5fc7034c vueui: full-id, css changes and add "currentSnapshot" prop to timeline 2021-09-20 12:16:00 -07:00
Ivan Velev
da5707d7e9 vueui: access to full-id in app 2021-09-20 12:15:15 -07:00
Ivan Velev
dcd9e6cbe2 vueui: model add full-id property that include string id of parents+self 2021-09-20 12:13:06 -07:00
Ivan Velev
9c52d69921 vueui: set main css font family of app 2021-09-20 12:11:34 -07:00
Ivan Velev
1a78707612 vueui: main app class "row" was colliding with bootstrap css definition; renamed 2021-09-20 11:50:01 -07:00
Ivan Velev
814fe2bc31 vueui: re-compiled with comments/annotations 2021-09-12 23:00:39 -07:00
Ivan Velev
466b202d3d vueui: save the current period, UI is zoomed to by the current URL, so the next page load/reload can load that same view 2021-09-12 23:00:11 -07:00
Ivan Velev
a079072c24 vueui: moved breadcrumbs to be on top. moved title/url/date to be on bottom under timeline; updated CSS classes and vue component to match functionality 2021-09-12 21:29:13 -07:00
Ivan Velev
771437b5a2 vueui: made period hover-over tooltips better positioned so they never go outside screen 2021-09-10 15:27:43 -07:00
Ivan Velev
337383eb45 vueui: made period hover-over tooltips better positioned so they never go outside screen 2021-09-10 15:27:35 -07:00
Ivan Velev
bea303d8f2 vueui: updated label of calendar view 2021-09-10 15:27:06 -07:00
Ivan Velev
cb53c69569 app: added test page ruler for measuring things on page if needed 2021-09-10 14:45:18 -07:00
Ivan Velev
4d58ce1156 app: calendar month view: prevent click on no-snapshot days from zooming to day 2021-09-07 13:28:34 -07:00
Ivan Velev
8a40c436a3 Make HTML entities into v-html strings, because Rollup does weird magic when rolling up
Merge branch 'new-ui-work' of github.com:webrecorder/pywb into new-ui-work

# Conflicts:
#	pywb/static/vue/vueui.js
2021-09-07 10:37:01 -07:00
Ivan Velev
c9f7f50c58 app timeline: made periods with 1 snapshot only to navigate to snapshot itself (not to zoom in); moved "snapshot count" to be in the period label, so that histogram lines are more readily clickable/hoverable at any zoom level 2021-09-07 10:32:07 -07:00
Ilya Kreymer
0d40feb860 vueui: set arrow html entities via variables to avoid any encoding issues due to undeclared encoding in banner 2021-09-06 19:50:39 -07:00
Ivan Velev
ad6c816d4e app calendar view: make months a little taller 2021-09-06 15:21:43 -07:00
Ivan Velev
0820ab2290 app calendar view: make sure its zindex is set to appear on top of other body 2021-09-06 15:18:24 -07:00
Ivan Velev
75a1cc3ffd app timeline: removed outdate unused code 2021-09-06 15:17:13 -07:00
Ivan Velev
35a383c457 vue app: added Logo image centering if logo is smaller 2021-09-06 14:45:10 -07:00
Ivan Velev
4fcabf3ac0 vue app: set a max banner width 2021-09-06 14:24:47 -07:00
Ivan Velev
176b262c3e vue app: move full/calendar view to not overlap banner 2021-09-06 14:20:10 -07:00
Ilya Kreymer
6d41666df7 vue ui:
- combine cdxquery classes into vue build, expose single entrypoint VueUI.main
2021-08-31 23:36:52 -07:00
Ilya Kreymer
11b6794616 banner dynamic update:
- ensure banner updated in response to inner frame events
2021-08-31 23:09:57 -07:00
Ilya Kreymer
f8a73c0b03 initial pass on integrating vue calendar + banner from @vanecat
- use rollup to build vue ui, build at vue/vueui.js
- calendar page renders via both /*/ and /*? queries
- banner support for framed mode only for now
2021-08-31 21:17:01 -07:00
Ilya Kreymer
96de80f83e update CHANGES for 2.6.0 release!
README: update for 2.6, add links to guides!
bump version to 2.6.0
v-2.6.0
2021-08-11 19:00:54 -07:00
Ilya Kreymer
b28c8f1748
Eval Rewriting + Scope Fix (#668)
* eval fix: instead of rewriting to 'WB_wombat_eval', rewrite to 'self.eval' for non-top-level eval
the wombat object will handle rewriting the eval arg on 'self.eval'
tighten rewriting for top-level 'eval', add additional tests
part of fix for #663

* rewrite wrap: add extra {, } to avoid collisions, as suggested in webrecorder/wombat#72
eval rewrite: exclude ',eval' as more likely than not causing a false positive, as per #643

* update to latest wombat 3.3.0 with corresponding fixes
2021-08-11 18:45:54 -07:00
Lauren Ko
b2a460c33c
docs: fix broken links (#666) 2021-08-10 08:17:40 -07:00
Ilya Kreymer
342007244b update CHANGES.rst for 2.6.0b4
update wombat to latest
2021-07-18 17:13:12 -07:00
Ilya Kreymer
98c6fba44d
Support for custom data being added via 'PUT /<coll>/record' when… (#661)
* add support for custom data being added via 'PUT /<coll>/record' when in recording mode and 'enable_put_custom_record: true' set in 'recorder' config
- url specified via 'url' query arg and content type via request Content-Type
- update docs for put custom record options

* bump version to 2.6.0b4
2021-07-18 17:04:34 -07:00
Ilya Kreymer
a0faf904ef
rules: add rules for disabling dash for instagram (#662) 2021-07-18 16:40:54 -07:00
Marius Elsfjordstrand Beck
3e5d97f70b
Properly encode load_url (#659) 2021-07-18 13:50:56 -07:00
Marius Elsfjordstrand Beck
843fe28ed8
Encode url search parameter when performing query (#657) 2021-07-06 21:07:07 -07:00
Simon Chan
096850b41d
fix errors in docs/manual/rewriter.rst (#655)
* fix format error in docs/manual/rewriter.rst

* fix incorrect names in docs/manual/rewriter.rst
2021-07-06 21:01:38 -07:00
Ilya Kreymer
81308780ec
version display: add -V/--version flag to wb-manager and wayback/pywb commands to display version and exit (#654)
update CHANGES
comment out default locales in config.yaml
only show warning for installing i18n extra when locales actually specified in config

bump to 2.6.0b3
2021-06-24 11:28:48 -07:00
Ilya Kreymer
cff2a9efc5
more locale fixes: (#653)
* more locale fixes:
- fix running wb-manager w/o i18n dependencies
- dependencies: move babel to extra_requires, show warning if locale used or 'wb-manager i18n' called and i18n are not installed
- not found page: don't language switch header banner on nested content frame
2021-06-18 14:58:21 -07:00
Ilya Kreymer
3ca765f847 add autoescapding disable to banner.html
update CHANGES
bump version to 2.6.0b2
2021-06-17 17:40:15 -07:00
Sebastian Nagel
f9f5d2dc33
Improve docs about CDXJ Server API endpoint (#651)
- replace erroneous/outdated `/coll-cdx` API endpoint
  by default API endpoint `/<coll>/cdx`
- if clear from preceding context: reduce examples
  to params only `?url=...&param1=...`
2021-06-15 18:12:48 -07:00
Ilya Kreymer
f7bd84cdac
Localization / doc fixes (#650)
* localization / doc fixes:
- add missing header.html
- docs: support 'i18n' extra, mention in docs
- use 'default_locale' for html lang tag
- access control docs: fix documentation for adding user with acl command

* localization: add compile_catalog after extract as well to simplify updates for identity (en) locale

* ui: 
- include locale in home page collection listing
- keep locale on error page home link

* autoescape:
- ensure jinja2 templates are autoescaped to prevent xss issues (thanks @sebastian-nagel for suggested fix)
- ensure banner inserts are not double-escaped
- update tests for template autoescaping

* update CHANGES.rst

* bump version to 2.6.0b1
v-2.6.0b1
2021-06-14 17:09:00 -07:00
Lauren Ko
9587954856
Fix typos in localization and access-control docs (#649)
* Fix typos in localization doc

* Fix typos in access-control doc
2021-06-11 22:50:35 -07:00
Ilya Kreymer
12fcc87962
Localization Support (#647)
* add localization utilities:
- add locmanager to support extract, update, remove, list using pybabel
- add po2csv/csv2po conversion with translate-utils
- docs: add localization.rst to manual!

* add language switch header (via header.html) to all pages if more than one locale is present.

* localization: wrap more text strings in templates in existing templates

* docs:
- document `wb-manager i18n` commands
- mention `<html lang>` setting
- include csv example
- add info about adding localizable text in templates

* add localization to CHANGES
v-2.6.0b0
2021-06-09 13:12:53 -07:00
Ilya Kreymer
0eedd1502f remove fakeredis from tests_require, fixes #644 2021-06-09 12:41:08 -07:00
Ilya Kreymer
d95b79a8ab CHANGES: update changelist for 2.6.0b0
bump version to 2.6.0b0
2021-06-09 12:20:47 -07:00