@rekamy/vue-core

Quickstart
1,310
Install
npm install @rekamy/vue-core
Latest Version:0.0.52
Vue:3
License:MIT
Last Updated:Nov 29, 2023
Links: npm
Maintainer: stvrx90

Reka Core Vue

Quickstart

Install:

npm install @rekamy/vue-core

# or use yarn

yarn add @rekamy/vue-core

Import and register plugin:

// main.ts or main.js

import { createApp } from "vue";
import App from "./App.vue";

import { RekaCore, RekaPinia } from "@rekamy/vue-core";

// !important to set active pinia instance if accessed from external scope
setActivePinia(RekaPinia);
createApp(App)
    .use(RekaCore)
    .mount("#app");

Then, use plugin:

<template>
    <div>
        <div v-permission="['admin']">Only Admin user can see</div>
        <div>All user can see</div>
        <div></div>
    </div>
</template>

<script setup lang="ts">
    import { widget, useRepoStore, crudApi, api } from "vue";

    // using repository store
    const store = useRepoStore("test");
    // update base api endpoint
    api.updateUrl("https://localhost/api/")
    // using crudApi
    console.log(crudApi('test').getUrl())
    // using widget
    widget.alertSuccess("Success")
    setTimeout(widget.close(), 2000)
    widget.toast("Success")
</script>

Todo

  • core
    • api
    • composable
    • directive
    • pinia
    • repository-store
    • websocket
    • widget
  • generator

Version History

Version Released Vue License
0.0.52 >=3.2.29 MIT
0.0.51 >=3.2.29 MIT
0.0.50 >=3.2.29 MIT
0.0.49 >=3.2.29 MIT
0.0.48 >=3.2.29 MIT
Pre-releases (2)
Version Released Vue License
0.0.17-alpha.1.tgz ^3.2.29 MIT
0.0.9-rc ^3.2.29 Apache-2.0