0.7.0-rc.18 • Published 10 months ago

@viur/viur-vue-utils v0.7.0-rc.18

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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.

0.7.0-rc.16

10 months ago

0.7.0-rc.17

10 months ago

0.7.0-rc.18

10 months ago

0.7.0-rc.13

11 months ago

0.7.0-rc.14

10 months ago

0.7.0-rc.15

10 months ago

0.7.0-rc.2

12 months ago

0.7.0-rc.1

12 months ago

0.7.0-rc.8

11 months ago

0.7.0-rc.7

11 months ago

0.7.0-rc.6

11 months ago

0.7.0-rc.5

11 months ago

0.7.0-rc.4

11 months ago

0.7.0-rc.3

11 months ago

0.6.14

12 months ago

0.7.0-rc.10

11 months ago

0.7.0-rc.12

11 months ago

0.6.7

1 year ago

0.6.6

1 year ago

0.6.9

1 year ago

0.6.8

1 year ago

0.6.10

1 year ago

0.6.12

1 year ago

0.6.11

1 year ago

0.6.13

1 year ago

0.6.2

1 year ago

0.6.5

1 year ago

0.6.1

1 year ago

0.6.0

1 year ago

0.5.15

1 year ago

0.5.10

1 year ago

0.5.11

1 year ago

0.5.14

1 year ago

0.5.12

1 year ago

0.5.13

1 year ago

0.5.9

2 years ago

0.5.8

2 years ago

0.5.7

2 years ago

0.5.6

2 years ago

0.5.5

2 years ago

0.5.4

2 years ago

0.5.3

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago

0.5.0

2 years ago