From 444bfbb60a0ad7b5bc731d1bc55e9364e62fde4a Mon Sep 17 00:00:00 2001 From: Borja Robert Date: Mon, 26 Sep 2022 11:22:50 +0200 Subject: [PATCH] =?UTF-8?q?a=C3=B1ado=20cosas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 24 +++ captain-definition | 4 + src/lib/preview/Preview.svelte | 262 +++++++++++++++++---------------- 3 files changed, 165 insertions(+), 125 deletions(-) create mode 100644 Dockerfile create mode 100644 captain-definition diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..267ee0f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM node:18 + +WORKDIR /app + +# COPY package.json and package-lock.json files +COPY package*.json ./ + +COPY vite.config.js ./ + +# COPY tsconfig.json file +COPY jsconfig.json ./ + +# COPY +COPY . . + +RUN npm install + +RUN npm run build + +RUN [ "chmod", "+x", "/app/start.sh"] + +EXPOSE 3000 + +CMD [ "/app/start.sh" ] diff --git a/captain-definition b/captain-definition new file mode 100644 index 0000000..ff979d2 --- /dev/null +++ b/captain-definition @@ -0,0 +1,4 @@ +{ + "schemaVersion": 2, + "dockerfilePath": "./Dockerfile" +} diff --git a/src/lib/preview/Preview.svelte b/src/lib/preview/Preview.svelte index 08c9d44..f2252ac 100644 --- a/src/lib/preview/Preview.svelte +++ b/src/lib/preview/Preview.svelte @@ -1,145 +1,157 @@
-
-
{$heading}
-
{$title}
-
{$subtitle}
-
{@html $content}
- {#if newdate}
{newdate.date}
{/if} - {#if newdate}
{newdate.time}
{/if} -
{$address}
-
+
+
{$heading}
+
{$title}
+
{$subtitle}
+
{@html $content}
+ {#if newdate}
{newdate.date}
{/if} + {#if newdate}
{newdate.time}
{/if} +
{$address}
+
+