0.0.52 • Published 5 months ago
@rekamy/vue-core v0.0.52
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
0.0.44
10 months ago
0.0.45
10 months ago
0.0.46
9 months ago
0.0.47
9 months ago
0.0.51
6 months ago
0.0.52
5 months ago
0.0.50
9 months ago
0.0.48
9 months ago
0.0.49
9 months ago
0.0.41
11 months ago
0.0.43
11 months ago
0.0.37
11 months ago
0.0.38
11 months ago
0.0.39
11 months ago
0.0.30
1 year ago
0.0.31
1 year ago
0.0.32
12 months ago
0.0.33
12 months ago
0.0.34
12 months ago
0.0.35
11 months ago
0.0.36
11 months ago
0.0.29
1 year ago
0.0.20
1 year ago
0.0.21
1 year ago
0.0.22
1 year ago
0.0.23
1 year ago
0.0.24
1 year ago
0.0.25
1 year ago
0.0.15
1 year ago
0.0.16
1 year ago
0.0.17
1 year ago
0.0.18
1 year ago
0.0.19
1 year ago
0.0.17-alpha.1.tgz
1 year ago
0.0.10
1 year ago
0.0.11
1 year ago
0.0.14
1 year ago
0.0.26
1 year ago
0.0.27
1 year ago
0.0.28
1 year ago
0.0.9
1 year ago
0.0.8
1 year ago
0.0.9-rc
1 year ago
0.0.7
1 year ago
0.0.6
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago