Skip to content

Commit

Permalink
Fixes Prettier issues
Browse files Browse the repository at this point in the history
  • Loading branch information
walmazacn committed Nov 22, 2024
1 parent 72c134c commit bfd5a44
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions client-frameworks-support/testing-utilities/test/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>Luigi Mock Engine Testing MFE</title>
Expand All @@ -18,9 +18,7 @@
<div class="fd-layout-panel">
<div class="fd-layout-panel__header">
<div class="fd-layout-panel__head">
<h3 class="fd-title fd-title--h3">
UX Manager testing panel
</h3>
<h3 class="fd-title fd-title--h3">UX Manager testing panel</h3>
<div class="fd-layout-panel__actions">
<button id="uxbutton1" class="fd-button" data-arg1="alert">
Test MockModule Alert
Expand All @@ -42,9 +40,7 @@ <h3 class="fd-title fd-title--h3">
<div class="fd-layout-panel">
<div class="fd-layout-panel__header">
<div class="fd-layout-panel__head">
<h3 class="fd-title fd-title--h3">
Link Manager testing panel
</h3>
<h3 class="fd-title fd-title--h3">Link Manager testing panel</h3>
<div class="fd-layout-panel__actions">
<button id="button1" class="fd-button" data-arg1="modal">
Test MockModule Modal
Expand Down Expand Up @@ -76,7 +72,7 @@ <h3 class="fd-title fd-title--h3">
'uxbutton1',
'uxbutton2',
'uxbutton3',
'uxbutton4'
'uxbutton4',
];

//Attach post message hook from MockModule
Expand All @@ -89,23 +85,23 @@ <h3 class="fd-title fd-title--h3">
case 'modal':
LuigiClient.linkManager().openAsModal('projects/pr1/users', {
title: 'Users',
size: 'm'
size: 'm',
});
break;

case 'split':
LuigiClient.linkManager().openAsSplitView('projects/pr1/logs', {
title: 'Logs',
size: 40,
collapsed: true
collapsed: true,
});
break;

case 'drawer':
LuigiClient.linkManager().openAsDrawer('projects/pr1/drawer', {
header: true,
backdrop: true,
size: 's'
size: 's',
});
break;

Expand All @@ -117,7 +113,7 @@ <h3 class="fd-title fd-title--h3">
case 'alert':
const settings = {
text: 'This is just a test alert for external micro frontend.',
type: 'success'
type: 'success',
};
LuigiClient.uxManager().showAlert(settings);
break;
Expand All @@ -128,12 +124,12 @@ <h3 class="fd-title fd-title--h3">
header: 'Confirmation',
body: 'Are you sure you want to do this?',
buttonConfirm: 'Yes',
buttonDismiss: 'No'
buttonDismiss: 'No',
};
LuigiClient.uxManager()
.showConfirmationModal(modalSettings)
.then(() => {})
.catch(e => {});
.catch((e) => {});
break;

case 'loadIndicator':
Expand All @@ -150,7 +146,7 @@ <h3 class="fd-title fd-title--h3">
};

//Attach event listeners to Buttons
buttonArray.forEach(btn => {
buttonArray.forEach((btn) => {
document.getElementById(btn).addEventListener('click', callMockModule);
});
</script>

0 comments on commit bfd5a44

Please sign in to comment.