Migrate omsorgapp to browser SPA, add Docker/CI build setup
Docker-Images bauen und veröffentlichen / build (, omsorgCore/Dockerfile, omsorgcore) (push) Successful in 3s
Docker-Images bauen und veröffentlichen / build (, omsorgWeb/Dockerfile, omsorgweb) (push) Failing after 4s
Docker-Images bauen und veröffentlichen / build (VITE_OMSORG_CORE_URL=${{ vars.OMSORG_CORE_PUBLIC_URL }}, omsorgapp/Dockerfile, omsorgapp) (push) Successful in 3s

- omsorgapp: drop Electron, run as a plain Vite/React browser app; refresh
  token moves to an HttpOnly cookie (omsorgCore), CORS added for the new
  browser origin, document download/preview switched to Blob-based browser
  APIs.
- Add Dockerfiles for omsorgCore, omsorgapp, and omsorgWeb, a docker-compose.yml
  wiring Postgres/MySQL/all three apps together, and a Gitea Actions workflow
  that builds and pushes images to the repo's container registry on push to
  main and on version tags.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Felix Kemmler
2026-08-10 17:42:45 +02:00
co-authored by Claude Sonnet 5
parent e9e96a57dc
commit 598dfcd38a
461 changed files with 59753 additions and 2859 deletions
@@ -77,6 +77,9 @@ class FacilitiesApi
'apiFacilitiesGet' => [
'application/json',
],
'apiFacilitiesIdDelete' => [
'application/json',
],
'apiFacilitiesIdGet' => [
'application/json',
],
@@ -143,6 +146,7 @@ class FacilitiesApi
*
* @param string|null $search search (optional)
* @param string|null $crm_status crm_status (optional)
* @param bool|null $follow_up_due_only follow_up_due_only (optional, default to false)
* @param int|null $page page (optional, default to 1)
* @param int|null $page_size page_size (optional, default to 20)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['apiFacilitiesGet'] to see the possible values for this operation
@@ -151,9 +155,9 @@ class FacilitiesApi
* @throws \InvalidArgumentException
* @return \OmsorgCoreClient\Model\FacilityResponsePagedResponse
*/
public function apiFacilitiesGet($search = null, $crm_status = null, $page = 1, $page_size = 20, string $contentType = self::contentTypes['apiFacilitiesGet'][0])
public function apiFacilitiesGet($search = null, $crm_status = null, $follow_up_due_only = false, $page = 1, $page_size = 20, string $contentType = self::contentTypes['apiFacilitiesGet'][0])
{
list($response) = $this->apiFacilitiesGetWithHttpInfo($search, $crm_status, $page, $page_size, $contentType);
list($response) = $this->apiFacilitiesGetWithHttpInfo($search, $crm_status, $follow_up_due_only, $page, $page_size, $contentType);
return $response;
}
@@ -162,6 +166,7 @@ class FacilitiesApi
*
* @param string|null $search (optional)
* @param string|null $crm_status (optional)
* @param bool|null $follow_up_due_only (optional, default to false)
* @param int|null $page (optional, default to 1)
* @param int|null $page_size (optional, default to 20)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['apiFacilitiesGet'] to see the possible values for this operation
@@ -170,9 +175,9 @@ class FacilitiesApi
* @throws \InvalidArgumentException
* @return array of \OmsorgCoreClient\Model\FacilityResponsePagedResponse, HTTP status code, HTTP response headers (array of strings)
*/
public function apiFacilitiesGetWithHttpInfo($search = null, $crm_status = null, $page = 1, $page_size = 20, string $contentType = self::contentTypes['apiFacilitiesGet'][0])
public function apiFacilitiesGetWithHttpInfo($search = null, $crm_status = null, $follow_up_due_only = false, $page = 1, $page_size = 20, string $contentType = self::contentTypes['apiFacilitiesGet'][0])
{
$request = $this->apiFacilitiesGetRequest($search, $crm_status, $page, $page_size, $contentType);
$request = $this->apiFacilitiesGetRequest($search, $crm_status, $follow_up_due_only, $page, $page_size, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -248,6 +253,7 @@ class FacilitiesApi
*
* @param string|null $search (optional)
* @param string|null $crm_status (optional)
* @param bool|null $follow_up_due_only (optional, default to false)
* @param int|null $page (optional, default to 1)
* @param int|null $page_size (optional, default to 20)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['apiFacilitiesGet'] to see the possible values for this operation
@@ -255,9 +261,9 @@ class FacilitiesApi
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function apiFacilitiesGetAsync($search = null, $crm_status = null, $page = 1, $page_size = 20, string $contentType = self::contentTypes['apiFacilitiesGet'][0])
public function apiFacilitiesGetAsync($search = null, $crm_status = null, $follow_up_due_only = false, $page = 1, $page_size = 20, string $contentType = self::contentTypes['apiFacilitiesGet'][0])
{
return $this->apiFacilitiesGetAsyncWithHttpInfo($search, $crm_status, $page, $page_size, $contentType)
return $this->apiFacilitiesGetAsyncWithHttpInfo($search, $crm_status, $follow_up_due_only, $page, $page_size, $contentType)
->then(
function ($response) {
return $response[0];
@@ -270,6 +276,7 @@ class FacilitiesApi
*
* @param string|null $search (optional)
* @param string|null $crm_status (optional)
* @param bool|null $follow_up_due_only (optional, default to false)
* @param int|null $page (optional, default to 1)
* @param int|null $page_size (optional, default to 20)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['apiFacilitiesGet'] to see the possible values for this operation
@@ -277,10 +284,10 @@ class FacilitiesApi
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function apiFacilitiesGetAsyncWithHttpInfo($search = null, $crm_status = null, $page = 1, $page_size = 20, string $contentType = self::contentTypes['apiFacilitiesGet'][0])
public function apiFacilitiesGetAsyncWithHttpInfo($search = null, $crm_status = null, $follow_up_due_only = false, $page = 1, $page_size = 20, string $contentType = self::contentTypes['apiFacilitiesGet'][0])
{
$returnType = '\OmsorgCoreClient\Model\FacilityResponsePagedResponse';
$request = $this->apiFacilitiesGetRequest($search, $crm_status, $page, $page_size, $contentType);
$request = $this->apiFacilitiesGetRequest($search, $crm_status, $follow_up_due_only, $page, $page_size, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -323,6 +330,7 @@ class FacilitiesApi
*
* @param string|null $search (optional)
* @param string|null $crm_status (optional)
* @param bool|null $follow_up_due_only (optional, default to false)
* @param int|null $page (optional, default to 1)
* @param int|null $page_size (optional, default to 20)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['apiFacilitiesGet'] to see the possible values for this operation
@@ -330,7 +338,7 @@ class FacilitiesApi
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
public function apiFacilitiesGetRequest($search = null, $crm_status = null, $page = 1, $page_size = 20, string $contentType = self::contentTypes['apiFacilitiesGet'][0])
public function apiFacilitiesGetRequest($search = null, $crm_status = null, $follow_up_due_only = false, $page = 1, $page_size = 20, string $contentType = self::contentTypes['apiFacilitiesGet'][0])
{
@@ -338,6 +346,7 @@ class FacilitiesApi
$resourcePath = '/api/facilities';
$formParams = [];
$queryParams = [];
@@ -364,6 +373,15 @@ class FacilitiesApi
false // required
) ?? []);
// query params
$queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
$follow_up_due_only,
'followUpDueOnly', // param base name
'boolean', // openApiType
'form', // style
true, // explode
false // required
) ?? []);
// query params
$queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
$page,
'page', // param base name
@@ -442,6 +460,220 @@ class FacilitiesApi
);
}
/**
* Operation apiFacilitiesIdDelete
*
* @param string $id id (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['apiFacilitiesIdDelete'] to see the possible values for this operation
*
* @throws \OmsorgCoreClient\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
* @return void
*/
public function apiFacilitiesIdDelete($id, string $contentType = self::contentTypes['apiFacilitiesIdDelete'][0])
{
$this->apiFacilitiesIdDeleteWithHttpInfo($id, $contentType);
}
/**
* Operation apiFacilitiesIdDeleteWithHttpInfo
*
* @param string $id (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['apiFacilitiesIdDelete'] to see the possible values for this operation
*
* @throws \OmsorgCoreClient\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
* @return array of null, HTTP status code, HTTP response headers (array of strings)
*/
public function apiFacilitiesIdDeleteWithHttpInfo($id, string $contentType = self::contentTypes['apiFacilitiesIdDelete'][0])
{
$request = $this->apiFacilitiesIdDeleteRequest($id, $contentType);
try {
$options = $this->createHttpClientOption();
try {
$response = $this->client->send($request, $options);
} catch (RequestException $e) {
throw new ApiException(
"[{$e->getCode()}] {$e->getMessage()}",
(int) $e->getCode(),
$e->getResponse() ? $e->getResponse()->getHeaders() : null,
$e->getResponse() ? (string) $e->getResponse()->getBody() : null
);
} catch (ConnectException $e) {
throw new ApiException(
"[{$e->getCode()}] {$e->getMessage()}",
(int) $e->getCode(),
null,
null
);
}
$statusCode = $response->getStatusCode();
return [null, $statusCode, $response->getHeaders()];
} catch (ApiException $e) {
switch ($e->getCode()) {
}
throw $e;
}
}
/**
* Operation apiFacilitiesIdDeleteAsync
*
* @param string $id (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['apiFacilitiesIdDelete'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function apiFacilitiesIdDeleteAsync($id, string $contentType = self::contentTypes['apiFacilitiesIdDelete'][0])
{
return $this->apiFacilitiesIdDeleteAsyncWithHttpInfo($id, $contentType)
->then(
function ($response) {
return $response[0];
}
);
}
/**
* Operation apiFacilitiesIdDeleteAsyncWithHttpInfo
*
* @param string $id (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['apiFacilitiesIdDelete'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function apiFacilitiesIdDeleteAsyncWithHttpInfo($id, string $contentType = self::contentTypes['apiFacilitiesIdDelete'][0])
{
$returnType = '';
$request = $this->apiFacilitiesIdDeleteRequest($id, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
->then(
function ($response) use ($returnType) {
return [null, $response->getStatusCode(), $response->getHeaders()];
},
function ($exception) {
$response = $exception->getResponse();
$statusCode = $response->getStatusCode();
throw new ApiException(
sprintf(
'[%d] Error connecting to the API (%s)',
$statusCode,
$exception->getRequest()->getUri()
),
$statusCode,
$response->getHeaders(),
(string) $response->getBody()
);
}
);
}
/**
* Create request for operation 'apiFacilitiesIdDelete'
*
* @param string $id (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['apiFacilitiesIdDelete'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
public function apiFacilitiesIdDeleteRequest($id, string $contentType = self::contentTypes['apiFacilitiesIdDelete'][0])
{
// verify the required parameter 'id' is set
if ($id === null || (is_array($id) && count($id) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $id when calling apiFacilitiesIdDelete'
);
}
$resourcePath = '/api/facilities/{id}';
$formParams = [];
$queryParams = [];
$headerParams = [];
$httpBody = '';
$multipart = false;
// path params
if ($id !== null) {
$resourcePath = str_replace(
'{' . 'id' . '}',
ObjectSerializer::toPathValue($id),
$resourcePath
);
}
$headers = $this->headerSelector->selectHeaders(
[],
$contentType,
$multipart
);
// for model (json/xml)
if (count($formParams) > 0) {
if ($multipart) {
$multipartContents = [];
foreach ($formParams as $formParamName => $formParamValue) {
$formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
foreach ($formParamValueItems as $formParamValueItem) {
$multipartContents[] = [
'name' => $formParamName,
'contents' => $formParamValueItem
];
}
}
// for HTTP post (form)
$httpBody = new MultipartStream($multipartContents);
} elseif (stripos($headers['Content-Type'], 'application/json') !== false) {
# if Content-Type contains "application/json", json_encode the form parameters
$httpBody = \GuzzleHttp\Utils::jsonEncode($formParams);
} else {
// for HTTP post (form)
$httpBody = ObjectSerializer::buildQuery($formParams);
}
}
// this endpoint requires Bearer (JWT) authentication (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
}
$defaultHeaders = [];
if ($this->config->getUserAgent()) {
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();
}
$headers = array_merge(
$defaultHeaders,
$headerParams,
$headers
);
$operationHost = $this->config->getHost();
$query = ObjectSerializer::buildQuery($queryParams);
return new Request(
'DELETE',
$operationHost . $resourcePath . ($query ? "?{$query}" : ''),
$headers,
$httpBody
);
}
/**
* Operation apiFacilitiesIdGet
*