From 178a5442ce1d4168ececa2f4d7120d0a58e357de Mon Sep 17 00:00:00 2001 From: Stefan Mitov Date: Wed, 23 Feb 2022 12:57:07 +0200 Subject: [PATCH 1/3] fix: fix job filters input fields size --- client/src/components/JobFilters.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/components/JobFilters.tsx b/client/src/components/JobFilters.tsx index ec51d28..75ff858 100644 --- a/client/src/components/JobFilters.tsx +++ b/client/src/components/JobFilters.tsx @@ -93,6 +93,7 @@ const JobFilters: React.FC = () => { ( setJobName('')} inputProps={{ @@ -149,6 +150,7 @@ const JobFilters: React.FC = () => {
null} inputProps={{ From 8d25ff2c5146c7234cf37236bf51ae983dec0d85 Mon Sep 17 00:00:00 2001 From: Stefan Mitov Date: Wed, 23 Feb 2022 16:09:08 +0200 Subject: [PATCH 2/3] build: change docker container port --- .github/workflows/release.yaml | 2 +- Dockerfile | 2 +- README.md | 10 ++++++---- api/src/index.ts | 2 +- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e048d24..79ad8e8 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -29,7 +29,7 @@ jobs: docker: runs-on: ubuntu-latest env: - PUBLIC_URL: http://localhost:4000 + PUBLIC_URL: http://localhost:7878 steps: - name: Set up QEMU uses: docker/setup-qemu-action@v1 diff --git a/Dockerfile b/Dockerfile index 229801c..d9945bb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ RUN yarn COPY . . -EXPOSE 4000 +EXPOSE 7878 RUN GENERATE_SOURCEMAP=false yarn build diff --git a/README.md b/README.md index 68abfec..54a1f70 100644 --- a/README.md +++ b/README.md @@ -49,22 +49,24 @@ const app = express(); const agenda = new Agenda({ db: { address: 'mongodb://127.0.0.1/agendaDb' } }); mountAgendaAdmin({ - publicUrl: 'http://localhost:4000/agenda-admin', + publicUrl: 'http://localhost:7878/agenda-admin', expressApp: app, agenda }); -app.listen(4000); +app.listen(7878); ``` --- ### Docker usage -The docker container exposes port 4000 +The docker container exposes port 7878 + +At this point, AgendaAdmin does not support port re-mapping, so the container should be connected to port 7878 only ``` -docker run -p 4000:4000 \ +docker run -p 7878:7878 \ --env CONNECTION_STRING=mongo://username:password@host/database \ --env COLLECTION=collection lexissolutions/agenda-admin:latest ``` diff --git a/api/src/index.ts b/api/src/index.ts index 2c9f2c4..65e68fc 100644 --- a/api/src/index.ts +++ b/api/src/index.ts @@ -8,7 +8,7 @@ try { getAgendaInstance() .start() .then(() => { - app.listen(4000, () => console.info('App running on port 4000')); + app.listen(7878, () => console.info('App running on port 7878')); }); } catch (error: any) { console.error(error.message); From 1eb4a4ddfbf9032bde89f819990b03ec6eee0b32 Mon Sep 17 00:00:00 2001 From: Stefan Mitov Date: Fri, 25 Feb 2022 17:06:22 +0200 Subject: [PATCH 3/3] chore: remove error message at the bottom of the table --- client/src/App.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/client/src/App.tsx b/client/src/App.tsx index 93c85ab..554b56a 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -13,9 +13,6 @@ const App = () => {
-
- No data found. -