-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Client-side paging #878
base: master
Are you sure you want to change the base?
Conversation
|
||
<script> | ||
window.addEventListener('tx-dlf-documentLoaded', (e) => { | ||
// TODO(client-side): When there are multiple instances of metadata plugin? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part should be tested and checked if the metadata is correctly displayed.
var cnt = Math.min(this.fulltexts.length, this.images.length); | ||
dlfViewer.prototype.initLoadFulltexts = function (visiblePages) { | ||
if (this.docController === null) { | ||
// TODO(client-side): Make it work then docController === null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably it should be: Make it work when docController === null
b1bd553
to
12f215c
Compare
12f215c
to
08c9b78
Compare
data-namespace-typo3-fluid="true" | ||
lang="en"> | ||
|
||
<script>{docConfiguration -> f:format.raw()}</script> |
Check notice
Code scanning / CodeQL
Syntax error Note
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like a false positive
window.addEventListener('tx-dlf-documentLoaded', (e) => { | ||
// TODO(client-side): When there are multiple instances of metadata plugin? | ||
const container = document.querySelector('.dlf-metadata-container'); | ||
const rootline = {settings.rootline}; |
Check notice
Code scanning / CodeQL
Syntax error Note
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like a false positive
// NOTE: The navigation plugin may be instantiated multiple times, even on a single page view | ||
window.addEventListener('tx-dlf-documentLoaded', e => { | ||
const controller = e.detail.docController; | ||
const features = {features -> f:format.json() -> f:format.raw()}; |
Check notice
Code scanning / CodeQL
Syntax error Note
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like a false positive
7d9cbf1
to
4d07ae1
Compare
7507d50
to
14853a2
Compare
b274075
to
b5bf409
Compare
03957df
to
c794dec
Compare
c794dec
to
64c6835
Compare
bbadfff
to
0a03d63
Compare
bcce7c6
to
a135764
Compare
All warnings "..." is defined but never used. are false positives. Those classes are called from fluid templates. |
On large documents, rendering metadata of all sections can take a considerable amount of time. Instead, allow to just render the current metadata, and fetch the additional metadata in an API call.
- remove dead variables - fix check for mime type
- removed unused e param from onStateChanged - make fetchMetadata async so no spinner is needed
- remove unused paramaters - decrease complexity of updateNavigationControls
Error: `Inventory link with key "t3tsref:data-type-page-id" (data-type-page-id) not found.`
d647e5f
to
d794fb4
Compare
d794fb4
to
b4c4773
Compare
Changes are tested - paging works.
Known problems: