Split utils functions into set of helper modules

This commit is contained in:
2020-07-18 17:25:47 +03:00
parent d57d8c4942
commit dfc7d48fd4
48 changed files with 175 additions and 163 deletions

View File

@ -3,7 +3,7 @@ import { getBuildingPageAttributes, isForgePage } from '../Page/PageDetector';
import { ContractType } from '../Core/Contract';
import { grabImprovementContracts, grabRemainingSeconds } from '../Page/BuildingPage/ForgePage';
import { ProductionQueue } from '../Core/ProductionQueue';
import { timestamp } from '../utils';
import { timestamp } from '../Helpers/Time';
export class ForgePageGrabber extends Grabber {
grab(): void {

View File

@ -2,7 +2,7 @@ import { Grabber } from './Grabber';
import { isGuildHallPage } from '../Page/PageDetector';
import { grabRemainingSeconds } from '../Page/BuildingPage/GuildHallPage';
import { ProductionQueue } from '../Core/ProductionQueue';
import { timestamp } from '../utils';
import { timestamp } from '../Helpers/Time';
export class GuildHallPageGrabber extends Grabber {
grab(): void {

View File

@ -1,6 +1,6 @@
import { Grabber } from './Grabber';
import { parseLocation } from '../utils';
import { grabBuildingSlots } from '../Page/SlotBlock';
import { parseLocation } from '../Helpers/Browser';
export class VillageBuildingsPageGrabber extends Grabber {
grab(): void {

View File

@ -1,10 +1,11 @@
import { Grabber } from './Grabber';
import { grabBuildingQueueInfo, grabResourcesPerformance } from '../Page/VillageBlock';
import { parseLocation, timestamp } from '../utils';
import { GrabError } from '../Errors';
import { ProductionQueue } from '../Core/ProductionQueue';
import { grabResourceSlots } from '../Page/SlotBlock';
import { BuildingQueueInfo } from '../Core/BuildingQueueInfo';
import { timestamp } from '../Helpers/Time';
import { parseLocation } from '../Helpers/Browser';
export class VillageOverviewPageGrabber extends Grabber {
grab(): void {