Commit graph

278 commits

Author SHA1 Message Date
cbab8ff439 Fix ui serving location
The ui is now part of the classpath.
2023-05-16 02:08:48 +02:00
4f0be9919f Adjust container image build to support multi modules 2023-05-16 01:51:45 +02:00
b8b83baa72 Move into multi module project structure
Javalin and Javacord crash if running on same JVM but on different
threads for some reasons. This is should fix it :D
2023-05-16 01:50:56 +02:00
e7e601a28b Remove unused port binding 2023-05-14 01:09:28 +02:00
1a7cb6f055 Add comment to explain blocking call while migration runs 2023-05-14 00:57:13 +02:00
9de90700c3 Switch to virtual thread for discord bot shutdown hook
Why use a system Thread?
2023-05-14 00:56:21 +02:00
9dc9f16c06 Add JDK_JAVA_OPTIONS env to enable preview features 2023-05-14 00:53:06 +02:00
9754e36c99 Switch back to JDK 19 for the final image
We use preview features while compiling so it won't run on JDK 20...
Waiting for NixOS to package JDK 20 :D
2023-05-14 00:51:55 +02:00
18ab41ed09 Update running jdk to 20 with alpine as base
This should reduce the final image size and improve performance by using
the now maintained version, since 19 is now EOL.
2023-05-13 01:42:31 +02:00
1805321f18 Disable dev Javalin logging 2023-05-11 21:25:12 +02:00
bb9a7e8279 Fix api url in UI
Reminding of the local development
2023-05-11 18:45:20 +02:00
a398641172 Change type of user_id and server_id from long to string
JS don't support such big numbers.
2023-05-08 18:02:32 +02:00
4ce0f70d5d Fix not updateing user_id on config entity 2023-05-08 17:46:52 +02:00
568e175208 Use the system message from the config 2023-05-08 17:31:05 +02:00
e6b7f10b87 Fix grama 2023-05-08 16:34:00 +02:00
7d4ff3ce64 Add automatic migration on startup
Executes on ever start up the schema.sql file.
2023-05-08 16:13:43 +02:00
1060d4d577 Update Javalin to version 5.5.0 2023-05-05 01:25:15 +02:00
24adb8d0ce Add redirect to index.html if file was not found
This should help using the SPA
2023-05-05 01:23:24 +02:00
ceb2fe27a7 Add /api to api endpoints
To differentiate beween file access and api call.
2023-05-05 01:22:27 +02:00
bc4a5240d7 Fix reading API_PORT env 2023-05-05 01:21:07 +02:00
9b6409914a Add vuejs to build container image 2023-05-05 01:20:24 +02:00
391f3969c6 Add static fileserver for vue app 2023-05-05 00:18:41 +02:00
abbb02729a Implement CRUD for user config 2023-05-04 23:46:27 +02:00
0769040fc0 Fix deserialization of incomming new entities 2023-05-04 23:41:50 +02:00
5d34208625 Fix failing OPTIONS CORS browser request 2023-05-04 23:40:24 +02:00
e24f80cea5 Implement CRUD on ServerConfigs 2023-05-04 23:39:44 +02:00
40d33a45e6 Fix cutting system message on small messages
It will now only cut the message if its longer than 50 characters.
2023-05-04 23:26:13 +02:00
ac43032aab Fix table rendering with more than one entry 2023-05-04 23:25:24 +02:00
12e807c5ed Rework how actions work 2023-05-04 21:10:54 +02:00
44c6a3b1a7 Update UserConfigsView to have all entity fields 2023-05-03 20:35:07 +02:00
cf42778103 Add loading server configs 2023-05-03 20:34:45 +02:00
3c1a049dd7 Wrap RouterView in Suspend
This should allow us to use async/await in the component setup.
2023-05-03 20:29:02 +02:00
5509126896 Remove allowed views
The endpoints no longer exists.
2023-05-03 19:25:19 +02:00
2b3d812c00 Drop unused allowed tables 2023-05-03 19:15:38 +02:00
c1e2f4c4f3 Add time to configs tables
This should allow us to see when the entity was created.
2023-05-03 19:14:52 +02:00
aaffdda371 Fix resources paths 2023-05-03 19:08:16 +02:00
ed6ff54537 Remove usage of allowed entity from user and server resources 2023-05-03 19:03:28 +02:00
255a4ede3e Add CORS for in the API
We currently don't need cors.
2023-05-03 18:40:31 +02:00
806aee663d Remove message related views
There is currently no way to extract them with the api.
2023-05-03 17:28:44 +02:00
816eddd039 Remove before function to check login state on router 2023-04-30 03:14:33 +02:00
acfec04173 Add Caddy setup for serving the ui 2023-04-30 03:02:46 +02:00
86de126b41 Fix vite build
Removes remaining pina references from vuejs setup.
2023-04-30 01:58:20 +02:00
bfa5372ce4 Remove AccessManager from web API 2023-04-29 16:50:40 +02:00
a7388de9f5 Add Servers and Users to the nav menu 2023-04-29 16:41:27 +02:00
b82355ea1a Remove all login and auth related code
I am gonna use something like caddy as revers proxy to expose the service.
Caddy offers the functionality to secure resources with basic auth
and promt the browser on usage. I am gona go with it. It's the simplest
solution.

I still need to remove the basic auth code from the backend and craft
a configuration for caddy.
2023-04-29 16:34:58 +02:00
48cc667d26 Duplicate servers views for users 2023-04-29 15:53:53 +02:00
6cde6438d2 Remove unused action from ServerMessagesView
There are no actions for this view.
2023-04-29 15:43:37 +02:00
c096ec17c1 Make actions column in TableComponent optional 2023-04-29 15:42:53 +02:00
656e202abd Remove event handling in favor of passing function as prop 2023-04-28 15:10:41 +02:00
80b92dd1ea Add support for defining custom actions
Little bit tricky, because Vue will only allow the call of 'inject()'
from inside of the setup method or from a functional component. Using a
functional component is not an option since the value that we want to
inject is not provided by the app, its being provided by the parent
component. Using inject inside the component will also not work, since
we can not call it inside the setup. [1]

Using an handler function that the parent component provides is a
compromise to be still able to be as dynamic as possible.

Refs:
- [1] https://github.com/vueuse/vueuse/issues/1061
2023-04-28 02:44:28 +02:00