Remove unused stuff
This commit is contained in:
parent
a349858a7d
commit
da992ff1b7
117 changed files with 34 additions and 463 deletions
|
@ -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>
|
|
@ -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>•</td>
|
||||
<td>{{ formatRelativeTime($date) }}</td>
|
||||
<td><a href="{{ $commit->url }}">{{ $commit->message }}</a></td>
|
||||
</tr>
|
||||
@php $count++ @endphp
|
||||
@endforeach
|
|
@ -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>
|
|
@ -1,3 +0,0 @@
|
|||
<p class="quote">
|
||||
<strong>{{ $quote["name"] }}:</strong> "{{ $quote["quote"] }}"<br>
|
||||
</p>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue