-
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] Remove client-side paging redundancies #938
base: master
Are you sure you want to change the base?
Conversation
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
// 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
data-namespace-typo3-fluid="true" | ||
lang="en"> | ||
|
||
<script>{docConfiguration -> f:format.raw()}</script> |
Check notice
Code scanning / CodeQL
Syntax error Note
397c038
to
8a451a1
Compare
8a451a1
to
ee5b4b7
Compare
- Remove unused import - Replace tabs with spaces
This will allow the navigation plugin to access the document, e.g., to get the number of pages.
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
ee5b4b7
to
fea6f47
Compare
Depends on #878