diff --git a/Proxy/Program.cs b/Proxy/Program.cs index e78d714..8bf0147 100644 --- a/Proxy/Program.cs +++ b/Proxy/Program.cs @@ -60,7 +60,7 @@ progressApi.MapGet("/", (IMemoryCache memoryCache) => return scanningStatus; }); -/* + RouteGroupBuilder searchApi = app.MapGroup("/search"); searchApi.MapGet("/{term}", (string term) => { @@ -78,7 +78,7 @@ searchApi.MapGet("/{term}", (string term) => return JsonSerializer.Deserialize(msg); }); -*/ + app.Run(); [JsonSerializable(typeof(ScanningStatus))] diff --git a/frontend/app.vue b/frontend/app.vue index 7d22476..8c74edf 100644 --- a/frontend/app.vue +++ b/frontend/app.vue @@ -16,8 +16,5 @@ useHead({ - - - - + \ No newline at end of file diff --git a/frontend/pages/progress.vue b/frontend/pages/progress.vue index 4777cb4..5b7acd6 100644 --- a/frontend/pages/progress.vue +++ b/frontend/pages/progress.vue @@ -39,23 +39,51 @@ fetchMyData(); diff --git a/frontend/types/global.d.ts b/frontend/types/global.d.ts index e3e1453..9ae112f 100644 --- a/frontend/types/global.d.ts +++ b/frontend/types/global.d.ts @@ -6,12 +6,22 @@ interface ProgressType { discardedDbSize: bigint; filteredDbSize: bigint; myDbSize: bigint; -} +}; interface ProgressDictionary { description: string; value: string; -} +}; + +interface SearchResult { + title: string; + description: string; + url: string; +}; + +interface SearchResults { + results: SearchResult[]; +}; type CacheEntry = { data: T;