add install button for garoosi
This commit is contained in:
@@ -1,2 +0,0 @@
|
|||||||
# آدرس مستقیم فایل APK (اختیاری). اگر خالی باشد از فایل public/apk/Garoosi.apk استفاده میشود.
|
|
||||||
# VITE_APK_URL=https://example.com/path/to/Garoosi.apk
|
|
||||||
@@ -119,11 +119,9 @@
|
|||||||
</BasicButton>
|
</BasicButton>
|
||||||
<div v-if="config.config.name === 'garoosi'" class="flex w-full gap-2 mb-2 mt-2">
|
<div v-if="config.config.name === 'garoosi'" class="flex w-full gap-2 mb-2 mt-2">
|
||||||
<a
|
<a
|
||||||
:href="apkDownloadUrl"
|
|
||||||
class="flex w-full items-center justify-center rounded py-2 text-white bg-primary border-none cursor-pointer no-underline"
|
class="flex w-full items-center justify-center rounded py-2 text-white bg-primary border-none cursor-pointer no-underline"
|
||||||
download="Garoosi.apk"
|
download="Garoosi.apk"
|
||||||
target="_blank"
|
href="https://garoosigholaktala.ir/apk/Garoosi.apk"
|
||||||
rel="noopener noreferrer"
|
|
||||||
>
|
>
|
||||||
<div>دانلود اپ اندروید</div>
|
<div>دانلود اپ اندروید</div>
|
||||||
</a>
|
</a>
|
||||||
@@ -226,6 +224,7 @@ import { useUserStore } from '@/store/userStore'
|
|||||||
import { useWalletStore } from '@/store/walletStore'
|
import { useWalletStore } from '@/store/walletStore'
|
||||||
import { fingerPosition, setTruth } from '@/main'
|
import { fingerPosition, setTruth } from '@/main'
|
||||||
import {useConfigStore} from "@/store/configStore";
|
import {useConfigStore} from "@/store/configStore";
|
||||||
|
import {getConfigApp} from "@/utils/config";
|
||||||
import BasicActionSheet from "@/components/BasicPacks/BasicActionSheet.vue";
|
import BasicActionSheet from "@/components/BasicPacks/BasicActionSheet.vue";
|
||||||
import {getConfig} from "@/api/config";
|
import {getConfig} from "@/api/config";
|
||||||
import shareAppleIcon from '@/assets/img/share-apple.png'
|
import shareAppleIcon from '@/assets/img/share-apple.png'
|
||||||
@@ -376,13 +375,6 @@ const goToEducate = () => {
|
|||||||
router.push({ name: "educate" })
|
router.push({ name: "educate" })
|
||||||
}
|
}
|
||||||
|
|
||||||
const apkDownloadUrl = computed(() => {
|
|
||||||
const envUrl = import.meta.env.VITE_APK_URL
|
|
||||||
if (envUrl) return envUrl
|
|
||||||
const base = (import.meta.env.BASE_URL || '/').replace(/\/?$/, '/')
|
|
||||||
return `${window.location.origin}${base}apk/Garoosi.apk`
|
|
||||||
})
|
|
||||||
|
|
||||||
const showPWAInstallGuide = ref(false)
|
const showPWAInstallGuide = ref(false)
|
||||||
async function installWebApp() {
|
async function installWebApp() {
|
||||||
showPWAInstallGuide.value = true
|
showPWAInstallGuide.value = true
|
||||||
|
|||||||
Reference in New Issue
Block a user