fix: render dayjs import properly

This commit is contained in:
raizasafeel
2026-04-13 17:45:53 +05:30
parent 4278361559
commit 5de889c71b
5 changed files with 11 additions and 14 deletions

View File

@@ -66,18 +66,12 @@
</Dialog>
</template>
<script setup>
import {
call,
createResource,
dayjs,
Dialog,
FormControl,
toast,
} from 'frappe-ui'
import { call, createResource, Dialog, FormControl, toast } from 'frappe-ui'
import { ref, watch, inject } from 'vue'
import { Calendar } from 'lucide-vue-next'
import { formatTime } from '@/utils/'
const dayjs = inject('$dayjs')
const user = inject('$user')
const show = defineModel()
const evaluations = defineModel('reloadEvals')

View File

@@ -174,7 +174,6 @@ import {
AxisChart,
createResource,
createListResource,
dayjs,
FormControl,
ListView,
ListHeader,
@@ -185,7 +184,8 @@ import {
Avatar,
Button,
} from 'frappe-ui'
import { computed, ref, watch } from 'vue'
import { computed, inject, ref, watch } from 'vue'
import type dayjsType from 'dayjs'
import { formatAmount } from '@/utils'
import { Plus } from 'lucide-vue-next'
import BatchFeedback from '@/pages/Batches/components/BatchFeedback.vue'
@@ -193,6 +193,7 @@ import BatchStudentProgress from '@/pages/Batches/components/BatchStudentProgres
import NumberChartGraph from '@/components/NumberChartGraph.vue'
import StudentModal from '@/components/Modals/StudentModal.vue'
const dayjs = inject<typeof dayjsType>('$dayjs')!
const searchFilter = ref<string | null>(null)
const showEnrollmentModal = ref<boolean>(false)
const showProgressModal = ref<boolean>(false)

View File

@@ -264,7 +264,6 @@ import {
Button,
createListResource,
createResource,
dayjs,
Dropdown,
ECharts,
FormControl,
@@ -277,7 +276,8 @@ import {
Select,
Tooltip,
} from 'frappe-ui'
import { computed, ref, watch } from 'vue'
import { computed, inject, ref, watch } from 'vue'
import type dayjsType from 'dayjs'
import { Plus, Star } from 'lucide-vue-next'
import { formatAmount } from '@/utils'
import colors from '@/utils/frappe-ui-colors.json'
@@ -290,6 +290,7 @@ const props = defineProps<{
course: any
}>()
const dayjs = inject<typeof dayjsType>('$dayjs')!
const showEnrollmentModal = ref(false)
const searchFilter = ref<string | null>(null)
const showProgressModal = ref(false)

View File

@@ -169,7 +169,6 @@ import {
Button,
createListResource,
createResource,
dayjs,
TabButtons,
usePageMeta,
} from 'frappe-ui'
@@ -180,6 +179,7 @@ import { Bell, Calendar, Clock, X } from 'lucide-vue-next'
import { formatTime } from '@/utils/'
const { brand } = sessionStore()
const dayjs = inject('$dayjs')
const user = inject('$user')
const socket = inject('$socket')
const activeTab = ref('Unread')

View File

@@ -140,13 +140,13 @@
</template>
<script setup lang="ts">
import { computed, getCurrentInstance, inject, onMounted, ref } from 'vue'
import type dayjsType from 'dayjs'
import {
Breadcrumbs,
Button,
call,
createResource,
createListResource,
dayjs,
FeatherIcon,
FormControl,
ListView,
@@ -169,6 +169,7 @@ const { brand } = sessionStore()
const showForm = ref<boolean>(false)
const exerciseID = ref<string>('new')
const user = inject<any>('$user')
const dayjs = inject<typeof dayjsType>('$dayjs')!
const titleFilter = ref<string>('')
const languageFilter = ref<string>('')
const router = useRouter()