aboutsummaryrefslogtreecommitdiff
path: root/resources/views/components
diff options
context:
space:
mode:
authorRoscoeDeWah <roscoe@wah.moe>2025-01-16 13:42:14 +0000
committerRoscoeDeWah <roscoe@wah.moe>2025-01-16 13:42:14 +0000
commitda992ff1b780bf687ba2093d36c2def943296ec5 (patch)
tree28d4c656da316becfaf8ba81b7541d03abb188ae /resources/views/components
parenta349858a7d55e66b51b56063af5306d3a5652bb9 (diff)
Remove unused stuff
Diffstat (limited to 'resources/views/components')
-rw-r--r--resources/views/components/discord-status.blade.php7
-rw-r--r--resources/views/components/git.blade.php48
-rw-r--r--resources/views/components/lastfm-current.blade.php (renamed from resources/views/components/current-track.blade.php)0
-rw-r--r--resources/views/components/lastfm-top.blade.php (renamed from resources/views/components/top-tracks.blade.php)2
-rw-r--r--resources/views/components/lastfm-track.blade.php (renamed from resources/views/components/track.blade.php)0
-rw-r--r--resources/views/components/layout-err.blade.php (renamed from resources/views/components/minimal-error.blade.php)0
-rw-r--r--resources/views/components/layout-min.blade.php (renamed from resources/views/components/minimal.blade.php)0
-rw-r--r--resources/views/components/never-said.blade.php3
-rw-r--r--resources/views/components/settings.blade.php37
-rw-r--r--resources/views/components/toh-quote.blade.php12
-rw-r--r--resources/views/components/weather.blade.php15
11 files changed, 1 insertions, 123 deletions
diff --git a/resources/views/components/discord-status.blade.php b/resources/views/components/discord-status.blade.php
deleted file mode 100644
index 868fc03..0000000
--- a/resources/views/components/discord-status.blade.php
+++ /dev/null
@@ -1,7 +0,0 @@
-@if($status == null)
- <p>Status Unavailable</p>
-@else
- <span>I'm</span>
- <h2 class="online-status" style="color: {{ $status["color"] }};text-shadow: var(--firefox-shadow) {{ $status["color"] }}4f !important">{{ $status["text"] }}!</h2>
-@endif
-<p><strong>Time in Britain:</strong> <span id="clock"></span></p>
diff --git a/resources/views/components/git.blade.php b/resources/views/components/git.blade.php
deleted file mode 100644
index e66a6eb..0000000
--- a/resources/views/components/git.blade.php
+++ /dev/null
@@ -1,48 +0,0 @@
-@php
-$api_root = app('config')->get('app')['api_root'];
-
-$commits = json_decode(file_get_contents($api_root.'/gitdata'));
-$count = 0;
-
-function formatRelativeTime(DateTime $dateTime) {
- $currentTimestamp = time();
- $dateTimeTimestamp = $dateTime->getTimestamp();
- $difference = $currentTimestamp - $dateTimeTimestamp;
-
- if ($difference < 60) {
- return "just now";
- } elseif ($difference < 3600) {
- $minutes = floor($difference / 60);
- $suffix = ($minutes > 1) ? "s" : "";
- return $minutes . " minute" . $suffix . " ago";
- } elseif ($difference < 86400) {
- $hours = floor($difference / 3600);
- $suffix = ($hours > 1) ? "s" : "";
- return $hours . " hour" . $suffix . " ago";
- } elseif ($difference < 604800) {
- $days = floor($difference / 86400);
- $suffix = ($days > 1) ? "s" : "";
- return $days . " day" . $suffix . " ago";
- } else {
- return $dateTime->format('Y-m-d H:i:s'); // Fallback to a specific format if desired
- }
-}
-@endphp
-<h1>Recent Site Updates</h1>
- <table class="commits">
-@foreach ($commits as $commit)
-
- @if ($count >= 5)
- </table>
- @break
- @endif
- @php
- $date = DateTime::createFromFormat("Y-m-d\TH:i:s\Z", $commit->author->date)
- @endphp
- <tr>
- <td>&bull;</td>
- <td>{{ formatRelativeTime($date) }}</td>
- <td><a href="{{ $commit->url }}">{{ $commit->message }}</a></td>
- </tr>
-@php $count++ @endphp
-@endforeach
diff --git a/resources/views/components/current-track.blade.php b/resources/views/components/lastfm-current.blade.php
index d5777cb..d5777cb 100644
--- a/resources/views/components/current-track.blade.php
+++ b/resources/views/components/lastfm-current.blade.php
diff --git a/resources/views/components/top-tracks.blade.php b/resources/views/components/lastfm-top.blade.php
index a8c94f2..0f65e39 100644
--- a/resources/views/components/top-tracks.blade.php
+++ b/resources/views/components/lastfm-top.blade.php
@@ -11,6 +11,6 @@
@php($count = 0)
@foreach ($tracks as $track)
@php($count++)
- <x-track :track="$track" :count="$count"/>
+ <x-lastfm-track :track="$track" :count="$count"/>
@endforeach
</table>
diff --git a/resources/views/components/track.blade.php b/resources/views/components/lastfm-track.blade.php
index b176e95..b176e95 100644
--- a/resources/views/components/track.blade.php
+++ b/resources/views/components/lastfm-track.blade.php
diff --git a/resources/views/components/minimal-error.blade.php b/resources/views/components/layout-err.blade.php
index bffdf98..bffdf98 100644
--- a/resources/views/components/minimal-error.blade.php
+++ b/resources/views/components/layout-err.blade.php
diff --git a/resources/views/components/minimal.blade.php b/resources/views/components/layout-min.blade.php
index 37e6e03..37e6e03 100644
--- a/resources/views/components/minimal.blade.php
+++ b/resources/views/components/layout-min.blade.php
diff --git a/resources/views/components/never-said.blade.php b/resources/views/components/never-said.blade.php
deleted file mode 100644
index 9cb47b7..0000000
--- a/resources/views/components/never-said.blade.php
+++ /dev/null
@@ -1,3 +0,0 @@
-<p class="quote">
- <strong>{{ $quote["name"] }}:</strong> "{{ $quote["quote"] }}"<br>
-</p>
diff --git a/resources/views/components/settings.blade.php b/resources/views/components/settings.blade.php
deleted file mode 100644
index 8851f6c..0000000
--- a/resources/views/components/settings.blade.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<p><strong>Site Settings:</strong></p>
-<label for="scheme-selector">Colors:</label>
-<select id="scheme-selector">
-{{-- <optgroup label="Misc">--}}
-{{-- <option value="c64">C64</option>--}}
-{{-- </optgroup>--}}
- <optgroup label="Light">
- <option value="catppuccin-latte">Catppuccin Latte</option>
-{{-- <option value="gruvbox">Gruvbox</option>--}}
-{{-- <option value="man-page">Man Page</option>--}}
-{{-- <option value="papercolor-light">Papercolor Light</option>--}}
-{{-- <option value="rose-pine-dawn">Rosé Pine Dawn</option>--}}
-{{-- <option value="solarized-light">Solarized Light</option>--}}
-{{-- <option value="terminal-basic">Terminal Basic</option>--}}
- </optgroup>
- <optgroup label="Dark">
- <option value="catppuccin-frappe">Catppuccin Frappé</option>
- <option value="catppuccin-macchiato" selected="selected">Catppuccin Macchiato</option>
- <option value="catppuccin-mocha">Catppuccin Mocha</option>
-{{-- <option value="gruvbox-dark">Gruvbox Dark</option>--}}
-{{-- <option value="gruvbox-material">Gruvbox Material</option>--}}
-{{-- <option value="maia">Maia</option>--}}
-{{-- <option value="mono-amber">Mono Amber</option>--}}
-{{-- <option value="mono-cyan">Mono Cyan</option>--}}
-{{-- <option value="mono-green">Mono Green</option>--}}
-{{-- <option value="mono-red">Mono Red</option>--}}
-{{-- <option value="mono-white">Mono White</option>--}}
-{{-- <option value="mono-yellow">Mono Yellow</option>--}}
-{{-- <option value="papercolor-dark">Papercolor Dark</option>--}}
-{{-- <option value="rose-pine">Rosé Pine</option>--}}
-{{-- <option value="rose-pine-moon">Rose Pine Moon</option>--}}
-{{-- <option value="shel">Shel</option>--}}
-{{-- <option value="slate">Slate</option>--}}
-{{-- <option value="solarized-dark">Solarized Dark</option>--}}
- </optgroup>
-</select><br>
-<button onclick="swapScheme()">Apply</button>
diff --git a/resources/views/components/toh-quote.blade.php b/resources/views/components/toh-quote.blade.php
deleted file mode 100644
index d9dfab1..0000000
--- a/resources/views/components/toh-quote.blade.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<p class="quote">
- @foreach($quote["lines"] as $line)
- <strong>{{ $line["character"] }}:</strong>
- {{-- Literally only one thing will trigger this lmao --}}
- @if($line["line"] == "*Rage squeals*")
- {{ $line["line"] }}
- @else
- "{{ $line["line"] }}"
- @endif<br>
- @endforeach
- <small>({{ $quote["attribution"] }})</small>
-</p>
diff --git a/resources/views/components/weather.blade.php b/resources/views/components/weather.blade.php
deleted file mode 100644
index 879f1cb..0000000
--- a/resources/views/components/weather.blade.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<p><strong>Weather Conditions:</strong></p>
-<hr style="margin: 4px 0">
-@if($conditions == null)
- <p>Data Unavailable</p>
-@else
- <p><strong>Temperature:</strong> {{ round(($conditions[0]["temp"] - 32) * (5/9), 1) }} degC</p>
- <p><strong>Rain:</strong> {{ ($conditions[0]["rain_rate_last"] * 0.2) }}mm/hr ({{ $conditions[0]["rainfall_daily"] }}mm today)</p>
- @if ($conditions[0]["wind_speed_last"] != 0)
- <p><strong>Wind:</strong> {{ round($conditions[0]["wind_speed_last"], 1) }}mph ({{ $conditions[0]["wind_dir_last"] }} deg)</p>
- @else
- <p><strong>Wind:</strong> 0mph</p>
- @endif
- <p><strong>Humidity:</strong> {{ round($conditions[0]["hum"], 1) }}%</p>
- <p><strong>Pressure:</strong> {{ round($conditions[2]["bar_sea_level"], 1) }} inHg</p>
-@endif