summaryrefslogtreecommitdiffstats
path: root/src/services
diff options
context:
space:
mode:
Diffstat (limited to 'src/services')
-rw-r--r--src/services/AuthService.js2
-rw-r--r--src/services/CommandsService.js24
2 files changed, 25 insertions, 1 deletions
diff --git a/src/services/AuthService.js b/src/services/AuthService.js
index 402d196..ff1e468 100644
--- a/src/services/AuthService.js
+++ b/src/services/AuthService.js
@@ -9,7 +9,7 @@ const error_notify = (error) => {
9 Vue.notify({ 9 Vue.notify({
10 type: 'error', 10 type: 'error',
11 title: value, 11 title: value,
12 text: key 12 text: (key !== 'non_field_errors') ? key : ''
13 }) 13 })
14 }) 14 })
15 } 15 }
diff --git a/src/services/CommandsService.js b/src/services/CommandsService.js
new file mode 100644
index 0000000..1248c6d
--- /dev/null
+++ b/src/services/CommandsService.js
@@ -0,0 +1,24 @@
1export default {
2 logout() {
3 console.log("logout :)")
4 },
5 last_message() {
6 console.log("last massege")
7 },
8 chat() {
9 return {
10 search() {console.log("search")},
11 add() {console.log("add friend")},
12 next_tab() {
13 return {
14 hi_in_next_tab() {
15 console.log('Hello there! :)')
16 }
17 }
18 }
19 }
20 },
21 notifications() {},
22 users() {},
23 groups() {}
24}