[autocomplete] new from-scratch autocomplete implementation

This commit is contained in:
Shish
2023-12-24 21:21:25 +00:00
parent 85b1e54904
commit b55b5a0a0f
10 changed files with 222 additions and 345 deletions

View File

@ -6,9 +6,6 @@ namespace Shimmie2;
class AutoComplete extends Extension
{
/** @var AutoCompleteTheme */
protected Themelet $theme;
public function get_priority(): int
{
return 30;
@ -28,8 +25,6 @@ class AutoComplete extends Extension
$page->set_mime(MimeType::JSON);
$page->set_data(json_encode($res));
}
$this->theme->build_autocomplete($page);
}
private function complete(string $search, int $limit): array