🐛 fix(mana-search): fix SearXNG docker config for local development

- Remove :ro flag from volume mounts (SearXNG needs write access)
- Simplify limiter.toml to match current SearXNG schema
- Disable link_token for API usage without browser
This commit is contained in:
Till-JS 2026-01-29 13:07:21 +01:00
parent 176aa052b9
commit 677eb823e3
23 changed files with 1950 additions and 183 deletions

View file

@ -36,7 +36,12 @@ export class ClockService {
// ===== API Helper =====
private async apiCall<T>(endpoint: string, method: string = 'GET', token?: string, body?: unknown): Promise<T> {
private async apiCall<T>(
endpoint: string,
method = 'GET',
token?: string,
body?: unknown
): Promise<T> {
const headers: Record<string, string> = {
'Content-Type': 'application/json',
};
@ -56,7 +61,7 @@ export class ClockService {
throw new Error(`Clock API error: ${response.status} - ${errorText}`);
}
return response.json();
return response.json() as Promise<T>;
}
// ===== Health =====
@ -167,7 +172,10 @@ export class ClockService {
return finishedAt.toDateString() === today.toDateString();
});
const totalMinutes = finishedToday.reduce((sum, t) => sum + Math.floor(t.durationSeconds / 60), 0);
const totalMinutes = finishedToday.reduce(
(sum, t) => sum + Math.floor(t.durationSeconds / 60),
0
);
return {
totalMinutes,