From 4a76e9c9d29126a8c0fdcf7e3a3d00ee9eea6e11 Mon Sep 17 00:00:00 2001 From: Geir Okkenhaug Jerstad Date: Fri, 27 Sep 2024 14:47:29 +0200 Subject: [PATCH] Docker-test spa with react --- MVC/navn og epost/model.js | 10 ++++------ react_test/spa_react/Dockerfile | 2 +- team/Emne2/slider/index.html | 0 3 files changed, 5 insertions(+), 7 deletions(-) create mode 100644 team/Emne2/slider/index.html diff --git a/MVC/navn og epost/model.js b/MVC/navn og epost/model.js index 7f6b95c..9e2e39e 100644 --- a/MVC/navn og epost/model.js +++ b/MVC/navn og epost/model.js @@ -1,8 +1,9 @@ const model = { app: { - page: 'search' + pages: [], + page: 'search', + loggedInUserId: null, }, - inputs : { search: { text: '', @@ -21,11 +22,8 @@ const model = { email: '', }, }, - // felles data people: [ { id: 1, name: 'Per', email: 'per@mail.com'}, - ], - - + ], } \ No newline at end of file diff --git a/react_test/spa_react/Dockerfile b/react_test/spa_react/Dockerfile index 68afb46..a6bf432 100644 --- a/react_test/spa_react/Dockerfile +++ b/react_test/spa_react/Dockerfile @@ -1,7 +1,7 @@ # frontend/Dockerfile FROM node:22.9-alpine3.19 AS prod -WORKDIR / +WORKDIR /react_test/spa_react/ COPY public/ /public COPY src/ /src diff --git a/team/Emne2/slider/index.html b/team/Emne2/slider/index.html new file mode 100644 index 0000000..e69de29