Commit Graph

76 Commits

Author SHA1 Message Date
Johannes Lötzsch
2728e722a2 frontend: added columnsRaw.defaultWidth 2022-03-12 17:48:09 +01:00
Johannes Lötzsch
1ac545ae87 backend: support persistent JWT_SECRET 2022-03-12 16:04:21 +01:00
Johannes Lötzsch
220dacb949 frontend: minimal Login
from https://github.com/johannesloetzsch/swlkup/blob/master/frontend/components/Login.tsx
2022-03-12 14:03:35 +01:00
Johannes Lötzsch
5abc0e7a8b backend: defscalar int_string
Using `defscalar` fixes introspection errors.

Be aware, that UNION types are not implemented till now:
https://github.com/ajk/specialist-server/issues/3

Also `->Int` was moved from an explicit mapping postprocessing function
into the conformer.
2022-03-12 01:44:19 +01:00
Johannes Lötzsch
b851df5476 backend: ->Int fallback to string 2022-03-11 22:59:37 +01:00
Johannes Lötzsch
0231a5b4f9 lifeline_wpforms: fix language separator 2022-03-11 22:43:46 +01:00
Johannes Lötzsch
e1eed84bd7 updated README.md 2022-03-11 19:04:19 +01:00
Johannes Lötzsch
1f5154e2af backend: warning when started without DB_SEED 2022-03-11 17:10:07 +01:00
Johannes Lötzsch
73bdda8fa2 frontend: readable error messages when fetching fails 2022-03-11 16:46:22 +01:00
Johannes Lötzsch
df0df1affd cors: allow-origin FRONTEND_BASE_URL 2022-03-11 16:37:24 +01:00
Johannes Lötzsch
a51eddd187 hotfix: Box height 100%->100vh 2022-03-11 14:28:09 +01:00
Johannes Lötzsch
f05a49d695
Merge pull request #6 from internet4refugees/feature/search-frontend
finalize merge
2022-03-11 13:35:37 +01:00
5a8aa98b9a add onUpdateBounds to callback deps 2022-03-11 12:11:18 +01:00
a9f6bfadeb put container into wrapper 2022-03-11 12:11:16 +01:00
baed5ba267 wrap updateBounds into useCallback
avoids call on every rerender
2022-03-11 12:11:06 +01:00
28f422162d use split pane for separation 2022-03-11 12:10:45 +01:00
a6da732354 fixing ts buid errors and warnings 2022-03-11 12:09:57 +01:00
cfe65adda7 add leaflet map 2022-03-11 12:09:38 +01:00
62465086fc add leaflet libs i
from @montgommery because of resizing bug in the new version
2022-03-11 12:09:27 +01:00
0fdfabda73 include id property 2022-03-11 12:09:03 +01:00
992ec2cf7b add missing dependency for codegeneration 2022-03-11 12:09:03 +01:00
af089ea2c6 refactor to allow declarative value mapping 2022-03-11 12:09:01 +01:00
93464045bf use split pane for separation 2022-03-11 12:08:35 +01:00
82cc673803 make table 100% height 2022-03-11 12:08:10 +01:00
1e8b5456c7 add missing language selector component 2022-03-11 12:08:10 +01:00
2054df1103 make table 100% height 2022-03-11 12:08:10 +01:00
c216030c8a show i18n table capability 2022-03-11 12:08:08 +01:00
Johannes Lötzsch
31dcf44d75 close direct access without reverse proxy 2022-03-11 10:23:02 +01:00
Johannes Lötzsch
1c28b834a3 csv2edn 2022-03-10 23:17:49 +01:00
Johannes Lötzsch
7e763ee267 deployment: sops + basicAuth
created with htpasswd from pkgs.apache2-utils

+ ensured the database is not seeded with test logins
2022-03-10 22:27:18 +01:00
Johannes Lötzsch
64be1ecd70 frontend: title 2022-03-10 13:38:04 +01:00
Johannes Lötzsch
1c330ebaef deployment: added nginx+acme
Services are till now started via:

backend/src/beherbergung/webserver/handler.clj

(wrap-cors :access-control-allow-origin [#"http://localhost:3000" #".*.broenradio.org"]

> lein run

frontend/search/public/config.json

{"base_url": "https://search.beherbergung.broenradio.org",
 "backend_base_url": "https://backend.beherbergung.broenradio.org"}

> yarn && yarn build && yarn start
2022-03-10 13:17:53 +01:00
Johannes Lötzsch
38a9850142 frontend: optimized fetching behaviour 2022-03-10 11:50:33 +01:00
Johannes Lötzsch
d48e138422 frontend: column order 2022-03-10 11:28:40 +01:00
Johannes Lötzsch
f19516a7a4 deployment: added dns 2022-03-10 10:17:51 +01:00
root
fcc22aaf7d deployment: trivial setup
TODO:
* systemd-service
* reverse-proxy
2022-03-10 02:23:44 +01:00
root
4402cebab6 deployment: added server config 2022-03-10 01:31:06 +01:00
09259d997f
Merge pull request #5 from internet4refugees/feature/search-frontend 2022-03-09 22:01:18 +01:00
5b2a80a909 fixing some type errors 2022-03-09 22:00:10 +01:00
Johannes Lötzsch
03f209f0bd fixed: test after date was modified in sample-data 2022-03-09 18:33:49 +01:00
Johannes Lötzsch
82a669207e
Merge pull request #4 from internet4refugees/feature/search-frontend
add custom renderer for bool and email
2022-03-09 18:30:59 +01:00
8fdb3293ff add custom renderer for bool and email 2022-03-09 18:23:27 +01:00
79e5da864b
Merge pull request #3 from internet4refugees/feature/search-frontend 2022-03-09 17:30:29 +01:00
dbef635f3c fix object columns to string 2022-03-09 17:29:39 +01:00
48f897a78e add moment js 2022-03-09 17:28:25 +01:00
Johannes Lötzsch
c4955c067d
Merge pull request #2 from internet4refugees/feature/search-frontend
next project scaffold + table for filtering and search
2022-03-09 17:21:58 +01:00
7479369abd enable date filtering 2022-03-09 17:19:45 +01:00
36a37d1ea5 bootstrap table using reactdatagrid 2022-03-09 17:01:11 +01:00
e2b6aaf5a0 provide first query components 2022-03-09 17:01:11 +01:00
1a9088e3e9 provide config for codegen 2022-03-09 17:01:11 +01:00