Browse Source

delete console.log

main
matthew 2 years ago
parent
commit
8115b37f60
  1. 4
      searching-front/app/core/pages/Main/LastSitesWidget/LastSitesWidget.tsx
  2. 1
      searching-front/services/modules/elastic/index.ts
  3. 1
      searching-front/services/modules/parser/helpers.ts
  4. 1
      searching-front/services/parser.ts

4
searching-front/app/core/pages/Main/LastSitesWidget/LastSitesWidget.tsx

@ -33,14 +33,14 @@ const LastSitesWidget = (props: Props) => {
onClick={()=>count('from_main_new_sites_widget_to_site')}
>
{getDomainFromUrl(i.address)}
<Button onClick={console.log} className={s.siteButton} theme="primary">
<Button className={s.siteButton} theme="primary">
.ton
</Button>
</Link>
</div>
))}
</div>
<Button onClick={console.log} className={s.button} theme="primary">
<Button className={s.button} theme="primary">
.ton
</Button>
</div>

1
searching-front/services/modules/elastic/index.ts

@ -103,7 +103,6 @@ class Elastic {
public index = async (params: ElasticIndexParams) => {
const indexName = getIndexNameByText(params.title + params.bodyText)
console.log('index',params)
await this.client.index({
index: indexName,
id: params.url,

1
searching-front/services/modules/parser/helpers.ts

@ -19,7 +19,6 @@ export const htmlToText = (html: string) => {
.replaceAll(/<!--\s?(.|\R|\s)*?-->/g, "")
.replaceAll(/<.*><\/.*>/g, "")
} catch (e) {
console.log("htmlToText", e)
return ""
}
}

1
searching-front/services/parser.ts

@ -11,7 +11,6 @@ const findFirstNotIndexed = (subpages: SubPages = {}) => {
}
const indexWebsite = async (domain: string, path: string, subpages: SubPages = {},count=0) => {
console.log(subpages)
const subpagesLength = Object.keys(subpages).length;
if (!subpages[path]) {
const url = domain + path;

Loading…
Cancel
Save