���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
.trash
/
pages
/
login
/
Viewing: index.vue
<script setup lang="ts"> import {useMainStore} from '~/stores/index'; definePageMeta({ layout: 'auth-login', title: 'TBD' }) const {t, locale} = useI18n() const {logUserOut} = useMainStore(); const loading = ref(false); const toast = useToast() logUserOut(); const state = reactive({ mobile: undefined, }) const login = async () => { if (!state.mobile) { return toast.add({title: t('validate_mobile'), color: "orange"}) } loading.value = true; try { await useAPI('/auth/send-sms', { method: 'POST', immediate: true, body: { mobile: state.mobile, lng: locale.value, }, onResponse({request, response, options}) { if (response.status == 200) { navigateTo('/' + locale.value + '/login/register-otp?mobile=' + state.mobile); } } }) } catch (error: any) { toast.add({title: error?.data?.message || error?.message, color: "red"}) } } </script> <template> <div class="w-full mx-auto mt-[6.5rem]"> <div class=" min-h-screen flex flex-col justify-between pt-[4rem] "> <div class=" w-full"> <div class="mb-4 relative w-full"> <div class="text-sm md:text-lg text-center flex justify-center items-center text-gray-600 mb-10 bold"> {{ t('B') }} <h1 class="text-main-700">{{ t('h1tag') }}</h1> {{ t('welcome') }} </div> <div class=" text-xs md:text-base text-center flex justify-center items-center text-gray-600 mb-16 md:mb-24 "> {{ t('enterNumber') }} </div> </div> <div class=" mb-16 md:mb-20 relative xsm:w-10/12 lg:w-8/12 md:w-9/12 mx-auto w-full"> <input @keypress.enter="login" v-model="state.mobile" name="mobile" dir="ltr" placeholder="0913 xxx xxxx" class="w-full placeholder-gray-300 focus:ring-1 outline-none rounded border border-gray-400 focus:ring-main-700 focus:border-main-700 h-10 pl-3 md:h-14 py-0 text-xs md:text-sm " type="text"> <span class="block text-gray-400 bg-white absolute right-2 -top-2 px-2 text-xs md:text-sm "> {{ t('phoneNumber') }} </span> </div> <div class=" pt-10 w-full text-center "> <span class=" text-xs md:text-sm text-center block text-gray-600 mb-10 bold"> {{ t('rules_1') }} <a href="https://cutunix.ir/rules" target="_blank" class="text-xs md:text-sm cursor-pointer text-main-700"> {{ t('rules_2') }} </a> {{ t('rules_3') }} </span> <UButton :loading="loading" square @click="login()" class="xsm:w-10/12 lg:w-8/12 md:w-9/12 mx-auto block text-center border bold h-10 bg-main-700 text-white text-xs md:text-sm w-full rounded overflow-hidden "> <span v-if="loading == false" class=" block px-2 text-xs truncate "> {{ t('Login') }} </span> </UButton> </div> </div> </div> </div> </template>
Coded With 💗 by
0x6ick Mod By V1rus_Alfa