From 7a293630a4eef0de3545f0082fee6d6ad53cb9c4 Mon Sep 17 00:00:00 2001 From: Danila_Mochalov Date: Mon, 15 May 2023 23:08:26 +0400 Subject: [PATCH] =?UTF-8?q?Lab=206=20MVC=20+=20SPA=20(axios=20=D1=83=D0=BC?= =?UTF-8?q?=D0=B5=D1=80,=20=D0=B4=D0=B0=20=D0=B7=D0=B4=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D1=81=D1=82=D0=B2=D1=83=D0=B5=D1=82=20axios!)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data.mv.db | Bin 114688 -> 151552 bytes front/vue_front/src/App.vue | 1 - front/vue_front/src/components/Comment.vue | 88 ++++++++++++++------- src/main/resources/templates/profiles.html | 4 - 4 files changed, 58 insertions(+), 35 deletions(-) diff --git a/data.mv.db b/data.mv.db index 76cf63efd8ec0b131e032eacef605ae035b93b37..3be22bde93dc78468dab39cd8023743df465f463 100644 GIT binary patch literal 151552 zcmeIbdu$!onI~BHk~B*aWjnE*ILhmWkz=b{Vb?iz>cvhRQRL-Aq)3SmS@!m>rXHs( z#S*EIlr6b?G4@Q-?#vE)fyVAkCJ82!PSEb2oy=k|NY4(iKsy;sl77s9+y-`g^2hGR z=s{z#e=PQo#xAfJ^!`qrI`z1`mnLP}rldn#w@$rIef8COeXrj)JxWhU*Vp2gMw#3$ zU3-;}63enq$5(HyzBEd`;B>ss!%d!y65ov?=0+*CPN!?@H^NQa{W4$QxVE;MU6@|y zoAFh?KAPCJ8^**tYUn@B0nGu;0nGu;0nGu;0nGu;0nGu;0nGu;0nLFAoCDKZ{{O(g zfhIt6KyyHIKyyHIKyyHIKyyHIKyyHIKyyHI;JxNRZsZSgCjff-I$s?nr*DKeM`?o1 zZTJHC*6Ew!i+p3$KE1xSwmBLyxCdC&_X2i$^V$tQ$~-^y($p<|0fN&vudR-+-CEs5 zWt(g9XyV1K1NnnT!I2|Je#aR2kkM%N^$$EWXdXFwZ0P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z=5@nk12J6$V%i17bQy>l1Av$<0dZ@nPAY!iWbRlZ+a?z^l=WY-lZ>n-smn;)E+c(% zmvMW}hOCw2JQDy}7%N-`xD$N63#xG6b{TU4s|(1tXI9|zP+`x^IbM7}F8uw8%f0@( zG5_y8ctIh5q!kqo9lfd64`?|M9rjWa9#o3xN)}y*$XthLV@m;SB_YxIPCf3keIs=p zjeJQo6_@`gdyfQP;XPF5J%pn7kOlR_ya!L-TE@HwVg<$*B|k1XVSaRLws?O@vz2m| zW17t>jSIkLsbnVGa8}}zdmfsp$-f^BwZJ22+W4Ti$*?r=Rh6XyB`IWR!e)~XPuQ*P z)CdD>m=UJzq0pla=&BcC1Yq1Zeo+BU+7_rx1~&y9AFgW|J}KA!OB>5DrNshZ-J9HLX|nwFBc*Bj|0g*owPeL%|jHG5&SGlJu zysBHb>_iO84xE|^< z<~VHOX7wA)eXmdf&)M}GjI4fxF?8R{Y`yLq_V1v6V{OLBb+8DQ(vfo>H z=WyN+g=)hYJ}6Y*=)}v$`%lMj`&s>3`>(F{DtrbM8DT^Y9bH&B^|gCujc?k5Hh298 DalCXv diff --git a/front/vue_front/src/App.vue b/front/vue_front/src/App.vue index f90d2ef..06e0f21 100644 --- a/front/vue_front/src/App.vue +++ b/front/vue_front/src/App.vue @@ -4,7 +4,6 @@

- Профили Лента Выход

diff --git a/front/vue_front/src/components/Comment.vue b/front/vue_front/src/components/Comment.vue index ac82608..2b32f7e 100644 --- a/front/vue_front/src/components/Comment.vue +++ b/front/vue_front/src/components/Comment.vue @@ -18,6 +18,8 @@

Вы вошли как: {{ selectedProfileLogin }}

+ Админ-панель +
Лента
@@ -158,7 +149,8 @@
@@ -183,7 +175,8 @@ export default { selectedPostText: '', textModal: '', selectedCommentId: 0, - textFinder: '' + textFinder: '', + isAdminFlag: false } }, methods: { @@ -283,12 +276,18 @@ export default { }, async createComment() { - await axios.post('http://localhost:8080/api/1.0/comment/?text=' + this.textModal + '&ownerId=' + this.selectedProfileId + '&postId=' + this.selectedPostId, - { + // await axios.post('http://localhost:8080/api/1.0/comment/?text=' + this.textModal + '&ownerId=' + this.selectedProfileId + '&postId=' + this.selectedPostId, + // { + // headers: { + // 'Authorization':'Bearer ' + localStorage.token + // } + // }); + await fetch('http://localhost:8080/api/1.0/comment/?text=' + this.textModal + '&ownerId=' + this.selectedProfileId + '&postId=' + this.selectedPostId, { + method: 'POST', headers: { - 'Authorization': 'Bearer ' + localStorage.token - } - }); + 'Authorization':'Bearer ' + localStorage['token'] + }, + }) this.refreshList(); }, async deleteComment(commentId) { @@ -302,12 +301,20 @@ export default { this.refreshList(); }, async editComment(){ - await axios.put('http://localhost:8080/api/1.0/comment/' + this.selectedCommentId + '?text=' + this.textModal, - { + // await axios.put('http://localhost:8080/api/1.0/comment/' + this.selectedCommentId + '?text=' + this.textModal, + // { + // headers: { + // 'Authorization': 'Bearer ' + localStorage.token + // } + // }); + + await fetch('http://localhost:8080/api/1.0/comment/' + this.selectedCommentId + '?text=' + this.textModal, { + method: 'PUT', headers: { - 'Authorization': 'Bearer ' + localStorage.token - } - }); + 'Authorization':'Bearer ' + localStorage['token'] + }, + }) + this.refreshList(); }, async refreshList(){ @@ -335,12 +342,20 @@ export default { }); }, async createPost() { - const response = await axios.post('http://localhost:8080/api/api/1.0/post/?text=' + this.textModal + '&authorId=' + this.selectedProfileId, - { + console.log('Authorization '+ 'Bearer ' + localStorage['token']) + // const response = await axios.post('http://localhost:8080/api/1.0/post/?text=' + this.textModal + '&authorId=' + this.selectedProfileId, + // { + // headers: { + // 'Authorization': 'Bearer ' + localStorage['token'] + // } + // }); + await fetch('http://localhost:8080/api/1.0/post/?text=' + this.textModal + '&authorId=' + this.selectedProfileId, { + method: 'POST', headers: { - 'Authorization': 'Bearer ' + localStorage.token - } - }); + 'Authorization':'Bearer ' + localStorage['token'] + }, + }) + this.refreshList(); }, @@ -374,6 +389,19 @@ export default { ) } + var a = await axios.get('http://localhost:8080/api/1.0/profile/role/' + localStorage.token, + { + headers: { + 'Authorization': 'Bearer ' + localStorage.token + } + } + ) + console.log('role') + console.log(a.data) + if (a.data == 'ADMIN'){ + this.isAdminFlag = true + } + const responseProfile = await axios.get('http://localhost:8080/api/1.0/profile/', { diff --git a/src/main/resources/templates/profiles.html b/src/main/resources/templates/profiles.html index 0552194..8dce0b9 100644 --- a/src/main/resources/templates/profiles.html +++ b/src/main/resources/templates/profiles.html @@ -7,10 +7,6 @@
- -