@rekamy/vue-core
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 | |
| 0.0.47 | >=3.2.29 | MIT | |
| 0.0.46 | >=3.2.29 | MIT | |
| 0.0.45 | >=3.2.29 | MIT | |
| 0.0.44 | >=3.2.29 | MIT | |
| 0.0.43 | >=3.2.29 | MIT | |
| 0.0.41 | >=3.2.29 | MIT | |
| 0.0.39 | >=3.2.29 | MIT | |
| 0.0.38 | >=3.2.29 | MIT | |
| 0.0.37 | >3.2.29 | MIT | |
| 0.0.36 | ^3.2.29 | MIT | |
| 0.0.35 | ^3.2.29 | MIT | |
| 0.0.34 | ^3.2.29 | MIT | |
| 0.0.33 | ^3.2.29 | MIT | |
| 0.0.32 | ^3.2.29 | MIT | |
| 0.0.31 | ^3.2.29 | MIT | |
| 0.0.30 | ^3.2.29 | MIT | |
| 0.0.29 | ^3.2.29 | MIT | |
| 0.0.28 | ^3.2.29 | MIT | |
| 0.0.27 | ^3.2.29 | MIT | |
| 0.0.26 | ^3.2.29 | MIT | |
| 0.0.25 | ^3.2.29 | MIT | |
| 0.0.24 | ^3.2.29 | MIT | |
| 0.0.23 | ^3.2.29 | MIT | |
| 0.0.22 | ^3.2.29 | MIT | |
| 0.0.21 | ^3.2.29 | MIT |
Showing the latest 30 of 48. See every release on npm
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 |