-
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 all files to typescript so we can also run svelte check before …
…push
- Loading branch information
Showing
13 changed files
with
152 additions
and
42 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
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,31 @@ | ||
<script lang="ts"> | ||
import Rating from '$lib/Rating.svelte'; | ||
import IconDownload from '$lib/IconDownload.svelte'; | ||
import type { AppFullDetail } from '../types'; | ||
export let app: AppFullDetail; // Accept the app object as a prop | ||
</script> | ||
|
||
<div class="inline-block"> | ||
<h5 class="h2 p-2">{app.name}</h5> | ||
<!-- Installs DownloadIcon 123--> | ||
{#if app.installs != '0' && app.installs != 'N/A'} | ||
<div class="block p-2 h3"> | ||
<div class="inline-flex"> | ||
<IconDownload /> | ||
{app.installs} | ||
</div> | ||
</div> | ||
{/if} | ||
|
||
<!-- Ratings: STARS (123) --> | ||
<Rating total={5} size={50} rating={app.rating} /> | ||
{#if app.rating_count != '0' && app.rating_count != 'N/A'} | ||
<div> | ||
Ratings: {app.rating_count} | ||
<br /> | ||
Reviews: {app.review_count} | ||
</div> | ||
{:else} | ||
Ratings not yet available | ||
{/if} | ||
</div> |
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
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
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,7 +1,8 @@ | ||
import { writable } from 'svelte/store'; | ||
import type { Categories } from './types'; | ||
|
||
export const myCollectionStore = writable('new_weekly'); | ||
export const myStoreSelection = writable('google'); | ||
export const myCategorySelection = writable('overall'); | ||
|
||
export const myCategoryMap = writable(); | ||
export const myCategoryMap = writable<Categories>({ mycats: { categories: {} } }); |
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,78 @@ | ||
export interface AppGroup { | ||
apps: AppFullDetail[]; | ||
title: string; | ||
} | ||
|
||
export interface Collection { | ||
categories: AppGroup; | ||
title: string; | ||
} | ||
|
||
export interface Collections { | ||
myapps?: Collection; | ||
status?: number; | ||
error?: string; | ||
} | ||
|
||
export interface Category { | ||
id: string; | ||
name: string; | ||
android: string; | ||
ios: string; | ||
} | ||
|
||
export interface MyCats { | ||
categories: Record<string, Category>; | ||
} | ||
|
||
export interface Categories { | ||
mycats: MyCats; | ||
status?: number; | ||
error?: string; | ||
} | ||
|
||
export interface AppFullDetails { | ||
myapp?: AppFullDetail; | ||
status?: number; | ||
error?: string; | ||
} | ||
|
||
export interface AppFullDetail { | ||
icon_url_512?: string; | ||
name: string; | ||
installs?: string; | ||
store_id: string; | ||
developer_id?: string; | ||
developer_name: string; | ||
store_link: string; | ||
store_developer_link?: string; | ||
developer_url?: string; | ||
updated_at: string; | ||
rating: number; | ||
rating_count: string; | ||
review_count: string; | ||
histogram: number[]; | ||
rating_count_num: number; | ||
category: string; | ||
free: string; | ||
price: string; | ||
size?: string; | ||
minimum_android?: string; | ||
developer_email?: string; | ||
content_rating?: string; | ||
ad_supported?: string; | ||
in_app_purchases?: string; | ||
editors_choice?: string; | ||
crawl_result: string; | ||
release_date: string; | ||
store_last_updated: string; | ||
created_at: string; | ||
history_table: string; | ||
featured_image_url?: string; | ||
phone_image_url_1?: string; | ||
phone_image_url_2?: string; | ||
phone_image_url_3?: string; | ||
tablet_image_url_1?: string; | ||
tablet_image_url_2?: string; | ||
tablet_image_url_3?: string; | ||
} |