|
@@ -11,7 +11,7 @@
|
|
export let saveHandler: Function;
|
|
export let saveHandler: Function;
|
|
|
|
|
|
let webConfig = null;
|
|
let webConfig = null;
|
|
- let webSearchEngines = ['searxng', 'google_pse', 'brave', 'serpstack', 'serper'];
|
|
|
|
|
|
+ let webSearchEngines = ['searxng', 'google_pse', 'brave', 'serpstack', 'serper', 'serply'];
|
|
|
|
|
|
let youtubeLanguage = 'en';
|
|
let youtubeLanguage = 'en';
|
|
let youtubeTranslation = null;
|
|
let youtubeTranslation = null;
|
|
@@ -188,6 +188,24 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ {:else if webConfig.search.engine === 'serply'}
|
|
|
|
+ <div>
|
|
|
|
+ <div class=" self-center text-xs font-medium mb-1">
|
|
|
|
+ {$i18n.t('Serply API Key')}
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="flex w-full">
|
|
|
|
+ <div class="flex-1">
|
|
|
|
+ <input
|
|
|
|
+ class="w-full rounded-lg py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-850 outline-none"
|
|
|
|
+ type="text"
|
|
|
|
+ placeholder={$i18n.t('Enter Serply API Key')}
|
|
|
|
+ bind:value={webConfig.search.serply_api_key}
|
|
|
|
+ autocomplete="off"
|
|
|
|
+ />
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
{/if}
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
{/if}
|