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')} onClick={()=>count('from_main_new_sites_widget_to_site')}
> >
{getDomainFromUrl(i.address)} {getDomainFromUrl(i.address)}
<Button onClick={console.log} className={s.siteButton} theme="primary"> <Button className={s.siteButton} theme="primary">
.ton .ton
</Button> </Button>
</Link> </Link>
</div> </div>
))} ))}
</div> </div>
<Button onClick={console.log} className={s.button} theme="primary"> <Button className={s.button} theme="primary">
.ton .ton
</Button> </Button>
</div> </div>

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

@ -103,7 +103,6 @@ class Elastic {
public index = async (params: ElasticIndexParams) => { public index = async (params: ElasticIndexParams) => {
const indexName = getIndexNameByText(params.title + params.bodyText) const indexName = getIndexNameByText(params.title + params.bodyText)
console.log('index',params)
await this.client.index({ await this.client.index({
index: indexName, index: indexName,
id: params.url, 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(/<!--\s?(.|\R|\s)*?-->/g, "")
.replaceAll(/<.*><\/.*>/g, "") .replaceAll(/<.*><\/.*>/g, "")
} catch (e) { } catch (e) {
console.log("htmlToText", e)
return "" 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) => { const indexWebsite = async (domain: string, path: string, subpages: SubPages = {},count=0) => {
console.log(subpages)
const subpagesLength = Object.keys(subpages).length; const subpagesLength = Object.keys(subpages).length;
if (!subpages[path]) { if (!subpages[path]) {
const url = domain + path; const url = domain + path;

Loading…
Cancel
Save