Add_Directory_and_ProfilePicture #9

Merged
lx merged 13 commits from Add_Directory into main 2021-08-16 14:44:53 +00:00

13 Commits

Author SHA1 Message Date
Alex a187ae72cb
remove useless newline
continuous-integration/drone/pr Build is pending Details
continuous-integration/drone/push Build is passing Details
2021-08-16 16:31:04 +02:00
Alex b1316fb653
go fmt
continuous-integration/drone/push Build is pending Details
continuous-integration/drone/pr Build is pending Details
2021-08-16 16:28:42 +02:00
Alex 01bf4aa522
Fix directory searching
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2021-08-16 16:27:20 +02:00
Alex e94bd728ec
Improve profile editing page & photo uploading
continuous-integration/drone/push Build is pending Details
continuous-integration/drone/pr Build is pending Details
2021-08-16 15:30:14 +02:00
Alex 9e3279b9c0
Fail when no config file is given, add example in repo 2021-08-16 14:36:14 +02:00
MrArmonius f00702b51c
Correction Review Alex
continuous-integration/drone/push Build is pending Details
continuous-integration/drone/pr Build is pending Details
Change json Identifiant to ID
2021-08-16 12:54:08 +02:00
MrArmonius a2a484daba
Add profile image front-end and back-end
Correct when empty result

The image showed when the result was empty. Now if the `dn == ""` then we
write in the column image just `""`
2021-08-16 12:54:08 +02:00
MrArmonius 0ca6a159b2
Message ID send from Client
Remove commentary code

Correct Empty answer
2021-08-16 12:54:08 +02:00
MrArmonius 815e9bfe2a
Add Description and visibility attributes
Modify in profil's page your description and your choice about show you
on the directory. The default visibility's choice is false. Tthe
description is empty by default.

In the directory, a new row exist to show the description.

Adapt view in column Description

I use the style `word-break: break-all;` on the `<td>`
2021-08-16 12:54:08 +02:00
MrArmonius cf4918e901
Add MessageID for asynchronous request
ID is stored in the session with the type `uint32`

Correction javascript

For the `for loop`, we need don't forget than know we have in format
`JSON` the response: `search:{..}, id:0`
For the id, don't forget to change the global value of `JS`.
2021-08-16 12:54:08 +02:00
MrArmonius 819d7bf02f
New HTML Directory 2021-08-16 12:54:08 +02:00
MrArmonius b1ce932cd6
Add Route + file Directory.go 2021-08-16 12:54:08 +02:00
MrArmonius fa5476e963
Little JS to find the users with visibility = all 2021-08-16 12:54:08 +02:00