diff options
author | jdlugosz963 <jdlugosz963@gmail.com> | 2021-11-14 03:36:10 +0100 |
---|---|---|
committer | jdlugosz963 <jdlugosz963@gmail.com> | 2021-11-14 03:36:10 +0100 |
commit | 7f2f1e63826c0acb4514edfb1fbf7a884893f8c4 (patch) | |
tree | 3a9c5d0b74e698c00d9e0ce35b4e80721c8ad548 /src/services | |
parent | 319dd896f3a44237e1c26f3887fcb259f80f2714 (diff) | |
download | lom_frontend-7f2f1e63826c0acb4514edfb1fbf7a884893f8c4.tar.gz lom_frontend-7f2f1e63826c0acb4514edfb1fbf7a884893f8c4.zip |
Add command line
Diffstat (limited to 'src/services')
-rw-r--r-- | src/services/AuthService.js | 2 | ||||
-rw-r--r-- | src/services/CommandsService.js | 24 |
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 @@ | |||
1 | export 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 | } | ||