From 6a60d21888c73bb419794efa430e56a7544a828e Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sat, 23 Mar 2024 14:58:12 +0000 Subject: [PATCH] Makes submission process easier --- .../components/things/AddNewService.svelte | 5 +- web/src/components/things/DataActions.svelte | 2 +- web/src/pages/[...section].astro | 11 +- web/src/pages/edit.astro | 72 --------- web/src/pages/search/index.astro | 4 +- web/src/pages/sitemap.astro | 2 +- web/src/pages/submit.astro | 143 ++++++++++++++++++ web/src/utils/data-src-delete-n-edit.ts | 2 +- 8 files changed, 163 insertions(+), 78 deletions(-) delete mode 100644 web/src/pages/edit.astro create mode 100644 web/src/pages/submit.astro diff --git a/web/src/components/things/AddNewService.svelte b/web/src/components/things/AddNewService.svelte index c8c1fbd..595c7c6 100644 --- a/web/src/components/things/AddNewService.svelte +++ b/web/src/components/things/AddNewService.svelte @@ -127,7 +127,10 @@
-

Share a link to where the project's source is located

+

+ Share a link to where the project's source is located.
+ Use the format [user]/[repo] e.g, lissy93/dashy +

diff --git a/web/src/components/things/DataActions.svelte b/web/src/components/things/DataActions.svelte index 4becabe..e598e27 100644 --- a/web/src/components/things/DataActions.svelte +++ b/web/src/components/things/DataActions.svelte @@ -64,7 +64,7 @@ href={makeEditRequest(categoryName, sectionName, serviceName, yamlContent)}> Submit Edit to {serviceName} - + Add alternative diff --git a/web/src/pages/[...section].astro b/web/src/pages/[...section].astro index e649ebe..ee1b8a0 100644 --- a/web/src/pages/[...section].astro +++ b/web/src/pages/[...section].astro @@ -176,6 +176,15 @@ const { previous, next } = makePaginationLinks(); )} + {services.length > 0 && (
+

Submit New Entry

+

+ Are we missing anything? + You can help us improve this page, by submitting a new entry +

+
+ )} +
{ previous ? (