Commit ae8150d78f

ae8150d78fe7e6326f8b2ee329eabe9fde100eac

parent: caa4bca5df

Unsigned

Siriusmart <71584876+Siriusmart@users.noreply.github.com> · 2023-07-08 14:22 UTC

fixed loading page resulting in a blank screen if there is no items in the text list

Layout: unified · split

Cargo.lock +146 −180
@@ -8,6 +8,12 @@ version = "1.0.2"
8source = "registry+https://github.com/rust-lang/crates.io-index" 8source = "registry+https://github.com/rust-lang/crates.io-index"
9checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" 9checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
10 10
11[[package]]
12name = "android-tzdata"
13version = "0.1.1"
14source = "registry+https://github.com/rust-lang/crates.io-index"
15checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0"
16
11[[package]] 17[[package]]
12name = "android_system_properties" 18name = "android_system_properties"
13version = "0.1.5" 19version = "0.1.5"
@@ -58,9 +64,9 @@ checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a"
58 64
59[[package]] 65[[package]]
60name = "bumpalo" 66name = "bumpalo"
61version = "3.12.2" 67version = "3.13.0"
62source = "registry+https://github.com/rust-lang/crates.io-index" 68source = "registry+https://github.com/rust-lang/crates.io-index"
63checksum = "3c6ed94e98ecff0c12dd1b04c15ec0d7d9458ca8fe806cea6f12954efe74c63b" 69checksum = "a3e2c3daef883ecc1b5d58c15adae93470a91d425f3532ba1695849656af3fc1"
64 70
65[[package]] 71[[package]]
66name = "bytemuck" 72name = "bytemuck"
@@ -94,12 +100,12 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
94 100
95[[package]] 101[[package]]
96name = "chrono" 102name = "chrono"
97version = "0.4.24" 103version = "0.4.26"
98source = "registry+https://github.com/rust-lang/crates.io-index" 104source = "registry+https://github.com/rust-lang/crates.io-index"
99checksum = "4e3c5919066adf22df73762e50cffcde3a758f2a848b113b586d1f86728b673b" 105checksum = "ec837a71355b28f6556dbd569b37b3f363091c0bd4b2e735674521b4c5fd9bc5"
100dependencies = [ 106dependencies = [
107 "android-tzdata",
101 "iana-time-zone", 108 "iana-time-zone",
102 "num-integer",
103 "num-traits", 109 "num-traits",
104 "winapi", 110 "winapi",
105] 111]
@@ -134,14 +140,14 @@ checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b"
134 140
135[[package]] 141[[package]]
136name = "console" 142name = "console"
137version = "0.15.5" 143version = "0.15.7"
138source = "registry+https://github.com/rust-lang/crates.io-index" 144source = "registry+https://github.com/rust-lang/crates.io-index"
139checksum = "c3d79fbe8970a77e3e34151cc13d3b3e248aa0faaecb9f6091fa07ebefe5ad60" 145checksum = "c926e00cc70edefdc64d3a5ff31cc65bb97a3460097762bd23afb4d8145fccf8"
140dependencies = [ 146dependencies = [
141 "encode_unicode", 147 "encode_unicode",
142 "lazy_static", 148 "lazy_static",
143 "libc", 149 "libc",
144 "windows-sys 0.42.0", 150 "windows-sys 0.45.0",
145] 151]
146 152
147[[package]] 153[[package]]
@@ -192,9 +198,9 @@ dependencies = [
192 198
193[[package]] 199[[package]]
194name = "crossbeam-epoch" 200name = "crossbeam-epoch"
195version = "0.9.14" 201version = "0.9.15"
196source = "registry+https://github.com/rust-lang/crates.io-index" 202source = "registry+https://github.com/rust-lang/crates.io-index"
197checksum = "46bd5f3f85273295a9d14aedfb86f6aadbff6d8f5295c4a9edb08e819dcf5695" 203checksum = "ae211234986c545741a7dc064309f67ee1e5ad243d0e48335adc0484d960bcc7"
198dependencies = [ 204dependencies = [
199 "autocfg", 205 "autocfg",
200 "cfg-if", 206 "cfg-if",
@@ -205,9 +211,9 @@ dependencies = [
205 211
206[[package]] 212[[package]]
207name = "crossbeam-utils" 213name = "crossbeam-utils"
208version = "0.8.15" 214version = "0.8.16"
209source = "registry+https://github.com/rust-lang/crates.io-index" 215source = "registry+https://github.com/rust-lang/crates.io-index"
210checksum = "3c063cd8cc95f5c377ed0d4b49a4b21f632396ff690e8470c29b3359b346984b" 216checksum = "5a22b2d63d4d1dc0b7f1b6b2747dd0088008a9be28b6ddf0b1e7d335e3037294"
211dependencies = [ 217dependencies = [
212 "cfg-if", 218 "cfg-if",
213] 219]
@@ -247,9 +253,9 @@ dependencies = [
247 253
248[[package]] 254[[package]]
249name = "crossterm_winapi" 255name = "crossterm_winapi"
250version = "0.9.0" 256version = "0.9.1"
251source = "registry+https://github.com/rust-lang/crates.io-index" 257source = "registry+https://github.com/rust-lang/crates.io-index"
252checksum = "2ae1b35a484aa10e07fe0638d02301c5ad24de82d310ccbd2f3693da5f09bf1c" 258checksum = "acdd7c62a3665c7f6830a51635d9ac9b23ed385797f70a83bb8bafe9c572ab2b"
253dependencies = [ 259dependencies = [
254 "winapi", 260 "winapi",
255] 261]
@@ -278,6 +284,12 @@ version = "0.3.6"
278source = "registry+https://github.com/rust-lang/crates.io-index" 284source = "registry+https://github.com/rust-lang/crates.io-index"
279checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" 285checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f"
280 286
287[[package]]
288name = "equivalent"
289version = "1.0.0"
290source = "registry+https://github.com/rust-lang/crates.io-index"
291checksum = "88bffebc5d80432c9b140ee17875ff173a8ab62faad5b257da912bd2f6c1c0a1"
292
281[[package]] 293[[package]]
282name = "errno" 294name = "errno"
283version = "0.3.1" 295version = "0.3.1"
@@ -301,15 +313,15 @@ dependencies = [
301 313
302[[package]] 314[[package]]
303name = "exr" 315name = "exr"
304version = "1.6.3" 316version = "1.7.0"
305source = "registry+https://github.com/rust-lang/crates.io-index" 317source = "registry+https://github.com/rust-lang/crates.io-index"
306checksum = "bdd2162b720141a91a054640662d3edce3d50a944a50ffca5313cd951abb35b4" 318checksum = "d1e481eb11a482815d3e9d618db8c42a93207134662873809335a92327440c18"
307dependencies = [ 319dependencies = [
308 "bit_field", 320 "bit_field",
309 "flume", 321 "flume",
310 "half", 322 "half",
311 "lebe", 323 "lebe",
312 "miniz_oxide 0.6.2", 324 "miniz_oxide",
313 "rayon-core", 325 "rayon-core",
314 "smallvec", 326 "smallvec",
315 "zune-inflate", 327 "zune-inflate",
@@ -340,7 +352,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
340checksum = "3b9429470923de8e8cbd4d2dc513535400b4b3fef0319fb5c4e1f520a7bef743" 352checksum = "3b9429470923de8e8cbd4d2dc513535400b4b3fef0319fb5c4e1f520a7bef743"
341dependencies = [ 353dependencies = [
342 "crc32fast", 354 "crc32fast",
343 "miniz_oxide 0.7.1", 355 "miniz_oxide",
344] 356]
345 357
346[[package]] 358[[package]]
@@ -385,9 +397,9 @@ checksum = "f43be4fe21a13b9781a69afa4985b0f6ee0e1afab2c6f454a8cf30e2b2237b6e"
385 397
386[[package]] 398[[package]]
387name = "getrandom" 399name = "getrandom"
388version = "0.2.9" 400version = "0.2.10"
389source = "registry+https://github.com/rust-lang/crates.io-index" 401source = "registry+https://github.com/rust-lang/crates.io-index"
390checksum = "c85e1d9ab2eadba7e5040d4e09cbd6d072b76a557ad64e797c2cb9d4da21d7e4" 402checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427"
391dependencies = [ 403dependencies = [
392 "cfg-if", 404 "cfg-if",
393 "js-sys", 405 "js-sys",
@@ -417,24 +429,15 @@ dependencies = [
417 429
418[[package]] 430[[package]]
419name = "hashbrown" 431name = "hashbrown"
420version = "0.12.3" 432version = "0.14.0"
421source = "registry+https://github.com/rust-lang/crates.io-index" 433source = "registry+https://github.com/rust-lang/crates.io-index"
422checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" 434checksum = "2c6201b9ff9fd90a5a3bac2e56a830d0caa509576f0e503818ee82c181b3437a"
423 435
424[[package]] 436[[package]]
425name = "hermit-abi" 437name = "hermit-abi"
426version = "0.2.6" 438version = "0.3.2"
427source = "registry+https://github.com/rust-lang/crates.io-index"
428checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7"
429dependencies = [
430 "libc",
431]
432
433[[package]]
434name = "hermit-abi"
435version = "0.3.1"
436source = "registry+https://github.com/rust-lang/crates.io-index" 439source = "registry+https://github.com/rust-lang/crates.io-index"
437checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286" 440checksum = "443144c8cdadd93ebf52ddb4056d257f5b52c04d3c804e657d19eb73fc33668b"
438 441
439[[package]] 442[[package]]
440name = "home" 443name = "home"
@@ -447,9 +450,9 @@ dependencies = [
447 450
448[[package]] 451[[package]]
449name = "http_req" 452name = "http_req"
450version = "0.9.1" 453version = "0.9.2"
451source = "registry+https://github.com/rust-lang/crates.io-index" 454source = "registry+https://github.com/rust-lang/crates.io-index"
452checksum = "5825a38a94c3aff23ea7f60572726829ef055ca02fc64899c3e2e7db2ce4f03f" 455checksum = "9f680177f2ebe4aabd573d07b322d15a5e0fbc97cd739fd627b08043c89041f8"
453dependencies = [ 456dependencies = [
454 "native-tls", 457 "native-tls",
455 "unicase", 458 "unicase",
@@ -457,9 +460,9 @@ dependencies = [
457 460
458[[package]] 461[[package]]
459name = "iana-time-zone" 462name = "iana-time-zone"
460version = "0.1.56" 463version = "0.1.57"
461source = "registry+https://github.com/rust-lang/crates.io-index" 464source = "registry+https://github.com/rust-lang/crates.io-index"
462checksum = "0722cd7114b7de04316e7ea5456a0bbb20e4adb46fd27a3697adb812cff0f37c" 465checksum = "2fad5b825842d2b38bd206f3e81d6957625fd7f0a361e345c30e01a0ae2dd613"
463dependencies = [ 466dependencies = [
464 "android_system_properties", 467 "android_system_properties",
465 "core-foundation-sys", 468 "core-foundation-sys",
@@ -499,11 +502,11 @@ dependencies = [
499 502
500[[package]] 503[[package]]
501name = "indexmap" 504name = "indexmap"
502version = "1.9.3" 505version = "2.0.0"
503source = "registry+https://github.com/rust-lang/crates.io-index" 506source = "registry+https://github.com/rust-lang/crates.io-index"
504checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" 507checksum = "d5477fe2230a79769d8dc68e0eabf5437907c0457a5614a9e8dddb67f65eb65d"
505dependencies = [ 508dependencies = [
506 "autocfg", 509 "equivalent",
507 "hashbrown", 510 "hashbrown",
508] 511]
509 512
@@ -529,20 +532,20 @@ dependencies = [
529 532
530[[package]] 533[[package]]
531name = "io-lifetimes" 534name = "io-lifetimes"
532version = "1.0.10" 535version = "1.0.11"
533source = "registry+https://github.com/rust-lang/crates.io-index" 536source = "registry+https://github.com/rust-lang/crates.io-index"
534checksum = "9c66c74d2ae7e79a5a8f7ac924adbe38ee42a859c6539ad869eb51f0b52dc220" 537checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2"
535dependencies = [ 538dependencies = [
536 "hermit-abi 0.3.1", 539 "hermit-abi",
537 "libc", 540 "libc",
538 "windows-sys 0.48.0", 541 "windows-sys 0.48.0",
539] 542]
540 543
541[[package]] 544[[package]]
542name = "itoa" 545name = "itoa"
543version = "1.0.6" 546version = "1.0.8"
544source = "registry+https://github.com/rust-lang/crates.io-index" 547source = "registry+https://github.com/rust-lang/crates.io-index"
545checksum = "453ad9f582a441959e5f0d088b02ce04cfe8d51a8eaf077f12ac6d3e94164ca6" 548checksum = "62b02a5381cc465bd3041d84623d0fa3b66738b52b8e2fc3bab8ad63ab032f4a"
546 549
547[[package]] 550[[package]]
548name = "jpeg-decoder" 551name = "jpeg-decoder"
@@ -555,9 +558,9 @@ dependencies = [
555 558
556[[package]] 559[[package]]
557name = "js-sys" 560name = "js-sys"
558version = "0.3.63" 561version = "0.3.64"
559source = "registry+https://github.com/rust-lang/crates.io-index" 562source = "registry+https://github.com/rust-lang/crates.io-index"
560checksum = "2f37a4a5928311ac501dee68b3c7613a1037d0edb30c8e5427bd832d55d1b790" 563checksum = "c5f195fe497f702db0f318b07fdd68edb16955aed830df8363d837542f8f935a"
561dependencies = [ 564dependencies = [
562 "wasm-bindgen", 565 "wasm-bindgen",
563] 566]
@@ -576,21 +579,21 @@ checksum = "03087c2bad5e1034e8cace5926dec053fb3790248370865f5117a7d0213354c8"
576 579
577[[package]] 580[[package]]
578name = "libc" 581name = "libc"
579version = "0.2.144" 582version = "0.2.147"
580source = "registry+https://github.com/rust-lang/crates.io-index" 583source = "registry+https://github.com/rust-lang/crates.io-index"
581checksum = "2b00cc1c228a6782d0f076e7b232802e0c5689d41bb5df366f2a6b6621cfdfe1" 584checksum = "b4668fb0ea861c1df094127ac5f1da3409a82116a4ba74fca2e58ef927159bb3"
582 585
583[[package]] 586[[package]]
584name = "linux-raw-sys" 587name = "linux-raw-sys"
585version = "0.3.7" 588version = "0.3.8"
586source = "registry+https://github.com/rust-lang/crates.io-index" 589source = "registry+https://github.com/rust-lang/crates.io-index"
587checksum = "ece97ea872ece730aed82664c424eb4c8291e1ff2480247ccf7409044bc6479f" 590checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519"
588 591
589[[package]] 592[[package]]
590name = "lock_api" 593name = "lock_api"
591version = "0.4.9" 594version = "0.4.10"
592source = "registry+https://github.com/rust-lang/crates.io-index" 595source = "registry+https://github.com/rust-lang/crates.io-index"
593checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" 596checksum = "c1cc9717a20b1bb222f333e6a92fd32f7d8a18ddc5a3191a11af45dcbf4dcd16"
594dependencies = [ 597dependencies = [
595 "autocfg", 598 "autocfg",
596 "scopeguard", 599 "scopeguard",
@@ -598,12 +601,9 @@ dependencies = [
598 601
599[[package]] 602[[package]]
600name = "log" 603name = "log"
601version = "0.4.17" 604version = "0.4.19"
602source = "registry+https://github.com/rust-lang/crates.io-index" 605source = "registry+https://github.com/rust-lang/crates.io-index"
603checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" 606checksum = "b06a4cde4c0f271a446782e3eff8de789548ce57dbc8eca9292c27f4a42004b4"
604dependencies = [
605 "cfg-if",
606]
607 607
608[[package]] 608[[package]]
609name = "make-cmd" 609name = "make-cmd"
@@ -622,22 +622,13 @@ dependencies = [
622 622
623[[package]] 623[[package]]
624name = "memoffset" 624name = "memoffset"
625version = "0.8.0" 625version = "0.9.0"
626source = "registry+https://github.com/rust-lang/crates.io-index" 626source = "registry+https://github.com/rust-lang/crates.io-index"
627checksum = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1" 627checksum = "5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c"
628dependencies = [ 628dependencies = [
629 "autocfg", 629 "autocfg",
630] 630]
631 631
632[[package]]
633name = "miniz_oxide"
634version = "0.6.2"
635source = "registry+https://github.com/rust-lang/crates.io-index"
636checksum = "b275950c28b37e794e8c55d88aeb5e139d0ce23fdbbeda68f8d7174abdf9e8fa"
637dependencies = [
638 "adler",
639]
640
641[[package]] 632[[package]]
642name = "miniz_oxide" 633name = "miniz_oxide"
643version = "0.7.1" 634version = "0.7.1"
@@ -650,14 +641,14 @@ dependencies = [
650 641
651[[package]] 642[[package]]
652name = "mio" 643name = "mio"
653version = "0.8.6" 644version = "0.8.8"
654source = "registry+https://github.com/rust-lang/crates.io-index" 645source = "registry+https://github.com/rust-lang/crates.io-index"
655checksum = "5b9d9a46eff5b4ff64b45a9e316a6d1e0bc719ef429cbec4dc630684212bfdf9" 646checksum = "927a765cd3fc26206e66b296465fa9d3e5ab003e651c1b3c060e7956d96b19d2"
656dependencies = [ 647dependencies = [
657 "libc", 648 "libc",
658 "log", 649 "log",
659 "wasi", 650 "wasi",
660 "windows-sys 0.45.0", 651 "windows-sys 0.48.0",
661] 652]
662 653
663[[package]] 654[[package]]
@@ -719,11 +710,11 @@ dependencies = [
719 710
720[[package]] 711[[package]]
721name = "num_cpus" 712name = "num_cpus"
722version = "1.15.0" 713version = "1.16.0"
723source = "registry+https://github.com/rust-lang/crates.io-index" 714source = "registry+https://github.com/rust-lang/crates.io-index"
724checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" 715checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43"
725dependencies = [ 716dependencies = [
726 "hermit-abi 0.2.6", 717 "hermit-abi",
727 "libc", 718 "libc",
728] 719]
729 720
@@ -758,15 +749,15 @@ dependencies = [
758 749
759[[package]] 750[[package]]
760name = "once_cell" 751name = "once_cell"
761version = "1.17.1" 752version = "1.18.0"
762source = "registry+https://github.com/rust-lang/crates.io-index" 753source = "registry+https://github.com/rust-lang/crates.io-index"
763checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3" 754checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d"
764 755
765[[package]] 756[[package]]
766name = "openssl" 757name = "openssl"
767version = "0.10.52" 758version = "0.10.55"
768source = "registry+https://github.com/rust-lang/crates.io-index" 759source = "registry+https://github.com/rust-lang/crates.io-index"
769checksum = "01b8574602df80f7b85fdfc5392fa884a4e3b3f4f35402c070ab34c3d3f78d56" 760checksum = "345df152bc43501c5eb9e4654ff05f794effb78d4efe3d53abc158baddc0703d"
770dependencies = [ 761dependencies = [
771 "bitflags", 762 "bitflags",
772 "cfg-if", 763 "cfg-if",
@@ -796,9 +787,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf"
796 787
797[[package]] 788[[package]]
798name = "openssl-sys" 789name = "openssl-sys"
799version = "0.9.87" 790version = "0.9.90"
800source = "registry+https://github.com/rust-lang/crates.io-index" 791source = "registry+https://github.com/rust-lang/crates.io-index"
801checksum = "8e17f59264b2809d77ae94f0e1ebabc434773f370d6ca667bd223ea10e06cc7e" 792checksum = "374533b0e45f3a7ced10fcaeccca020e66656bc03dac384f852e4e5a7a8104a6"
802dependencies = [ 793dependencies = [
803 "cc", 794 "cc",
804 "libc", 795 "libc",
@@ -818,31 +809,31 @@ dependencies = [
818 809
819[[package]] 810[[package]]
820name = "parking_lot_core" 811name = "parking_lot_core"
821version = "0.9.7" 812version = "0.9.8"
822source = "registry+https://github.com/rust-lang/crates.io-index" 813source = "registry+https://github.com/rust-lang/crates.io-index"
823checksum = "9069cbb9f99e3a5083476ccb29ceb1de18b9118cafa53e90c9551235de2b9521" 814checksum = "93f00c865fe7cabf650081affecd3871070f26767e7b2070a3ffae14c654b447"
824dependencies = [ 815dependencies = [
825 "cfg-if", 816 "cfg-if",
826 "libc", 817 "libc",
827 "redox_syscall 0.2.16", 818 "redox_syscall",
828 "smallvec", 819 "smallvec",
829 "windows-sys 0.45.0", 820 "windows-targets 0.48.1",
830] 821]
831 822
832[[package]] 823[[package]]
833name = "pin-project" 824name = "pin-project"
834version = "1.1.0" 825version = "1.1.2"
835source = "registry+https://github.com/rust-lang/crates.io-index" 826source = "registry+https://github.com/rust-lang/crates.io-index"
836checksum = "c95a7476719eab1e366eaf73d0260af3021184f18177925b07f54b30089ceead" 827checksum = "030ad2bc4db10a8944cb0d837f158bdfec4d4a4873ab701a95046770d11f8842"
837dependencies = [ 828dependencies = [
838 "pin-project-internal", 829 "pin-project-internal",
839] 830]
840 831
841[[package]] 832[[package]]
842name = "pin-project-internal" 833name = "pin-project-internal"
843version = "1.1.0" 834version = "1.1.2"
844source = "registry+https://github.com/rust-lang/crates.io-index" 835source = "registry+https://github.com/rust-lang/crates.io-index"
845checksum = "39407670928234ebc5e6e580247dd567ad73a3578460c5990f9503df207e8f07" 836checksum = "ec2e072ecce94ec471b13398d5402c188e76ac03cf74dd1a975161b23a3f6d9c"
846dependencies = [ 837dependencies = [
847 "proc-macro2", 838 "proc-macro2",
848 "quote", 839 "quote",
@@ -857,22 +848,22 @@ checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964"
857 848
858[[package]] 849[[package]]
859name = "png" 850name = "png"
860version = "0.17.8" 851version = "0.17.9"
861source = "registry+https://github.com/rust-lang/crates.io-index" 852source = "registry+https://github.com/rust-lang/crates.io-index"
862checksum = "aaeebc51f9e7d2c150d3f3bfeb667f2aa985db5ef1e3d212847bdedb488beeaa" 853checksum = "59871cc5b6cce7eaccca5a802b4173377a1c2ba90654246789a8fa2334426d11"
863dependencies = [ 854dependencies = [
864 "bitflags", 855 "bitflags",
865 "crc32fast", 856 "crc32fast",
866 "fdeflate", 857 "fdeflate",
867 "flate2", 858 "flate2",
868 "miniz_oxide 0.7.1", 859 "miniz_oxide",
869] 860]
870 861
871[[package]] 862[[package]]
872name = "proc-macro2" 863name = "proc-macro2"
873version = "1.0.58" 864version = "1.0.63"
874source = "registry+https://github.com/rust-lang/crates.io-index" 865source = "registry+https://github.com/rust-lang/crates.io-index"
875checksum = "fa1fb82fc0c281dd9671101b66b771ebbe1eaf967b96ac8740dcba4b70005ca8" 866checksum = "7b368fba921b0dce7e60f5e04ec15e565b3303972b42bcfde1d0713b881959eb"
876dependencies = [ 867dependencies = [
877 "unicode-ident", 868 "unicode-ident",
878] 869]
@@ -888,13 +879,27 @@ dependencies = [
888 879
889[[package]] 880[[package]]
890name = "quote" 881name = "quote"
891version = "1.0.27" 882version = "1.0.29"
892source = "registry+https://github.com/rust-lang/crates.io-index" 883source = "registry+https://github.com/rust-lang/crates.io-index"
893checksum = "8f4f29d145265ec1c483c7c654450edde0bfe043d3938d6972630663356d9500" 884checksum = "573015e8ab27661678357f27dc26460738fd2b6c86e46f386fde94cb5d913105"
894dependencies = [ 885dependencies = [
895 "proc-macro2", 886 "proc-macro2",
896] 887]
897 888
889[[package]]
890name = "ratatui"
891version = "0.21.0"
892source = "registry+https://github.com/rust-lang/crates.io-index"
893checksum = "ce841e0486e7c2412c3740168ede33adeba8e154a15107b879d8162d77c7174e"
894dependencies = [
895 "bitflags",
896 "cassowary",
897 "crossterm 0.26.1",
898 "serde",
899 "unicode-segmentation",
900 "unicode-width",
901]
902
898[[package]] 903[[package]]
899name = "rayon" 904name = "rayon"
900version = "1.7.0" 905version = "1.7.0"
@@ -917,15 +922,6 @@ dependencies = [
917 "num_cpus", 922 "num_cpus",
918] 923]
919 924
920[[package]]
921name = "redox_syscall"
922version = "0.2.16"
923source = "registry+https://github.com/rust-lang/crates.io-index"
924checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a"
925dependencies = [
926 "bitflags",
927]
928
929[[package]] 925[[package]]
930name = "redox_syscall" 926name = "redox_syscall"
931version = "0.3.5" 927version = "0.3.5"
@@ -946,9 +942,9 @@ dependencies = [
946 942
947[[package]] 943[[package]]
948name = "rustix" 944name = "rustix"
949version = "0.37.19" 945version = "0.37.23"
950source = "registry+https://github.com/rust-lang/crates.io-index" 946source = "registry+https://github.com/rust-lang/crates.io-index"
951checksum = "acf8729d8542766f1b2cf77eb034d52f40d375bb8b615d0b147089946e16613d" 947checksum = "4d69718bf81c6127a49dc64e44a742e8bb9213c0ff8869a22c308f84c1d4ab06"
952dependencies = [ 948dependencies = [
953 "bitflags", 949 "bitflags",
954 "errno", 950 "errno",
@@ -960,17 +956,17 @@ dependencies = [
960 956
961[[package]] 957[[package]]
962name = "ryu" 958name = "ryu"
963version = "1.0.13" 959version = "1.0.14"
964source = "registry+https://github.com/rust-lang/crates.io-index" 960source = "registry+https://github.com/rust-lang/crates.io-index"
965checksum = "f91339c0467de62360649f8d3e185ca8de4224ff281f66000de5eb2a77a79041" 961checksum = "fe232bdf6be8c8de797b22184ee71118d63780ea42ac85b61d1baa6d3b782ae9"
966 962
967[[package]] 963[[package]]
968name = "schannel" 964name = "schannel"
969version = "0.1.21" 965version = "0.1.22"
970source = "registry+https://github.com/rust-lang/crates.io-index" 966source = "registry+https://github.com/rust-lang/crates.io-index"
971checksum = "713cfb06c7059f3588fb8044c0fad1d09e3c01d225e25b9220dbfdcf16dbb1b3" 967checksum = "0c3733bf4cf7ea0880754e19cb5a462007c4a8c1914bff372ccc95b464f1df88"
972dependencies = [ 968dependencies = [
973 "windows-sys 0.42.0", 969 "windows-sys 0.48.0",
974] 970]
975 971
976[[package]] 972[[package]]
@@ -981,9 +977,9 @@ checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
981 977
982[[package]] 978[[package]]
983name = "security-framework" 979name = "security-framework"
984version = "2.9.0" 980version = "2.9.1"
985source = "registry+https://github.com/rust-lang/crates.io-index" 981source = "registry+https://github.com/rust-lang/crates.io-index"
986checksum = "ca2855b3715770894e67cbfa3df957790aa0c9edc3bf06efa1a84d77fa0839d1" 982checksum = "1fc758eb7bffce5b308734e9b0c1468893cae9ff70ebf13e7090be8dcbcc83a8"
987dependencies = [ 983dependencies = [
988 "bitflags", 984 "bitflags",
989 "core-foundation", 985 "core-foundation",
@@ -1004,18 +1000,18 @@ dependencies = [
1004 1000
1005[[package]] 1001[[package]]
1006name = "serde" 1002name = "serde"
1007version = "1.0.163" 1003version = "1.0.167"
1008source = "registry+https://github.com/rust-lang/crates.io-index" 1004source = "registry+https://github.com/rust-lang/crates.io-index"
1009checksum = "2113ab51b87a539ae008b5c6c02dc020ffa39afd2d83cffcb3f4eb2722cebec2" 1005checksum = "7daf513456463b42aa1d94cff7e0c24d682b429f020b9afa4f5ba5c40a22b237"
1010dependencies = [ 1006dependencies = [
1011 "serde_derive", 1007 "serde_derive",
1012] 1008]
1013 1009
1014[[package]] 1010[[package]]
1015name = "serde_derive" 1011name = "serde_derive"
1016version = "1.0.163" 1012version = "1.0.167"
1017source = "registry+https://github.com/rust-lang/crates.io-index" 1013source = "registry+https://github.com/rust-lang/crates.io-index"
1018checksum = "8c805777e3930c8883389c602315a24224bcc738b63905ef87cd1420353ea93e" 1014checksum = "b69b106b68bc8054f0e974e70d19984040f8a5cf9215ca82626ea4853f82c4b9"
1019dependencies = [ 1015dependencies = [
1020 "proc-macro2", 1016 "proc-macro2",
1021 "quote", 1017 "quote",
@@ -1024,9 +1020,9 @@ dependencies = [
1024 1020
1025[[package]] 1021[[package]]
1026name = "serde_json" 1022name = "serde_json"
1027version = "1.0.96" 1023version = "1.0.100"
1028source = "registry+https://github.com/rust-lang/crates.io-index" 1024source = "registry+https://github.com/rust-lang/crates.io-index"
1029checksum = "057d394a50403bcac12672b2b18fb387ab6d289d957dab67dd201875391e52f1" 1025checksum = "0f1e14e89be7aa4c4b78bdbdc9eb5bf8517829a600ae8eaa39a6e1d960b5185c"
1030dependencies = [ 1026dependencies = [
1031 "itoa", 1027 "itoa",
1032 "ryu", 1028 "ryu",
@@ -1035,9 +1031,9 @@ dependencies = [
1035 1031
1036[[package]] 1032[[package]]
1037name = "serde_yaml" 1033name = "serde_yaml"
1038version = "0.9.21" 1034version = "0.9.22"
1039source = "registry+https://github.com/rust-lang/crates.io-index" 1035source = "registry+https://github.com/rust-lang/crates.io-index"
1040checksum = "d9d684e3ec7de3bf5466b32bd75303ac16f0736426e5a4e0d6e489559ce1249c" 1036checksum = "452e67b9c20c37fa79df53201dc03839651086ed9bbe92b3ca585ca9fdaa7d85"
1041dependencies = [ 1037dependencies = [
1042 "indexmap", 1038 "indexmap",
1043 "itoa", 1039 "itoa",
@@ -1102,9 +1098,9 @@ dependencies = [
1102 1098
1103[[package]] 1099[[package]]
1104name = "smallvec" 1100name = "smallvec"
1105version = "1.10.0" 1101version = "1.11.0"
1106source = "registry+https://github.com/rust-lang/crates.io-index" 1102source = "registry+https://github.com/rust-lang/crates.io-index"
1107checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" 1103checksum = "62bb4feee49fdd9f707ef802e22365a35de4b7b299de4763d44bfea899442ff9"
1108 1104
1109[[package]] 1105[[package]]
1110name = "spin" 1106name = "spin"
@@ -1117,9 +1113,9 @@ dependencies = [
1117 1113
1118[[package]] 1114[[package]]
1119name = "syn" 1115name = "syn"
1120version = "2.0.16" 1116version = "2.0.23"
1121source = "registry+https://github.com/rust-lang/crates.io-index" 1117source = "registry+https://github.com/rust-lang/crates.io-index"
1122checksum = "a6f671d4b5ffdb8eadec19c0ae67fe2639df8684bd7bc4b83d986b8db549cf01" 1118checksum = "59fb7d6d8281a51045d62b8eb3a7d1ce347b76f312af50cd3dc0af39c87c1737"
1123dependencies = [ 1119dependencies = [
1124 "proc-macro2", 1120 "proc-macro2",
1125 "quote", 1121 "quote",
@@ -1128,15 +1124,16 @@ dependencies = [
1128 1124
1129[[package]] 1125[[package]]
1130name = "tempfile" 1126name = "tempfile"
1131version = "3.5.0" 1127version = "3.6.0"
1132source = "registry+https://github.com/rust-lang/crates.io-index" 1128source = "registry+https://github.com/rust-lang/crates.io-index"
1133checksum = "b9fbec84f381d5795b08656e4912bec604d162bff9291d6189a78f4c8ab87998" 1129checksum = "31c0432476357e58790aaa47a8efb0c5138f137343f3b5f23bd36a27e3b0a6d6"
1134dependencies = [ 1130dependencies = [
1131 "autocfg",
1135 "cfg-if", 1132 "cfg-if",
1136 "fastrand", 1133 "fastrand",
1137 "redox_syscall 0.3.5", 1134 "redox_syscall",
1138 "rustix", 1135 "rustix",
1139 "windows-sys 0.45.0", 1136 "windows-sys 0.48.0",
1140] 1137]
1141 1138
1142[[package]] 1139[[package]]
@@ -1165,29 +1162,13 @@ version = "0.1.0"
1165source = "registry+https://github.com/rust-lang/crates.io-index" 1162source = "registry+https://github.com/rust-lang/crates.io-index"
1166checksum = "efd1f82c56340fdf16f2a953d7bda4f8fdffba13d93b00844c25572110b26079" 1163checksum = "efd1f82c56340fdf16f2a953d7bda4f8fdffba13d93b00844c25572110b26079"
1167 1164
1168[[package]]
1169name = "tui"
1170version = "0.19.0"
1171source = "registry+https://github.com/rust-lang/crates.io-index"
1172checksum = "ccdd26cbd674007e649a272da4475fb666d3aa0ad0531da7136db6fab0e5bad1"
1173dependencies = [
1174 "bitflags",
1175 "cassowary",
1176 "crossterm 0.25.0",
1177 "serde",
1178 "unicode-segmentation",
1179 "unicode-width",
1180]
1181
1182[[package]] 1165[[package]]
1183name = "tui-additions" 1166name = "tui-additions"
1184version = "0.1.13" 1167version = "0.1.12"
1185source = "registry+https://github.com/rust-lang/crates.io-index"
1186checksum = "37ad46291f8753853eb83c3e47c34c67a59f61129a13a93ba11907ca458bd72b"
1187dependencies = [ 1168dependencies = [
1188 "crossterm 0.26.1", 1169 "crossterm 0.26.1",
1189 "dyn-clone", 1170 "dyn-clone",
1190 "tui", 1171 "ratatui",
1191 "typemap", 1172 "typemap",
1192 "unicode-segmentation", 1173 "unicode-segmentation",
1193] 1174]
@@ -1212,9 +1193,9 @@ dependencies = [
1212 1193
1213[[package]] 1194[[package]]
1214name = "unicode-ident" 1195name = "unicode-ident"
1215version = "1.0.8" 1196version = "1.0.10"
1216source = "registry+https://github.com/rust-lang/crates.io-index" 1197source = "registry+https://github.com/rust-lang/crates.io-index"
1217checksum = "e5464a87b239f13a63a501f2701565754bae92d243d4bb7eb12f6d57d2269bf4" 1198checksum = "22049a19f4a68748a168c0fc439f9516686aa045927ff767eca0a85101fb6e73"
1218 1199
1219[[package]] 1200[[package]]
1220name = "unicode-segmentation" 1201name = "unicode-segmentation"
@@ -1286,9 +1267,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
1286 1267
1287[[package]] 1268[[package]]
1288name = "wasm-bindgen" 1269name = "wasm-bindgen"
1289version = "0.2.86" 1270version = "0.2.87"
1290source = "registry+https://github.com/rust-lang/crates.io-index" 1271source = "registry+https://github.com/rust-lang/crates.io-index"
1291checksum = "5bba0e8cb82ba49ff4e229459ff22a191bbe9a1cb3a341610c9c33efc27ddf73" 1272checksum = "7706a72ab36d8cb1f80ffbf0e071533974a60d0a308d01a5d0375bf60499a342"
1292dependencies = [ 1273dependencies = [
1293 "cfg-if", 1274 "cfg-if",
1294 "wasm-bindgen-macro", 1275 "wasm-bindgen-macro",
@@ -1296,9 +1277,9 @@ dependencies = [
1296 1277
1297[[package]] 1278[[package]]
1298name = "wasm-bindgen-backend" 1279name = "wasm-bindgen-backend"
1299version = "0.2.86" 1280version = "0.2.87"
1300source = "registry+https://github.com/rust-lang/crates.io-index" 1281source = "registry+https://github.com/rust-lang/crates.io-index"
1301checksum = "19b04bc93f9d6bdee709f6bd2118f57dd6679cf1176a1af464fca3ab0d66d8fb" 1282checksum = "5ef2b6d3c510e9625e5fe6f509ab07d66a760f0885d858736483c32ed7809abd"
1302dependencies = [ 1283dependencies = [
1303 "bumpalo", 1284 "bumpalo",
1304 "log", 1285 "log",
@@ -1311,9 +1292,9 @@ dependencies = [
1311 1292
1312[[package]] 1293[[package]]
1313name = "wasm-bindgen-macro" 1294name = "wasm-bindgen-macro"
1314version = "0.2.86" 1295version = "0.2.87"
1315source = "registry+https://github.com/rust-lang/crates.io-index" 1296source = "registry+https://github.com/rust-lang/crates.io-index"
1316checksum = "14d6b024f1a526bb0234f52840389927257beb670610081360e5a03c5df9c258" 1297checksum = "dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d"
1317dependencies = [ 1298dependencies = [
1318 "quote", 1299 "quote",
1319 "wasm-bindgen-macro-support", 1300 "wasm-bindgen-macro-support",
@@ -1321,9 +1302,9 @@ dependencies = [
1321 1302
1322[[package]] 1303[[package]]
1323name = "wasm-bindgen-macro-support" 1304name = "wasm-bindgen-macro-support"
1324version = "0.2.86" 1305version = "0.2.87"
1325source = "registry+https://github.com/rust-lang/crates.io-index" 1306source = "registry+https://github.com/rust-lang/crates.io-index"
1326checksum = "e128beba882dd1eb6200e1dc92ae6c5dbaa4311aa7bb211ca035779e5efc39f8" 1307checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b"
1327dependencies = [ 1308dependencies = [
1328 "proc-macro2", 1309 "proc-macro2",
1329 "quote", 1310 "quote",
@@ -1334,9 +1315,9 @@ dependencies = [
1334 1315
1335[[package]] 1316[[package]]
1336name = "wasm-bindgen-shared" 1317name = "wasm-bindgen-shared"
1337version = "0.2.86" 1318version = "0.2.87"
1338source = "registry+https://github.com/rust-lang/crates.io-index" 1319source = "registry+https://github.com/rust-lang/crates.io-index"
1339checksum = "ed9d5b4305409d1fc9482fee2d7f9bcbf24b3972bf59817ef757e23982242a93" 1320checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1"
1340 1321
1341[[package]] 1322[[package]]
1342name = "weezl" 1323name = "weezl"
@@ -1381,22 +1362,7 @@ version = "0.48.0"
1381source = "registry+https://github.com/rust-lang/crates.io-index" 1362source = "registry+https://github.com/rust-lang/crates.io-index"
1382checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f" 1363checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f"
1383dependencies = [ 1364dependencies = [
1384 "windows-targets 0.48.0", 1365 "windows-targets 0.48.1",
1385]
1386
1387[[package]]
1388name = "windows-sys"
1389version = "0.42.0"
1390source = "registry+https://github.com/rust-lang/crates.io-index"
1391checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7"
1392dependencies = [
1393 "windows_aarch64_gnullvm 0.42.2",
1394 "windows_aarch64_msvc 0.42.2",
1395 "windows_i686_gnu 0.42.2",
1396 "windows_i686_msvc 0.42.2",
1397 "windows_x86_64_gnu 0.42.2",
1398 "windows_x86_64_gnullvm 0.42.2",
1399 "windows_x86_64_msvc 0.42.2",
1400] 1366]
1401 1367
1402[[package]] 1368[[package]]
@@ -1414,7 +1380,7 @@ version = "0.48.0"
1414source = "registry+https://github.com/rust-lang/crates.io-index" 1380source = "registry+https://github.com/rust-lang/crates.io-index"
1415checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" 1381checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
1416dependencies = [ 1382dependencies = [
1417 "windows-targets 0.48.0", 1383 "windows-targets 0.48.1",
1418] 1384]
1419 1385
1420[[package]] 1386[[package]]
@@ -1434,9 +1400,9 @@ dependencies = [
1434 1400
1435[[package]] 1401[[package]]
1436name = "windows-targets" 1402name = "windows-targets"
1437version = "0.48.0" 1403version = "0.48.1"
1438source = "registry+https://github.com/rust-lang/crates.io-index" 1404source = "registry+https://github.com/rust-lang/crates.io-index"
1439checksum = "7b1eb6f0cd7c80c79759c929114ef071b87354ce476d9d94271031c0497adfd5" 1405checksum = "05d4b17490f70499f20b9e791dcf6a299785ce8af4d709018206dc5b4953e95f"
1440dependencies = [ 1406dependencies = [
1441 "windows_aarch64_gnullvm 0.48.0", 1407 "windows_aarch64_gnullvm 0.48.0",
1442 "windows_aarch64_msvc 0.48.0", 1408 "windows_aarch64_msvc 0.48.0",
@@ -1560,10 +1526,10 @@ dependencies = [
1560 "dyn-clone", 1526 "dyn-clone",
1561 "home", 1527 "home",
1562 "invidious", 1528 "invidious",
1529 "ratatui",
1563 "serde", 1530 "serde",
1564 "serde_json", 1531 "serde_json",
1565 "serde_yaml", 1532 "serde_yaml",
1566 "tui",
1567 "tui-additions", 1533 "tui-additions",
1568 "typemap", 1534 "typemap",
1569 "urlencoding", 1535 "urlencoding",
Cargo.toml +4 −3
@@ -23,21 +23,22 @@ clipboard = ["dep:clipboard"]
23 23
24[dependencies] 24[dependencies]
25serde = {version = "1.0", default-features = false, features = ["derive"]} 25serde = {version = "1.0", default-features = false, features = ["derive"]}
26tui = {version = "0.19", default-features = false, features = ["serde"]} 26# tui = {version = "0.19", default-features = false, features = ["serde"]}
27crossterm = {version = "0.26", default-features = false, features = ["serde"]} 27crossterm = {version = "0.26", default-features = false, features = ["serde"]}
28viuer = {version = "0.6", default-features = false, optional = true} 28viuer = {version = "0.6", default-features = false, optional = true}
29home = "0.5" 29home = "0.5"
30chrono = {version = "0.4", default-features = false, features = ["clock"]} 30chrono = {version = "0.4", default-features = false, features = ["clock"]}
31typemap = {version = "0.3", default-features = false} 31typemap = {version = "0.3", default-features = false}
32tui-additions = {version = "0.1.13", default-features = false, features = ["framework", "widgets"]} 32# tui-additions = {version = "0.1.13", default-features = false, features = ["framework", "widgets"]}
33invidious = {version = "0.5"} 33invidious = {version = "0.5"}
34serde_yaml = {version = "0.9", default-features = false} 34serde_yaml = {version = "0.9", default-features = false}
35dyn-clone = {version = "1.0", default-features = false} 35dyn-clone = {version = "1.0", default-features = false}
36serde_json = {version = "1.0", default-features = false} 36serde_json = {version = "1.0", default-features = false}
37clipboard = {version = "0.5", optional = true} 37clipboard = {version = "0.5", optional = true}
38urlencoding = "2.1" 38urlencoding = "2.1"
39ratatui = {version = "0.21", default-features = false, features = ["serde"]}
39 40
40# tui-additions = {path = "../../Rust/Packages/tui-additions", default-features = false, features = ["framework", "widgets"]} 41tui-additions = {path = "../../Rust/Packages/tui-additions", default-features = false, features = ["framework", "widgets"]}
41# invidious = {path = "../../Rust/Packages/invidious"} 42# invidious = {path = "../../Rust/Packages/invidious"}
42 43
43[package.metadata.docs.rs] 44[package.metadata.docs.rs]
docs/src/changelogs.md +6 −6
@@ -1,17 +1,17 @@
1# Changelogs 1# Changelogs
2 2
3### v0.7.3 (latest unstable on git) 3### v0.7.3 (latest unstable on git)
4 4
5#### Added 5#### Added
6 6
7- Lazy feed syncing (configurable), so you are not actively ddosing the Invidious instance. 7- Lazy feed syncing (configurable), so you are not actively ddosing the Invidious instance as badly.
8 8
9#### Fixed 9#### Fixed
10 10
11- Search bar no longer shows escaped search query: the original text string is displayed instead. 11- Search bar no longer shows escaped search query: the original text string is displayed instead.
12- Fixed something about labeling channels with * although no new video is published. 12- Fixed something about labeling channels with * although no new video is published.
13 13
14## v0.7.2 (latest stable crates.io) 14## v0.7.2 (latest stable on crates.io)
15 15
16### Added 16### Added
17 17
src/config/appearance.rs +1 −1
@@ -1,12 +1,12 @@
1use crate::{config::serde::*, global::traits::*}; 1use crate::{config::serde::*, global::traits::*};
2use home::home_dir; 2use home::home_dir;
3use ratatui::{style::Color, widgets::BorderType};
3use serde::{Deserialize, Serialize}; 4use serde::{Deserialize, Serialize};
4use std::{ 5use std::{
5 error::Error, 6 error::Error,
6 fs::{self, OpenOptions}, 7 fs::{self, OpenOptions},
7 io::Write, 8 io::Write,
8}; 9};
9use tui::{style::Color, widgets::BorderType};
10use typemap::Key; 10use typemap::Key;
11 11
12use super::WriteConfig; 12use super::WriteConfig;
src/config/main.rs +6 −1
@@ -79,7 +79,12 @@ pub struct SyncConfig {
79} 79}
80 80
81const fn sync_config_default() -> SyncConfig { 81const fn sync_config_default() -> SyncConfig {
82 SyncConfig { download_images: download_images_default(), sync_channel_info: sync_channel_info_default(), sync_channel_cooldown_secs: sync_channel_cooldown_secs_default(), sync_videos_cooldown_secs: sync_videos_cooldown_secs_default() } 82 SyncConfig {
83 download_images: download_images_default(),
84 sync_channel_info: sync_channel_info_default(),
85 sync_channel_cooldown_secs: sync_channel_cooldown_secs_default(),
86 sync_videos_cooldown_secs: sync_videos_cooldown_secs_default(),
87 }
83} 88}
84 89
85/// how images are handled/displayed 90/// how images are handled/displayed
src/config/pages.rs +1 −1
@@ -1,7 +1,7 @@
1use crate::{global::traits::ConfigTrait, items::*}; 1use crate::{global::traits::ConfigTrait, items::*};
2use ratatui::layout::Constraint;
2use serde::{Deserialize, Serialize}; 3use serde::{Deserialize, Serialize};
3use std::slice; 4use std::slice;
4use tui::layout::Constraint;
5use tui_additions::framework::*; 5use tui_additions::framework::*;
6use typemap::Key; 6use typemap::Key;
7 7
src/config/serde.rs +1 −1
@@ -1,7 +1,7 @@
1//! Structs that impl `Into<T>` because `T` does not impl Serde but is used in config files 1//! Structs that impl `Into<T>` because `T` does not impl Serde but is used in config files
2use crossterm::event::KeyCode; 2use crossterm::event::KeyCode;
3use ratatui::{style::Color, widgets::BorderType};
3use serde::{Deserialize, Serialize}; 4use serde::{Deserialize, Serialize};
4use tui::{style::Color, widgets::BorderType};
5 5
6/// `BorderType` but impl `serde` 6/// `BorderType` but impl `serde`
7#[derive(Serialize, Deserialize, Clone, Copy)] 7#[derive(Serialize, Deserialize, Clone, Copy)]
src/global/functions/popup_area.rs +1 −1
@@ -1,4 +1,4 @@
1use tui::layout::Rect; 1use ratatui::layout::Rect;
2 2
3/// Tries to create a centered area for popup, returns `Err` if not enough space is given 3/// Tries to create a centered area for popup, returns `Err` if not enough space is given
4pub fn popup_area( 4pub fn popup_area(
src/global/functions/run_command.rs +1 −1
@@ -4,6 +4,7 @@ use crate::{
4 load_configs, 4 load_configs,
5}; 5};
6use home::home_dir; 6use home::home_dir;
7use ratatui::{backend::CrosstermBackend, Terminal};
7use std::{ 8use std::{
8 env, 9 env,
9 error::Error, 10 error::Error,
@@ -11,7 +12,6 @@ use std::{
11 io::Stdout, 12 io::Stdout,
12 process::{Command, Stdio}, 13 process::{Command, Stdio},
13}; 14};
14use tui::{backend::CrosstermBackend, Terminal};
15use tui_additions::framework::Framework; 15use tui_additions::framework::Framework;
16 16
17/// runs text command - command from the command line (not TUI) which response is just a string 17/// runs text command - command from the command line (not TUI) which response is just a string
src/global/structs/status.rs +1 −1
@@ -1,4 +1,4 @@
1use tui::layout::Rect; 1use ratatui::layout::Rect;
2use tui_additions::widgets::TextField; 2use tui_additions::widgets::TextField;
3use typemap::{CloneMap, Key, TypeMap}; 3use typemap::{CloneMap, Key, TypeMap};
4 4
src/global/structs/subscriptions.rs +63 −39
@@ -1,8 +1,11 @@
1use super::*; 1use super::*;
2use crate::{global::{ 2use crate::{
3 functions::{download_all_images, DownloadRequest}, 3 config::SyncConfig,
4 traits::{Collection, CollectionItem}, 4 global::{
5}, config::SyncConfig}; 5 functions::{download_all_images, DownloadRequest},
6 traits::{Collection, CollectionItem},
7 },
8};
6use chrono::Utc; 9use chrono::Utc;
7use home::home_dir; 10use home::home_dir;
8use serde::*; 11use serde::*;
@@ -31,7 +34,7 @@ impl Subscriptions {
31 client: &InvidiousClient, 34 client: &InvidiousClient,
32 image_index: usize, 35 image_index: usize,
33 download_thumbnails: bool, 36 download_thumbnails: bool,
34 syncconfig: SyncConfig 37 syncconfig: SyncConfig,
35 ) -> (u32, u32, u32, u32) { 38 ) -> (u32, u32, u32, u32) {
36 let failed = Arc::new(AtomicU32::new(0)); 39 let failed = Arc::new(AtomicU32::new(0));
37 let success = Arc::new(AtomicU32::new(0)); 40 let success = Arc::new(AtomicU32::new(0));
@@ -56,7 +59,14 @@ impl Subscriptions {
56 let failed = failed.clone(); 59 let failed = failed.clone();
57 let empty = empty.clone(); 60 let empty = empty.clone();
58 thread::spawn(move || { 61 thread::spawn(move || {
59 let res = sync_one(&item.channel.id, &client, image_index, download_thumbnails, syncconfig.sync_channel_info && syncconfig.sync_channel_cooldown_secs + item.last_sync_channel < now); 62 let res = sync_one(
63 &item.channel.id,
64 &client,
65 image_index,
66 download_thumbnails,
67 syncconfig.sync_channel_info
68 && syncconfig.sync_channel_cooldown_secs + item.last_sync_channel < now,
69 );
60 match res { 70 match res {
61 Ok((videos, _channel)) if videos.is_empty() => { 71 Ok((videos, _channel)) if videos.is_empty() => {
62 empty.fetch_add(1, std::sync::atomic::Ordering::Relaxed); 72 empty.fetch_add(1, std::sync::atomic::Ordering::Relaxed);
@@ -66,8 +76,9 @@ impl Subscriptions {
66 // cannot just compare video publish timestamp to sync timestamp 76 // cannot just compare video publish timestamp to sync timestamp
67 // because publish timestamp is hugely inaccurate seen here 77 // because publish timestamp is hugely inaccurate seen here
68 // https://github.com/iv-org/invidious/issues/570 78 // https://github.com/iv-org/invidious/issues/570
69 item.has_new = !videos.is_empty() && (item.videos.is_empty() || videos[0].id != item.videos[0].id); 79 item.has_new = !videos.is_empty()
70 item.videos = item.videos; 80 && (item.videos.is_empty() || videos[0].id != item.videos[0].id);
81 item.videos = videos;
71 item.last_sync = now; 82 item.last_sync = now;
72 83
73 if let Some(channel) = channel { 84 if let Some(channel) = channel {
@@ -105,14 +116,22 @@ impl Subscriptions {
105 client: &InvidiousClient, 116 client: &InvidiousClient,
106 image_index: usize, 117 image_index: usize,
107 download_thumbnails: bool, 118 download_thumbnails: bool,
108 syncconfig: &SyncConfig 119 syncconfig: &SyncConfig,
109 ) -> Result<(), Box<dyn Error>> { 120 ) -> Result<(), Box<dyn Error>> {
110 let now = Utc::now().timestamp() as u64; 121 let now = Utc::now().timestamp() as u64;
111 match self.0.iter_mut().find(|item| &item.channel.id == id) { 122 match self.0.iter_mut().find(|item| item.channel.id == id) {
112 Some(item) => { 123 Some(item) => {
113 let (videos, channel) = sync_one(&id, &client, image_index, download_thumbnails, syncconfig.sync_channel_info && syncconfig.sync_channel_cooldown_secs + item.last_sync_channel < now)?; 124 let (videos, channel) = sync_one(
114 125 id,
115 item.has_new = !videos.is_empty() && (item.videos.is_empty() || videos[0].id != item.videos[0].id); 126 client,
127 image_index,
128 download_thumbnails,
129 syncconfig.sync_channel_info
130 && syncconfig.sync_channel_cooldown_secs + item.last_sync_channel < now,
131 )?;
132
133 item.has_new = !videos.is_empty()
134 && (item.videos.is_empty() || videos[0].id != item.videos[0].id);
116 item.videos = videos; 135 item.videos = videos;
117 item.last_sync = now; 136 item.last_sync = now;
118 if let Some(channel) = channel { 137 if let Some(channel) = channel {
@@ -121,9 +140,15 @@ impl Subscriptions {
121 } 140 }
122 } 141 }
123 None => { 142 None => {
124 let (videos, channel) = sync_one(&id, &client, image_index, download_thumbnails, true)?; 143 let (videos, channel) =
125 self.0.push(SubItem { channel: channel.unwrap(), videos, last_sync: now, last_sync_channel: now, has_new: true }) 144 sync_one(id, client, image_index, download_thumbnails, true)?;
126 145 self.0.push(SubItem {
146 channel: channel.unwrap(),
147 videos,
148 last_sync: now,
149 last_sync_channel: now,
150 has_new: true,
151 })
127 } 152 }
128 } 153 }
129 154
@@ -167,17 +192,17 @@ fn sync_one(
167 let (tx, rx) = mpsc::channel(); 192 let (tx, rx) = mpsc::channel();
168 193
169 if sync_channel_info { 194 if sync_channel_info {
170 let client2 = client.clone(); 195 let client2 = client.clone();
171 let id2 = id.to_string(); 196 let id2 = id.to_string();
172 thread::spawn(move || { 197 thread::spawn(move || {
173 tx.send( 198 tx.send(
174 client2 199 client2
175 .0 200 .0
176 .channel(&id2, None) 201 .channel(&id2, None)
177 .map(|channel| Item::from_full_channel(channel, image_index).into_fullchannel()) 202 .map(|channel| Item::from_full_channel(channel, image_index).into_fullchannel())
178 .ok(), 203 .ok(),
179 ) 204 )
180 }); 205 });
181 } 206 }
182 let mut videos = client 207 let mut videos = client
183 .0 208 .0
@@ -192,13 +217,12 @@ fn sync_one(
192 .collect::<Vec<_>>(); 217 .collect::<Vec<_>>();
193 videos.sort(); 218 videos.sort();
194 219
195 let channel = 220 let channel = if sync_channel_info {
196 221 Some(
197 if sync_channel_info { 222 rx.recv()
198 Some(rx 223 .unwrap()
199 .recv() 224 .ok_or(Errors::StrError("failed to get channel info {id}"))??,
200 .unwrap() 225 )
201 .ok_or(Errors::StrError("failed to get channel info {id}"))??)
202 } else { 226 } else {
203 None 227 None
204 }; 228 };
@@ -217,14 +241,14 @@ fn sync_one(
217 download_all_images(thumbnails); 241 download_all_images(thumbnails);
218 }); 242 });
219 if let Some(channel) = &channel { 243 if let Some(channel) = &channel {
220 download_all_images(vec![Some(DownloadRequest { url: channel.thumbnail_url.clone(), id: channel.id.clone()})]); 244 download_all_images(vec![Some(DownloadRequest {
245 url: channel.thumbnail_url.clone(),
246 id: channel.id.clone(),
247 })]);
221 } 248 }
222 } 249 }
223 250
224 Ok(( 251 Ok((videos, channel))
225 videos,
226 channel
227 ))
228} 252}
229 253
230#[derive(Clone, Serialize, Deserialize)] 254#[derive(Clone, Serialize, Deserialize)]
src/global/structs/tasks.rs +4 −4
@@ -3,15 +3,15 @@ use crate::{
3 global::{functions::*, structs::*}, 3 global::{functions::*, structs::*},
4}; 4};
5 5
6use std::{error::Error, io::Stdout, mem}; 6use ratatui::{
7use tui::{
8 backend::CrosstermBackend, layout::Alignment, style::Style, widgets::Paragraph, Frame, Terminal, 7 backend::CrosstermBackend, layout::Alignment, style::Style, widgets::Paragraph, Frame, Terminal,
9}; 8};
9use std::{error::Error, io::Stdout, mem};
10use tui_additions::framework::{CursorState, Framework}; 10use tui_additions::framework::{CursorState, Framework};
11use typemap::Key; 11use typemap::Key;
12 12
13/// tasks to be put on taskqueues 13/// tasks to be put on taskqueues
14#[derive(Clone)] 14#[derive(Clone, Debug)]
15pub enum Task { 15pub enum Task {
16 RenderAll, 16 RenderAll,
17 Reload, 17 Reload,
@@ -23,7 +23,7 @@ pub enum Task {
23} 23}
24 24
25/// multiple tasks joined together, with duplicates removed 25/// multiple tasks joined together, with duplicates removed
26#[derive(Clone, PartialEq, Eq)] 26#[derive(Clone, PartialEq, Eq, Debug)]
27pub struct TaskQueue { 27pub struct TaskQueue {
28 pub render: RenderTask, 28 pub render: RenderTask,
29 pub reload: bool, 29 pub reload: bool,
src/init.rs +1 −1
@@ -3,8 +3,8 @@ use crate::{
3 global::{functions::*, structs::*, traits::*}, 3 global::{functions::*, structs::*, traits::*},
4}; 4};
5use home::home_dir; 5use home::home_dir;
6use ratatui::{backend::CrosstermBackend, Terminal};
6use std::{error::Error, fs, io::Stdout}; 7use std::{error::Error, fs, io::Stdout};
7use tui::{backend::CrosstermBackend, Terminal};
8use tui_additions::framework::{Framework, FrameworkClean}; 8use tui_additions::framework::{Framework, FrameworkClean};
9 9
10/// app to run before the app starts 10/// app to run before the app starts
src/items/channeldisplay.rs +3 −3
@@ -3,7 +3,7 @@ use crate::{
3 config::*, 3 config::*,
4 global::{functions::*, structs::*}, 4 global::{functions::*, structs::*},
5}; 5};
6use tui::{ 6use ratatui::{
7 layout::{Constraint, Rect}, 7 layout::{Constraint, Rect},
8 style::Style, 8 style::Style,
9 widgets::{Block, Borders}, 9 widgets::{Block, Borders},
@@ -213,9 +213,9 @@ impl ChannelDisplay {
213impl FrameworkItem for ChannelDisplay { 213impl FrameworkItem for ChannelDisplay {
214 fn render( 214 fn render(
215 &mut self, 215 &mut self,
216 frame: &mut tui::Frame<tui::backend::CrosstermBackend<std::io::Stdout>>, 216 frame: &mut ratatui::Frame<ratatui::backend::CrosstermBackend<std::io::Stdout>>,
217 framework: &mut tui_additions::framework::FrameworkClean, 217 framework: &mut tui_additions::framework::FrameworkClean,
218 area: tui::layout::Rect, 218 area: ratatui::layout::Rect,
219 popup_render: bool, 219 popup_render: bool,
220 info: tui_additions::framework::ItemInfo, 220 info: tui_additions::framework::ItemInfo,
221 ) { 221 ) {
src/items/channellist.rs +4 −4
@@ -1,5 +1,5 @@
1use crossterm::event::KeyCode; 1use crossterm::event::KeyCode;
2use tui::{ 2use ratatui::{
3 layout::{Constraint, Rect}, 3 layout::{Constraint, Rect},
4 style::Style, 4 style::Style,
5 widgets::Paragraph, 5 widgets::Paragraph,
@@ -147,9 +147,9 @@ impl FrameworkItem for ChannelList {
147 147
148 fn render( 148 fn render(
149 &mut self, 149 &mut self,
150 frame: &mut tui::Frame<tui::backend::CrosstermBackend<std::io::Stdout>>, 150 frame: &mut ratatui::Frame<ratatui::backend::CrosstermBackend<std::io::Stdout>>,
151 framework: &mut tui_additions::framework::FrameworkClean, 151 framework: &mut tui_additions::framework::FrameworkClean,
152 area: tui::layout::Rect, 152 area: ratatui::layout::Rect,
153 popup_render: bool, 153 popup_render: bool,
154 info: tui_additions::framework::ItemInfo, 154 info: tui_additions::framework::ItemInfo,
155 ) { 155 ) {
@@ -167,7 +167,7 @@ impl FrameworkItem for ChannelList {
167 167
168 if self.selector.items.len() == 1 { 168 if self.selector.items.len() == 1 {
169 frame.render_widget( 169 frame.render_widget(
170 Paragraph::new("Subscribe to some channels first, come back later\n\nHey, Siriusmart here. I originally planned to add a commands textlist at channel main pages so that you can subscribe to channels, but the complexity of this update is starting to get out of hand, as it requires the two items (channel and video list) to communicate with each other somehow. So for now the only ways you can subscribe to channels in single item page (videos or playlists), or run `youtube-tui help` to check out the related commands.\n\nThe rest will come in a few git commits.").wrap(tui::widgets::Wrap { trim: true }), 170 Paragraph::new("Subscribe to some channels first, come back later\n\nHey, Siriusmart here. I originally planned to add a commands textlist at channel main pages so that you can subscribe to channels, but the complexity of this update is starting to get out of hand, as it requires the two items (channel and video list) to communicate with each other somehow. So for now the only ways you can subscribe to channels in single item page (videos or playlists), or run `youtube-tui help` to check out the related commands.\n\nThe rest will come in a few git commits.").wrap(ratatui::widgets::Wrap { trim: true }),
171 chunks[0], 171 chunks[0],
172 ); 172 );
173 return; 173 return;
src/items/iteminfo.rs +3 −3
@@ -1,4 +1,4 @@
1use tui::{ 1use ratatui::{
2 layout::Rect, 2 layout::Rect,
3 style::Style, 3 style::Style,
4 widgets::{Paragraph, Wrap}, 4 widgets::{Paragraph, Wrap},
@@ -19,9 +19,9 @@ pub struct ItemInfo {
19impl FrameworkItem for ItemInfo { 19impl FrameworkItem for ItemInfo {
20 fn render( 20 fn render(
21 &mut self, 21 &mut self,
22 frame: &mut tui::Frame<tui::backend::CrosstermBackend<std::io::Stdout>>, 22 frame: &mut ratatui::Frame<ratatui::backend::CrosstermBackend<std::io::Stdout>>,
23 framework: &mut tui_additions::framework::FrameworkClean, 23 framework: &mut tui_additions::framework::FrameworkClean,
24 area: tui::layout::Rect, 24 area: ratatui::layout::Rect,
25 popup_render: bool, 25 popup_render: bool,
26 _info: tui_additions::framework::ItemInfo, 26 _info: tui_additions::framework::ItemInfo,
27 ) { 27 ) {
src/items/itemlist.rs +11 −4
@@ -6,7 +6,7 @@ use crate::{
6 items::ItemInfo, 6 items::ItemInfo,
7}; 7};
8use home::home_dir; 8use home::home_dir;
9use tui::{ 9use ratatui::{
10 layout::{Constraint, Rect}, 10 layout::{Constraint, Rect},
11 style::Style, 11 style::Style,
12}; 12};
@@ -225,9 +225,9 @@ impl Default for ItemList {
225impl FrameworkItem for ItemList { 225impl FrameworkItem for ItemList {
226 fn render( 226 fn render(
227 &mut self, 227 &mut self,
228 frame: &mut tui::Frame<tui::backend::CrosstermBackend<std::io::Stdout>>, 228 frame: &mut ratatui::Frame<ratatui::backend::CrosstermBackend<std::io::Stdout>>,
229 framework: &mut tui_additions::framework::FrameworkClean, 229 framework: &mut tui_additions::framework::FrameworkClean,
230 area: tui::layout::Rect, 230 area: ratatui::layout::Rect,
231 popup_render: bool, 231 popup_render: bool,
232 info: tui_additions::framework::ItemInfo, 232 info: tui_additions::framework::ItemInfo,
233 ) { 233 ) {
@@ -389,6 +389,7 @@ impl FrameworkItem for ItemList {
389 389
390 // only create a render task if the key event actually changed something 390 // only create a render task if the key event actually changed something
391 if updated { 391 if updated {
392 self.update(framework);
392 set_envs( 393 set_envs(
393 self.infalte_item_update( 394 self.infalte_item_update(
394 framework.data.global.get::<MainConfig>().unwrap(), 395 framework.data.global.get::<MainConfig>().unwrap(),
@@ -496,7 +497,13 @@ impl FrameworkItem for ItemList {
496impl ItemList { 497impl ItemList {
497 // change `self.item` to the currently selected item 498 // change `self.item` to the currently selected item
498 pub fn update(&mut self, framework: &mut FrameworkClean) { 499 pub fn update(&mut self, framework: &mut FrameworkClean) {
499 if self.items.get(self.textlist.selected).is_none() { 500 let selected = self.items.get(self.textlist.selected);
501
502 if selected.is_none() {
503 return;
504 }
505
506 if matches!(selected, Some(Item::Page(_)) | Some(Item::Unknown(_))) {
500 framework 507 framework
501 .data 508 .data
502 .global 509 .global
src/items/messagebar.rs +3 −3
@@ -1,5 +1,5 @@
1use crate::{config::*, global::structs::*}; 1use crate::{config::*, global::structs::*};
2use tui::{ 2use ratatui::{
3 layout::Rect, 3 layout::Rect,
4 style::Style, 4 style::Style,
5 widgets::{Block, Borders, Paragraph}, 5 widgets::{Block, Borders, Paragraph},
@@ -13,9 +13,9 @@ pub struct MessageBar;
13impl FrameworkItem for MessageBar { 13impl FrameworkItem for MessageBar {
14 fn render( 14 fn render(
15 &mut self, 15 &mut self,
16 frame: &mut tui::Frame<tui::backend::CrosstermBackend<std::io::Stdout>>, 16 frame: &mut ratatui::Frame<ratatui::backend::CrosstermBackend<std::io::Stdout>>,
17 framework: &mut tui_additions::framework::FrameworkClean, 17 framework: &mut tui_additions::framework::FrameworkClean,
18 area: tui::layout::Rect, 18 area: ratatui::layout::Rect,
19 popup_render: bool, 19 popup_render: bool,
20 _info: tui_additions::framework::ItemInfo, 20 _info: tui_additions::framework::ItemInfo,
21 ) { 21 ) {
src/items/pagebutton.rs +3 −3
@@ -1,5 +1,5 @@
1use crate::{config::AppearanceConfig, global::structs::*}; 1use crate::{config::AppearanceConfig, global::structs::*};
2use tui::{ 2use ratatui::{
3 layout::Alignment, 3 layout::Alignment,
4 style::Style, 4 style::Style,
5 widgets::{Block, Borders, Paragraph}, 5 widgets::{Block, Borders, Paragraph},
@@ -81,9 +81,9 @@ impl FrameworkItem for PageButton {
81 // it is basically a paragraph (text) with borders 81 // it is basically a paragraph (text) with borders
82 fn render( 82 fn render(
83 &mut self, 83 &mut self,
84 frame: &mut tui::Frame<tui::backend::CrosstermBackend<std::io::Stdout>>, 84 frame: &mut ratatui::Frame<ratatui::backend::CrosstermBackend<std::io::Stdout>>,
85 framework: &mut tui_additions::framework::FrameworkClean, 85 framework: &mut tui_additions::framework::FrameworkClean,
86 area: tui::layout::Rect, 86 area: ratatui::layout::Rect,
87 popup_render: bool, 87 popup_render: bool,
88 info: tui_additions::framework::ItemInfo, 88 info: tui_additions::framework::ItemInfo,
89 ) { 89 ) {
src/items/searchbar.rs +3 −3
@@ -6,7 +6,7 @@ use crate::{config::*, global::structs::*};
6use crate::global::functions::*; 6use crate::global::functions::*;
7 7
8use crossterm::event::KeyCode; 8use crossterm::event::KeyCode;
9use tui::{ 9use ratatui::{
10 layout::Alignment, 10 layout::Alignment,
11 style::Style, 11 style::Style,
12 widgets::{Block, Borders}, 12 widgets::{Block, Borders},
@@ -23,9 +23,9 @@ impl FrameworkItem for SearchBar {
23 // basically is a TextField with borders 23 // basically is a TextField with borders
24 fn render( 24 fn render(
25 &mut self, 25 &mut self,
26 frame: &mut tui::Frame<tui::backend::CrosstermBackend<std::io::Stdout>>, 26 frame: &mut ratatui::Frame<ratatui::backend::CrosstermBackend<std::io::Stdout>>,
27 framework: &mut tui_additions::framework::FrameworkClean, 27 framework: &mut tui_additions::framework::FrameworkClean,
28 area: tui::layout::Rect, 28 area: ratatui::layout::Rect,
29 popup_render: bool, 29 popup_render: bool,
30 info: tui_additions::framework::ItemInfo, 30 info: tui_additions::framework::ItemInfo,
31 ) { 31 ) {
src/items/searchfilters.rs +3 −3
@@ -2,7 +2,7 @@ use crate::{
2 config::*, 2 config::*,
3 global::{functions::popup_area, structs::*}, 3 global::{functions::popup_area, structs::*},
4}; 4};
5use tui::{ 5use ratatui::{
6 layout::{Alignment, Constraint, Rect}, 6 layout::{Alignment, Constraint, Rect},
7 style::Style, 7 style::Style,
8 widgets::{Block, Borders, Clear, Paragraph}, 8 widgets::{Block, Borders, Clear, Paragraph},
@@ -82,9 +82,9 @@ impl SearchFilter {
82impl FrameworkItem for SearchFilter { 82impl FrameworkItem for SearchFilter {
83 fn render( 83 fn render(
84 &mut self, 84 &mut self,
85 frame: &mut tui::Frame<tui::backend::CrosstermBackend<std::io::Stdout>>, 85 frame: &mut ratatui::Frame<ratatui::backend::CrosstermBackend<std::io::Stdout>>,
86 framework: &mut tui_additions::framework::FrameworkClean, 86 framework: &mut tui_additions::framework::FrameworkClean,
87 area: tui::layout::Rect, 87 area: ratatui::layout::Rect,
88 popup_render: bool, 88 popup_render: bool,
89 info: tui_additions::framework::ItemInfo, 89 info: tui_additions::framework::ItemInfo,
90 ) { 90 ) {
src/items/singleitem.rs +3 −3
@@ -6,7 +6,7 @@ use crate::{
6 global::{functions::*, structs::*, traits::Collection}, 6 global::{functions::*, structs::*, traits::Collection},
7}; 7};
8use home::home_dir; 8use home::home_dir;
9use tui::{ 9use ratatui::{
10 layout::{Constraint, Rect}, 10 layout::{Constraint, Rect},
11 style::Style, 11 style::Style,
12 widgets::{Block, Borders}, 12 widgets::{Block, Borders},
@@ -540,9 +540,9 @@ impl SingleItem {
540impl FrameworkItem for SingleItem { 540impl FrameworkItem for SingleItem {
541 fn render( 541 fn render(
542 &mut self, 542 &mut self,
543 frame: &mut tui::Frame<tui::backend::CrosstermBackend<std::io::Stdout>>, 543 frame: &mut ratatui::Frame<ratatui::backend::CrosstermBackend<std::io::Stdout>>,
544 framework: &mut tui_additions::framework::FrameworkClean, 544 framework: &mut tui_additions::framework::FrameworkClean,
545 area: tui::layout::Rect, 545 area: ratatui::layout::Rect,
546 popup_render: bool, 546 popup_render: bool,
547 info: tui_additions::framework::ItemInfo, 547 info: tui_additions::framework::ItemInfo,
548 ) { 548 ) {
src/items/videolist.rs +3 −3
@@ -1,5 +1,5 @@
1use crossterm::event::KeyCode; 1use crossterm::event::KeyCode;
2use tui::{ 2use ratatui::{
3 layout::{Constraint, Rect}, 3 layout::{Constraint, Rect},
4 style::Style, 4 style::Style,
5}; 5};
@@ -245,9 +245,9 @@ impl FrameworkItem for VideoList {
245 245
246 fn render( 246 fn render(
247 &mut self, 247 &mut self,
248 frame: &mut tui::Frame<tui::backend::CrosstermBackend<std::io::Stdout>>, 248 frame: &mut ratatui::Frame<ratatui::backend::CrosstermBackend<std::io::Stdout>>,
249 framework: &mut tui_additions::framework::FrameworkClean, 249 framework: &mut tui_additions::framework::FrameworkClean,
250 area: tui::layout::Rect, 250 area: ratatui::layout::Rect,
251 popup_render: bool, 251 popup_render: bool,
252 info: tui_additions::framework::ItemInfo, 252 info: tui_additions::framework::ItemInfo,
253 ) { 253 ) {
src/main.rs +1 −1
@@ -3,8 +3,8 @@ use crossterm::{
3 execute, 3 execute,
4 terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen}, 4 terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen},
5}; 5};
6use ratatui::{backend::CrosstermBackend, Terminal};
6use std::{env, error::Error, io}; 7use std::{env, error::Error, io};
7use tui::{backend::CrosstermBackend, Terminal};
8use tui_additions::framework::{Framework, State}; 8use tui_additions::framework::{Framework, State};
9use youtube_tui::{exit, global::functions::text_command, init, run}; 9use youtube_tui::{exit, global::functions::text_command, init, run};
10 10
src/run.rs +2 −2
@@ -1,6 +1,6 @@
1use crossterm::event::{self, Event, MouseButton, MouseEventKind}; 1use crossterm::event::{self, Event, MouseButton, MouseEventKind};
2use ratatui::{backend::CrosstermBackend, Terminal};
2use std::{error::Error, io::Stdout}; 3use std::{error::Error, io::Stdout};
3use tui::{backend::CrosstermBackend, Terminal};
4use tui_additions::{ 4use tui_additions::{
5 framework::{Framework, FrameworkDirection}, 5 framework::{Framework, FrameworkDirection},
6 widgets::TextField, 6 widgets::TextField,
@@ -62,7 +62,7 @@ pub fn run(
62 for row in state.0.iter_mut() { 62 for row in state.0.iter_mut() {
63 for item in row.items.iter_mut() { 63 for item in row.items.iter_mut() {
64 if item.item.r#type() 64 if item.item.r#type()
65 == "youtube_tui::items::searchfilters::SearchFilter" 65 == "youtube_ratatui::items::searchfilters::SearchFilter"
66 && item.item.mouse_event( 66 && item.item.mouse_event(
67 &mut frameworkclean, 67 &mut frameworkclean,
68 0, 68 0,