From 715d0dadf9984ac2a5ab308f87ce45086ee970df Mon Sep 17 00:00:00 2001 From: james Date: Fri, 20 Oct 2023 17:52:14 +0800 Subject: [PATCH] Add icon for external links and about page --- frontend/package-lock.json | 16 ++- frontend/package.json | 7 +- frontend/src/routes/+layout.svelte | 5 +- frontend/src/routes/+page.svelte | 2 +- frontend/src/routes/ExternalLinkSVG.svelte | 12 ++ frontend/src/routes/about/+page.svelte | 17 +++ frontend/src/routes/apps/[id]/+page.svelte | 124 +++++++++++---------- 7 files changed, 120 insertions(+), 63 deletions(-) create mode 100644 frontend/src/routes/ExternalLinkSVG.svelte create mode 100644 frontend/src/routes/about/+page.svelte diff --git a/frontend/package-lock.json b/frontend/package-lock.json index d6e282c..8c754af 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -7,6 +7,9 @@ "": { "name": "app-store-dash", "version": "0.0.1", + "dependencies": { + "marked": "^9.1.2" + }, "devDependencies": { "@skeletonlabs/skeleton": "^2.3.0", "@skeletonlabs/tw-plugin": "^0.2.2", @@ -2296,6 +2299,17 @@ "node": ">=12" } }, + "node_modules/marked": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/marked/-/marked-9.1.2.tgz", + "integrity": "sha512-qoKMJqK0w6vkLk8+KnKZAH6neUZSNaQqVZ/h2yZ9S7CbLuFHyS2viB0jnqcWF9UKjwsAbMrQtnQhdmdvOVOw9w==", + "bin": { + "marked": "bin/marked.js" + }, + "engines": { + "node": ">= 16" + } + }, "node_modules/mdn-data": { "version": "2.0.30", "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz", @@ -3694,4 +3708,4 @@ } } } -} \ No newline at end of file +} diff --git a/frontend/package.json b/frontend/package.json index 3f7d3fa..fe959d7 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -34,5 +34,8 @@ "typescript": "^5.0.0", "vite": "^4.4.2" }, - "type": "module" -} \ No newline at end of file + "type": "module", + "dependencies": { + "marked": "^9.1.2" + } +} diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index e9ff439..a53a585 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -5,7 +5,7 @@ - + @@ -57,7 +57,6 @@ - - + diff --git a/frontend/src/routes/+page.svelte b/frontend/src/routes/+page.svelte index 7b0e3f1..e708a05 100644 --- a/frontend/src/routes/+page.svelte +++ b/frontend/src/routes/+page.svelte @@ -50,7 +50,7 @@ {app.name}
{app.name}
- + ({app.rating_count})
{/each} diff --git a/frontend/src/routes/ExternalLinkSVG.svelte b/frontend/src/routes/ExternalLinkSVG.svelte new file mode 100644 index 0000000..7e2437a --- /dev/null +++ b/frontend/src/routes/ExternalLinkSVG.svelte @@ -0,0 +1,12 @@ + + + diff --git a/frontend/src/routes/about/+page.svelte b/frontend/src/routes/about/+page.svelte new file mode 100644 index 0000000..7db9ff0 --- /dev/null +++ b/frontend/src/routes/about/+page.svelte @@ -0,0 +1,17 @@ + + +

Thanks for checking out this project

+This is something I've been wasting my time on for quite awhile. I started this as something of a curiousity, +then used this data for examining App Ads.txt files. All code for this data scraping, database management +and different frontend dashboards is available on GitHub. If you have any questions, please feel free +to reach out chat. +
+
+ +

Github Readme

+{#await fetch(url).then((r) => r.text()) then text} + {@html marked(text)} +{/await} diff --git a/frontend/src/routes/apps/[id]/+page.svelte b/frontend/src/routes/apps/[id]/+page.svelte index d9dff6e..35d6448 100644 --- a/frontend/src/routes/apps/[id]/+page.svelte +++ b/frontend/src/routes/apps/[id]/+page.svelte @@ -1,4 +1,5 @@