This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@viur/viur-vue-utils
TypeScript icon, indicating that this package has built-in type declarations

0.7.0-rc.18 • Public • Published
A hexagonal logo of the viur-cli

ViUR Vue Utils

Badge showing current NPM version Badge displaying the license
A library for communication with the ViUR Core

What does it do?

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

Installation

$ npm i @viur/viur-vue-utils

Usage

import {Request, ListRequest, destroyStore} from '@viur/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.

Readme

Keywords

none

Package Sidebar

Install

npm i @viur/viur-vue-utils

Weekly Downloads

1

Version

0.7.0-rc.18

License

MIT

Unpacked Size

116 kB

Total Files

38

Last publish

Collaborators

  • phsieben
  • viur-admin
  • sveneberth
  • xeon2003