From 86d436fd470c792c0ddb02ea71d69173efb0c109 Mon Sep 17 00:00:00 2001 From: Dave Lane Date: Fri, 30 Aug 2024 15:52:25 +1200 Subject: [PATCH] WIP --- .gitignore | 4 ++++ Plans.md | 8 ++++++++ docker-compose.yml | 4 ++++ src/lib/processData.svelte | 2 +- 4 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 Plans.md diff --git a/.gitignore b/.gitignore index 79518f7..ab3da6f 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,7 @@ Thumbs.db # Vite vite.config.js.timestamp-* vite.config.ts.timestamp-* + +# app +.*.kate-swap +fonts/*.zip diff --git a/Plans.md b/Plans.md new file mode 100644 index 0000000..41c49ea --- /dev/null +++ b/Plans.md @@ -0,0 +1,8 @@ +# Plans for Webservices App + +High priority: + +* filtering of all properties like Categories, Analogues, Licenses, Statuses, Hosts, and Affiliations. +* a 'Technology' view (overlay), addressable by URL (i.e. going to, say, http://localhost:5173/ServiceName brings up the site with ServiceName shown in 'Technology' view, allowing people to reference a specific technology of interest to others). +* split out all constants (arrays) into separate files. +* split out functions into svelte modules. diff --git a/docker-compose.yml b/docker-compose.yml index fc7b6cf..bd8073c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -22,3 +22,7 @@ services: ports: # change the port on 127.0.0.1 to ensure it's not already in use on the host. - 127.0.0.1:5050:5050 + # this stanza allows your container to find the site with the source data without needing to have + # dns set up properly. Comment it out if you don't need it. + extra_hosts: + - "static.magnificent.nz:203.118.159.63" diff --git a/src/lib/processData.svelte b/src/lib/processData.svelte index f3c3bfe..8b550ff 100644 --- a/src/lib/processData.svelte +++ b/src/lib/processData.svelte @@ -32,7 +32,7 @@ if (tech.hasOwnProperty('analogues') && tech.analogues.constructor === Array) { tech.analogues.forEach(function (analogue, index) { if (analogue_list.hasOwnProperty(analogue)) analogue_list[analogue]++; - s else analogue_list[analogue] = 1; + else analogue_list[analogue] = 1; }); } if (tech.hasOwnProperty('license')) {