-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathres
377 lines (260 loc) · 11.3 KB
/
res
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
TOP: https://oauth.reddit.com/r/pics/top?raw_json=1&count=0&limit=12
AUTHENTICATION: bearer -SXQFyih7bCEp1lpwUNXpq4U3fooLlw
basic NXNDNkROa0RtcHdYZXc6
access_token
new bearer -SO65VqdAzUmw9XhqagZS9tm525ap6g
https://www.reddit.com/api/v1/access_token
website: "bbf993c1-2842-43bb-8aa0-478757f6a2de"
https://news.ycombinator.com/item?id=24004346
authorization: basic NXNDNkROa0RtcHdYZXc6
# Comments fetching
https://www.reddit.com/r/Showerthoughts/comments/mw2amn/having_to_attend_a_wedding_you_dont_want_to_sucks.json
dist = 1 means its the post...
2nd item:
kind:"listing",
data:
children[]: // ok this has all the comments | thread heads |.
0:
data:
ups,
replies:
data:
children[]:
| 0:
| data:
| body: "The kind of comment worth opening your inbox for"
| author
| score
1:
data: "Do you think that the people at Epstein's funeral knew he didn't die of natural causes?"
// (wait 1's data object has a replies obj!)
// ok makes sense since the 0th child doesnt have any replies and is a singleton kind of thread lol.
replies:
data:
children[]
0:
data
body: "Lol wut? Neither of the 2"
|// this has the subsequent replies. single thread.
// last reply has kind: "more", data: {count: 27, }
https://www.reddit.com/r/memes/comments/my7u7e/bee_movie_was_weird_times.json/
what is this "post_hint": "image" in here ?
preview
images
source: {
url:,
}
resolutions: [
{}
]
found "is_video"
"media"
this doesnt work as expected
{selftext && (
<p className="postbody">
{displayMode === "stack"
? selftext.slice(0, 200)
: selftext}
</p>
)}
// mod posts
distinguished: moderator
how do i know what ."url" is ? | post link | video link | image | forwarding link |
the ones withoit images dont have a thumbnail ???
we can use the "thumbnail_height", "thumbnail_width"....
post Object properties: pinned, over_18, archived, spoiler, locked, send_replies?, is_video?, subreddit_type
how do we use the preview object ???? (cors err ifirc)
VIDEO
| ok so url ie (https://v.redd.it/7dqo4hc1itx61) takes you to the post url eventually. SO ADD DASH_360.mp4?source=fallback at end
OK it says rich:video for external sources.
ok so we will have to parse FancyPants comments and markdown comments differently.
some have <div class="md"></div>
now we have to show tweets too
look at rdddeck.com | every post has a domain next to the title area
ex : https://www.reddit.com/r/Futurology/comments/n7q6m8/startup_expects_to_have_lab_grown_chicken_breasts/.json
has domain: ft.com
has flair: BioTech
IMP OBS: the domains for which rdddeck.com doesnt have a specific component to display it just shows the link.
what is this "is_reddit_media_domain" ?
give option to truncate the long post titles.
spoiler was for :/https://www.reddit.com/r/Boxing/comments/n8607o/spoiler_saul_alvarez_vs_billy_joe_saunders/
Q: what is a self post reddit ?
A: A self post is a text post, instead of a link post. A link post directs to an external link. A self post is nothing but the text you enter. A link post earns you link karma, a self post does not.
_____________FOR thumbnail___________________
Submissions have a "submission.thumbnail" attribute.
Although keep in mind, if there are no possible thumbnails, they will be
keywords referring to the default reddit icons ("self", "image", "default"...).
thumbnail images: https://www.reddit.com/r/redditdev/comments/2wwuje/what_does_it_mean_when_the_thumbnail_field_has/
multiple images
wtf there is no post_hint https://www.reddit.com/r/StardustCrusaders/comments/n8e5cr/my_joseph_joestar_cosplay.json
Video wont play: http://localhost:3000/https://www.reddit.com/r/Images/comments/n8fzpm/art_edit_howling_at_the_moon_in_norway/
add FLAIRS |add nsfw flairs.
add locatStorage support.
change the subreddit red innerHTMl
// ? OK SO I CANT GET THE ICON_IMG (without OAuth ig)|| Error 403 also we cant load these for every comment. too much data use
not able to make pos: sticky work.
OK SO NOW WE CANT browse a sub if we see a post directly in single mode.
NOTES for post
are the videos even working ?? and images are lagging too right ??!
video not working: http://localhost:3000/memes/https://www.reddit.com/r/memes/comments/n9wg5r/its_high_noon/
triggered only get popped up if FocusView is reloaded but not if we go back to the same page, from another sub.
image gallery not working : https://www.reddit.com/r/Pictures/comments/nbvy1u/gary_breckheimer_the_transition_from_fashion_to/
image src changings while scrolling are not snappy.
while scrolling focus on the post. to scroll up.
do different subs do spoiler info differently ? https://www.reddit.com/r/pics/comments/nbzqeh/behind_the_scenes_of_king_kong/
submitting a sub-sel with no change makes you lose the forward history !!.
type prefixes
t1_ Comment
t2_ Account
t3_ Link
t4_ Message
t5_ Subreddit
t6_ Award
checkout: https://terminal.sexy/
react-split-pane
should i use a wrapper ? https://www.npmjs.com/package/snoowrap
use: https://www.npmjs.com/package/react-scrollbar
when subreddit is changed, the previous posts are shown for some time until new posts are loaded.
no cant do
focus on last Viewed Card. and start slideshow from last viewed card.
and dim cards that have been viewed.
why does Thoughts get remounted each time i click on a post.
why is this blurred ??? http://localhost:3000/stardustcrusaders/https://www.reddit.com/r/StardustCrusaders/comments/ncslzh/i_got_a_dio_figure_for_16_dollars_but_couldnt/
videos dont switch when scrolling ??? w ! also videos only work for r/stardustcrusaders
check if img has been deleted
ok wtf deleted or not ? http://localhost:3000/stardustcrusaders/https://www.reddit.com/r/StardustCrusaders/comments/ncn9rz/part_6_style_baoh_made_by_me_ref/
remap shift + p to <- and shift + n to -> key.
https://golden-layout.com/
scrollbar: https://css-tricks.com/almanac/properties/s/scrollbar/
untill we fix the gallery situation we can just render a link to the gallery.
should i use url_overridden_by_dest for all links rendered ?
not cool: http://localhost:3000/showerthoughts/https://www.reddit.com/r/Showerthoughts/comments/ncn56i/if_vampires_announced_themselves_to_the_world/
video not working: http://localhost:3000/wholesome/https://www.reddit.com/r/wholesome/comments/ncyc11/3/
YESS I CAN FORCE A RERENDER when i see that the sub has not changed !!!
add img expansion ability.
redesign the colors.
subs to use
stardustCrusades
WatchPeopleDieInside
popular
holup
memes
all
wholesome
stardustcrusaders
nba
pics
WritingPrompts
unexpected
interestingasfuck
add media type and external domain tags.
Gallery study
http://localhost:3000/stardustcrusaders/https://www.reddit.com/r/StardustCrusaders/comments/ndpmux/i_drew_iggy_on_paper_d_oc/
pref: allow user to specify his own color for comment thread lines, random, use progressively darker shades
----------------------
lot of things to learn in css
attr cant use colors
positionings, overflow, sticky cant work with flex parent and certial overflow values sometimes
opacity vs background-color: transparent;
----------------------------
add local stoarage and theme selection and changing.
main point:
refactoring, better scrolling/slideshow, styling, better code patterns
https://www.reddit.com/r/redditdev/comments/2ou686/loading_more_comments_using_apimorechildren/
https://www.reddit.com/dev/api/#GET_api_morechildren
searches entire reddit ? -> https://www.reddit.com/r/redditdev/search.json?q=comments
appplication only Oauth
WILL I HAVE TO LEARN OAUTH for this ????
https://github.com/reddit-archive/reddit/wiki/OAuth2#application-only-oauth
WE NEED ANIMATIONS/TRANSITIONS NOW
implement image lighthouse.
do all videoposts have media_embed ?
change img src to ""
why does sub have to change when we go from url/subname/posturl -> url/subname ??????
IMG MODE -> show title and user on hover.
can i use the router auto scroll for FocusView lol ??
<!-- error log
http://localhost:3000/r/netflix -> http://localhost:3000/r/netflix/https://www.reddit.com/r/netflix/comments/mxm3re/rnetflix_discord_server/ -> http://localhost:3000/r/nosleep
now go all the way back content wont change !.
we need to fix it !
r/popular bug -> select a post.
also css is bad
adjust this
https://showerthoughts-8wps.onrender.com/r/popular/https://www.reddit.com/r/nextfuckinglevel/comments/nm5jvb/the_good_people_at_rtoastme_recommended_me_to_put/
https://www.reddit.com/r/learnprogramming/comments/3np4hr/how_can_a_programmer_learn_design/
doesnt scroll up automatically when posts are opened through clicks
FLAIR !!!
https://www.reddit.com/r/Superstonk/comments/nm83eb/a_house_of_cards_parts_i_ii_iii_in_pdf/
gfm test:
https://www.reddit.com/r/nba/comments/nl8xgv/post_game_thread_the_dallas_mavericks_take_a_20/
thank god this is open source this parsed the markdown always perfectly
https://github.com/joemccann/dillinger
images still dont load in markdown.
more to test on
https://www.reddit.com/r/WritingPrompts/comments/ncjxdm/wp_youre_immortal_the_only_problem_is_youve_lived/
zenitsu:
http://localhost:3000/r/nba/https://www.reddit.com/r/nba/comments/nmm5ng/ja_morant_on_utah_jazz_banning_three_fans_for/
reddit:
https://www.reddit.com/r/nba/comments/nmm5ng/ja_morant_on_utah_jazz_banning_three_fans_for/
bad readablility:
http://localhost:3000/r/WritingPrompts/https://www.reddit.com/r/WritingPrompts/comments/nmefmh/tt_theme_thursday_utopia/
/* not fully opaque when over seen posts */
/* todo: what is {coin_symbol} in desc */
/* ! what we cant hover over reply awards ?*/
-->
add archived logo.
add removed_by_mods logo.
removed / deleted:
removed_by, removed_by_category,
removal_reason
banned_by
hidden
use raw_json=1 param
confusing json terms:
locked:
send_replies:
archived:
no_follow:
better structre app knowledge and todo(s) lmao
use typescript, ChakraUI, etc idk
lmao fix >!SPOILERTEXT!< ; experiment with new way to render post body.
img loading when switching in focusView mode
resizable FocusView post view side
ok
https://not-an-aardvark.github.io/snoowrap/snoowrap.html#getHot__anchor
returns listing but type is # promise. !
but if it returns a promise then how can we run a map method on it ?
// Printing a list of the titles on the front page
r.getHot().map(post => post.title).then(console.log);
https://not-an-aardvark.github.io/snoowrap/Listing.html
Snoowrpa class
getHot() -> ok required // READ SCOPE ! lmao
// res
Proxy [
[Function: targetFunc] {
_promise_chain_cache: [Object: null prototype] {}
},
{
get: [Function: get],
apply: [Function: apply],
construct: [Function: construct],
defineProperty: [Function],
deleteProperty: [Function],
getOwnPropertyDescriptor: [Function],
getPrototypeOf: [Function],
has: [Function],
isExtensible: [Function],
ownKeys: [Function],
preventExtensions: [Function],
set: [Function],
setPrototypeOf: [Function]
}
]
getMe() -> https://not-an-aardvark.github.io/snoowrap/snoowrap.html#getMe__anchor
ok so it uses bluebird promises
APP only Oauth ?
https://github.com/not-an-aardvark/snoowrap/pull/207
# 17-01-2024
- Okay so i just need to set the login option on home page
- redirect to / from other urls if the user is not loggedIn
- Change Request Urls to use snoowrap instead.