PASSAGGIO A VITE !
AGG. 1.1.23
This commit is contained in:
30
src/App.ts
30
src/App.ts
@@ -1,15 +1,15 @@
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
import { useQuasar } from 'quasar'
|
||||
import { BannerCookies } from '@/components/BannerCookies'
|
||||
import { useI18n } from '@src/boot/i18n'
|
||||
import { BannerCookies } from '@src/components/BannerCookies'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
import { useUserStore } from '@store/UserStore'
|
||||
import { MyHeader } from '@/components/MyHeader'
|
||||
import { MyFooter } from '@/components/MyFooter'
|
||||
import { CFirstPageApp } from '@/components/CFirstPageApp'
|
||||
import { MyHeader } from '@src/components/MyHeader'
|
||||
import { MyFooter } from '@src/components/MyFooter'
|
||||
import { CFirstPageApp } from '@src/components/CFirstPageApp'
|
||||
import { computed, onMounted, ref, watch } from 'vue'
|
||||
import { CProvaPao } from '@/components/CProvaPao'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import { CProvaPao } from '@src/components/CProvaPao'
|
||||
import { tools } from '@tools'
|
||||
|
||||
import { Vue } from 'vue-class-component'
|
||||
|
||||
@@ -62,18 +62,18 @@ export default {
|
||||
}
|
||||
|
||||
function isScrolledIntoView(el: any) {
|
||||
let rect = el.getBoundingClientRect()
|
||||
let elemTop = rect.top
|
||||
let elemBottom = rect.bottom
|
||||
const rect = el.getBoundingClientRect()
|
||||
const elemTop = rect.top
|
||||
const elemBottom = rect.bottom
|
||||
|
||||
let isVisible = elemTop < window.innerHeight && elemBottom >= 0
|
||||
const isVisible = elemTop < window.innerHeight && elemBottom >= 0
|
||||
return isVisible
|
||||
}
|
||||
|
||||
function scroll() {
|
||||
try {
|
||||
window.onscroll = () => {
|
||||
let scrolledTo = document.querySelector('.replace-with-your-element')
|
||||
const scrolledTo = document.querySelector('.replace-with-your-element')
|
||||
|
||||
if (scrolledTo && isScrolledIntoView(scrolledTo)) {
|
||||
// console.log('scrolled')
|
||||
@@ -103,17 +103,17 @@ export default {
|
||||
tools.checkApp()
|
||||
|
||||
try {
|
||||
if (process.env.DEV) {
|
||||
if (import.meta.env.DEV) {
|
||||
console.info('SESSIONE IN SVILUPPO ! (DEV)')
|
||||
// console.info(process.env)
|
||||
}
|
||||
if (tools.isLocale()) {
|
||||
console.info('SESSIONE IN LOCALE !')
|
||||
}
|
||||
if (tools.isTest() && !process.env.DEV) {
|
||||
if (tools.isTest() && !import.meta.env.DEV) {
|
||||
console.info('SESSIONE IN TEST ! (TEST)')
|
||||
} else {
|
||||
if (process.env.PROD) {
|
||||
if (import.meta.env.PROD) {
|
||||
console.info('SESSIONE IN PRODUZIONE!')
|
||||
// console.info(process.env)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user