From a918fe0c937864187548bb451a921541a9f09422 Mon Sep 17 00:00:00 2001 From: Andrey Date: Fri, 8 Dec 2023 17:21:15 +0300 Subject: [PATCH] add: prod link for assemled svg --- .../pen-plotter/profiles/Andrei Konakhau/lower-e/0.svg | 1 + .../pen-plotter/profiles/Andrei Konakhau/lower-k/0.svg | 1 + .../pen-plotter/profiles/Andrei Konakhau/lower-y/0.svg | 1 + .../pen-plotter/profiles/Andrei Konakhau/upper-H/0.svg | 1 + .../pen-plotter/profiles/Andrei Konakhau/upper-M/0.svg | 1 + server/routers/epja-2023-2/pen-plotter/static/generated.svg | 2 +- server/routers/epja-2023-2/pen-plotter/utilities/svg.js | 4 +--- 7 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 server/routers/epja-2023-2/pen-plotter/profiles/Andrei Konakhau/lower-e/0.svg create mode 100644 server/routers/epja-2023-2/pen-plotter/profiles/Andrei Konakhau/lower-k/0.svg create mode 100644 server/routers/epja-2023-2/pen-plotter/profiles/Andrei Konakhau/lower-y/0.svg create mode 100644 server/routers/epja-2023-2/pen-plotter/profiles/Andrei Konakhau/upper-H/0.svg create mode 100644 server/routers/epja-2023-2/pen-plotter/profiles/Andrei Konakhau/upper-M/0.svg diff --git a/server/routers/epja-2023-2/pen-plotter/profiles/Andrei Konakhau/lower-e/0.svg b/server/routers/epja-2023-2/pen-plotter/profiles/Andrei Konakhau/lower-e/0.svg new file mode 100644 index 0000000..7c211cd --- /dev/null +++ b/server/routers/epja-2023-2/pen-plotter/profiles/Andrei Konakhau/lower-e/0.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/server/routers/epja-2023-2/pen-plotter/profiles/Andrei Konakhau/lower-k/0.svg b/server/routers/epja-2023-2/pen-plotter/profiles/Andrei Konakhau/lower-k/0.svg new file mode 100644 index 0000000..b58b9b8 --- /dev/null +++ b/server/routers/epja-2023-2/pen-plotter/profiles/Andrei Konakhau/lower-k/0.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/server/routers/epja-2023-2/pen-plotter/profiles/Andrei Konakhau/lower-y/0.svg b/server/routers/epja-2023-2/pen-plotter/profiles/Andrei Konakhau/lower-y/0.svg new file mode 100644 index 0000000..cd81b9c --- /dev/null +++ b/server/routers/epja-2023-2/pen-plotter/profiles/Andrei Konakhau/lower-y/0.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/server/routers/epja-2023-2/pen-plotter/profiles/Andrei Konakhau/upper-H/0.svg b/server/routers/epja-2023-2/pen-plotter/profiles/Andrei Konakhau/upper-H/0.svg new file mode 100644 index 0000000..1fee2c9 --- /dev/null +++ b/server/routers/epja-2023-2/pen-plotter/profiles/Andrei Konakhau/upper-H/0.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/server/routers/epja-2023-2/pen-plotter/profiles/Andrei Konakhau/upper-M/0.svg b/server/routers/epja-2023-2/pen-plotter/profiles/Andrei Konakhau/upper-M/0.svg new file mode 100644 index 0000000..811fff3 --- /dev/null +++ b/server/routers/epja-2023-2/pen-plotter/profiles/Andrei Konakhau/upper-M/0.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/server/routers/epja-2023-2/pen-plotter/static/generated.svg b/server/routers/epja-2023-2/pen-plotter/static/generated.svg index 99921d4..cac7a4c 100644 --- a/server/routers/epja-2023-2/pen-plotter/static/generated.svg +++ b/server/routers/epja-2023-2/pen-plotter/static/generated.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/server/routers/epja-2023-2/pen-plotter/utilities/svg.js b/server/routers/epja-2023-2/pen-plotter/utilities/svg.js index 1585ce1..e033d0a 100644 --- a/server/routers/epja-2023-2/pen-plotter/utilities/svg.js +++ b/server/routers/epja-2023-2/pen-plotter/utilities/svg.js @@ -720,10 +720,8 @@ const writeSVG = (svgContent, totalHeight, totalWidth) => __awaiter(void 0, void const svgFilePath = `${paths_1.STATIC_PATH}/generated.svg`; // Change this to your desired file path fs_1.default.writeFileSync(svgFilePath, outputFile); // Return the SVG file path - const basePath = `${process.env.BASE_URL || "http://localhost"}`; - const port = process.env.PORT || "5000"; // Date.now() is used to prevent caching (cache busting) - const serverFilePath = `${basePath}:${port}/static/generated.svg?v=${Date.now()}`; + const serverFilePath = `https://b2.inno-js.ru/ms/epja-2023-2/pen-plotter/static/generated.svg?v=${Date.now()}`; return serverFilePath; }); const generateSvg = (options) => __awaiter(void 0, void 0, void 0, function* () {