chore: use vite plugins from frappe-ui
This commit is contained in:
@@ -5,6 +5,7 @@ import AssignmentBlock from '@/components/AssignmentBlock.vue'
|
||||
import translationPlugin from '../translation'
|
||||
import { usersStore } from '@/stores/user'
|
||||
import router from '../router'
|
||||
import { FrappeUI, setConfig, frappeRequest, pageMetaPlugin } from 'frappe-ui'
|
||||
|
||||
export class Assignment {
|
||||
constructor({ data, api, readOnly }) {
|
||||
@@ -46,8 +47,11 @@ export class Assignment {
|
||||
const app = createApp(AssignmentBlock, {
|
||||
assignmentID: assignment,
|
||||
})
|
||||
app.use(FrappeUI)
|
||||
setConfig('resourceFetcher', frappeRequest)
|
||||
app.use(translationPlugin)
|
||||
app.use(router)
|
||||
app.use(pageMetaPlugin)
|
||||
const { userResource } = usersStore()
|
||||
app.provide('$user', userResource)
|
||||
app.mount(this.wrapper)
|
||||
|
||||
Reference in New Issue
Block a user