refactor: move ts folder to shared folder
| | |
| | | |
| | | <script lang="ts"> |
| | | import { Vue, Component, Prop, Emit, Action, State, namespace } from 'nuxt-property-decorator'; |
| | | import { Consultant } from '~/assets/ts/models/consultant.model'; |
| | | import { Consultant } from '~/shared/models/consultant.model'; |
| | | |
| | | const localStorage = namespace('localStorage'); |
| | | @Component |
| | |
| | | import { namespace } from 'nuxt-property-decorator'; |
| | | import { Vue, Component,} from 'vue-property-decorator'; |
| | | import * as _ from 'lodash'; |
| | | import { Role } from '~/assets/ts/models/enum/role'; |
| | | import { Role } from '~/shared/models/enum/role'; |
| | | |
| | | const roleStorage = namespace('localStorage'); |
| | | @Component |
| | | export default class UiCarousel extends Vue { |
| | | @roleStorage.Getter currentRole!:string; |
| | | get label(): string { |
| | | |
| | | if (this.$route.name) { |
| | | const routeName = this.$route.name.split('-')[0]; |
| | | let featureLabel = ''; |
| | |
| | | <script lang="ts"> |
| | | import { Vue, Component, Prop, Action } from 'nuxt-property-decorator'; |
| | | |
| | | import appointmentService from '~/assets/ts/services/appointment.service'; |
| | | import { isMobileDevice } from '~/assets/ts/device'; |
| | | import { hideReviews } from '~/assets/ts/const/hide-reviews'; |
| | | import { ClientInfo } from '~/assets/ts/models/client.model'; |
| | | import appointmentService from '~/shared/services/appointment.service'; |
| | | import { isMobileDevice } from '~/shared/device'; |
| | | import { hideReviews } from '~/shared/const/hide-reviews'; |
| | | import { ClientInfo } from '~/shared/models/client.model'; |
| | | |
| | | |
| | | @Component({ |
| | |
| | | <script lang='ts'> |
| | | import { Vue, Component, Prop } from 'nuxt-property-decorator'; |
| | | |
| | | import { ClientInfo } from '~/assets/ts/models/client.model'; |
| | | import { ClientInfo } from '~/shared/models/client.model'; |
| | | |
| | | @Component |
| | | export default class ClientList extends Vue { |
| | |
| | | <script lang="ts"> |
| | | import { Vue, Component, Prop, Action, namespace } from 'nuxt-property-decorator'; |
| | | |
| | | import appointmentService from '~/assets/ts/services/appointment.service'; |
| | | import { isMobileDevice } from '~/assets/ts/device'; |
| | | import { hideReviews } from '~/assets/ts/const/hide-reviews'; |
| | | import { UserReviewsConsultantsParams, userReviewsConsultants } from '~/assets/ts/api/consultant'; |
| | | import { Consultant, ConsultantWithAppointmentId } from '~/assets/ts/models/consultant.model'; |
| | | import { Appointment } from '~/assets/ts/models/appointment.model'; |
| | | import appointmentService from '~/shared/services/appointment.service'; |
| | | import { isMobileDevice } from '~/shared/device'; |
| | | import { hideReviews } from '~/shared/const/hide-reviews'; |
| | | import { UserReviewsConsultantsParams, userReviewsConsultants } from '~/shared/api/consultant'; |
| | | import { Consultant, ConsultantWithAppointmentId } from '~/shared/models/consultant.model'; |
| | | import { Appointment } from '~/shared/models/appointment.model'; |
| | | |
| | | const localStorage = namespace('localStorage'); |
| | | @Component({ |
| | |
| | | |
| | | <script lang="ts"> |
| | | import { Vue, Component, Prop, namespace } from 'nuxt-property-decorator'; |
| | | import { Consultant } from '~/assets/ts/models/consultant.model'; |
| | | import { Consultant } from '~/shared/models/consultant.model'; |
| | | |
| | | const roleStorage = namespace('localStorage'); |
| | | |
| | |
| | | <script lang="ts"> |
| | | import { Vue, Component, Prop } from 'vue-property-decorator'; |
| | | import { SwiperOptions } from 'swiper'; |
| | | import { Consultant } from '~/assets/ts/models/consultant.model'; |
| | | import { hideReviews } from '~/assets/ts/const/hide-reviews'; |
| | | import { Consultant } from '~/shared/models/consultant.model'; |
| | | import { hideReviews } from '~/shared/const/hide-reviews'; |
| | | |
| | | @Component |
| | | export default class UiSwiper extends Vue { |
| | |
| | | <script lang="ts"> |
| | | import { Vue, Component } from 'vue-property-decorator'; |
| | | import { namespace } from 'nuxt-property-decorator'; |
| | | import { Role } from '~/assets/ts/models/enum/role'; |
| | | import { Role } from '~/shared/models/enum/role'; |
| | | import * as _ from 'lodash'; |
| | | |
| | | const roleStorage = namespace('localStorage'); |
| | |
| | | <script lang="ts"> |
| | | import { ElCarousel } from 'element-ui/types/carousel'; |
| | | import { Vue, Component, Prop } from 'vue-property-decorator'; |
| | | import { Consultant } from '~/assets/ts/models/consultant.model'; |
| | | import { hideReviews } from '~/assets/ts/const/hide-reviews'; |
| | | import { Consultant } from '~/shared/models/consultant.model'; |
| | | import { hideReviews } from '~/shared/const/hide-reviews'; |
| | | |
| | | @Component |
| | | export default class QuickFilterConsultantList extends Vue { |
| | |
| | | |
| | | <script lang="ts"> |
| | | import { Vue, Component, Prop, Watch, Emit } from 'nuxt-property-decorator'; |
| | | import { hideReviews } from '~/assets/ts/const/hide-reviews'; |
| | | import { FastQueryParams, QuestionOption, Selected } from '~/assets/ts/models/quickFilter.model'; |
| | | import { hideReviews } from '~/shared/const/hide-reviews'; |
| | | import { FastQueryParams, QuestionOption, Selected } from '~/shared/models/quickFilter.model'; |
| | | @Component |
| | | export default class QuickFilterDrawer extends Vue { |
| | | pickedItem: FastQueryParams = { |
| | |
| | | |
| | | <script lang="ts"> |
| | | import { Vue, Component, Prop } from 'vue-property-decorator'; |
| | | import { isMobileDevice } from '~/assets/ts/device'; |
| | | import { isMobileDevice } from '~/shared/device'; |
| | | |
| | | @Component |
| | | export default class UiField extends Vue { |
| | |
| | | |
| | | <script lang="ts"> |
| | | import { Vue, Component, Prop, Emit, Watch } from 'nuxt-property-decorator'; |
| | | import { Consultant } from '~/assets/ts/models/consultant.model'; |
| | | import { Consultant } from '~/shared/models/consultant.model'; |
| | | |
| | | @Component |
| | | export default class UiPagination extends Vue { |
| | |
| | | |
| | | <script lang="ts"> |
| | | import { Vue, Component, Prop,Emit, Watch, PropSync} from 'vue-property-decorator'; |
| | | import { isMobileDevice } from '../assets/ts/device'; |
| | | import { isMobileDevice } from '~/shared/device'; |
| | | @Component |
| | | export default class PopUpFrame extends Vue { |
| | | @PropSync('isOpen',{type:Boolean,default:false}) syncIsOpen!:boolean; |
| | |
| | | |
| | | <script lang="ts"> |
| | | import { Vue,Component } from 'vue-property-decorator' |
| | | import { getUserAccountSetting, updateAccountSetting } from '~/assets/ts/api/consultant'; |
| | | import { UserSetting } from '~/assets/ts/models/account.model'; |
| | | import { getUserAccountSetting, updateAccountSetting } from '~/shared/api/consultant'; |
| | | import { UserSetting } from '~/shared/models/account.model'; |
| | | |
| | | @Component |
| | | export default class AccountSetting extends Vue { |
| | |
| | | import { namespace } from 'nuxt-property-decorator'; |
| | | import { Vue, Component } from 'vue-property-decorator'; |
| | | |
| | | import myConsultantService from '~/assets/ts/services/my-consultant.service'; |
| | | import { AgentInfo } from '~/assets/ts/models/agent-info.model'; |
| | | import { hideReviews } from '~/assets/ts/const/hide-reviews'; |
| | | import { Role } from '~/assets/ts/models/enum/role'; |
| | | import myConsultantService from '~/shared/services/my-consultant.service'; |
| | | import { AgentInfo } from '~/shared/models/agent-info.model'; |
| | | import { hideReviews } from '~/shared/const/hide-reviews'; |
| | | import { Role } from '~/shared/models/enum/role'; |
| | | |
| | | const roleStorage = namespace('localStorage'); |
| | | |
| | |
| | | <script lang="ts"> |
| | | import { Vue, Component , namespace } from 'nuxt-property-decorator'; |
| | | import { AxiosError } from 'axios'; |
| | | import { Role } from '~/assets/ts/models/enum/role'; |
| | | import ErrorMessageBox from '~/assets/ts/errorService'; |
| | | import loginService from '~/assets/ts/services/login.service' |
| | | import { Role } from '~/shared/models/enum/role'; |
| | | import ErrorMessageBox from '~/shared/errorService'; |
| | | import loginService from '~/shared/services/login.service' |
| | | |
| | | const roleStorage = namespace('localStorage'); |
| | | @Component({ |
| | |
| | | |
| | | <script lang="ts"> |
| | | import { Vue, Component } from 'nuxt-property-decorator'; |
| | | import { faqList } from '~/assets/ts/const/faqList'; |
| | | import { faqList } from '~/shared/const/faqList'; |
| | | |
| | | @Component |
| | | export default class Faq extends Vue { |
| | |
| | | |
| | | <script lang="ts"> |
| | | import { Vue, Component, State, Action, Watch, namespace } from 'nuxt-property-decorator'; |
| | | import { Consultant } from '~/assets/ts/models/consultant.model'; |
| | | import { Consultant } from '~/shared/models/consultant.model'; |
| | | |
| | | const localStorage = namespace('localStorage'); |
| | | @Component({ |
| | |
| | | <script lang="ts"> |
| | | import { namespace } from 'nuxt-property-decorator'; |
| | | import { Vue, Component, Ref } from 'vue-property-decorator'; |
| | | import ErrorMessageBox from '~/assets/ts/errorService'; |
| | | import { OtpErrorCode } from '~/assets/ts/models/enum/otpErrorCode'; |
| | | import { Role } from '~/assets/ts/models/enum/role'; |
| | | import { LoginRequest } from '~/assets/ts/models/loginRequest.model'; |
| | | import { LoginVerify } from '~/assets/ts/models/loginVerify.model'; |
| | | import { OtpInfo } from '~/assets/ts/models/otpInfo.model'; |
| | | import { RegisterInfo } from '~/assets/ts/models/registerInfo'; |
| | | import loginService from '~/assets/ts/services/login.service'; |
| | | import ErrorMessageBox from '~/shared/errorService'; |
| | | import { OtpErrorCode } from '~/shared/models/enum/otpErrorCode'; |
| | | import { Role } from '~/shared/models/enum/role'; |
| | | import { LoginRequest } from '~/shared/models/loginRequest.model'; |
| | | import { LoginVerify } from '~/shared/models/loginVerify.model'; |
| | | import { OtpInfo } from '~/shared/models/otpInfo.model'; |
| | | import { RegisterInfo } from '~/shared/models/registerInfo'; |
| | | import loginService from '~/shared/services/login.service'; |
| | | |
| | | const roleStorage = namespace('localStorage'); |
| | | |
| | |
| | | |
| | | import * as _ from 'lodash'; |
| | | |
| | | import { ClientInfo } from '~/assets/ts/models/client.model'; |
| | | import { ClientInfo } from '~/shared/models/client.model'; |
| | | |
| | | @Component({ |
| | | layout: 'home', |
| | |
| | | <script lang="ts"> |
| | | import { Vue, Component, State, Watch } from 'nuxt-property-decorator'; |
| | | |
| | | import { ClientInfo } from '~/assets/ts/models/client.model'; |
| | | import { ClientInfo } from '~/shared/models/client.model'; |
| | | |
| | | @Component |
| | | export default class ClientReservedList extends Vue { |
| | |
| | | <script lang="ts"> |
| | | import { Vue, Component, Watch, State } from 'nuxt-property-decorator'; |
| | | |
| | | import { ClientInfo } from '~/assets/ts/models/client.model'; |
| | | import { ClientInfo } from '~/shared/models/client.model'; |
| | | |
| | | @Component |
| | | export default class ClientContactedList extends Vue { |
| | |
| | | |
| | | <script lang='ts'> |
| | | import { Vue, Component, Watch, State, Action } from 'nuxt-property-decorator'; |
| | | import { Consultant, ConsultantWithAppointmentId } from '~/assets/ts/models/consultant.model'; |
| | | import { Consultant, ConsultantWithAppointmentId } from '~/shared/models/consultant.model'; |
| | | |
| | | @Component |
| | | export default class myConsultantList extends Vue { |
| | |
| | | |
| | | <script lang="ts"> |
| | | import { Vue, Component, Prop } from 'nuxt-property-decorator'; |
| | | import { Consultant } from '~/assets/ts/models/consultant.model'; |
| | | import { Consultant } from '~/shared/models/consultant.model'; |
| | | |
| | | |
| | | @Component |
| | |
| | | |
| | | <script lang="ts"> |
| | | import { Vue, Component, Prop } from 'nuxt-property-decorator' ; |
| | | import { Consultant } from '~/assets/ts/models/consultant.model'; |
| | | import { Consultant } from '~/shared/models/consultant.model'; |
| | | |
| | | |
| | | @Component |
| | |
| | | |
| | | <script lang="ts"> |
| | | import { Vue, Component, State, Action, Watch, namespace } from 'nuxt-property-decorator'; |
| | | import { addFavoriteConsultant, appointmentDemand, AppointmentParams, AppointmentRequests ,editAppointment } from '~/assets/ts/api/consultant'; |
| | | import { getRequestQuestionFromStorage, getRequestsFromStorage, removeRequestQuestionFromStorage, setRequestsToStorage } from '~/assets/ts/storageRequests'; |
| | | import { addFavoriteConsultant, appointmentDemand, AppointmentParams, AppointmentRequests ,editAppointment } from '~/shared/api/consultant'; |
| | | import { getRequestQuestionFromStorage, getRequestsFromStorage, removeRequestQuestionFromStorage, setRequestsToStorage } from '~/shared/storageRequests'; |
| | | import _ from 'lodash'; |
| | | import { Consultant } from '~/assets/ts/models/consultant.model'; |
| | | import { ContactType } from '~/assets/ts/models/enum/ContactType'; |
| | | import { Gender } from '~/assets/ts/models/enum/Gender'; |
| | | import { RegisterInfo } from '~/assets/ts/models/registerInfo'; |
| | | import { Consultant } from '~/shared/models/consultant.model'; |
| | | import { ContactType } from '~/shared/models/enum/ContactType'; |
| | | import { Gender } from '~/shared/models/enum/Gender'; |
| | | import { RegisterInfo } from '~/shared/models/registerInfo'; |
| | | |
| | | const roleStorage = namespace('localStorage'); |
| | | @Component |
| | |
| | | |
| | | <script lang="ts"> |
| | | import { Vue, Component, namespace } from 'nuxt-property-decorator'; |
| | | import { Consultant } from '~/assets/ts/models/consultant.model'; |
| | | import { fastQuery } from '~/assets/ts/api/consultant'; |
| | | import { questionList } from '~/assets/ts/const/quickFilter-questionList'; |
| | | import { FastQueryParams, QuestionOption, Selected } from '~/assets/ts/models/quickFilter.model'; |
| | | import { Consultant } from '~/shared/models/consultant.model'; |
| | | import { fastQuery } from '~/shared/api/consultant'; |
| | | import { questionList } from '~/shared/const/quickFilter-questionList'; |
| | | import { FastQueryParams, QuestionOption, Selected } from '~/shared/models/quickFilter.model'; |
| | | |
| | | const localStorage = namespace('localStorage'); |
| | | @Component |
| | |
| | | State |
| | | } from 'nuxt-property-decorator'; |
| | | import * as _ from 'lodash'; |
| | | import { Seniority } from '~/assets/ts/models/enum/seniority'; |
| | | import { Seniority } from '~/shared/models/enum/seniority'; |
| | | |
| | | const localStorage = namespace('localStorage'); |
| | | |
| | |
| | | </template> |
| | | <script lang="ts"> |
| | | import {Vue,Component, State, namespace, Action} from 'nuxt-property-decorator'; |
| | | import { AgentOfStrictQuery } from '~/assets/ts/api/consultant'; |
| | | import { hideReviews } from '~/assets/ts/const/hide-reviews'; |
| | | import { AgentOfStrictQuery } from '~/shared/api/consultant'; |
| | | import { hideReviews } from '~/shared/const/hide-reviews'; |
| | | |
| | | const localStorage = namespace('localStorage'); |
| | | |
| | |
| | | </template> |
| | | <script lang="ts"> |
| | | import { Vue, Component, Action, State, namespace } from 'nuxt-property-decorator'; |
| | | import { AppointmentLog } from '~/assets/ts/models/appointment.model'; |
| | | import { AppointmentLog } from '~/shared/models/appointment.model'; |
| | | |
| | | const roleStorage = namespace('localStorage'); |
| | | |
| | |
| | | </template> |
| | | <script lang="ts"> |
| | | import { Vue,Component } from 'vue-property-decorator' |
| | | import { isMobileDevice } from '~/assets/ts/device'; |
| | | import { isMobileDevice } from '~/shared/device'; |
| | | |
| | | |
| | | @Component({ |
| | |
| | | </template> |
| | | <script lang="ts"> |
| | | import { Vue, Component, Action, State, namespace } from 'nuxt-property-decorator'; |
| | | import { AppointmentLog } from '~/assets/ts/models/appointment.model'; |
| | | import { AppointmentLog } from '~/shared/models/appointment.model'; |
| | | |
| | | const roleStorage = namespace('localStorage'); |
| | | |
| | |
| | | import { http } from '~/assets/ts/services/httpClient'; |
| | | import { http } from '~/shared/services/httpClient'; |
| | | |
| | | import { AppointmentLog } from '../models/appointment.model'; |
| | | |
| | |
| | | import { ConsultantLoginInfo } from '../models/ConsultantLoginInfo'; |
| | | import _ from 'lodash'; |
| | | import { UserSetting } from '../models/account.model'; |
| | | import { Consultant } from '~/assets/ts/models/consultant.model'; |
| | | import { Consultant } from '~/shared/models/consultant.model'; |
| | | import { http } from '../services/httpClient'; |
| | | import { FastQueryParams } from '../models/quickFilter.model'; |
| | | |
| | |
| | | import { http } from "./httpClient"; |
| | | |
| | | import { AgentInfo } from '~/assets/ts/models/agent-info.model'; |
| | | import { AgentInfo } from '~/shared/models/agent-info.model'; |
| | | import { Consultant } from "../models/consultant.model"; |
| | | |
| | | class MyConsultantService { |
| | |
| | | import { Module, Mutation, VuexModule ,Action } from 'vuex-module-decorators'; |
| | | import { Role } from '~/shared/models/enum/Role'; |
| | | import { Role } from '~/shared/models/enum/role'; |
| | | import { Selected } from '~/shared/models/quickFilter.model'; |
| | | @Module |
| | | export default class LocalStorage extends VuexModule { |