okelote360

joined 6 months ago
[–] okelote360@lemmy.world 0 points 1 month ago

yup. for example !community@instance

[–] okelote360@lemmy.world 0 points 1 month ago* (last edited 1 month ago) (2 children)

i use JS. not TS or Node.JS

[–] okelote360@lemmy.world 11 points 1 month ago* (last edited 1 month ago)

you: * coding *
cat: CODING IS STUPID!

[–] okelote360@lemmy.world 1 points 1 month ago* (last edited 1 month ago)

i cant install lemmy-js-client because i have js. not node.js. i already tried some CDN and ESM libraries but it needs exports from node.js. i also tried to create some sort of lemmy-js-proxy (server with lemmy-js-client) which i would fetch through my site with the js but... JS CANT FETCH IT BECAUSE 404! i dont know why...

6
submitted 1 month ago* (last edited 1 month ago) by okelote360@lemmy.world to c/lemmyapps@lemmy.world
 

yup. me again...
client
proxy server (for cors)

i cant install lemmy-js-client because i have js. not node.js. i already tried some CDN and ESM libraries but it needs exports from node.js. i also tried to create some sort of lemmy-js-proxy (server with lemmy-js-client) which i would fetch through my site with the js but... JS CANT FETCH IT BECAUSE 404! i dont know why...

[–] okelote360@lemmy.world 2 points 1 month ago

dont worry!

[–] okelote360@lemmy.world 1 points 1 month ago

thank you very much! :D

 

question is solved! answer: add type_ parameter at /post/list endpoint.
example: https://lemmy.world/api/v3/post/list?type_=Local for local posts

[–] okelote360@lemmy.world 1 points 1 month ago* (last edited 1 month ago) (2 children)
21
submitted 1 month ago* (last edited 1 month ago) by okelote360@lemmy.world to c/digitalart@lemmy.world
 

artist: me
gallary: i havent gallary :(

[–] okelote360@lemmy.world 3 points 2 months ago* (last edited 2 months ago)
  1. this client is support all instances that have "fetch api" and header allow-cors: '*'
  2. maybe no :(
 
[–] okelote360@lemmy.world 0 points 2 months ago (1 children)

exports not defined...

 

hello. I recently asked here for help with Lemmy HTTP API and someone said "why don't you use lemmy-js-client?". i tried to add it and...

first i searched the internet about this library and it turns out that it is an npm library... (I have github pages) i searched different variations of the library and found a cdn version of it. i tried to add it. it was a hell of a torture.... i added it the way I add cdn libraries, nothing. i searched all over the internet, but found null. i even asked chatgpt! to no avail. the library (and everything I tried to get out of it) turned into undefined!

what am I supposed to do? this is cdn version what i tried to add
if u want here is source code

 

hello! im developing lemmy client (on html5). i tried to do login function but... when i try to fetch /v3/user backend with auth-token it give me error:

{
  "error": "no_id_given"
}

but why? what im doing wrong? if you want here is my source file on github ( function: getLoggined() )

 

hello! im developing lemmy client (on html5). i tried to do login function but... when i try to fetch /v3/user backend with auth-token it give me error:

{
  "error": "no_id_given"
}

but why? what im doing wrong? if you want here is my source file on github ( function: getLoggined() )

 

hello! im developing lemmy client (on html5). i tried to do login function but... when i try to fetch /v3/user backend with auth-token it give me error:

{
  "error": "no_id_given"
}

but why? what im doing wrong? if you want here is my source file on github ( function: getLoggined() )

25
submitted 2 months ago* (last edited 2 months ago) by okelote360@lemmy.world to c/lemmyapps@lemmy.world
 

hello! i creating lemmy client which looks like it's from the old internet! preview

view more: next ›