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

@ -1,5 +1,5 @@
<script lang="ts" setup>
import { baseUrl } from 'src/stores/utils';
import { baseUrl } from 'stores/utils';
defineProps<{
inactive?: boolean;

View file

@ -1,9 +1,9 @@
<script setup lang="ts">
import { BankBook } from 'src/stores/branch/types';
import useOptionStore from 'src/stores/options';
import { selectFilterOptionRefMod } from 'src/stores/utils';
import { BankBook } from 'stores/branch/types';
import useOptionStore from 'stores/options';
import { selectFilterOptionRefMod } from 'stores/utils';
import { onMounted, ref, watch } from 'vue';
import { deleteItem } from 'src/stores/utils';
import { deleteItem } from 'stores/utils';
import { QSelect } from 'quasar';
import { AddButton, DeleteButton } from 'components/button';

View file

@ -1,7 +1,7 @@
<script setup lang="ts">
import useUserStore from 'src/stores/user';
import { UserAttachmentDelete } from 'src/stores/user/types';
import { dialog } from 'src/stores/utils';
import useUserStore from 'stores/user';
import { UserAttachmentDelete } from 'stores/user/types';
import { dialog } from 'stores/utils';
import { dateFormat, parseAndFormatDate } from 'src/utils/datetime';
import { ref } from 'vue';
import { useI18n } from 'vue-i18n';

View file

@ -1,6 +1,6 @@
<script setup lang="ts">
import useUserStore from 'src/stores/user';
import { selectFilterOptionRefMod } from 'src/stores/utils';
import useUserStore from 'stores/user';
import { selectFilterOptionRefMod } from 'stores/utils';
import { onMounted, ref } from 'vue';
import { useI18n } from 'vue-i18n';

View file

@ -1,7 +1,7 @@
<script setup lang="ts">
import { QSelect } from 'quasar';
import useOptionStore from 'src/stores/options';
import { selectFilterOptionRefMod } from 'src/stores/utils';
import useOptionStore from 'stores/options';
import { selectFilterOptionRefMod } from 'stores/utils';
import {
dateFormat,
calculateAge,

View file

@ -5,10 +5,10 @@ import useAddressStore, {
District,
Province,
SubDistrict,
} from 'src/stores/address';
import { EmployeeCheckupCreate } from 'src/stores/employee/types';
} from 'stores/address';
import { EmployeeCheckupCreate } from 'stores/employee/types';
import { useI18n } from 'vue-i18n';
import { checkTabBeforeAdd, selectFilterOptionRefMod } from 'src/stores/utils';
import { checkTabBeforeAdd, selectFilterOptionRefMod } from 'stores/utils';
import { QSelect } from 'quasar';
import {
AddButton,

View file

@ -1,10 +1,10 @@
<script setup lang="ts">
import { QSelect } from 'quasar';
import { selectFilterOptionRefMod } from 'src/stores/utils';
import { selectFilterOptionRefMod } from 'stores/utils';
import { dateFormat, parseAndFormatDate } from 'src/utils/datetime';
import { ref } from 'vue';
import { useI18n } from 'vue-i18n';
import useOptionStore from 'src/stores/options';
import useOptionStore from 'stores/options';
import { watch } from 'vue';
import { onMounted } from 'vue';

View file

@ -6,10 +6,10 @@ import useAddressStore, {
District,
Province,
SubDistrict,
} from 'src/stores/address';
} from 'stores/address';
import { useI18n } from 'vue-i18n';
import { selectFilterOptionRefMod } from 'src/stores/utils';
import useOptionStore from 'src/stores/options';
import { selectFilterOptionRefMod } from 'stores/utils';
import useOptionStore from 'stores/options';
import { watch } from 'vue';
const optionStore = useOptionStore();

View file

@ -1,9 +1,9 @@
<script setup lang="ts">
import { onMounted, ref } from 'vue';
import { dateFormat, parseAndFormatDate } from 'src/utils/datetime';
import { EmployeeWorkCreate } from 'src/stores/employee/types';
import { EmployeeWorkCreate } from 'stores/employee/types';
import { useI18n } from 'vue-i18n';
import { checkTabBeforeAdd, selectFilterOptionRefMod } from 'src/stores/utils';
import { checkTabBeforeAdd, selectFilterOptionRefMod } from 'stores/utils';
import {
AddButton,
EditButton,

View file

@ -1,11 +1,11 @@
<script setup lang="ts">
import { useI18n } from 'vue-i18n';
import { QTableColumn } from 'quasar';
import { EmployeeHistory, NewEmployeeHistory } from 'src/stores/employee/types';
import { EmployeeHistory, NewEmployeeHistory } from 'stores/employee/types';
import { dateFormat } from 'src/utils/datetime';
import NoData from '../NoData.vue';
import { computed, onMounted, ref, watch } from 'vue';
import useOptionStore from 'src/stores/options';
import useOptionStore from 'stores/options';
const { t } = useI18n();
const optionStore = useOptionStore();

View file

@ -1,7 +1,7 @@
<script setup lang="ts">
import { QSelect } from 'quasar';
import { CustomerBranch } from 'src/stores/customer/types';
import { selectFilterOptionRefMod } from 'src/stores/utils';
import { CustomerBranch } from 'stores/customer/types';
import { selectFilterOptionRefMod } from 'stores/utils';
import { onMounted, ref, watch } from 'vue';
import {
EditButton,

View file

@ -1,7 +1,7 @@
<script setup lang="ts">
import { QSelect } from 'quasar';
import { getRole } from 'src/services/keycloak';
import { selectFilterOptionRefMod } from 'src/stores/utils';
import { selectFilterOptionRefMod } from 'stores/utils';
import { ref, onMounted } from 'vue';
import { useI18n } from 'vue-i18n';
const { locale } = useI18n({ useScope: 'global' });

View file

@ -1,7 +1,7 @@
<script setup lang="ts">
import { QSelect } from 'quasar';
import { getRole } from 'src/services/keycloak';
import { selectFilterOptionRefMod } from 'src/stores/utils';
import { selectFilterOptionRefMod } from 'stores/utils';
import { ref } from 'vue';
const remark = defineModel<string>('remark');

View file

@ -1,6 +1,6 @@
<script setup lang="ts">
import useOptionStore from 'src/stores/options';
import { Attributes } from 'src/stores/product-service/types';
import useOptionStore from 'stores/options';
import { Attributes } from 'stores/product-service/types';
import { Icon } from '@iconify/vue';
const optionStore = useOptionStore();

View file

@ -1,11 +1,11 @@
<script setup lang="ts">
import { useI18n } from 'vue-i18n';
import { moveItemUp, moveItemDown, deleteItem, dialog } from 'src/stores/utils';
import { moveItemUp, moveItemDown, deleteItem, dialog } from 'stores/utils';
import NoData from 'components/NoData.vue';
import WorkManagementComponent from './WorkManagementComponent.vue';
import { WorkItems } from 'src/stores/product-service/types';
import { WorkItems } from 'stores/product-service/types';
const { t } = useI18n();

View file

@ -1,6 +1,6 @@
<script setup lang="ts">
import { dateFormat } from 'src/utils/datetime';
import { Status } from 'src/stores/types';
import { Status } from 'stores/types';
withDefaults(
defineProps<{

View file

@ -1,12 +1,12 @@
<script lang="ts" setup>
import { ref } from 'vue';
import { useI18n } from 'vue-i18n';
import { Option } from 'src/stores/options/types';
import { Attributes } from 'src/stores/product-service/types';
import { moveItemUp, moveItemDown, deleteItem, dialog } from 'src/stores/utils';
import { Option } from 'stores/options/types';
import { Attributes } from 'stores/product-service/types';
import { moveItemUp, moveItemDown, deleteItem, dialog } from 'stores/utils';
import NoData from '../NoData.vue';
import useOptionStore from 'src/stores/options';
import useOptionStore from 'stores/options';
const { t } = useI18n();

View file

@ -3,7 +3,7 @@ import { ref } from 'vue';
import AppBox from 'components/app/AppBox.vue';
import { dateFormat } from 'src/utils/datetime';
import { formatNumberDecimal } from 'src/stores/utils';
import { formatNumberDecimal } from 'stores/utils';
const addedProduct = ref<boolean>(false);
@ -11,7 +11,7 @@ import {
ServiceAndProduct,
ProductList,
Service,
} from 'src/stores/product-service/types';
} from 'stores/product-service/types';
const baseUrl = ref<string>(import.meta.env.VITE_API_BASE_URL);

View file

@ -1,10 +1,10 @@
<script lang="ts" setup>
import { Icon } from '@iconify/vue';
import { formatNumberDecimal } from 'src/stores/utils';
import { formatNumberDecimal } from 'stores/utils';
import useProductServiceStore from 'src/stores/product-service';
import useOptionStore from 'src/stores/options';
import { Attributes, ProductList } from 'src/stores/product-service/types';
import useProductServiceStore from 'stores/product-service';
import useOptionStore from 'stores/options';
import { Attributes, ProductList } from 'stores/product-service/types';
import { storeToRefs } from 'pinia';
const productServiceStore = useProductServiceStore();

View file

@ -3,7 +3,7 @@ import { onMounted, ref, watch } from 'vue';
// import { useI18n } from 'vue-i18n';
// import { storeToRefs } from 'pinia';
// import useProductServiceStore from 'src/stores/product-service';
// import useProductServiceStore from 'stores/product-service';
import NoData from '../NoData.vue';

View file

@ -2,7 +2,7 @@
import { ref } from 'vue';
import { CustomerBranchCreate } from 'stores/customer/types';
import { onMounted } from 'vue';
import { checkTabBeforeAdd } from 'src/stores/utils';
import { checkTabBeforeAdd } from 'stores/utils';
const props = defineProps<{
readonly?: boolean;

View file

@ -4,8 +4,8 @@ import useAddressStore, {
District,
Province,
SubDistrict,
} from 'src/stores/address';
import { selectFilterOptionRefMod } from 'src/stores/utils';
} from 'stores/address';
import { selectFilterOptionRefMod } from 'stores/utils';
import { QSelect } from 'quasar';
defineProps<{