Skip to content

Commit

Permalink
(seo) minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed May 6, 2024
1 parent 6258665 commit 072cf9d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
22 changes: 11 additions & 11 deletions frontend/src/components/Extractor.astro
Original file line number Diff line number Diff line change
Expand Up @@ -57,28 +57,28 @@ const baseURL = import.meta.env.PUBLIC_BASE_URL;
<div class="pt-10">
<div class="grid gap-6 mb-6 md:grid-cols-2">
<div>
<label for="first_name" class="block mb-2 text-sm font-medium text-slate-500">Depth</label>
<input disabled type="text" class="block font-mono w-full p-3 ps-4 text-sm text-slate-300 hover:text-slate-100 border border-gray-500 hover:border-gray-100 rounded-lg bg-gray-900 focus:outline-none" placeholder="-1" required />
<label for="first_name" class="block mb-2 text-sm font-medium text-slate-400">Depth</label>
<input disabled type="text" class="block font-mono w-full p-3 ps-4 text-sm text-slate-300 hover:text-slate-100 border border-gray-500 hover:border-gray-100 rounded-lg bg-gray-900 focus:outline-none" placeholder="-1" />
</div>
<div>
<label for="first_name" class="block mb-2 text-sm font-medium text-slate-500">Limit URLs</label>
<input disabled type="text" class="block font-mono w-full p-3 ps-4 text-sm text-slate-300 hover:text-slate-100 border border-gray-500 hover:border-gray-100 rounded-lg bg-gray-900 focus:outline-none" placeholder="100" required />
<label for="first_name" class="block mb-2 text-sm font-medium text-slate-400">Ignore Queries</label>
<input disabled type="tel" class="block font-mono w-full p-3 ps-4 text-sm text-slate-300 hover:text-slate-100 border border-gray-500 hover:border-gray-100 rounded-lg bg-gray-900 focus:outline-none" placeholder="true" />
</div>
<div>
<label for="first_name" class="block mb-2 text-sm font-medium text-slate-500">Limit Emails</label>
<input disabled type="text" class="block font-mono w-full p-3 ps-4 text-sm text-slate-300 hover:text-slate-100 border border-gray-500 hover:border-gray-100 rounded-lg bg-gray-900 focus:outline-none" placeholder="1000" required />
<label for="first_name" class="block mb-2 text-sm font-medium text-slate-500">Limit URLs</label>
<input disabled type="text" class="block font-mono w-full p-3 ps-4 text-sm text-slate-300 hover:text-slate-100 border border-gray-500 hover:border-gray-100 rounded-lg bg-gray-900 focus:outline-none" placeholder="100 disabled" />
</div>
<div>
<label for="first_name" class="block mb-2 text-sm font-medium text-slate-500">Ignore Queries</label>
<input disabled type="tel" class="block font-mono w-full p-3 ps-4 text-sm text-slate-300 hover:text-slate-100 border border-gray-500 hover:border-gray-100 rounded-lg bg-gray-900 focus:outline-none" placeholder="true" required />
<label for="first_name" class="block mb-2 text-sm font-medium text-slate-500">Limit Emails</label>
<input disabled type="text" class="block font-mono w-full p-3 ps-4 text-sm text-slate-300 hover:text-slate-100 border border-gray-500 hover:border-gray-100 rounded-lg bg-gray-900 focus:outline-none" placeholder="1000 disabled" />
</div>
</div>
</div>
</div>
<br>
<div class="inline-flex items-center justify-center w-full select-none">
<hr class="w-64 h-px my-8 bg-gray-500 border-0 dark:bg-gray-700">
<span class="absolute px-3 py-1 font-bold -translate-x-1/2 left-1/2 text-green-300 bg-slate-900 rounded border-2 border-gray-700">Output</span>
<hr class="w-48 h-px my-8 bg-gray-500 border-0 dark:bg-gray-700">
<span class="absolute px-3 py-1 text-sm font-bold -translate-x-1/2 left-1/2 text-green-300 bg-slate-900 rounded border-2 border-gray-700">OUTPUT</span>
</div>

<div class="text-center text-sm pt-5 select-none">
Expand All @@ -87,7 +87,7 @@ const baseURL = import.meta.env.PUBLIC_BASE_URL;
<span class="font-semibold pl-5">HITS #</span><span x-text="loading.counterHits"
class=" text-green-500 font-bold"></span>
</div>
<div class="text-center text-sm pt-1 block">
<div class="text-center text-sm pt-1 block select-none">
➠ <span x-text="loading.url" class="text-blue-300"></span>
</div>
<template x-if="result.data.length > 0">
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const { title, description } = Astro.props;
<head>
<meta charset="UTF-8" />
<meta name="description" content={description} />
<meta name="viewport" content="width=device-width" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, viewport-fit=cover" />
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content={title} />
Expand Down
5 changes: 3 additions & 2 deletions pkg/extract_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ func NewExtractHandler() *ExtractHandler {
}

type ExtractorRequest struct {
URL string `json:"url" query:"url" validate:"required" message:"url is required"`
Depth int `json:"depth" query:"depth" validate:"numeric" message:"depth must be a number"`
URL string `json:"url" query:"url" validate:"required" message:"url is required"`
Depth int `json:"depth" query:"depth" validate:"numeric" message:"depth must be a number"`
IgnoreQueries bool `json:"ignore_queries" query:"ignore_queries"`
}

func (h *ExtractHandler) Get(c echo.Context) error {
Expand Down

0 comments on commit 072cf9d

Please sign in to comment.