Skip to content
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

Open
wants to merge 74 commits into
base: master
Choose a base branch
from

Conversation

beatrycze-volk
Copy link
Collaborator

@beatrycze-volk beatrycze-volk commented Dec 7, 2022

Changes are tested - paging works.

Known problems:

@beatrycze-volk beatrycze-volk marked this pull request as draft December 7, 2022 11:47

<script>
window.addEventListener('tx-dlf-documentLoaded', (e) => {
// TODO(client-side): When there are multiple instances of metadata plugin?
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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

@sebastian-meyer sebastian-meyer added ⏳ prototype A provisional pull request still work in progress. ⚙ feature A new feature or enhancement. labels Jan 4, 2023
data-namespace-typo3-fluid="true"
lang="en">

<script>{docConfiguration -> f:format.raw()}</script>

Check notice

Code scanning / CodeQL

Syntax error Note

Error: Unexpected token
Copy link
Collaborator Author

@beatrycze-volk beatrycze-volk Mar 28, 2023

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

Error: Unexpected token
Copy link
Collaborator Author

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

Error: Unexpected token
Copy link
Collaborator Author

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

@beatrycze-volk
Copy link
Collaborator Author

All warnings "..." is defined but never used. are false positives. Those classes are called from fluid templates.

Matthias Richter and others added 29 commits May 28, 2024 14:49
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚙ feature A new feature or enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants