From 62a27e1eb2ae16ba63b66f1fc0a098663200b934 Mon Sep 17 00:00:00 2001 From: prplwtf Date: Sat, 17 Feb 2024 21:32:08 +0100 Subject: [PATCH] feat `views`: Either screw up everything or improve the codebase. (core still uses old paths, expect no worky) --- .../views/blueprint/admin/admin.blade.php | 74 +++++++++++++++++++ .../blueprint/dashboard/dashboard.blade.php | 8 ++ resources/views/layouts/admin.blade.php | 56 ++------------ .../partials/blueprint/admin/layout.blade.php | 6 -- .../blueprint/dashboard/wrapper.blade.php | 6 -- resources/views/templates/wrapper.blade.php | 4 +- 6 files changed, 92 insertions(+), 62 deletions(-) create mode 100644 resources/views/blueprint/admin/admin.blade.php create mode 100644 resources/views/blueprint/dashboard/dashboard.blade.php delete mode 100644 resources/views/partials/blueprint/admin/layout.blade.php delete mode 100644 resources/views/partials/blueprint/dashboard/wrapper.blade.php diff --git a/resources/views/blueprint/admin/admin.blade.php b/resources/views/blueprint/admin/admin.blade.php new file mode 100644 index 0000000..81a509b --- /dev/null +++ b/resources/views/blueprint/admin/admin.blade.php @@ -0,0 +1,74 @@ +@section("blueprint.import") + + + + +@endsection + +@section("blueprint.cache") + +
+

+ [. .] + Outdated stylesheets detected. +

+
+ +@endsection + +@section("blueprint.navigation") + fileRead("::f/.blueprint/extensions/blueprint/private/db/onboarding") == "true"){ + $extensionsIcon="fa fa-puzzle-piece bx-flashing"; + } + ?> + +
  • +
  • + + + +
  • + +@endsection + +@section("blueprint.notifications") + fileRead("::f/.blueprint/extensions/blueprint/private/db/onboarding") == "true") { + $blueprint->fileWipe("::f/.blueprint/extensions/blueprint/private/db/onboarding"); + } + $notification = $blueprint->dbGet("blueprint", "notification:text"); + if($notification != null) { + echo "
    +

    ".$notification."

    +
    + "; + + $blueprint->dbSet("blueprint", "notification:text", ""); + } + ?> +@endsection + +@section("blueprint.extensions") + + + +@endsection \ No newline at end of file diff --git a/resources/views/blueprint/dashboard/dashboard.blade.php b/resources/views/blueprint/dashboard/dashboard.blade.php new file mode 100644 index 0000000..73b64bf --- /dev/null +++ b/resources/views/blueprint/dashboard/dashboard.blade.php @@ -0,0 +1,8 @@ +@section("blueprint.extensions") + + + +@endsection \ No newline at end of file diff --git a/resources/views/layouts/admin.blade.php b/resources/views/layouts/admin.blade.php index f026aec..a47f742 100644 --- a/resources/views/layouts/admin.blade.php +++ b/resources/views/layouts/admin.blade.php @@ -6,9 +6,12 @@ $settings = app()->make('Pterodactyl\Contracts\Repository\SettingsRepositoryInterface'); $blueprint = app()->make(BlueprintExtensionLibrary::class, ['settings' => $settings]); ?> +@include("blueprint.admin.admin") + + @yield("blueprint.import") {{ config('app.name', 'Pterodactyl') }} - @yield('title') @@ -36,10 +39,6 @@ {!! Theme::css('css/pterodactyl.css?t={cache-version}') !!} - - - - -
    -

    - [. .] - Outdated stylesheets detected. -

    -
    - + @yield('blueprint.cache')
    -
  • - -
  • - + @yield("blueprint.navigation")
  • @@ -190,24 +165,6 @@
    @yield('content') - fileRead("::f/.blueprint/extensions/blueprint/private/db/onboarding") == "true") { - $blueprint->fileWipe("::f/.blueprint/extensions/blueprint/private/db/onboarding"); - } - - $notification = $blueprint->dbGet("blueprint", "notification:text"); - if($notification != null) { - echo "
    -

    ".$notification."

    -
    - "; - - $blueprint->dbSet("blueprint", "notification:text", ""); - } - ?>