-
-
- {{$t('conditionsDesc')}}
-
-
+
+ Sorry this section is under construction
diff --git a/src/pages/Confirmed.vue b/src/pages/Confirmed.vue
index bccdd0d..1b22e7c 100644
--- a/src/pages/Confirmed.vue
+++ b/src/pages/Confirmed.vue
@@ -1,22 +1,32 @@
-
-
-
-
-
-
-
+
+
+
+
+
+ {{$t('noOrdersFound')}}
+
+
-
- {{$t('noOrdersFound')}}
-
- {{formatDate(ticket.landed)}}
+ {{ticket.landed | date('ddd, MMMM Do')}}
#{{ticket.id}}
{{ticket.address.nickname}}
{{ticket.address.city}}
@@ -39,23 +49,17 @@
-
-
diff --git a/src/pages/Connections.vue b/src/pages/Connections.vue
new file mode 100644
index 0000000..bf882a0
--- /dev/null
+++ b/src/pages/Connections.vue
@@ -0,0 +1,211 @@
+
+
+
+
+
+ {{$t('nConnections', [count])}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{$t('noDataFound')}}
+
+
+
+
+
+
+
+ {{conn.userVisit.user.nickname}}
+
+
+ {{conn.lastUpdate | relTime}}
+
+
+ {{conn.userVisit.access.agent.platform}} -
+ {{conn.userVisit.access.agent.browser}}
+ {{conn.userVisit.access.agent.version}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/Images.vue b/src/pages/Images.vue
new file mode 100644
index 0000000..e976428
--- /dev/null
+++ b/src/pages/Images.vue
@@ -0,0 +1,14 @@
+
+
+ Sorry this section is under construction
+
+
+
+
+
+
diff --git a/src/pages/Index.vue b/src/pages/Index.vue
index ecb3a46..2342a5a 100644
--- a/src/pages/Index.vue
+++ b/src/pages/Index.vue
@@ -150,7 +150,7 @@ export default {
}
},
mounted () {
- let params = { filter: { order: 'created DESC' } }
+ let params = { filter: { order: 'priority, created DESC' } }
this.$axios.get('News', { params })
.then(res => (this.news = res.data))
diff --git a/src/pages/Items.vue b/src/pages/Items.vue
new file mode 100644
index 0000000..e92dc3f
--- /dev/null
+++ b/src/pages/Items.vue
@@ -0,0 +1,14 @@
+
+
+ Sorry this section is under construction
+
+
+
+
+
+
diff --git a/src/pages/New.vue b/src/pages/New.vue
new file mode 100644
index 0000000..87aecc2
--- /dev/null
+++ b/src/pages/New.vue
@@ -0,0 +1,284 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{scope.opt.name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/News.vue b/src/pages/News.vue
new file mode 100644
index 0000000..a3beb70
--- /dev/null
+++ b/src/pages/News.vue
@@ -0,0 +1,123 @@
+
+
+
+ {{$t('noDataFound')}}
+
+
+
+
+
+
+
+
+
+
+
+ {{myNew.title}}
+
+
+ {{myNew.created | relTime}}
+
+
+ {{myNew.user.nickname}}
+
+
+
+
+
+
+
+
+
+
+
+ {{$t('areYouSureDelete')}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/Order.vue b/src/pages/Order.vue
new file mode 100644
index 0000000..8cb4f5c
--- /dev/null
+++ b/src/pages/Order.vue
@@ -0,0 +1,14 @@
+
+
+ Sorry this section is under construction
+
+
+
+
+
+
diff --git a/src/pages/Orders.vue b/src/pages/Orders.vue
index 2795396..3fb7dbd 100644
--- a/src/pages/Orders.vue
+++ b/src/pages/Orders.vue
@@ -7,15 +7,6 @@
-
-
-
@@ -24,7 +15,9 @@
export default {
name: 'Orders',
mounted () {
- this.$router.replace('/orders/pending')
+ if (this.$route.path === '/orders') {
+ this.$router.replace('/orders/pending')
+ }
}
}
diff --git a/src/pages/Panel.vue b/src/pages/Panel.vue
new file mode 100644
index 0000000..23aab8b
--- /dev/null
+++ b/src/pages/Panel.vue
@@ -0,0 +1,53 @@
+
+
+
+
+
+
+
diff --git a/src/pages/Pending.vue b/src/pages/Pending.vue
index 0aebc08..27f0448 100644
--- a/src/pages/Pending.vue
+++ b/src/pages/Pending.vue
@@ -1,17 +1,22 @@
-
-
+
+
+ {{$t('noOrdersFound')}}
+
+
-
- {{$t('noOrdersFound')}}
-
- {{formatDate(order.landed)}}
+ {{order.landed | date('ddd, MMMM Do')}}
#{{order.id}}
{{order.address.nickname}}
{{order.address.city}}
@@ -22,24 +27,24 @@
+
+
+
-
-
diff --git a/src/pages/Ticket.vue b/src/pages/Ticket.vue
new file mode 100644
index 0000000..6148cee
--- /dev/null
+++ b/src/pages/Ticket.vue
@@ -0,0 +1,14 @@
+
+
+ Sorry this section is under construction
+
+
+
+
+
+
diff --git a/src/pages/Config.vue b/src/pages/User.vue
similarity index 80%
rename from src/pages/Config.vue
rename to src/pages/User.vue
index c2a2b38..48586f7 100644
--- a/src/pages/Config.vue
+++ b/src/pages/User.vue
@@ -1,5 +1,12 @@
+
+
+
+ option-value="code"
+ option-label="name"
+ emit-value/>
-
+
-
-
-
-
@@ -72,7 +78,7 @@
+
+
+
-
-
diff --git a/src/pages/Visits.vue b/src/pages/Visits.vue
new file mode 100644
index 0000000..65fded6
--- /dev/null
+++ b/src/pages/Visits.vue
@@ -0,0 +1,144 @@
+
+
+
+
+ {{$t('visitsCount', [count, newCount])}}
+
+
+
+
+
+
+
+
+ $refs.qDateProxyFrom.hide()"
+ :options="optionsFn"/>
+
+
+
+
+
+
+
+
+ $refs.qDateProxyTo.hide()"
+ :options="optionsFn"/>
+
+
+
+
+
+
+
+
+ {{$t('noDataFound')}}
+
+
+
+
+
+
+ {{visit.browser}} {{visit.minVersion}} - {{visit.maxVersion}}
+
+
+ {{$t('visitsCount', [visit.visits, visit.newVisits])}}
+
+
+ {{visit.lastVisit | relTime}}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/router/index.js b/src/router/index.js
index aeab423..7ac82f8 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -26,9 +26,11 @@ export default function (/* { store, ssrContext } */) {
if (from.name === to.name) return
let app = Router.app
Object.assign(app.$state, {
- title: app.$t(to.name),
+ title: app.$t(to.name || 'home'),
titleColor: null,
- subtitle: null
+ subtitle: null,
+ useRightDrawer: false,
+ rightDrawerOpen: true
})
})
diff --git a/src/router/routes.js b/src/router/routes.js
index b5ffa5f..5228a6f 100644
--- a/src/router/routes.js
+++ b/src/router/routes.js
@@ -22,13 +22,23 @@ const routes = [
component: () => import('pages/Orders.vue'),
children: [
{
+ name: 'pending',
path: 'pending',
component: () => import('pages/Pending.vue')
}, {
+ name: 'confirmed',
path: 'confirmed',
component: () => import('pages/Confirmed.vue')
}
]
+ }, {
+ name: 'order',
+ path: '/order/:order',
+ component: () => import('pages/Order.vue')
+ }, {
+ name: 'ticket',
+ path: '/ticket/:ticket',
+ component: () => import('pages/Ticket.vue')
}, {
name: 'conditions',
path: '/conditions',
@@ -38,13 +48,52 @@ const routes = [
path: '/about',
component: () => import('pages/About.vue')
}, {
- name: 'register',
- path: '/register',
- component: () => import('pages/Register.vue')
+ name: 'admin',
+ path: '/admin',
+ component: () => import('pages/Admin.vue'),
+ children: [
+ {
+ name: 'panel',
+ path: 'panel',
+ component: () => import('pages/Panel.vue')
+ }, {
+ name: 'users',
+ path: 'users',
+ component: () => import('pages/Users.vue')
+ }, {
+ name: 'connections',
+ path: 'connections',
+ component: () => import('pages/Connections.vue')
+ }, {
+ name: 'visits',
+ path: 'visits',
+ component: () => import('pages/Visits.vue')
+ }, {
+ name: 'news',
+ path: 'news',
+ component: () => import('pages/News.vue')
+ }, {
+ name: 'images',
+ path: 'images',
+ component: () => import('pages/Images.vue')
+ }, {
+ name: 'items',
+ path: 'items',
+ component: () => import('pages/Items.vue')
+ }
+ ]
}, {
- name: 'config',
- path: '/config',
- component: () => import('pages/Config.vue'),
+ name: 'accessLog',
+ path: '/access-log/:user',
+ component: () => import('pages/AccessLog.vue')
+ }, {
+ name: 'newEdit',
+ path: '/new/:id?',
+ component: () => import('pages/New.vue')
+ }, {
+ name: 'user',
+ path: '/user',
+ component: () => import('pages/User.vue'),
props: route => ({
changePassword: String(route.query.changePassword) === 'true'
})
@@ -54,8 +103,12 @@ const routes = [
component: () => import('pages/Addresses.vue')
}, {
name: 'addressEdit',
- path: '/address/:address?',
+ path: '/address/:id?',
component: () => import('pages/Address.vue')
+ }, {
+ name: 'register',
+ path: '/register',
+ component: () => import('pages/Register.vue')
}
]
}, {