From c148b6237ae561efdc727efab7f7188b1afb9cd4 Mon Sep 17 00:00:00 2001 From: Frankie B Date: Thu, 8 Aug 2024 04:00:49 +0100 Subject: Add random quotes --- config/quotes.php | 959 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 959 insertions(+) create mode 100644 config/quotes.php (limited to 'config/quotes.php') diff --git a/config/quotes.php b/config/quotes.php new file mode 100644 index 0000000..c1261be --- /dev/null +++ b/config/quotes.php @@ -0,0 +1,959 @@ + [ + [ + "lines" => [ + [ + "character" => "EDA", + "line" => "Ahh sure. Spare us." + ], + [ + "character" => "LILITH", + "line" => "Woe to us whose fates are sealed." + ] + ], + "attribution" => "The Owl House, S1E11" + ], + [ + "lines" => [ + [ + "character" => "EDA", + "line" => "Hey freeloaders! Guess what today is!" + ] + ], + "attribution" => "The Owl House, S1E12" + ], + [ + "lines" => [ + [ + "character" => "EDA", + "line" => "Quitting! It's like trying, but easier!" + ] + ], + "attribution" => "The Owl House, S1E13" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Can it, Fangs! You don't know diddly-dang about squiddly-squat!" + ] + ], + "attribution" => "The Owl House, S1E13" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Holy bones, you poofed it! Call the cops, this guy's crazy!" + ] + ], + "attribution" => "The Owl House, S1E14" + ], + [ + "lines" => [ + [ + "character" => "EDA", + "line" => "There is one way, but it's terribly dangerous and partially illegal." + ] + ], + "attribution" => "The Owl House, S1E15" + ], + [ + "lines" => [ + [ + "character" => "GUS CLONE", + "line" => "I'd rather die than expose my secrets!" + ], + [ + "character" => "GUS", + "line" => "Then die, you shall!" + ] + ], + "attribution" => "The Owl House, S1E15" + ], + [ + "lines" => [ + [ + "character" => "LUZ", + "line" => "Vee, you're giving up too quick!" + ], + [ + "character" => "VEE", + "line" => "I'm being realistic." + ] + ], + "attribution" => "The Owl House, S2E10" + ], + [ + "lines" => [ + [ + "character" => "LUZ", + "line" => "I have questions about that name..." + ], + [ + "character" => "LILITH", + "line" => "And I have questions about my life!" + ] + ], + "attribution" => "The Owl House, S2E12" + ], + [ + "lines" => [ + [ + "character" => "EMIRA", + "line" => "We can shout as loud as we want, but money always shouts louder." + ] + ], + "attribution" => "The Owl House, S2E20" + ], + [ + "lines" => [ + [ + "character" => "VEE", + "line" => "Uhh, no, I'm new in town, I just have one of those faces! But, ju-just one, the normal amount of face." + ] + ], + "attribution" => "The Owl House, S3E01" + ], + [ + "lines" => [ + [ + "character" => "RAINE", + "line" => "You Know I Hate These Things. Talking To People. Waving To People. People." + ] + ], + "attribution" => "The Owl House, S2E11" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Who dares intrude upon I, the King of Demons?!" + ] + ], + "attribution" => "The Owl House, S1E1" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Soon, Mr. Ducky, we shall drink the fear of those who mocked us." + ] + ], + "attribution" => "The Owl House, S1E1" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Try to catch me when I’m covered in grease! I'm a squirmy little fella." + ] + ], + "attribution" => "The Owl House, S1E1" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "My crown! Yes, yes! I can feel my powers returning! You, there. Nightmare critter. I shall call you Francois, and you shall be a minion in my army of darkness. Ha‐ha!" + ] + ], + "attribution" => "The Owl House, S1E1" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Weh?" + ] + ], + "attribution" => "The Owl House, S1E1" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "That was actually one of her better breakups!" + ] + ], + "attribution" => "The Owl House, S1E1" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "I AM NOT YOUR CUTIE-PIE!!!" + ] + ], + "attribution" => "The Owl House, S1E2" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Ha! Good luck. The Boiling Isles is nothing but a cesspool of despair." + ] + ], + "attribution" => "The Owl House, S1E2" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "You should run a small business of more scones into my mouth." + ] + ], + "attribution" => "The Owl House, S1E2" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Finally, all that mean-spirited laughter made me sleepy." + ] + ], + "attribution" => "The Owl House, S1E2" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Less talky, more nappy." + ] + ], + "attribution" => "The Owl House, S1E2" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Can't mistake her smell. Like lemons and young, naïve confidence." + ] + ], + "attribution" => "The Owl House, S1E2" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "I have no son! Eat salt!" + ] + ], + "attribution" => "The Owl House, S1E3" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Even demons have inner demons." + ] + ], + "attribution" => "The Owl House, S1E4" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Look, now we're boo-boo buddies!" + ] + ], + "attribution" => "The Owl House, S1E4" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Bap!" + ] + ], + "attribution" => "The Owl House, S1E4" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Remember when her head got cut off last week? That woman can survive anything. She's probably just tired from staying up all night chasing shrews and voles." + ] + ], + "attribution" => "The Owl House, S1E4" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "That voice. That horrific voice!!!" + ] + ], + "attribution" => "The Owl House, S1E4" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Show me the picture! Hah! I can draw better than that. You know, they once called me the King of Artists." + ] + ], + "attribution" => "The Owl House, S1E5" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Are you bestowing gifts upon me? Yes! I accept your offering! The King of Demons is back!" + ] + ], + "attribution" => "The Owl House, S1E5" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Cupcakes in my tummy-tum makes the King say yummy-yum!" + ] + ], + "attribution" => "The Owl House, S1E5" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Mmm? Oh, yeah. No." + ] + ], + "attribution" => "The Owl House, S1E5" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "I'm stealing everything that's not nailed down!" + ] + ], + "attribution" => "The Owl House, S1E6" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "King? Who's King? I go by Little Bone Boy now." + ] + ], + "attribution" => "The Owl House, S1E6" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Rivals are meant to be annihilated not befriended. Now keep reading. I've been sucked into your awful fandom." + ] + ], + "attribution" => "The Owl House, S1E7" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "What does Luz know about problems anyway? All she has is dumb teen drama! She doesn't understand how hard some of us have it." + ] + ], + "attribution" => "The Owl House, S1E8" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Well, I don't know if you realized, but I'm not a baby!" + ] + ], + "attribution" => "The Owl House, S1E8" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "My life is a living nightmare!" + ] + ], + "attribution" => "The Owl House, S1E8" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Fight to the death!" + ] + ], + "attribution" => "The Owl House, S1E8" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "I've got some... very confusing emotions right now." + ] + ], + "attribution" => "The Owl House, S1E8" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "All right, you acne‐encrusted hormone buckets. Let's go let out some teen angst!" + ] + ], + "attribution" => "The Owl House, S1E8" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Ooh! Fight, fight, fight!" + ] + ], + "attribution" => "The Owl House, S1E9" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Yes! Yes! This is a throne worthy of a tyrant. Bow to me you snotty underlings. Bow!" + ] + ], + "attribution" => "The Owl House, S1E10" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "(Rage squeals + +)" + ] + ], + "attribution" => "The Owl House, S1E10" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Hey you scum! Which one of you wants to read my literary masterpiece? Anyone brave enough?" + ] + ], + "attribution" => "The Owl House, S1E11" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "I've always wanted a people chair! I'm in! This will be my first step in my reclamation of power!" + ] + ], + "attribution" => "The Owl House, S1E11" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "I'm sorry, my lawyer advised me not to look at unsolicited work." + ] + ], + "attribution" => "The Owl House, S1E11" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "What's a book? Good night!" + ] + ], + "attribution" => "The Owl House, S1E11" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Hey! Less ready, more scratchy!" + ] + ], + "attribution" => "The Owl House, S1E12" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Military discipline, cooking! Ha, I truly am a demon for all seasons! Just a dash of Eda's secret sauce and I'm the creator of life!" + ] + ], + "attribution" => "The Owl House, S1E12" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "This day shall live in infamy." + ] + ], + "attribution" => "The Owl House, S1E12" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Obedience? Well, what is a teacher if not an authority figure? A king of children, if you will. Yes! I am your teacher! You may call me Mr. King!" + ] + ], + "attribution" => "The Owl House, S1E13" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Assume a coefficient of ten, carry the two, solve for Y, and that is the way to steal a pie from a windowsill! Also you can eat trash." + ] + ], + "attribution" => "The Owl House, S1E13" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Alright. Read chapters three to five on the right way to scratch yourself in public. Spoiler alert: There's no wrong way! Ah, days like these make being a teacher all worth it." + ] + ], + "attribution" => "The Owl House, S1E13" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Oh dear, I've gotten a tube stuck on my nose! Will I ever eat again? Looks like I'm toast!" + ] + ], + "attribution" => "The Owl House, S1E14" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "The King of Demons misses nobody! I wouldn't care if she came through this door right now!" + ] + ], + "attribution" => "The Owl House, S1E14" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Beat up the man and steal his things for me!" + ] + ], + "attribution" => "The Owl House, S1E14" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "I'm gonna bake that kid into a pie!" + ] + ], + "attribution" => "The Owl House, S1E15" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Senseless violence. Yes, attack! DEATH IS YOUR GOD!" + ] + ], + "attribution" => "The Owl House, S1E16" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "I FORGE MY OWN PATH!" + ] + ], + "attribution" => "The Owl House, S1E16" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Why am I doing this? I don't even wear clothes!" + ] + ], + "attribution" => "The Owl House, S1E16" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Ha! What possible regrets could come from the internet? Oh, did you know the earth is actually flat!" + ] + ], + "attribution" => "The Owl House, S1E16" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "We're going to turn this blood-bath into a fun-bath!" + ] + ], + "attribution" => "The Owl House, S1E16" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Girl, you can pull off anything! Up top! We're style geniuses!" + ] + ], + "attribution" => "The Owl House, S1E16" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Now I am king and queen! Best of both things!" + ] + ], + "attribution" => "The Owl House, S1E16" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Yes! Now I’ll strike fear into my enemies with this armor of intimidation." + ] + ], + "attribution" => "The Owl House, S1E17" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "You know what, when she first got here, I thought we were gonna eat her. But now I only think of that, like, sometimes." + ] + ], + "attribution" => "The Owl House, S1E18" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "The cake is me!" + ] + ], + "attribution" => "The Owl House, S1E18" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Me and Eda don't always see eye to eye, but I do consider her family. I want her back as much as you do." + ] + ], + "attribution" => "The Owl House, S1E19" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "We'll have to do something so diabolical, so criminally insane, that they'll have to send us to the Conformatorium." + ] + ], + "attribution" => "The Owl House, S1E19" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "I'm never letting you go! You're never returning to the human realm!" + ] + ], + "attribution" => "The Owl House, S2E1" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "King want a cracker!" + ] + ], + "attribution" => "The Owl House, S2E1" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Weh? Yeah yeah, I'll deal with it. No one ever said power came with responsibility..." + ] + ], + "attribution" => "The Owl + + House, S2E2" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "The King of Demons yields to no one!" + ] + ], + "attribution" => "The Owl House, S2E3" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Ah, the chamber where I would devour the hearts of my foes. The taste was cold and bitter, but I bet yours would be sweet, Luz." + ] + ], + "attribution" => "The Owl House, S2E3" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Is that a six-footed pig or a floating appendage? Why, no! It's Gus the Illusion Master. Please leave a message." + ] + ], + "attribution" => "The Owl House, S2E5" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "And weh, and weh, and weh, and weh, and weh, and weh, and weh, and weh!" + ] + ], + "attribution" => "The Owl House, S2E7" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Haha! Saint Epiderm? More like Stank Epiderm!" + ] + ], + "attribution" => "The Owl House, S2E7" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "DID YOU OWL PELLET ME?!" + ] + ], + "attribution" => "The Owl House, S2E8" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "You look like one of my hairballs. Let's just do the trench coat thing!" + ] + ], + "attribution" => "The Owl House, S2E9" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Guess minecart chases are a lot more dangerous than video games make'em seem." + ] + ], + "attribution" => "The Owl House, S2E9" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "I can't wait to eat HUMAN snacks!" + ] + ], + "attribution" => "The Owl House, S2E10" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "It was the... yeast I could do." + ] + ], + "attribution" => "The Owl House, S2E11" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "With my love of mayhem and Hooty’s desperate need for attention, this’ll be a cake walk!" + ] + ], + "attribution" => "The Owl House, S2E11" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Hey, Eda, look! \"Dear sister, join the Emperor's Coven and together, we can become gods!\"" + ] + ], + "attribution" => "The Owl House, S2E12" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Ooh! That'll work great when birds try to fly away with me." + ] + ], + "attribution" => "The Owl House, S2E14" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "What you need is a healthy distractions from your problems. Like breakfast!" + ] + ], + "attribution" => "The Owl House, S2E14" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Is this thing on? Demon King to Luzura, you copy?" + ] + ], + "attribution" => "The Owl House, S2E16" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "Uh, oh. Uh... Hable más lento, por favor." + ] + ], + "attribution" => "The Owl House, S2E16" + ], + [ + "lines" => [ + [ + "character" => "KING", + "line" => "The Collector is just a little kid. A scary, powerful one, but… also… sad, and alone. I don’t know, this whole time, I was scared of making him mad, but… I think I can relate to him." + ] + ], + "attribution" => "The Owl House, S3E1" + ] + ], + "neversaid" => [ + [ + "name" => "ASM", + "quote" => "The Director liked all the props we got today." + ], + [ + "name" => "PM", + "quote" => "Ah ha, a revolve. Terrific." + ], + [ + "name" => "Chippie", + "quote" => "I don't know, let's look at the ground plan." + ], + [ + "name" => "Set Designer", + "quote" => "Well, let's just have whatever is cheaper." + ], + [ + "name" => "Sound", + "quote" => "Better turn that down a bit. We don't want to deafen them." + ], + [ + "name" => "Director", + "quote" => "Sorry, my mistake." + ], + [ + "name" => "Electrics", + "quote" => "This equipment is more complicated than we need." + ], + [ + "name" => "Performer", + "quote" => "I really think my big scene should be cut." + ], + [ + "name" => "SM", + "quote" => "Can we do that scene change again please?" + ], + [ + "name" => "LX designer", + "quote" => "Bit more light from those big chaps at the side. Yes that's right, the ones on stalks whatever they are called." + ], + [ + "name" => "Electrics", + "quote" => "All the equipment works perfectly." + ], + [ + "name" => "Musicians", + "quote" => "So what if that's the end of a call. Let's just finish this bit off." + ], + [ + "name" => "Wardrobe", + "quote" => "Now, when exactly is the first dress rehearsal?" + ], + [ + "name" => "Workshop", + "quote" => "I don't want anyone to know, but if you insist then yes, I admit it, I have just done an all-nighter." + ], + [ + "name" => "Performer", + "quote" => "This costume is so comfortable." + ], + [ + "name" => "Admin", + "quote" => "The level of overtime payments here are simply unacceptable. Our backstage staff deserve better." + ], + [ + "name" => "Box Office", + "quote" => "Comps? No problem." + ], + [ + "name" => "Set Designer", + "quote" => "You're right, it looks dreadful." + ], + [ + "name" => "Flyman", + "quote" => "No, my lips are sealed. What I may or may not have seen remains a secret." + ], + [ + "name" => "Electrics", + "quote" => "That had nothing to do with the computer, it was my fault." + ], + [ + "name" => "Crew", + "quote" => "No, no, I'm sure that's our job." + ], + [ + "name" => "SMgt", + "quote" => "Thanks, but I don't drink." + ], + [ + "name" => "Performer", + "quote" => "Let me stand down here with my back to the audience." + ], + [ + "name" => "Chippie", + "quote" => "I can't really manage those big fast power tools myself." + ], + [ + "name" => "Chippie", + "quote" => "I prefer to use these little hand drills." + ], + [ + "name" => "All", + "quote" => "Let's go and ask the Production Manager. He'll know." + ] + ] +]; -- cgit v1.2.3-54-g00ecf From 8650d88a794497543b1333f3e4ad5ea9bf753071 Mon Sep 17 00:00:00 2001 From: floppydiskette Date: Thu, 8 Aug 2024 15:21:30 +0100 Subject: Finish that shit --- app/Http/Controllers/HomeController.php | 5 +- app/View/Components/DiscordStatus.php | 66 +++ app/View/Components/Weather.php | 44 ++ config/quotes.php | 4 +- config/services.php | 6 +- public/css/master.css | 95 ++++ resources/views/calculators.blade.php | 58 +-- resources/views/components/current-track.blade.php | 2 +- .../views/components/discord-status.blade.php | 3 + resources/views/components/layout.blade.php | 2 +- resources/views/components/online-status.blade.php | 3 - resources/views/components/toh-quote.blade.php | 8 +- resources/views/components/top-tracks.blade.php | 2 + resources/views/components/weather.blade.php | 18 +- resources/views/computers.blade.php | 499 +++++++++++---------- resources/views/music.blade.php | 1 - 16 files changed, 519 insertions(+), 297 deletions(-) create mode 100644 app/View/Components/DiscordStatus.php create mode 100644 app/View/Components/Weather.php create mode 100644 resources/views/components/discord-status.blade.php delete mode 100644 resources/views/components/online-status.blade.php (limited to 'config/quotes.php') diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 7994c2c..e046d58 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -2,6 +2,9 @@ namespace App\Http\Controllers; +use Illuminate\Support\Facades\Cache; +use Illuminate\Support\Facades\Config; +use Illuminate\Support\Facades\Http; use Illuminate\View\View; use DateTime; @@ -24,7 +27,7 @@ class HomeController extends Controller { */ public function show(): View { return view('home', [ - 'age' => $this->returnAge() + 'age' => $this->returnAge(), ]); } } diff --git a/app/View/Components/DiscordStatus.php b/app/View/Components/DiscordStatus.php new file mode 100644 index 0000000..fac06ae --- /dev/null +++ b/app/View/Components/DiscordStatus.php @@ -0,0 +1,66 @@ +json(); + $presence = $data["data"]; + Cache::put('discord_presence', $presence, now()->addSeconds(60)); + return $presence; + } + + public function getOnlineStatus(): array { + $presence = $this->getDiscordPresence(); + return match ($presence["discord_status"]) { + "online", "dnd" => [ + "text" => "online", + "color" => "#02c83a" + ], + "idle" => [ + "text" => "away", + "color" => "#d77c20" + ], + default => [ + "text" => "offline", + "color" => "#ca3329" + ], + }; + } + + /** + * Get the view / contents that represent the component. + */ + public function render(): View|Closure|string + { + return view('components.discord-status', [ + 'status' => $this->getOnlineStatus(), + ]); + } +} diff --git a/app/View/Components/Weather.php b/app/View/Components/Weather.php new file mode 100644 index 0000000..69be9fd --- /dev/null +++ b/app/View/Components/Weather.php @@ -0,0 +1,44 @@ +json(); + $conditions = $data["data"]["conditions"]; + Cache::put('weather_data', $conditions, now()->addSeconds(60)); + return $conditions; + } + + /** + * Get the view / contents that represent the component. + */ + public function render(): View|Closure|string + { + return view('components.weather', [ + 'conditions' => $this->getWeatherData(), + ]); + } +} diff --git a/config/quotes.php b/config/quotes.php index c1261be..9bfd8ad 100644 --- a/config/quotes.php +++ b/config/quotes.php @@ -426,9 +426,7 @@ return [ "lines" => [ [ "character" => "KING", - "line" => "(Rage squeals - -)" + "line" => "*Rage squeals*" ] ], "attribution" => "The Owl House, S1E10" diff --git a/config/services.php b/config/services.php index 21e97c7..aaad053 100644 --- a/config/services.php +++ b/config/services.php @@ -17,5 +17,9 @@ return [ 'lastfm' => [ 'key' => env('LASTFM_KEY'), 'user' => env('LASTFM_USER'), - ] + ], + 'lanyard' => [ + 'user_id' => env('DISCORD_USER_ID'), + ], + 'weatherlink' => env('WEATHERLINK_IP') ]; diff --git a/public/css/master.css b/public/css/master.css index 4da69c1..fff505d 100644 --- a/public/css/master.css +++ b/public/css/master.css @@ -239,3 +239,98 @@ a.button:hover img { padding-left: 10px; border-left: solid 2px var(--foreground); } + +.music-top10 { + width: 100%; +} + +.music-top10 td, +.music-top10 th { + border: none; + border-left: 1px dotted var(--foreground); + padding: 2px 5px +} + +.music-top10 tr:nth-child(1) th { + border-bottom: 1px dotted var(--foreground); +} + +.music-top10 tr:nth-child(2) td { + padding-top: 5px; +} + +.music-top10 td:first-child, +.music-top10 th:first-child { + border: none; +} + +.music-top10 tr th:first-child { + text-align: right; +} + +.music-top10 td { + max-width: 200px; + white-space: nowrap; + text-overflow:ellipsis; + overflow: hidden; +} + +.music-top10 tr td:first-child { + text-align: right; +} + +.music-top10 tr td:nth-child(2), +.music-top10 tr td:nth-child(3) { +} + + +.current-track h2 { + margin: 0; +} + +table.computers { + table-layout: auto; + width: 75%; +} + +table.computers td ul { + margin: 0; + padding-left: 20px; +} + +table.computers .section-title { + text-decoration: underline; + font-style: italic; + font-weight: bold; +} + +table.computers p.description { + font-style: italic; + margin: 5px 0 2px 0; +} + +table.computers th { + background-color: var(--background-secondary); +} + +table.computers td:first-child { + white-space: nowrap; +} + +table.computers td, +table.computers th { + border: var(--foreground) solid 1px; + padding: 5px; +} + +.calculator-spec-table td { + border: var(--foreground) solid 1px; +} + +.calculator-spec-table td { + padding: 5px 10px 5px 5px; +} + +.calculator-spec-table tr td:first-child { + background-color: var(--background-secondary); +} diff --git a/resources/views/calculators.blade.php b/resources/views/calculators.blade.php index 7f3603b..e36ac43 100644 --- a/resources/views/calculators.blade.php +++ b/resources/views/calculators.blade.php @@ -1,18 +1,20 @@ Calculators -

