mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 00:34:44 +02:00
Revert "Not used"
This reverts commit 1728cbf28b123766474ec2b2c66ae4138465b777.
This commit is contained in:
parent
05ae2b2ecf
commit
3465d2fc64
@ -206,6 +206,14 @@ class User extends Model implements AuthenticatableContract, AuthorizableContrac
|
|||||||
return $rules;
|
return $rules;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the user model in a format that can be passed over to Vue templates.
|
||||||
|
*/
|
||||||
|
public function toVueObject(): array
|
||||||
|
{
|
||||||
|
return Collection::make($this->toArray())->except(['id', 'external_id'])->toArray();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Send the password reset notification.
|
* Send the password reset notification.
|
||||||
*
|
*
|
||||||
|
53
resources/views/templates/wrapper.blade.php
Normal file
53
resources/views/templates/wrapper.blade.php
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>{{ config('app.name') }}</title>
|
||||||
|
|
||||||
|
@section('meta')
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||||
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||||
|
<meta name="robots" content="noindex">
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="/favicons/apple-touch-icon.png">
|
||||||
|
<link rel="icon" type="image/png" href="/favicons/favicon-32x32.png" sizes="32x32">
|
||||||
|
<link rel="icon" type="image/png" href="/favicons/favicon-16x16.png" sizes="16x16">
|
||||||
|
<link rel="manifest" href="/favicons/manifest.json">
|
||||||
|
<link rel="mask-icon" href="/favicons/safari-pinned-tab.svg" color="#bc6e3c">
|
||||||
|
<link rel="shortcut icon" href="/favicons/favicon.ico">
|
||||||
|
<meta name="msapplication-config" content="/favicons/browserconfig.xml">
|
||||||
|
<meta name="theme-color" content="#0e4688">
|
||||||
|
@show
|
||||||
|
|
||||||
|
@section('user-data')
|
||||||
|
@if(!is_null(Auth::user()))
|
||||||
|
<script>
|
||||||
|
window.PanelUser = {!! json_encode(Auth::user()->toVueObject()) !!};
|
||||||
|
</script>
|
||||||
|
@endif
|
||||||
|
@if(!empty($siteConfiguration))
|
||||||
|
<script>
|
||||||
|
window.SiteConfiguration = {!! json_encode($siteConfiguration) !!};
|
||||||
|
</script>
|
||||||
|
@endif
|
||||||
|
@show
|
||||||
|
<style>
|
||||||
|
@import url('//fonts.googleapis.com/css?family=Rubik:300,400,500&display=swap');
|
||||||
|
@import url('//fonts.googleapis.com/css?family=IBM+Plex+Mono|IBM+Plex+Sans:500&display=swap');
|
||||||
|
</style>
|
||||||
|
|
||||||
|
@yield('assets')
|
||||||
|
|
||||||
|
@include('layouts.scripts')
|
||||||
|
</head>
|
||||||
|
<body class="{{ $css['body'] ?? 'bg-neutral-50' }}">
|
||||||
|
@section('content')
|
||||||
|
@yield('above-container')
|
||||||
|
@yield('container')
|
||||||
|
@yield('below-container')
|
||||||
|
@show
|
||||||
|
@section('scripts')
|
||||||
|
{!! $asset->js('main.js') !!}
|
||||||
|
@show
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
x
Reference in New Issue
Block a user