From 0f52d80ca67a49258b235f5831163dd72fbd54cf Mon Sep 17 00:00:00 2001 From: Frankie B Date: Tue, 11 Jun 2024 18:02:01 +0100 Subject: Merge MVC rewrite into master (#21) * Just commit it all * Require auth * crap * Update homepage * Block AI scrapers * Update cache update script * Add dummy file * Remove unnecessary lastfm config var * Use withQueryParameters for LastFM API * Fix embeds * Update example env * Smard --- resources/views/admin/bookmarks.blade.php | 28 ++++++++++++++++++++++ resources/views/admin/guestbook.blade.php | 32 ++++++++++++++++++++++++++ resources/views/admin/import-success.blade.php | 12 ++++++++++ resources/views/admin/import.blade.php | 18 +++++++++++++++ 4 files changed, 90 insertions(+) create mode 100644 resources/views/admin/bookmarks.blade.php create mode 100644 resources/views/admin/guestbook.blade.php create mode 100644 resources/views/admin/import-success.blade.php create mode 100644 resources/views/admin/import.blade.php (limited to 'resources/views/admin') diff --git a/resources/views/admin/bookmarks.blade.php b/resources/views/admin/bookmarks.blade.php new file mode 100644 index 0000000..f06539c --- /dev/null +++ b/resources/views/admin/bookmarks.blade.php @@ -0,0 +1,28 @@ + + Admin | Bookmarks + @foreach($categories as $category) +
+

{{ $category->name }}

+ + + + + + + + + + @foreach($category->sites as $site) + + + + + + + + + @endforeach +
IDNameDescriptionURLPriority
{{ $site->id }}{{ $site->name }}{{ $site->description }}{{ $site->url }}{{ $site->priority }}
+
+ @endforeach +
diff --git a/resources/views/admin/guestbook.blade.php b/resources/views/admin/guestbook.blade.php new file mode 100644 index 0000000..1f5dab3 --- /dev/null +++ b/resources/views/admin/guestbook.blade.php @@ -0,0 +1,32 @@ + + Admin | Guestbook +
+

Statistics

+
+ Unique IP addresses: {{ $guestbook_unique_addr }}
+ Entries: {{ $guestbook_entry_count }} +
+
+
+

Entries

+
+ + + + + + + + + @foreach ($entries as $entry) + + + + + + + + @endforeach +
IDNameIP AddressMessage
{{ $entry->id }}{{ $entry->name }}{{ $entry->ip }}{{ $entry->message }}
+
+
diff --git a/resources/views/admin/import-success.blade.php b/resources/views/admin/import-success.blade.php new file mode 100644 index 0000000..f6d5eb3 --- /dev/null +++ b/resources/views/admin/import-success.blade.php @@ -0,0 +1,12 @@ + + Admin | Import +
+

Imported data

+
+
    + @foreach($tables as $name => $data) +
  • {{ ucwords(str_replace('__', ' ', $name)) }}: {{ $data['count'] }} record(s)
  • + @endforeach +
+
+
diff --git a/resources/views/admin/import.blade.php b/resources/views/admin/import.blade.php new file mode 100644 index 0000000..e663724 --- /dev/null +++ b/resources/views/admin/import.blade.php @@ -0,0 +1,18 @@ + + Admin | Import +
+ @csrf + +
+

What to import:

+ +
+ +
+ +
+ +
+ +
+
-- cgit v1.2.3-54-g00ecf