diff --git a/src/components/Menu.vue b/src/components/Menu.vue index 57ce332e..139a2e69 100644 --- a/src/components/Menu.vue +++ b/src/components/Menu.vue @@ -6,11 +6,16 @@ + Dashboard Apps + >Developer diff --git a/src/router/index.js b/src/router/index.js index 04895761..ad4e7708 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -8,6 +8,7 @@ import store from '../store/store'; import OAuthPermission from '../views/OAuthPermission' import ListApps from '../views/ListApps' import AppDetails from '../views/AppDetails' +import NewApp from '../views/NewApp' Vue.use(Router) @@ -49,6 +50,12 @@ export default new Router({ name: 'Apps', component: ListApps }, + { + beforeEnter: guard, + path: '/apps/new', + name: 'newApp', + component: NewApp + }, { beforeEnter: guard, path: '/apps/:id', diff --git a/src/services/Api.js b/src/services/Api.js index f44b3243..f294d4af 100644 --- a/src/services/Api.js +++ b/src/services/Api.js @@ -2,7 +2,7 @@ import axios from 'axios' export default() => { return axios.create({ - //baseURL: `http://127.0.0.1:8000/api/`, + baseURL: `http://127.0.0.1:8000/api/`, baseURL: `https://api.account.keks.cloud/api/`, withCredentials: false, headers: { diff --git a/src/services/Apps.js b/src/services/Apps.js index 5875811a..70494f8b 100644 --- a/src/services/Apps.js +++ b/src/services/Apps.js @@ -13,6 +13,9 @@ export default { getAppByKey(key) { return Api().get("/v1/app/find?apiKey="+key); }, + getStartPageApps() { + return Api().get("/v1/app/find?webpage=1"); + }, getAccess(id) { return Api().get('/v1/app/'+id+'/access?create=1') }, @@ -24,5 +27,8 @@ export default { }, getUser(id) { return Api().get('/v1/app/'+id+'/user') + }, + newApp(name, description, url) { + return Api().post('/v1/app/', {name: name, description: description, url: url}); } } \ No newline at end of file diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue index 12a8661a..a93210ab 100644 --- a/src/views/Dashboard.vue +++ b/src/views/Dashboard.vue @@ -5,8 +5,40 @@

Dashboard



- Hello {{$store.getters.getMe["username"]}},
- soon here will be an Dashboard. +

Hello {{$store.getters.getMe["username"]}}, login to

+ + + + + + + + + + + +
+
{{ item.name }}
+
{{ item.description }}
+
+
+
+
+ + + + + + input + + +
+
+
@@ -21,32 +53,33 @@ diff --git a/src/views/ListApps.vue b/src/views/ListApps.vue index 1123504c..1d8af847 100644 --- a/src/views/ListApps.vue +++ b/src/views/ListApps.vue @@ -3,6 +3,7 @@ + Add App

Apps



Here you can Administrate your apps

diff --git a/src/views/NewApp.vue b/src/views/NewApp.vue new file mode 100644 index 00000000..cc82283f --- /dev/null +++ b/src/views/NewApp.vue @@ -0,0 +1,67 @@ + + + +