-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds prettier commit hook for svelte files (#3745)
Adds svelte config for prettier --------- Co-authored-by: Ndricim <[email protected]>
- Loading branch information
Showing
6 changed files
with
259 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
225 changes: 117 additions & 108 deletions
225
test/e2e-test-application/src/assets/sampleexternal.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,129 +1,138 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>External sample page</title> | ||
<link rel="stylesheet" href="/fundamental-styles/fundamental-styles.css" /> | ||
<style type="text/css"> | ||
body { | ||
padding: 0; | ||
margin: 0; | ||
font-size: 14px; | ||
} | ||
|
||
<head> | ||
<title>External sample page</title> | ||
<link rel='stylesheet' href='/fundamental-styles/fundamental-styles.css'> | ||
<style type="text/css"> | ||
body { | ||
padding: 0; | ||
margin: 0; | ||
font-size: 14px; | ||
} | ||
|
||
blockquote, | ||
figure, | ||
ol, | ||
p, | ||
table, | ||
ul { | ||
margin-top: 0; | ||
margin-bottom: 12px; | ||
} | ||
blockquote, | ||
figure, | ||
ol, | ||
p, | ||
table, | ||
ul { | ||
margin-top: 0; | ||
margin-bottom: 12px; | ||
} | ||
|
||
.section-spacer { | ||
height: 800px; | ||
} | ||
.section-spacer { | ||
height: 800px; | ||
} | ||
|
||
.fd-form-item { | ||
margin-bottom: 10px; | ||
} | ||
.fd-form-item { | ||
margin-bottom: 10px; | ||
} | ||
|
||
.fd-list__item { | ||
display: block; | ||
} | ||
.fd-list__item { | ||
display: block; | ||
} | ||
|
||
a { | ||
color: #0a6ed1; | ||
text-decoration: none; | ||
} | ||
a { | ||
color: #0a6ed1; | ||
text-decoration: none; | ||
} | ||
|
||
a:hover { | ||
color: #085caf; | ||
} | ||
</style> | ||
</head> | ||
a:hover { | ||
color: #085caf; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<a name="ext"></a> | ||
<section class="fd-section"> | ||
<div class="fd-section__header"> | ||
<h3 class="fd-section__title">Cross Domain Example</h3> | ||
</div> | ||
<div class="fd-layout-panel"> | ||
<div class="fd-layout-panel__body"> | ||
<p>This page behaves equally to an external hosted micro frontend. <br />For demo purposes, it utilizes manual hiding | ||
of the loading indicator.</p> | ||
<body> | ||
<a name="ext"></a> | ||
<section class="fd-section"> | ||
<div class="fd-section__header"> | ||
<h3 class="fd-section__title">Cross Domain Example</h3> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<section class="fd-section"> | ||
<div class="fd-layout-panel"> | ||
<div class="fd-layout-panel__header"> | ||
<div class="fd-layout-panel__head"> | ||
<h3 class="fd-layout-panel__title">Luigi Client Features</h3> | ||
<div class="fd-layout-panel"> | ||
<div class="fd-layout-panel__body"> | ||
<p> | ||
This page behaves equally to an external hosted micro frontend. <br />For demo | ||
purposes, it utilizes manual hiding of the loading indicator. | ||
</p> | ||
</div> | ||
</div> | ||
<div class="fd-layout-panel__body"> | ||
<p><a class="fd-link" href="javascript:demoLoadingIndicator()">Show loading indicator</a> - and hide it after 3 seconds.<br /> | ||
<pre>LuigiClient.uxManager().showLoadingIndicator(); | ||
LuigiClient.uxManager().hideLoadingIndicator();</pre> | ||
</p> | ||
</section> | ||
|
||
<section class="fd-section"> | ||
<div class="fd-layout-panel"> | ||
<div class="fd-layout-panel__header"> | ||
<div class="fd-layout-panel__head"> | ||
<h3 class="fd-layout-panel__title">Luigi Client Features</h3> | ||
</div> | ||
</div> | ||
<div class="fd-layout-panel__body"> | ||
<div> | ||
<a class="fd-link" href="javascript:demoLoadingIndicator()" | ||
>Show loading indicator</a | ||
> | ||
- and hide it after 3 seconds.<br /> | ||
<pre> | ||
LuigiClient.uxManager().showLoadingIndicator(); | ||
LuigiClient.uxManager().hideLoadingIndicator(); | ||
</pre | ||
> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
</section> | ||
|
||
<div class="section-spacer"></div> | ||
<a name="one"></a> | ||
<section class="fd-section"> | ||
<div class="fd-layout-panel"> | ||
<div class="fd-layout-panel__body"> | ||
<p><strong>One</strong></p> | ||
<div class="section-spacer"></div> | ||
<a name="one"></a> | ||
<section class="fd-section"> | ||
<div class="fd-layout-panel"> | ||
<div class="fd-layout-panel__body"> | ||
<p><strong>One</strong></p> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
</section> | ||
|
||
<div class="section-spacer"></div> | ||
<a name="two"></a> | ||
<section class="fd-section"> | ||
<div class="fd-layout-panel"> | ||
<div class="fd-layout-panel__body"> | ||
<p><strong>Two</strong></p> | ||
<div class="section-spacer"></div> | ||
<a name="two"></a> | ||
<section class="fd-section"> | ||
<div class="fd-layout-panel"> | ||
<div class="fd-layout-panel__body"> | ||
<p><strong>Two</strong></p> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
<div class="section-spacer"></div> | ||
<script type="text/javascript" src="/luigi-client/luigi-client.js"></script> | ||
<script type="text/javascript"> | ||
// If node has loadingIndicator.hideAutomatically set to false, we need to manually | ||
// trigger LuigiClient.uxManager().hideLoadingIndicator(); | ||
</section> | ||
<div class="section-spacer"></div> | ||
<script type="text/javascript" src="/luigi-client/luigi-client.js"></script> | ||
<script type="text/javascript"> | ||
// If node has loadingIndicator.hideAutomatically set to false, we need to manually | ||
// trigger LuigiClient.uxManager().hideLoadingIndicator(); | ||
|
||
console.info('Delaying loading indicator for demo purposes'); | ||
console.info('Delaying loading indicator for demo purposes'); | ||
|
||
function demoLoadingIndicator() { | ||
LuigiClient.uxManager().showLoadingIndicator(); | ||
function demoLoadingIndicator() { | ||
LuigiClient.uxManager().showLoadingIndicator(); | ||
hideLoadingIndicator(); | ||
} | ||
function hideLoadingIndicator() { | ||
setTimeout(function() { | ||
LuigiClient.uxManager().hideLoadingIndicator(); | ||
}, 3000); | ||
} | ||
hideLoadingIndicator(); | ||
} | ||
function hideLoadingIndicator() { | ||
setTimeout(function () { | ||
LuigiClient.uxManager().hideLoadingIndicator(); | ||
}, 3000); | ||
} | ||
hideLoadingIndicator(); | ||
</script> | ||
<script type="text/javascript"> | ||
window.addEventListener('popstate', function (event) { | ||
if (window.location.hash) { | ||
var anch = document.getElementsByName(encodeURIComponent(window.location.hash.replace('#', ''))); | ||
if (anch.length > 0) { | ||
anch[0].scrollIntoView(); | ||
</script> | ||
<script type="text/javascript"> | ||
window.addEventListener('popstate', function(event) { | ||
if (window.location.hash) { | ||
var anch = document.getElementsByName( | ||
encodeURIComponent(window.location.hash.replace('#', '')) | ||
); | ||
if (anch.length > 0) { | ||
anch[0].scrollIntoView(); | ||
} | ||
} else { | ||
window.scrollTo(0, 0); | ||
} | ||
} else { | ||
window.scrollTo(0, 0); | ||
} | ||
}); | ||
</script> | ||
</body> | ||
|
||
</html> | ||
}); | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.