@viur/vue-utils

Some ViUR related vue3 utils
10,462 2
Install
npm install @viur/vue-utils
Latest Version:3.4.5
Vue:3
License:MIT
Last Updated:Oct 19, 2026
Links: GitHub  ·  npm
Maintainer: viur-admin

What does it do?

ViUR Vue Utils is a library to work with the Viur Framework

Installation

$ npm i @viur/vue-utils

Usage

import {Request, ListRequest, destroyStore} from '@viur/vue-utils'

const simpleRequest = ref() //reactive variable
Request.get("https://jsonplaceholder.typicode.com/todos/1").then(async (resp: Response)=>{
    simpleRequest.value = await resp.json() //decode and set reactive variable
})


let userList = ListRequest(
    "teststore", // unqiue name of the Pinia store
    {url:"/user/list", params:{"limit":10}}
)

//fetches all users
userList.fetchAll().catch((e)=>{
    console.log(e)
    console.log(e.statusCode)
    console.log(e.statusText)
    console.log(e.response)
})

// if the results and the request is not needed anymore
destroyStore(userList)

Dependencies

ViUR Vue Utils depends on

License

Copyright © 2023 by Mausbrand Informationssysteme GmbH. Mausbrand and ViUR are registered trademarks of Mausbrand Informationssysteme GmbH.

This project is free software under the MIT license. Please see the LICENSE file for details.

Version History

Version Released License
3.4.5 MIT
3.4.4 MIT
3.4.3 MIT
3.4.2 MIT
3.4.1 MIT
Pre-releases (8)
Version Released License
3.2.0-rc1 MIT
1.0.0-rc.7 MIT
1.0.0-rc.6 MIT
1.0.0-rc.5 MIT
1.0.0-rc.4 MIT