RetroShare / RSNewWebUI

30 stars 20 forks source link

boards page #56

Closed defnax closed 2 years ago

defnax commented 2 years ago

Added page for testing the boards api. its more cloned from channels thx to @Sukhamjot-Singh it does not work like how i expected im not javscript expert, its unstable

View the BoardView not working not sure why, maybe has todo with the unfinished boards api

Sukhamjot-Singh commented 2 years ago

I can see that the boards are being displayed atleast. I will look into what errors that are coming maybe tomorrow. Because a channel has posts and other things, maybe some of the API's are different.

defnax commented 2 years ago

hi not importend yet only created a page maybe makes your life better when a page is there :) some apis are missed for boards i think cyril working on it example: this one maybe needed: createBoardV2 createPostV2

Sukhamjot-Singh commented 2 years ago

I don't think getBoardsSummaries is working alright. It returns nothing on curl -u login:password http://localhost:9092/rsposted/getBoardsSummaries

Sukhamjot-Singh commented 2 years ago

image This is what I get when this PR calls for getBoardsSummaries. Channels and forum summaries are working fine.

defnax commented 2 years ago

image This is what I get when this PR calls for getBoardsSummaries. Channels and forum summaries are working fine.

it worked, but im not yet tested with master

csoler commented 2 years ago

The method for channels and boards are exactly the same. That's surprising.

Sukhamjot-Singh commented 2 years ago

Maybe there is a problem on my end.

curl -u login:password http://localhost:9092/rsgxschannels/getChannelsSummaries This works.

curl -u login:password http://localhost:9092/rsposted/getBoardsSummaries This doesn't.

Sukhamjot-Singh commented 2 years ago

For updating Retroshare, does this work? image

Not really aware of this linux flow.

csoler commented 2 years ago

no! It updates the released version, not the current master

Sukhamjot-Singh commented 2 years ago

Well how can I update the current master? I have not once updated it.

defnax commented 2 years ago

when i disable the image display boardview works there is a issue to load the image from mData

m('img.boardpic', { src: 'data:image/png;base64,' + bimage.mData.base64,}),

image

Sukhamjot-Singh commented 2 years ago

I am not sure I get you. We are getting the image from the BoardsInfo API. The contentSummaries is for the posts and other thing.

defnax commented 2 years ago

I am not sure I get you. We are getting the image from the BoardsInfo API. The contentSummaries is for the posts and other thing.

thank you, you get updated your retroshare to master?

Sukhamjot-Singh commented 2 years ago

I am not sure I get you. We are getting the image from the BoardsInfo API. The contentSummaries is for the posts and other thing.

thank you, you get updated your retroshare to master?

Yes.

defnax commented 2 years ago

Hi, you can look why image doesnt get loaded?

Sukhamjot-Singh commented 2 years ago

Hi, you can look why image doesnt get loaded?

I started a review suggesting changes.

image: details.mGroupImage for line 55

defnax commented 2 years ago

@csoler can you merge this