fix: Navigation blocking now working with focuesed input fields
fix: Added warning to loging with lookup provider for better UX feat: Added ROMM Client API Token in plugin settings
This commit is contained in:
parent
7029477392
commit
4da717c26d
20 changed files with 160 additions and 96 deletions
|
|
@ -499,17 +499,17 @@ export default new Elysia()
|
|||
}, { body: z.object({ source: z.string(), id: z.string() }) })
|
||||
.get('/lookup', async ({ query: { search } }) =>
|
||||
{
|
||||
const matches: GameLookup[] = [];
|
||||
await plugins.hooks.games.gameLookup.promise({ search, matches });
|
||||
return matches;
|
||||
const matches = new Map<string, GameLookup[]>();
|
||||
await plugins.hooks.games.gameLookup.promise(matches, { search });
|
||||
return { hadMatchers: matches.size > 0, matches: Array.from(matches.values()).flatMap(m => m) };
|
||||
}, {
|
||||
query: z.object({ search: z.string() })
|
||||
})
|
||||
.get('/lookup/:source/:id', async ({ params: { source, id } }) =>
|
||||
{
|
||||
const matches: GameLookup[] = [];
|
||||
await plugins.hooks.games.gameLookup.promise({ source, id, matches });
|
||||
return matches;
|
||||
const matches = new Map<string, GameLookup[]>();
|
||||
await plugins.hooks.games.gameLookup.promise(matches, { source, id });
|
||||
return Array.from(matches.values()).flatMap(m => m);
|
||||
})
|
||||
.post('/game/:source/:id/play', async ({ params: { id, source }, body, set }) =>
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue