refactor: use alias

This commit is contained in:
Methapon2001 2024-08-09 15:06:41 +07:00
parent f9494dc845
commit be7a036b8d
31 changed files with 77 additions and 77 deletions

View file

@ -2,22 +2,22 @@
import { storeToRefs } from 'pinia';
import { ref, onMounted, computed, watch } from 'vue';
import { Icon } from '@iconify/vue';
import { BranchContact } from 'src/stores/branch-contact/types';
import { BranchContact } from 'stores/branch-contact/types';
import { useQuasar } from 'quasar';
import { useI18n } from 'vue-i18n';
import type { QTableProps } from 'quasar';
import useBranchStore from 'stores/branch';
import useFlowStore from 'src/stores/flow';
import useFlowStore from 'stores/flow';
import {
BranchWithChildren,
BranchCreate,
Branch,
BankBook,
} from 'stores/branch/types';
import { Status } from 'src/stores/types';
import { Status } from 'stores/types';
import useUtilsStore, { dialog, baseUrl } from 'src/stores/utils';
import useUtilsStore, { dialog, baseUrl } from 'stores/utils';
import AddButton from 'components/AddButton.vue';
import TooltipComponent from 'components/TooltipComponent.vue';
import StatCard from 'components/StatCardComponent.vue';

View file

@ -1,22 +1,22 @@
<script setup lang="ts">
import { ref, onMounted, watch, computed } from 'vue';
import useUtilsStore, { dialog } from 'src/stores/utils';
import useUtilsStore, { dialog } from 'stores/utils';
import { calculateAge } from 'src/utils/datetime';
import { useQuasar, type QTableProps } from 'quasar';
import { storeToRefs } from 'pinia';
import { useI18n } from 'vue-i18n';
import useFlowStore from 'src/stores/flow';
import useFlowStore from 'stores/flow';
import useUserStore from 'stores/user';
import useBranchStore from 'src/stores/branch';
import useBranchStore from 'stores/branch';
import {
User,
UserAttachmentCreate,
UserCreate,
UserTypeStats,
} from 'src/stores/user/types';
import { BranchUserStats } from 'src/stores/branch/types';
import useAddressStore from 'src/stores/address';
} from 'stores/user/types';
import { BranchUserStats } from 'stores/branch/types';
import useAddressStore from 'stores/address';
import ButtonAddComponent from 'components/ButtonAddCompoent.vue';
import PersonCard from 'components/shared/PersonCard.vue';
import StatCardComponent from 'components/StatCardComponent.vue';
@ -31,7 +31,7 @@ import InfoForm from 'components/02_personnel-management/InfoForm.vue';
import NoData from 'components/NoData.vue';
import ProfileUpload from 'components/ProfileUpload.vue';
import PaginationComponent from 'components/PaginationComponent.vue';
import useOptionStore from 'src/stores/options';
import useOptionStore from 'stores/options';
import ProfileBanner from 'components/ProfileBanner.vue';
import SideMenu from 'components/SideMenu.vue';
import ImageUploadDialog from 'components/ImageUploadDialog.vue';

View file

@ -22,7 +22,7 @@ import TotalProductCardComponent from 'components/04_product-service/TotalProduc
import FormServiceWork from 'components/04_product-service/FormServiceWork.vue';
import ServiceProperties from 'components/04_product-service/ServiceProperties.vue';
import WorkNameManagement from 'components/04_product-service/WorkNameManagement.vue';
import useOptionStore from 'src/stores/options';
import useOptionStore from 'stores/options';
import FormServiceProperties from 'components/04_product-service/FormServiceProperties.vue';
import InfoForm from 'components/02_personnel-management/InfoForm.vue';
import NoData from 'components/NoData.vue';
@ -33,21 +33,21 @@ import ProfileBanner from 'components/ProfileBanner.vue';
import SideMenu from 'components/SideMenu.vue';
import ImageUploadDialog from 'components/ImageUploadDialog.vue';
import useFlowStore from 'src/stores/flow';
import useMyBranchStore from 'src/stores/my-branch';
import useFlowStore from 'stores/flow';
import useMyBranchStore from 'stores/my-branch';
import { dateFormat } from 'src/utils/datetime';
import { formatNumberDecimal } from 'src/stores/utils';
import { formatNumberDecimal } from 'stores/utils';
const userBranchStore = useMyBranchStore();
const { currentMyBranch } = storeToRefs(userBranchStore);
import { Status } from 'src/stores/types';
import { Status } from 'stores/types';
import useUtilsStore, { dialog, dialogWarningClose } from 'src/stores/utils';
import useUtilsStore, { dialog, dialogWarningClose } from 'stores/utils';
import useProductServiceStore from 'src/stores/product-service';
import useProductServiceStore from 'stores/product-service';
import {
ProductGroup,
ProductGroupCreate,
@ -59,7 +59,7 @@ import {
WorkItems,
Attributes,
ServiceAndProduct,
} from 'src/stores/product-service/types';
} from 'stores/product-service/types';
import { computed } from 'vue';
const flowStore = useFlowStore();

View file

@ -1,6 +1,6 @@
<script setup lang="ts">
import MenuItem from 'components/00_home/MenuItem.vue';
import useUtilsStore from 'src/stores/utils';
import useUtilsStore from 'stores/utils';
import { onMounted } from 'vue';
const utilsStore = useUtilsStore();