Skip to content

Commit 209156e

Browse files
committed
Update ui dependencies
^ Conflicts: ^ .gitattributes ^ ui/index.html ^ ui/package-lock.json ^ ui/package.json ^ ui/src/AmazonS3Resource.js ^ ui/src/elements/dashboard/ngm-project-edit.ts ^ ui/src/elements/dashboard/ngm-project-topic-overview.ts ^ ui/src/elements/ngm-side-bar.ts ^ ui/src/index.ts ^ ui/src/layers/helpers.ts ^ ui/src/ngm-app.ts ^ ui/tsconfig.json
1 parent 85fae1c commit 209156e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+5104
-5831
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
package-lock.json -diff
21
* -text

.github/scripts/find-version.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const findNextVersion = (tags, branch) => {
1010
if (version.preRelease == null || version.patch !== 0) {
1111
version.minor += 1;
1212
version.patch = 0;
13+
version.preRelease = null
1314
}
1415
} else {
1516
// It's a patch.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/secrets.txt
1010

1111
# JetBrains IDE files
12-
/.idea/
12+
.idea/
1313

1414
# Local Docker volumes
1515
/volumes/

api/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/bash
22

33
SQLX_VERSION=0.8.2
44
if [[ ! -f ~/.cargo/bin/sqlx ]] || [[ $(sqlx --version) != "sqlx-cli $SQLX_VERSION" ]]; then

docker-compose.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,21 @@ services:
1919
- .env
2020

2121
ui:
22-
image: node:22
22+
image: swissgeol-viewer-app/ui:local
23+
build:
24+
context: ./ui
25+
dockerfile: DockerfileDev
2326
init: true
2427
ports:
2528
- "8000:8000"
26-
environment:
27-
NODE_ENV: development
28-
working_dir: /app
29-
command: ["sh", "-c", "npm ci && npm run start"]
3029
depends_on:
3130
- api
3231
- abbreviator
3332
volumes:
34-
- ./ui:/app
35-
- ui.node_modules:/app/node_modules
33+
- ./:/app
34+
- ui.node_modules:/app/ui/node_modules
35+
tmpfs:
36+
- /app/ui/dist
3637

3738
minio:
3839
image: minio/minio:latest
@@ -84,4 +85,4 @@ volumes:
8485
db:
8586
api.cargo:
8687
api.target:
87-
ui.node_modules:
88+
ui.node_modules:

ui/.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/node_modules/
2+
/dist/

ui/.eslintrc.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

ui/.mocharc.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
2-
"spec": "src/test/**/*.ts",
2+
"spec": "src/test/**/*.test.ts",
33
"extension": ["ts", "js"],
4-
"loader": "ts-node/esm"
4+
"require": [
5+
"ts-node/register/transpile-only",
6+
"jsdom-global/register.js",
7+
"./src/test/jquery.register.js"
8+
]
59
}

ui/DockerfileDev

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM node:22-alpine as build
2+
3+
ENV NODE_ENV=development
4+
5+
RUN apk add --no-cache git bash
6+
7+
WORKDIR /app/ui
8+
COPY . .
9+
10+
EXPOSE 8000
11+
12+
ENTRYPOINT ["/bin/bash"]
13+
CMD ["start.sh"]

ui/cypress.config.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import { defineConfig } from 'cypress'
1+
import {defineConfig} from 'cypress';
22

33
export default defineConfig({
4-
e2e: {
5-
setupNodeEvents(on, config) {},
6-
baseUrl: 'http://localhost:8000',
7-
},
8-
})
4+
e2e: {
5+
setupNodeEvents(_on, _config) {
6+
},
7+
baseUrl: 'http://localhost:8000',
8+
},
9+
});

0 commit comments

Comments
 (0)