Browse Source

fix date

main
matthew 2 years ago
parent
commit
f3436e8612
  1. 1
      searching-front/app/core/helpers/metrika.ts
  2. 4
      searching-front/app/core/pages/State/State.tsx
  3. 16
      searching-front/services/main.ts

1
searching-front/app/core/helpers/metrika.ts

@ -1,5 +1,4 @@
export const count = (event:string) => { export const count = (event:string) => {
yaCounter90644479.reachGoal(event) yaCounter90644479.reachGoal(event)
gtag('event', event); gtag('event', event);
console.log(event)
} }

4
searching-front/app/core/pages/State/State.tsx

@ -97,7 +97,7 @@ const State = ({
keepPreviousData: true, keepPreviousData: true,
initialData: historyOfStatePreloaded, initialData: historyOfStatePreloaded,
}) })
console.log(historyPeriod, historyOfState)
return ( return (
<div className={s.root}> <div className={s.root}>
<div className={s.actualStateWrapper}> <div className={s.actualStateWrapper}>
@ -124,7 +124,7 @@ const State = ({
onClick={()=>count('from_state_page_to_site')} onClick={()=>count('from_state_page_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>

16
searching-front/services/main.ts

@ -6,15 +6,15 @@ import parser from "./parser"
import influx from "./influx" import influx from "./influx"
const run = async()=>{ const run = async()=>{
// console.log('Start domain watcher') console.log('Start domain watcher')
// console.time('watcher') console.time('watcher')
// await domainWatcher(); await domainWatcher();
// console.timeEnd('watcher') console.timeEnd('watcher')
// influx() influx()
// console.log('Start parser'); console.log('Start parser');
// console.time('watcher'); console.time('watcher');
await parser(); await parser();
// console.timeEnd('watcher'); console.timeEnd('watcher');
} }

Loading…
Cancel
Save