feat: remove unused js libs
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<header class="app-header bg-base-200 w-full"></header>
|
||||
|
||||
<section class="app-content">
|
||||
<FullscreenViewport v-if="platform === 'ios' || platform === 'android'"/>
|
||||
|
||||
|
||||
<div class="fixed inset-0 z-50 bg-white flex items-center justify-center text-center p-4
|
||||
[@supports(color:oklch(0%_0_0))]:hidden">
|
||||
@@ -52,8 +52,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {computed, onMounted, onUnmounted, ref, watch} from "vue";
|
||||
import {FullscreenViewport, useMiniApp, useWebAppViewport} from 'vue-tg';
|
||||
import {computed, onMounted, onUnmounted, watch} from "vue";
|
||||
import {useRoute, useRouter} from "vue-router";
|
||||
import {useSettingsStore} from "@/stores/SettingsStore.js";
|
||||
import {useProductFiltersStore} from "@/stores/ProductFiltersStore.js";
|
||||
@@ -64,13 +63,6 @@ import PrivacyPolicy from "@/components/PrivacyPolicy.vue";
|
||||
import BrowserNotSupported from "@/BrowserNotSupported.vue";
|
||||
import {useSwipeBack} from "@/composables/useSwipeBack.js";
|
||||
|
||||
const tg = useMiniApp();
|
||||
const platform = ref();
|
||||
platform.value = tg.platform;
|
||||
|
||||
const {disableVerticalSwipes} = useWebAppViewport();
|
||||
disableVerticalSwipes();
|
||||
|
||||
const router = useRouter();
|
||||
const route = useRoute();
|
||||
const settings = useSettingsStore();
|
||||
|
||||
@@ -40,8 +40,6 @@
|
||||
|
||||
<script setup>
|
||||
import {useSettingsStore} from "@/stores/SettingsStore.js";
|
||||
import {useMiniApp} from "vue-tg";
|
||||
import {ref} from "vue";
|
||||
import {useTgData} from "@/composables/useTgData.js";
|
||||
|
||||
const settings = useSettingsStore();
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import {createApp, ref} from 'vue';
|
||||
import App from './App.vue';
|
||||
import './style.css';
|
||||
import {VueTelegramPlugin} from 'vue-tg';
|
||||
import {router} from './router';
|
||||
import {createPinia} from 'pinia';
|
||||
import {useSettingsStore} from "@/stores/SettingsStore.js";
|
||||
@@ -31,7 +30,6 @@ const app = createApp(App);
|
||||
app
|
||||
.use(pinia)
|
||||
.use(router)
|
||||
.use(VueTelegramPlugin)
|
||||
.use(plugin, defaultConfig(config))
|
||||
;
|
||||
|
||||
@@ -119,11 +117,8 @@ settings.load()
|
||||
})
|
||||
.then(() => window.Telegram.WebApp.ready())
|
||||
.then(() => {
|
||||
const con = console;
|
||||
window.Telegram.WebApp.onEvent('viewportChanged', (state) => {
|
||||
|
||||
con.log('[Init]: viewportChanged', state.isStateStable, this.viewportHeight);
|
||||
});
|
||||
window.Telegram.WebApp.disableVerticalSwipes();
|
||||
window.Telegram.WebApp.requestFullscreen();
|
||||
})
|
||||
.catch(error => {
|
||||
console.error(error);
|
||||
|
||||
Reference in New Issue
Block a user