Remove PWA functionality and service worker infrastructure
Completely remove Progressive Web App features including VitePWA plugin, service workers, install prompts, and platform service PWA methods. Delete PWA component, service worker files, help images, and update build configurations. Simplify application architecture by removing PWA complexity while maintaining core functionality.
This commit is contained in:
56
src/App.vue
56
src/App.vue
@@ -1,9 +1,6 @@
|
||||
<template>
|
||||
<router-view />
|
||||
|
||||
<!-- PWA Install Prompt -->
|
||||
<PWAInstallPrompt v-if="isPWAEnabled" />
|
||||
|
||||
<!-- Messages in the upper-right - https://github.com/emmanuelsw/notiwind -->
|
||||
<NotificationGroup group="alert">
|
||||
<div
|
||||
@@ -337,8 +334,6 @@ import { Vue, Component } from "vue-facing-decorator";
|
||||
import { NotificationIface } from "./constants/app";
|
||||
import { PlatformServiceMixin } from "@/utils/PlatformServiceMixin";
|
||||
import { logger } from "./utils/logger";
|
||||
import PWAInstallPrompt from "@/components/PWAInstallPrompt.vue";
|
||||
import { PlatformServiceFactory } from "@/services/PlatformServiceFactory";
|
||||
|
||||
interface Settings {
|
||||
notifyingNewActivityTime?: string;
|
||||
@@ -346,9 +341,7 @@ interface Settings {
|
||||
}
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
PWAInstallPrompt,
|
||||
},
|
||||
components: {},
|
||||
mixins: [PlatformServiceMixin],
|
||||
})
|
||||
export default class App extends Vue {
|
||||
@@ -356,53 +349,6 @@ export default class App extends Vue {
|
||||
|
||||
stopAsking = false;
|
||||
|
||||
get isPWAEnabled() {
|
||||
return PlatformServiceFactory.getInstance().isPWAEnabled;
|
||||
}
|
||||
|
||||
mounted() {
|
||||
// Register service worker only if PWA is enabled
|
||||
const platformService = PlatformServiceFactory.getInstance();
|
||||
if (platformService.isPWAEnabled && platformService.registerServiceWorker) {
|
||||
platformService.registerServiceWorker();
|
||||
}
|
||||
}
|
||||
|
||||
// created() {
|
||||
// logger.log(
|
||||
// "Component created: Reactivity set up.",
|
||||
// window.location.pathname,
|
||||
// );
|
||||
// }
|
||||
|
||||
// beforeCreate() {
|
||||
// logger.log("Component beforeCreate: Instance initialized.");
|
||||
// }
|
||||
|
||||
// beforeMount() {
|
||||
// logger.log("Component beforeMount: Template is about to be rendered.");
|
||||
// }
|
||||
|
||||
// mounted() {
|
||||
// logger.log("Component mounted: Template is now rendered.");
|
||||
// }
|
||||
|
||||
// beforeUpdate() {
|
||||
// logger.log("Component beforeUpdate: DOM is about to be updated.");
|
||||
// }
|
||||
|
||||
// updated() {
|
||||
// logger.log("Component updated: DOM has been updated.");
|
||||
// }
|
||||
|
||||
// beforeUnmount() {
|
||||
// logger.log("Component beforeUnmount: Cleaning up before removal.");
|
||||
// }
|
||||
|
||||
// unmounted() {
|
||||
// logger.log("Component unmounted: Component removed from the DOM.");
|
||||
// }
|
||||
|
||||
truncateLongWords(sentence: string) {
|
||||
return sentence
|
||||
.split(" ")
|
||||
|
||||
Reference in New Issue
Block a user