New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@vueaction/javascript

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vueaction/javascript

VueAction, Javascript implementation

latest
Source
npmnpm
Version
0.0.6
Version published
Maintainers
0
Created
Source

core

Core repository for contracts and implementations of VueAction

WIP

VueAction aims to abstract the "play" between vue and the backend.

To start, it will be solely focused on using the composition API and aim to have implementations for:

  • Strapi
  • Javascript (Using Javascript Javascript)
  • Supabase (Which already contains a Proof of Concept)

I'll likely focus on support for GraphQl when those three are implemented.

A little more...

The idea, is that you'll be able to easily "sync" your frontend and backend data with code like this:

<script setup>
const { form, create, creating, error } = useModel(Todo)
</script>

<template>
<input v-model="form.title">

<button :disabled="creating" @click="create">create</button>

<span v-if="creating">creating...</span>
<span v-if="error">{{ error.message }}</span>
</template>

Yes, related data too!

const { include, fetch, fetching, errors, collection: todos } = useModelCollection(TodoList)

include.value = [
  'author',
  'todos.comments'
]

async function fetchTodos () {
  await fetch()
  console.log(errors)
  console.log(todos.value)
}

Note the consle.log(todos.value). This library will also manage state (using Vuex ORM... but state will also adhere to contracts that we'll be able to swap out!)

Code like the above always works the same way, and the final abstraction can be unified among backends! And that's the goal of this library: Frontend/Backend Unification

Stay tuned!

Keywords

vue

FAQs

Package last updated on 26 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts