parent
4383c5e8d8
commit
f2f67c34af
@ -580,11 +580,15 @@ export class CrawlTemplatesDetail extends LiteElement {
|
|||||||
: ""}
|
: ""}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="mb-5">
|
||||||
|
<div class="text-sm text-0-600">${msg("Include External Links")}</div>
|
||||||
|
${this.crawlTemplate?.config.extraHops ? msg("Yes") : msg("No")}
|
||||||
|
</div>
|
||||||
|
|
||||||
<sl-details style="--sl-spacing-medium: var(--sl-spacing-small)">
|
<sl-details style="--sl-spacing-medium: var(--sl-spacing-small)">
|
||||||
<span slot="summary" class="text-sm">
|
<span slot="summary" class="text-sm">
|
||||||
<span class="font-medium">${msg("Advanced configuration")}</span>
|
<span class="font-medium">${msg("JSON Configuration")}</span>
|
||||||
<sl-tag size="small" type="neutral">${msg("JSON")}</sl-tag></span
|
</span>
|
||||||
>
|
|
||||||
<div class="relative">
|
<div class="relative">
|
||||||
<pre
|
<pre
|
||||||
class="language-json bg-gray-800 text-gray-50 p-4 rounded font-mono text-xs"
|
class="language-json bg-gray-800 text-gray-50 p-4 rounded font-mono text-xs"
|
||||||
@ -1068,9 +1072,7 @@ export class CrawlTemplatesDetail extends LiteElement {
|
|||||||
if (!this.crawlTemplate) return;
|
if (!this.crawlTemplate) return;
|
||||||
|
|
||||||
const config: CrawlTemplate["config"] = {
|
const config: CrawlTemplate["config"] = {
|
||||||
seeds: this.crawlTemplate.config.seeds,
|
...this.crawlTemplate.config,
|
||||||
scopeType: this.crawlTemplate.config.scopeType,
|
|
||||||
limit: this.crawlTemplate.config.limit,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
this.navTo(`/archives/${this.archiveId}/crawl-templates/new`, {
|
this.navTo(`/archives/${this.archiveId}/crawl-templates/new`, {
|
||||||
|
@ -405,9 +405,7 @@ export class CrawlTemplatesList extends LiteElement {
|
|||||||
*/
|
*/
|
||||||
private async duplicateConfig(template: CrawlTemplate) {
|
private async duplicateConfig(template: CrawlTemplate) {
|
||||||
const config: CrawlTemplate["config"] = {
|
const config: CrawlTemplate["config"] = {
|
||||||
seeds: template.config.seeds,
|
...template.config,
|
||||||
scopeType: template.config.scopeType,
|
|
||||||
limit: template.config.limit,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
this.navTo(`/archives/${this.archiveId}/crawl-templates/new`, {
|
this.navTo(`/archives/${this.archiveId}/crawl-templates/new`, {
|
||||||
|
@ -411,7 +411,9 @@ export class CrawlTemplatesNew extends LiteElement {
|
|||||||
<sl-menu-item value="any">Any</sl-menu-item>
|
<sl-menu-item value="any">Any</sl-menu-item>
|
||||||
</sl-select>
|
</sl-select>
|
||||||
|
|
||||||
<sl-checkbox name="extraHopsOne"
|
<sl-checkbox
|
||||||
|
name="extraHopsOne"
|
||||||
|
?checked=${this.initialCrawlTemplate!.config.extraHops === 1}
|
||||||
>${msg("Include External Links (“one hop out”)")}
|
>${msg("Include External Links (“one hop out”)")}
|
||||||
</sl-checkbox>
|
</sl-checkbox>
|
||||||
<sl-input
|
<sl-input
|
||||||
|
Loading…
Reference in New Issue
Block a user