mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
1 line
42 KiB
JSON
1 line
42 KiB
JSON
|
|
{"ast":null,"code":"import _asyncToGenerator from \"C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\nimport { __decorate } from \"tslib\";\nimport __NG_CLI_RESOURCE__0 from \"./publications.page.html?ngResource\";\nimport __NG_CLI_RESOURCE__1 from \"./publications.page.scss?ngResource\";\nimport { Component } from '@angular/core';\nimport { Router, NavigationEnd } from '@angular/router';\nimport { ModalController, Platform } from '@ionic/angular';\nimport { PublicationsService } from 'src/app/services/publications.service';\nimport { NewActionPage } from './new-action/new-action.page';\nimport { ViewPublicationsPage } from './view-publications/view-publications.page';\nimport { AnimationController } from '@ionic/angular';\nimport { ActionsOptionsPage } from 'src/app/shared/popover/actions-options/actions-options.page';\nimport { EditActionPage } from './edit-action/edit-action.page';\nimport { ToastService } from 'src/app/services/toast.service';\nimport { SqliteService } from 'src/app/services/sqlite.service';\nimport { BackgroundService } from 'src/app/services/background.service';\nimport { ThemeService } from 'src/app/services/theme.service';\nimport { Storage } from '@ionic/storage';\nimport { PermissionService } from 'src/app/services/permission.service';\nimport { ActionModel } from 'src/app/models/beast-orm';\nlet PublicationsPage = class PublicationsPage {\n constructor(router, modalController, animationController, publications, toastService, sqliteservice, backgroundservice, platform, ThemeService, storage, p) {\n this.router = router;\n this.modalController = modalController;\n this.animationController = animationController;\n this.publications = publications;\n this.toastService = toastService;\n this.sqliteservice = sqliteservice;\n this.backgroundservice = backgroundservice;\n this.platform = platform;\n this.ThemeService = ThemeService;\n this.storage = storage;\n this.p = p;\n this.showLoader = false;\n this.publicationsEventFolderList = [];\n this.actionsListStorage = new Array();\n this.publicationsTravelFolderList = [];\n this.desktopComponent = {\n showViewPublication: false,\n showAddNewPublication: false,\n showPublicationDetail: false,\n showAddActions: false,\n showEditActions: false\n };\n // from publication details\n //publication: object;\n this.hideRefreshBtn = true;\n this.showSlidingOptions = true;\n this.months = [\"Janeiro\", \"Fevereiro\", \"Março\", \"Abril\", \"Maio\", \"Junho\", \"Julho\", \"Agosto\", \"Setembro\", \"Outubro\", \"Novembro\", \"Dezembro\"];\n this.days = [\"Domingo\", \"Segunda-feira\", \"Terça-feira\", \"Quarta-feira\", \"Quinta-feira\", \"Sexta-feira\", \"Sábado\"];\n }\n ngOnInit() {\n const pathname = window.location.pathname;\n this.getActions();\n this.router.events.forEach(event => {\n if (event instanceof NavigationEnd && event.url == pathname) {\n this.getActions();\n }\n });\n this.hideRefreshButton();\n }\n hideRefreshButton() {\n window.onresize = event => {\n if (window.innerWidth < 701) {\n this.hideRefreshBtn = false;\n this.showSlidingOptions = false;\n } else {\n this.hideRefreshBtn = true;\n this.showSlidingOptions = true;\n }\n };\n if (window.innerWidth < 701) {\n this.hideRefreshBtn = false;\n this.showSlidingOptions = false;\n } else {\n this.hideRefreshBtn = true;\n this.showSlidingOptions = true;\n }\n }\n refreshing() {\n setTimeout(() => {\n this.getActions();\n }, 1500);\n }\n doRefresh(event) {\n this.getActions();\n setTimeout(() => {\n try {\n event?.target?.complete();\n } catch (error) {}\n }, 250);\n }\n get windowInnerWidth() {\n return window.innerWidth;\n }\n getDate(date) {\n this.theDate = new Date(date);\n return this.theDate.getDate() + \" de \" + this.months[this.theDate.getMonth()] + \" de \" +
|