mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-24 09:50:39 +00:00
routes refactoring
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<div class="card shadow-card">
|
||||
<DatatableWrapper
|
||||
@init="isLoading = false"
|
||||
api="/api/subscriptions/transactions"
|
||||
api="/api/subscriptions/admin/transactions"
|
||||
:paginator="true"
|
||||
:columns="columns"
|
||||
>
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
}
|
||||
},
|
||||
created() {
|
||||
axios.get('/api/subscriptions/plans/' + this.$route.params.id)
|
||||
axios.get('/api/subscriptions/admin/plans/' + this.$route.params.id)
|
||||
.then(response => {
|
||||
this.plan = response.data.data
|
||||
})
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
this.isSendingRequest = true
|
||||
|
||||
axios
|
||||
.post('/api/subscriptions/plans/' + this.$route.params.id,
|
||||
.post('/api/subscriptions/admin/plans/' + this.$route.params.id,
|
||||
{
|
||||
data: {
|
||||
name: this.planName
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<PageTab :is-loading="isLoading">
|
||||
<DatatableWrapper @data="subscribers = $event" @init="isLoading = false" :api="`/api/subscriptions/plans/${this.$route.params.id}/subscribers`" :paginator="true" :columns="columns" class="card shadow-card">
|
||||
<DatatableWrapper @data="subscribers = $event" @init="isLoading = false" :api="`/api/subscriptions/admin/plans/${this.$route.params.id}/subscribers`" :paginator="true" :columns="columns" class="card shadow-card">
|
||||
|
||||
<!--Table data content-->
|
||||
<template slot-scope="{ row }">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<!--Datatable-->
|
||||
<DatatableWrapper @init="isLoading = false" api="/api/subscriptions" :paginator="true" :columns="columns" class="card shadow-card">
|
||||
<DatatableWrapper @init="isLoading = false" api="/api/subscriptions/admin" :paginator="true" :columns="columns" class="card shadow-card">
|
||||
|
||||
<!--Table data content-->
|
||||
<template slot-scope="{ row }">
|
||||
@@ -93,6 +93,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import InfoBox from "../../components/Others/Forms/InfoBox";
|
||||
import ColorLabel from "../../components/Others/ColorLabel";
|
||||
import MemberAvatar from "../../components/FilesView/MemberAvatar";
|
||||
import DatatableWrapper from '/resources/js/components/Others/Tables/DatatableWrapper'
|
||||
@@ -105,6 +106,7 @@
|
||||
export default {
|
||||
name: 'Subscriptions',
|
||||
components: {
|
||||
InfoBox,
|
||||
ColorLabel,
|
||||
MemberAvatar,
|
||||
EmptyPageContent,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="card shadow-card">
|
||||
<DatatableWrapper
|
||||
@init="isLoading = false"
|
||||
:api="'/api/subscriptions/users/' + this.$route.params.id + '/transactions'"
|
||||
:api="'/api/subscriptions/admin/users/' + this.$route.params.id + '/transactions'"
|
||||
:paginator="true"
|
||||
:columns="columns"
|
||||
>
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
}
|
||||
},
|
||||
created() {
|
||||
axios.get(`/api/subscriptions/users/${this.$route.params.id}/subscription`)
|
||||
axios.get(`/api/subscriptions/admin/users/${this.$route.params.id}/subscription`)
|
||||
.then(response => {
|
||||
this.subscription = response.data.data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user