Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Kagi Search #1201

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions resources/lang/br/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'Página inicial',
'options.yes' => 'Sim',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/cs/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'StartPage',
'options.yes' => 'Ano',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/da/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'Startside',
'options.yes' => 'Ja',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/de/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'StartSeite',
'options.yes' => 'Ja',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/el/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'StartPage',
'options.yes' => 'Ναι',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/en/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'StartPage',
'options.yes' => 'Yes',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/es/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'Página de Inicio',
'options.yes' => 'Sí',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/fi/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'Etusivu',
'options.yes' => 'Kyllä',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/fr/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'Page d\'accueil',
'options.yes' => 'Oui',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/hu/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'Kezdő oldal',
'options.yes' => 'Igen',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/it/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'StartPage',
'options.yes' => 'Sì',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/jp/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'スタートページ',
'options.yes' => 'はい',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/ko/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => '시작 페이지',
'options.yes' => '예',
Expand Down
2 changes: 1 addition & 1 deletion resources/lang/lmo/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
'options.ddg' => 'DuckDuckGo',

'options.bing' => 'Bing',
'options.kagi' => 'Kagi',

'options.qwant' => 'Qwant',

Expand Down Expand Up @@ -219,4 +220,3 @@
'alert.success.user_restored' => 'Utent ripescad',

];

1 change: 1 addition & 0 deletions resources/lang/nl/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'Startpagina',
'options.yes' => 'Ja',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/no/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'Startside',
'options.yes' => 'Ja',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/pl/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'Strona startowa',
'options.yes' => 'Tak',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/pt/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'StartPage',
'options.yes' => 'Sim',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/ru/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'Начальная страница',
'options.yes' => 'Да',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/sl/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'StartPage',
'options.yes' => 'Da',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/sv/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'Startsida',
'options.yes' => 'Ja',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/tr/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'Başlangıç sayfası',
'options.yes' => 'Evet',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/uk/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => 'Початкова сторінка',
'options.yes' => 'Так',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/zh/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
'options.baidu' => '百度',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => '起始页',
'options.yes' => '是',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/zh_TW/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.kagi' => 'Kagi',
'options.qwant' => 'Qwant',
'options.startpage' => '起始页',
'options.yes' => '是',
Expand Down
8 changes: 8 additions & 0 deletions storage/app/searchproviders.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion storage/app/supportedapps.json

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions vendor/filp/whoops/src/Whoops/Resources/views/header.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down