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

DC MILO 0.2434 #769

Merged
merged 46 commits into from
Aug 20, 2024
Merged

DC MILO 0.2434 #769

merged 46 commits into from
Aug 20, 2024

Conversation

Blainegunn
Copy link
Collaborator

Blainegunn and others added 30 commits July 19, 2024 11:32
update preloads for ims v2 token
MWPW-147558: Integration tests for icon-block
MWPW-155492: Mobile Widget Analytics can_donwload
MWPW-154096 Add unit tests for acom-widget
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
MWPW-156535 Catch error if limits fail, trigger error screen
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link

aem-code-sync bot commented Aug 20, 2024

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

@@ -8,182 +8,186 @@ import {
getAcrobatWebLink,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'getAcrobatWebLink' is defined but never used.

Comment on lines +12 to +13


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <no-multiple-empty-lines> reported by reviewdog 🐶
More than 1 blank line not allowed.

Suggested change

import { setLibs } from '../../scripts/utils.js';

const miloLibs = setLibs('/libs');
const { createTag } = await import(`${miloLibs}/utils/utils.js`);

// eslint-disable-next-line compat/compat
const PAGE_URL = new URL(window.location.href);
const redirect = PAGE_URL.searchParams.get('redirect');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'redirect' is assigned a value but never used.

const { progressBarWrapper, progressBar } = progressSection;
const statusBar = document.querySelector('.status-bar');
const cancelButton = document.querySelector('.widget-cancel');
const uploadToAdobe = async (file, verb, err) => {
const filename = file.name;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'filename' is assigned a value but never used.

const filename = file.name;
const extension = filename.split('.').pop().toLowerCase();
let xhr;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'xhr' is defined but never used.

}
});
} else {
[...ev.dataTransfer.files].forEach((file, i) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'i' is defined but never used.

cancelButton: document.querySelector('.cancel-button'),
});
const setDraggingClass = (widget, shouldToggle) => {
shouldToggle ? widget.classList.add('dragging') : widget.classList.remove('dragging');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <chai-friendly/no-unused-expressions> reported by reviewdog 🐶
Expected an assignment or function call and instead saw an expression.

});
const setDraggingClass = (widget, shouldToggle) => {
shouldToggle ? widget.classList.add('dragging') : widget.classList.remove('dragging');
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.

Suggested change
}
};

const widgetRight = createTag('div', { class: 'acom-col' });
const widgetHeader = createTag('div', { class: 'acom-header' });
const widgetIcon = createTag('div', { class: 'acom-icon' });
const widgetTitle = createTag('div', { class: 'acom-title' }, 'Acrobat');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <no-multi-spaces> reported by reviewdog 🐶
Multiple spaces found before 'createTag'.

Suggested change
const widgetTitle = createTag('div', { class: 'acom-title' }, 'Acrobat');
const widgetTitle = createTag('div', { class: 'acom-title' }, 'Acrobat');

setDraggingClass(widget, true);
});

widget.addEventListener('dragleave', (file) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'file' is defined but never used.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'initializePdfAssetManager' is defined but never used.

initializePdfAssetManager,

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'validateSSRF' is defined but never used.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'createPdf' is defined but never used.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'checkJobStatus' is defined but never used.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'getDownloadUri' is defined but never used.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'prepareFormData' is defined but never used.

@Blainegunn Blainegunn merged commit dc4672f into main Aug 20, 2024
4 of 8 checks passed
@Blainegunn Blainegunn deleted the 2434 branch August 28, 2024 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants