implemented web-cards and web-card creation in viewFactory.ts
parent
04bb9c9d8a
commit
55c77ebefe
@ -0,0 +1,7 @@
|
||||
{
|
||||
"default-links": [
|
||||
"https://gmail.com",
|
||||
"https://archive.carolina.engineering",
|
||||
"https://www.paycor.com/"
|
||||
]
|
||||
}
|
||||
@ -0,0 +1,10 @@
|
||||
<html lang="en">
|
||||
<div id="{{{id}}}" class="media d-inline-flex mx-2 file-card">
|
||||
<img class="align-self-center mr-3 py-2 thumbnail32" src="{{{imagePath}}}" alt="File icon">
|
||||
<div id="{{{id}}}-title" class="media-body align-self-center">
|
||||
<div class="spinner-border" role="status">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</html>
|
||||
@ -0,0 +1,6 @@
|
||||
|
||||
export module WebUtils{
|
||||
export function getFaviconUrl(url: URL): string{
|
||||
return `https://www.google.com/s2/favicons?domain=${url.toString()}`;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue