1- import LBRY from "./LBRY" ;
2- import './App.css' ;
1+ import { JSX } from "react" ;
32import { Link } from "react-router" ;
43
4+ import LBRY from "./LBRY" ;
5+
56const notTags = [ "porn" , "porno" , "nsfw" , "mature" , "xxx" , "sex" , "creampie" , "blowjob" , "handjob" , "vagina" , "boobs" , "big boobs" , "big dick" , "pussy" , "cumshot" , "anal" , "hard fucking" , "ass" , "fuck" , "hentai" ] ;
67
7- function App ( ) {
8+ function App ( ) : JSX . Element {
89 LBRY . rpc ( 'claim_search' , { "page_size" :4 , "claim_type" :[ "stream" , "repost" , "channel" ] , "no_totals" :true , "any_tags" :[ ] , "not_tags" :notTags , "channel_ids" :[ "80d2590ad04e36fb1d077a9b9e3a8bba76defdf8" , "b58dfaeab6c70754d792cdd9b56ff59b90aea334" ] , "not_channel_ids" :[ ] , "order_by" :[ "release_time" ] , "has_source" :true , "release_time" :">1731193200" , "include_purchase_receipt" :true } ) . then ( json => {
10+ document . getElementById ( 'row-1' ) . innerHTML = '' ;
911 json . result . items . forEach ( ( item : object ) : void => {
1012 document . getElementById ( 'row-1' ) . innerHTML += '<div style="border:1px solid red;display:inline-block;max-width:200px;"><img alt="Thumbnail" src="' + ( item . value ?. thumbnail ?. url || item . reposted_claim ?. value ?. thumbnail ?. url ) + '" style="height:100px;"><br>' + ( item . value ?. title || item . reposted_claim ?. value ?. title ) + '</div>' ;
1113 } ) ;
1214 document . getElementById ( 'row-1' ) . innerHTML += '<br>-------<br>' ;
1315 } ) ;
1416
1517 LBRY . rpc ( 'claim_search' , { "page_size" :4 , "claim_type" :[ "stream" ] , "no_totals" :true , "any_tags" :[ ] , "not_tags" :notTags , "channel_ids" :[ ] , "not_channel_ids" :[ ] , "order_by" :[ "effective_amount" ] , "has_source" :true , "release_time" :">1762902000" , "limit_claims_per_channel" :2 , "include_purchase_receipt" :true } ) . then ( json => {
18+ document . getElementById ( 'row-2' ) . innerHTML = '' ;
1619 json . result . items . forEach ( ( item : object ) : void => {
1720 document . getElementById ( 'row-2' ) . innerHTML += '<div style="border:1px solid red;display:inline-block;max-width:200px;"><img alt="Thumbnail" src="' + ( item . value ?. thumbnail ?. url || item . reposted_claim ?. value ?. thumbnail ?. url ) + '" style="height:100px;"><br>' + ( item . value ?. title || item . reposted_claim ?. value ?. title ) + '</div>' ;
1821 } ) ;
1922 document . getElementById ( 'row-2' ) . innerHTML += '<br>-------<br>' ;
2023 } ) ;
2124
2225 LBRY . rpc ( 'claim_search' , { "page_size" :4 , "claim_type" :[ "stream" , "repost" , "channel" ] , "no_totals" :true , "any_tags" :[ ] , "not_tags" :notTags , "channel_ids" :[ "3fda836a92faaceedfe398225fb9b2ee2ed1f01a" ] , "not_channel_ids" :[ ] , "order_by" :[ "release_time" ] , "has_source" :true , "include_purchase_receipt" :true } ) . then ( json => {
26+ document . getElementById ( 'row-3' ) . innerHTML = '' ;
2327 json . result . items . forEach ( ( item : object ) : void => {
2428 document . getElementById ( 'row-3' ) . innerHTML += '<div style="border:1px solid red;display:inline-block;max-width:200px;"><img alt="Thumbnail" src="' + ( item . value ?. thumbnail ?. url || item . reposted_claim ?. value ?. thumbnail ?. url ) + '" style="height:100px;"><br>' + ( item . value ?. title || item . reposted_claim ?. value ?. title ) + '</div>' ;
2529 } ) ;
@@ -28,18 +32,6 @@ function App() {
2832
2933 return (
3034 < >
31- < div >
32- < a href = "/" > SLASH</ a >
33- |
34- < a href = "/about" > SLASH ABOUT</ a >
35- </ div >
36- < hr />
37- < div >
38- < Link to = "/" > SLASH 2</ Link >
39- |
40- < Link to = "/about" > SLASH ABOUT 2</ Link >
41- </ div >
42- < hr />
4335 < div id = "row-1" > </ div >
4436 < hr />
4537 < div id = "row-2" > </ div >
0 commit comments