feat: Add Kagi Search

This commit is contained in:
Sam McLeod 2023-07-31 09:20:17 +10:00
parent fbd050d4e4
commit 74dd032edd
28 changed files with 44 additions and 2 deletions

View file

@ -43,6 +43,7 @@ return [
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'Página inicial',
'options.yes' => 'Sim',

View file

@ -32,6 +32,7 @@ return array (
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'StartPage',
'options.yes' => 'Ano',

View file

@ -32,6 +32,7 @@ return array (
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'Startside',
'options.yes' => 'Ja',

View file

@ -32,6 +32,7 @@ return array (
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'StartSeite',
'options.yes' => 'Ja',

View file

@ -32,6 +32,7 @@ return array (
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'StartPage',
'options.yes' => 'Ναι',

View file

@ -32,6 +32,7 @@ return array (
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'StartPage',
'options.yes' => 'Yes',

View file

@ -32,6 +32,7 @@ return array (
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'Página de Inicio',
'options.yes' => 'Sí',

View file

@ -32,6 +32,7 @@ return array (
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'Etusivu',
'options.yes' => 'Kyllä',

View file

@ -32,6 +32,7 @@ return array (
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'Page d\'accueil',
'options.yes' => 'Oui',

View file

@ -32,6 +32,7 @@ return array (
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'Kezdő oldal',
'options.yes' => 'Igen',

View file

@ -32,6 +32,7 @@ return array (
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'StartPage',
'options.yes' => 'Sì',

View file

@ -32,6 +32,7 @@ return array (
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'スタートページ',
'options.yes' => 'はい',

View file

@ -32,6 +32,7 @@ return array (
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => '시작 페이지',
'options.yes' => '예',

View file

@ -75,6 +75,7 @@ return [
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
@ -219,4 +220,3 @@ return [
'alert.success.user_restored' => 'Utent ripescad',
];

View file

@ -32,6 +32,7 @@ return array (
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'Startpagina',
'options.yes' => 'Ja',

View file

@ -32,6 +32,7 @@ return array (
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'Startside',
'options.yes' => 'Ja',

View file

@ -32,6 +32,7 @@ return array (
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'Strona startowa',
'options.yes' => 'Tak',

View file

@ -32,6 +32,7 @@ return array (
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'StartPage',
'options.yes' => 'Sim',

View file

@ -32,6 +32,7 @@ return array (
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'Начальная страница',
'options.yes' => 'Да',

View file

@ -32,6 +32,7 @@ return array (
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'StartPage',
'options.yes' => 'Da',

View file

@ -32,6 +32,7 @@ return array (
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'Startsida',
'options.yes' => 'Ja',

View file

@ -32,6 +32,7 @@ return array (
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'Başlangıç sayfası',
'options.yes' => 'Evet',

View file

@ -32,6 +32,7 @@ return array (
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'Початкова сторінка',
'options.yes' => 'Так',

View file

@ -46,6 +46,7 @@ return [
'options.baidu' => '百度',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => '起始页',
'options.yes' => '是',

View file

@ -32,6 +32,7 @@ return array (
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => '起始页',
'options.yes' => '是',

View file

@ -42,3 +42,11 @@ startpage:
method: get
target: _blank
query: query
kagi:
id: kagi
url: https://kagi.com/search
name: Kagi
method: get
target: _blank
query: q

File diff suppressed because one or more lines are too long

View file

@ -83,6 +83,16 @@
</svg>
</a>
</li>
<li>
<a rel="noopener noreferrer" target="_blank" href="https://kagi.com/search?q=<?php echo urlencode(implode('\\', $name).' '.$message) ?>" title="Search for help on Kagi.">
<!-- Kagi icon by Kagi.com, from https://kagi.com/assets -->
<!-- Free for non-commercial use -->
<svg class="kagi" height="16" viewBox="0 0 512 512" width="16" xmlns="http://www.w3.org/2000/svg">
<path d="M410.121 0H101.879C45.6125 0 0 45.6125 0 101.879V410.121C0 466.388 45.6125 512 101.879 512H410.121C466.388 512 512 466.388 512 410.121V101.879C512 45.6125 466.388 0 410.121 0Z" fill="#4835BC"/>
<path d="M297.731 375.79H211.318C187.568 375.79 183.953 350.318 188.38 340.093C190.491 335.241 195.271 328.218 199.795 322.48C216.994 331.976 236.322 336.947 255.968 336.927C286.917 336.891 316.588 324.58 338.47 302.695C360.354 280.81 372.661 251.138 372.693 220.189C372.701 203.83 369.261 187.652 362.598 172.711C355.935 157.769 346.199 144.4 334.023 133.473L336.704 130.756C339.84 127.566 343.656 125.126 347.868 123.618C352.079 122.11 356.576 121.573 361.025 122.047L375.071 123.539V66.3224H350.52C337.213 66.3293 324.213 70.3151 313.189 77.7681C302.165 85.221 293.622 95.7999 288.658 108.146C278.02 105.031 266.992 103.45 255.908 103.452C224.958 103.487 195.285 115.798 173.4 137.682C151.516 159.567 139.205 189.239 139.17 220.189C139.139 245.073 147.099 269.309 161.877 289.329L154.963 294.654C153.931 295.443 152.755 296.437 151.542 297.578C127.889 319.629 117.045 348.523 123.243 380.654C126.64 398.255 141.583 416.535 156.795 426.227C167.619 433.032 180.132 436.671 192.917 436.731L289.798 432.801C295.179 432.788 300.475 434.138 305.194 436.723C309.913 439.308 313.901 443.046 316.787 447.587L329.45 470.44L389.505 450.365L379.232 427.998C372.064 412.411 360.575 399.208 346.129 389.955C331.684 380.701 314.887 375.786 297.731 375.79ZM255.968 164.355C270.758 164.381 284.936 170.268 295.394 180.727C305.853 191.185 311.739 205.363 311.765 220.153C311.739 234.943 305.853 249.12 295.394 259.579C284.936 270.038 270.758 275.924 255.968 275.95C241.178 275.924 227 270.038 216.542 259.579C206.083 249.12 200.196 234.943 200.17 220.153C200.196 205.363 206.083 191.185 216.542 180.727C227 170.268 241.178 164.381 255.968 164.355Z" fill="white"/>
</svg>
</a>
</li>
</ul>
<span id="plain-exception"><?php echo $tpl->escape($plain_exception) ?></span>