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] Remove client-side paging redundancies #938

Draft
wants to merge 78 commits into
base: master
Choose a base branch
from

Conversation

beatrycze-volk
Copy link
Collaborator

Depends on #878

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
// 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
data-namespace-typo3-fluid="true"
lang="en">

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

Check notice

Code scanning / CodeQL

Syntax error Note

Error: Unexpected token
@sebastian-meyer sebastian-meyer marked this pull request as draft April 5, 2023 14:41
@sebastian-meyer sebastian-meyer self-requested a review April 5, 2023 14:41
@sebastian-meyer sebastian-meyer added ⚙ feature A new feature or enhancement. ⏳ prototype A provisional pull request still work in progress. labels Apr 5, 2023
@sebastian-meyer sebastian-meyer changed the title Remove client-side paging redundancies [FEATURE] Remove client-side paging redundancies Apr 5, 2023
@sebastian-meyer sebastian-meyer removed the ⏳ prototype A provisional pull request still work in progress. label Apr 6, 2023
@sebastian-meyer sebastian-meyer marked this pull request as ready for review April 6, 2023 09:45
@sebastian-meyer sebastian-meyer marked this pull request as draft July 29, 2024 14:05
Kajetan Dvoracek and others added 29 commits August 2, 2024 11:32
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.`
…rollers

Logically the document should not be displayed if its controller is not loaded
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.

2 participants