-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved reusable components to lib. Made reusable appdetails like insta…
…lls and rating
- Loading branch information
Showing
8 changed files
with
40 additions
and
43 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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
frontend/src/routes/Rating.svelte → frontend/src/lib/Rating.svelte
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<script> | ||
import Rating from '$lib/Rating.svelte'; | ||
import IconDownload from '$lib/IconDownload.svelte'; | ||
export let app; // Accept the app object as a prop | ||
</script> | ||
|
||
<div class="inline-block"> | ||
<h5 class="h5 p-2">{app.name}</h5> | ||
<!-- Ratings: STARS (123) --> | ||
{#if app.rating_count != 0 && app.rating_count != 'N/A'} | ||
<div class="inline-flex p-1"> | ||
<Rating total={5} size={20} rating={app.rating} /> | ||
({app.rating_count}) | ||
</div> | ||
{/if} | ||
<!-- Installs DownloadIcon 123--> | ||
{#if app.installs != 0 && app.installs != 'N/A'} | ||
<div class="block p-0"> | ||
<div class="inline-flex"> | ||
<IconDownload /> | ||
{app.installs} | ||
</div> | ||
</div> | ||
{/if} | ||
</div> |
File renamed without changes.
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
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