From 75ec1f927485afe4a63e7e29c3cfc66c3123087a Mon Sep 17 00:00:00 2001 From: liliana <liliana.sanfilippo@uni-bielefeld.de> Date: Thu, 4 Jul 2024 23:17:57 +0200 Subject: [PATCH] deleted - echo '/* /index.html 200' > public/_redirects --- .gitlab-ci.yml | 2 +- src/components/Map1.tsx | 5 +++-- tsconfig.json | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 33beefd6..33cc780e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -32,7 +32,7 @@ pages: script: - yarn build - cp -a dist/. public/ - - echo '/* /index.html 200' > public/_redirects + artifacts: paths: - public diff --git a/src/components/Map1.tsx b/src/components/Map1.tsx index 19e221b2..d46e39c5 100644 --- a/src/components/Map1.tsx +++ b/src/components/Map1.tsx @@ -1,11 +1,12 @@ import InnerHTML from 'dangerously-set-html-content' + export function Map1(){ const htmlFile = `<div style="min-height: 374px"> - <script type="text/javascript" defer src="/mapscript.js" charset="utf-8"> + <script type="text/javascript" defer src="mapscript.js" charset="utf-8"> </script> <noscript> <img src="https://static.igem.wiki/teams/5247/charts-maps/map1-full.png" alt="" /> - </noscript> + </noscript> </div>` return( <InnerHTML html={htmlFile} /> diff --git a/tsconfig.json b/tsconfig.json index daf6bdf7..9a1334d1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -20,7 +20,7 @@ "noUnusedParameters": true, "noFallthroughCasesInSwitch": true }, - "include": ["src", "mapscript.js"] + "include": ["src", "src/contents/mapscript.js"] } \ No newline at end of file -- GitLab