CASIO fx-CG50

+
+

CASIO fx-CG50

TBD

-

Pictures

+
+

Pictures

Casio fx-CG50 Front view Casio fx-CG50 Rear view (battery cover removed) Casio fx-CG50 Front view (top half) Casio fx-CG50 Front view (bottom half) - -
- -

CASIO fx-120 (1977-78)

+
+
+

CASIO fx-120 (1977-78)

TBD

-

Specifications

+
+

Specifications

@@ -43,42 +45,40 @@
Size12-digit VFD (NEC LD8197A)
-

Pictures

-

Click images to view full size

+
+

Pictures

Casio fx-120 Front view Casio fx-120 Front view (top half) Casio fx-120 Front view (bottom half) Casio fx-120 Rear view (battery and expansion covers removed - -
- -

CASIO fx-82 (1982-85)

+
+
+

CASIO fx-82 (1982-85)

TBD

-

Pictures

-

Click images to view full size

+
+

Pictures

Casio fx-82 Front view Casio fx-82 Rear view (battery cover removed) Casio fx-82 Front view (top half) Casio fx-82 Front view (bottom half) - -
- -

Texas Instruments TI-30 (1976-90)

+
+
+

Texas Instruments TI-30 (1976-90)

TBD

-

Pictures

-

Click images to view full size

+
+

Pictures

Texas Instruments TI-30 Front view (with manual) Texas Instruments TI-30 Rear view (battery cover removed) Texas Instruments TI-30 Front view (top half) Texas Instruments TI-30 Front view (bottom half) - -
- -

Texet 880 Executive (1977-78)

+
+
+

Texet 880 Executive (1977-78)

The calculator measures 74.2mm x 135mm x 22.2mm. It weighs 86g without the battery installed, which is a 9v PP3-type battery. Rather than the usual press-stud type holder, the housing has two metal slide clips. There is also what I assume to be a sponge at one end which is supposed to aid in holding the battery in, however it appears to have gone completely hard and I will most likely replace it in the future. There's small adaptor hole at the top, of which the input isn't specified (though it's generally agreed that it's 4.5v centre-positive).

The case is black & silvery colored with a thin brushed metallic front panel. The eight-digit bubble display has an absolutely terrible viewing angle, which means you either have to be holding it under your coat or against your face to read it!

- The keypad is particularly strange in the way that it has 3 cancel buttons,
[CE]
,
[C]
and
[CA]
, while the
[CS]
button is a Clear Sign button, not another cancel! The keys themselves are particularly stiff, and you really have to push them to get them to register. Many 880s suffered something referred to as the "pseudo fixed decimal bug" where, if you typed in
1 + 1.00 = 
, it would display
2.00
instead of the expected
2
-

Specifications

+ The keypad is particularly strange in the way that it has 3 cancel buttons, [CE], [C] and [CA], while the [CS] button is a Clear Sign button, not another cancel! The keys themselves are particularly stiff, and you really have to push them to get them to register. Many 880s suffered something referred to as the "pseudo fixed decimal bug" where, if you typed in 1 + 1.00 = , it would display 2.00 instead of the expected 2 +
+

Specifications

@@ -105,10 +105,10 @@
Size8-digit LED
-

Pictures

-

Click images to view full size

+

Pictures

Texet 880 Executive Front view Texet 880 Executive Rear view (battery cover removed) Texet 880 Executive Front view (top half) Texet 880 Executive Front view (bottom half) +
diff --git a/resources/views/components/current-track.blade.php b/resources/views/components/current-track.blade.php index d42ad3b..0770240 100644 --- a/resources/views/components/current-track.blade.php +++ b/resources/views/components/current-track.blade.php @@ -1,4 +1,4 @@ -
+ diff --git a/resources/views/components/discord-status.blade.php b/resources/views/components/discord-status.blade.php new file mode 100644 index 0000000..00d2c7a --- /dev/null +++ b/resources/views/components/discord-status.blade.php @@ -0,0 +1,3 @@ +I'm +

{{ $status["text"] }}!

+

Time in Britain:

diff --git a/resources/views/components/layout.blade.php b/resources/views/components/layout.blade.php index 294c153..1d1b22d 100644 --- a/resources/views/components/layout.blade.php +++ b/resources/views/components/layout.blade.php @@ -45,7 +45,7 @@
diff --git a/resources/views/components/online-status.blade.php b/resources/views/components/online-status.blade.php deleted file mode 100644 index 5c63deb..0000000 --- a/resources/views/components/online-status.blade.php +++ /dev/null @@ -1,3 +0,0 @@ -I'm -

Online!

-

Time in Britain:

diff --git a/resources/views/components/toh-quote.blade.php b/resources/views/components/toh-quote.blade.php index 898b001..d9dfab1 100644 --- a/resources/views/components/toh-quote.blade.php +++ b/resources/views/components/toh-quote.blade.php @@ -1,6 +1,12 @@

@foreach($quote["lines"] as $line) - {{ $line["character"] }}: "{{ $line["line"] }}"
+ {{ $line["character"] }}: + {{-- Literally only one thing will trigger this lmao --}} + @if($line["line"] == "*Rage squeals*") + {{ $line["line"] }} + @else + "{{ $line["line"] }}" + @endif
@endforeach ({{ $quote["attribution"] }})

diff --git a/resources/views/components/top-tracks.blade.php b/resources/views/components/top-tracks.blade.php index a8c94f2..0b563b4 100644 --- a/resources/views/components/top-tracks.blade.php +++ b/resources/views/components/top-tracks.blade.php @@ -1,3 +1,4 @@ +

Top 10 Tracks (Last 30 days):

@@ -14,3 +15,4 @@ @endforeach
+
diff --git a/resources/views/components/weather.blade.php b/resources/views/components/weather.blade.php index 09d9a37..b4dfcaa 100644 --- a/resources/views/components/weather.blade.php +++ b/resources/views/components/weather.blade.php @@ -1,7 +1,11 @@ -

Weather:

-

- 69C
- 0mm/hr
- 69%
- 420inHg -

+

Weather Conditions:

+
+

Temperature: {{ round(($conditions[0]["temp"] - 32) * (5/9), 1) }} degC

+

Rain: {{ ($conditions[0]["rain_rate_last"] * 0.2) }}mm/hr ({{ $conditions[0]["rainfall_daily"] }}mm today)

+@if ($conditions[0]["wind_speed_last"] != 0) +

Wind: {{ round($conditions[0]["wind_speed_last"], 1) }}mph ({{ $conditions[0]["wind_dir_last"] }} deg)

+@else +

Wind: 0mph

+@endif +

Humidity: {{ round($conditions[0]["hum"], 1) }}%

+

Pressure: {{ round($conditions[2]["bar_sea_level"], 1) }} inHg

diff --git a/resources/views/computers.blade.php b/resources/views/computers.blade.php index e188ba3..4d3457e 100644 --- a/resources/views/computers.blade.php +++ b/resources/views/computers.blade.php @@ -1,252 +1,253 @@ Computers - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MODELCPUGPUSTORAGERAMOS
Random Whitebox
(???)
486DX2280MB HDD16MBMS-DOS 6.22 & Windows for Workgroups 3.11
MacBook Pro 14"
(2023)
M3 Pro500GB SSD18GBmacOS Sonoma
MacBook Pro 13"
(2018)
Intel i5-8592U (2.3GHz)Intel Iris Plus 655250GB SSD8GBmacOS Mojave
Lenovo ThinkPad T430
(2012)
Intel Core i7 (idk what it is)16GBWindows 7 Pro / NixOS
IBM ThinkPad X41T
(2005)
Intel Pentium M (1.6GHz)Mobile Intel Express Chipset (128MB)40GB HDD1.5GBWindows XP Tablet PC Edition
Dell OptiPlex GX1
(1999)
Intel Pentium II (Deschutes, 400MHz)ATI 3D Rage Pro (4MB)40GB HDD639MBWindows 2000
IBM ThinkPad T40
(2003)
Intel Pentium M (1.3GHz)ATI Mobility Radeon 7500 (32MB)N/AN/AN/A
HP Compaq Elite 8100
(2010)
Intel Core i7 (something or other)16GBWindows Vista Ultimate (64-bit)
Mac mini
(2014)
Intel Core i5-4278U (2.6GHz)Intel Iris Graphics1TB HDD8GBProxmox VE 8.2
Fujitsu Milan
(1996)
Intel Pentium1215MB HDD32MBWindows 98 SE
Compaq Armada M300
(1999)
Intel Pentium III
SuperMicro X9SCMIntel Pentium G850 (2.9GHz)Matrox MGA G6200eW2TB HDD / 80GB HDD16GBProxmox VE 8.2
Main PCIntel Core i7-6700K (4GHz)NVidia GTX 1060 (3GB)(multiple)64GBWindows 10 Pro / NixOS
Toshiba Qosmio F20
(2005)
N/AN/A
MacBook Pro 13"
(2009)
N/AN/A
Packard-Bell EasyNote MIT-LYN01
(???)
Windows XP Home
Sony VAIO PCG-3B1M
(???)
Windows Vista
Dell OptiPlex 745 USFF
(2006)
Intel Pentium Dual CoreIntel Integrated(multiple)4GB(multiple)
Dell Inspiron 1525
(2008)
N/AN/A
Random Whitebox 2AMD Phenom II X6-1055T8GBN/A
Dell Latitude D531
(2007)
Windows XP Professional
IBM ThinkPad R40
(2003)
Windows 2000
Dell Latitude CPi
(2001)
Windows 2000
Dell Latitude CPx
(1999)
Windows 98 SE
Dell Latitude 4898T
(???)
N/AN/A
Time 8375
(???)
N/AN/A
Toshiba Satellite 200CDS
(1996)
HP Compaq NC6000
(2004)
N/AN/A
IBM Personal Computer 330
(1997)
Intel PentiumN/AN/A
Shuttle XPC SN21G5
(2006)
AMD Athlon 64 X2N/AN/A
+

TBD

+{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{--
MODELCPUGPUSTORAGERAMOS
Random Whitebox
(???)
486DX2280MB HDD16MBMS-DOS 6.22 & Windows for Workgroups 3.11
MacBook Pro 14"
(2023)
M3 Pro500GB SSD18GBmacOS Sonoma
MacBook Pro 13"
(2018)
Intel i5-8592U (2.3GHz)Intel Iris Plus 655250GB SSD8GBmacOS Mojave
Lenovo ThinkPad T430
(2012)
Intel Core i7 (idk what it is)16GBWindows 7 Pro / NixOS
IBM ThinkPad X41T
(2005)
Intel Pentium M (1.6GHz)Mobile Intel Express Chipset (128MB)40GB HDD1.5GBWindows XP Tablet PC Edition
Dell OptiPlex GX1
(1999)
Intel Pentium II (Deschutes, 400MHz)ATI 3D Rage Pro (4MB)40GB HDD639MBWindows 2000
IBM ThinkPad T40
(2003)
Intel Pentium M (1.3GHz)ATI Mobility Radeon 7500 (32MB)N/AN/AN/A
HP Compaq Elite 8100
(2010)
Intel Core i7 (something or other)16GBWindows Vista Ultimate (64-bit)
Mac mini
(2014)
Intel Core i5-4278U (2.6GHz)Intel Iris Graphics1TB HDD8GBProxmox VE 8.2
Fujitsu Milan
(1996)
Intel Pentium1215MB HDD32MBWindows 98 SE
Compaq Armada M300
(1999)
Intel Pentium III
SuperMicro X9SCMIntel Pentium G850 (2.9GHz)Matrox MGA G6200eW2TB HDD / 80GB HDD16GBProxmox VE 8.2
Main PCIntel Core i7-6700K (4GHz)NVidia GTX 1060 (3GB)(multiple)64GBWindows 10 Pro / NixOS
Toshiba Qosmio F20
(2005)
N/AN/A
MacBook Pro 13"
(2009)
N/AN/A
Packard-Bell EasyNote MIT-LYN01
(???)
Windows XP Home
Sony VAIO PCG-3B1M
(???)
Windows Vista
Dell OptiPlex 745 USFF
(2006)
Intel Pentium Dual CoreIntel Integrated(multiple)4GB(multiple)
Dell Inspiron 1525
(2008)
N/AN/A
Random Whitebox 2AMD Phenom II X6-1055T8GBN/A
Dell Latitude D531
(2007)
Windows XP Professional
IBM ThinkPad R40
(2003)
Windows 2000
Dell Latitude CPi
(2001)
Windows 2000
Dell Latitude CPx
(1999)
Windows 98 SE
Dell Latitude 4898T
(???)
N/AN/A
Time 8375
(???)
N/AN/A
Toshiba Satellite 200CDS
(1996)
HP Compaq NC6000
(2004)
N/AN/A
IBM Personal Computer 330
(1997)
Intel PentiumN/AN/A
Shuttle XPC SN21G5
(2006)
AMD Athlon 64 X2N/AN/A
--}}
diff --git a/resources/views/music.blade.php b/resources/views/music.blade.php index 0fd5d84..92e5a90 100644 --- a/resources/views/music.blade.php +++ b/resources/views/music.blade.php @@ -1,6 +1,5 @@ Music -
-- cgit v1.2.3-54-g00ecf