Admin layout tweaks

This commit is contained in:
Ryan Scherler
2021-01-10 10:55:18 -08:00
parent 80e235497c
commit a5cc7a7b87
10 changed files with 97 additions and 82 deletions
+1 -1
View File
@@ -20,7 +20,7 @@
"require-dev": {
"mockery/mockery": "^1.4.2",
"orchestra/testbench": "^6.0",
"pestphp/pest": "^0.3",
"pestphp/pest": "^1.0",
"vimeo/psalm": "^4.3",
"psalm/plugin-laravel": "^1.4"
},
Generated
+82 -67
View File
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "349eb4da49c71445f21c2dc5e83db9ea",
"content-hash": "983c5f4ad6f81a9ba83e59e48ae3d123",
"packages": [
{
"name": "blade-ui-kit/blade-heroicons",
@@ -4940,16 +4940,16 @@
"packages-dev": [
{
"name": "amphp/amp",
"version": "v2.5.1",
"version": "v2.5.2",
"source": {
"type": "git",
"url": "https://github.com/amphp/amp.git",
"reference": "ecdc3c476b3ccff02f8e5d5bcc04f7ccfd18751c"
"reference": "efca2b32a7580087adb8aabbff6be1dc1bb924a9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/amphp/amp/zipball/ecdc3c476b3ccff02f8e5d5bcc04f7ccfd18751c",
"reference": "ecdc3c476b3ccff02f8e5d5bcc04f7ccfd18751c",
"url": "https://api.github.com/repos/amphp/amp/zipball/efca2b32a7580087adb8aabbff6be1dc1bb924a9",
"reference": "efca2b32a7580087adb8aabbff6be1dc1bb924a9",
"shasum": ""
},
"require": {
@@ -5017,7 +5017,7 @@
"support": {
"irc": "irc://irc.freenode.org/amphp",
"issues": "https://github.com/amphp/amp/issues",
"source": "https://github.com/amphp/amp/tree/v2.5.1"
"source": "https://github.com/amphp/amp/tree/v2.5.2"
},
"funding": [
{
@@ -5025,7 +5025,7 @@
"type": "github"
}
],
"time": "2020-11-03T16:23:45+00:00"
"time": "2021-01-10T17:06:37+00:00"
},
{
"name": "amphp/byte-stream",
@@ -6222,25 +6222,25 @@
},
{
"name": "felixfbecker/advanced-json-rpc",
"version": "v3.1.1",
"version": "v3.2.0",
"source": {
"type": "git",
"url": "https://github.com/felixfbecker/php-advanced-json-rpc.git",
"reference": "0ed363f8de17d284d479ec813c9ad3f6834b5c40"
"reference": "06f0b06043c7438959dbdeed8bb3f699a19be22e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/felixfbecker/php-advanced-json-rpc/zipball/0ed363f8de17d284d479ec813c9ad3f6834b5c40",
"reference": "0ed363f8de17d284d479ec813c9ad3f6834b5c40",
"url": "https://api.github.com/repos/felixfbecker/php-advanced-json-rpc/zipball/06f0b06043c7438959dbdeed8bb3f699a19be22e",
"reference": "06f0b06043c7438959dbdeed8bb3f699a19be22e",
"shasum": ""
},
"require": {
"netresearch/jsonmapper": "^1.0 || ^2.0",
"php": ">=7.0",
"phpdocumentor/reflection-docblock": "^4.0.0 || ^5.0.0"
"php": "^7.1 || ^8.0",
"phpdocumentor/reflection-docblock": "^4.3.4 || ^5.0.0"
},
"require-dev": {
"phpunit/phpunit": "^6.0.0"
"phpunit/phpunit": "^7.0 || ^8.0"
},
"type": "library",
"autoload": {
@@ -6261,9 +6261,9 @@
"description": "A more advanced JSONRPC implementation",
"support": {
"issues": "https://github.com/felixfbecker/php-advanced-json-rpc/issues",
"source": "https://github.com/felixfbecker/php-advanced-json-rpc/tree/master"
"source": "https://github.com/felixfbecker/php-advanced-json-rpc/tree/v3.2.0"
},
"time": "2020-03-11T15:21:41+00:00"
"time": "2021-01-10T17:48:47+00:00"
},
{
"name": "felixfbecker/language-server-protocol",
@@ -7036,30 +7036,30 @@
},
{
"name": "pestphp/pest",
"version": "v0.3.19",
"version": "v1.0.0",
"source": {
"type": "git",
"url": "https://github.com/pestphp/pest.git",
"reference": "26b2e3561a9f76d8918727e7bc34ddf9b977d923"
"reference": "b0f03c278db30bfe9a146827c651b719acf6f02b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/pestphp/pest/zipball/26b2e3561a9f76d8918727e7bc34ddf9b977d923",
"reference": "26b2e3561a9f76d8918727e7bc34ddf9b977d923",
"url": "https://api.github.com/repos/pestphp/pest/zipball/b0f03c278db30bfe9a146827c651b719acf6f02b",
"reference": "b0f03c278db30bfe9a146827c651b719acf6f02b",
"shasum": ""
},
"require": {
"nunomaduro/collision": "^5.0",
"pestphp/pest-plugin": "^0.3",
"pestphp/pest-plugin-coverage": "^0.3",
"pestphp/pest-plugin-expectations": "^0.3.3",
"pestphp/pest-plugin-init": "^0.3",
"pestphp/pest-plugin": "^1.0",
"pestphp/pest-plugin-coverage": "^1.0",
"pestphp/pest-plugin-expectations": "^1.0",
"pestphp/pest-plugin-init": "^1.0",
"php": "^7.3 || ^8.0",
"phpunit/phpunit": ">= 9.3.7 <= 9.5.0"
},
"require-dev": {
"illuminate/console": "^7.16.1",
"illuminate/support": "^7.16.1",
"illuminate/console": "^8.0",
"illuminate/support": "^8.0",
"laravel/dusk": "^6.9.1",
"mockery/mockery": "^1.4.1",
"pestphp/pest-dev-tools": "dev-master"
@@ -7070,7 +7070,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "0.3.x-dev"
"dev-master": "1.x-dev"
},
"pest": {
"plugins": [
@@ -7113,7 +7113,7 @@
],
"support": {
"issues": "https://github.com/pestphp/pest/issues",
"source": "https://github.com/pestphp/pest/tree/v0.3.19"
"source": "https://github.com/pestphp/pest/tree/v1.0.0"
},
"funding": [
{
@@ -7124,25 +7124,37 @@
"url": "https://github.com/nunomaduro",
"type": "github"
},
{
"url": "https://github.com/octoper",
"type": "github"
},
{
"url": "https://github.com/olivernybroe",
"type": "github"
},
{
"url": "https://github.com/owenvoke",
"type": "github"
},
{
"url": "https://www.patreon.com/nunomaduro",
"type": "patreon"
}
],
"time": "2020-12-27T11:36:24+00:00"
"time": "2021-01-03T16:27:11+00:00"
},
{
"name": "pestphp/pest-plugin",
"version": "v0.3.0",
"version": "v1.0.0",
"source": {
"type": "git",
"url": "https://github.com/pestphp/pest-plugin.git",
"reference": "635f8c33a3eed910ac3cd5cb02a7163c5c70c033"
"reference": "fc8519de148699fe612d9c669be60554cd2db4fa"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/pestphp/pest-plugin/zipball/635f8c33a3eed910ac3cd5cb02a7163c5c70c033",
"reference": "635f8c33a3eed910ac3cd5cb02a7163c5c70c033",
"url": "https://api.github.com/repos/pestphp/pest-plugin/zipball/fc8519de148699fe612d9c669be60554cd2db4fa",
"reference": "fc8519de148699fe612d9c669be60554cd2db4fa",
"shasum": ""
},
"require": {
@@ -7150,17 +7162,17 @@
"php": "^7.3 || ^8.0"
},
"conflict": {
"pestphp/pest": "<0.3"
"pestphp/pest": "<1.0"
},
"require-dev": {
"composer/composer": "^1.10",
"pestphp/pest": "^0.3",
"composer/composer": "^1.10.19",
"pestphp/pest": "^1.0",
"pestphp/pest-dev-tools": "dev-master"
},
"type": "composer-plugin",
"extra": {
"branch-alias": {
"dev-master": "0.4.x-dev"
"dev-master": "1.x-dev"
},
"class": "Pest\\Plugin\\Manager"
},
@@ -7185,7 +7197,7 @@
"unit"
],
"support": {
"source": "https://github.com/pestphp/pest-plugin/tree/v0.3.0"
"source": "https://github.com/pestphp/pest-plugin/tree/v1.0.0"
},
"funding": [
{
@@ -7201,38 +7213,38 @@
"type": "patreon"
}
],
"time": "2020-08-25T20:53:40+00:00"
"time": "2021-01-03T15:53:42+00:00"
},
{
"name": "pestphp/pest-plugin-coverage",
"version": "v0.3.0",
"version": "v1.0.0",
"source": {
"type": "git",
"url": "https://github.com/pestphp/pest-plugin-coverage.git",
"reference": "f209bb62728841f21f267759a374d66172a162ea"
"reference": "50260c8671377a5082a06b9e228a984c13ed199c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/pestphp/pest-plugin-coverage/zipball/f209bb62728841f21f267759a374d66172a162ea",
"reference": "f209bb62728841f21f267759a374d66172a162ea",
"url": "https://api.github.com/repos/pestphp/pest-plugin-coverage/zipball/50260c8671377a5082a06b9e228a984c13ed199c",
"reference": "50260c8671377a5082a06b9e228a984c13ed199c",
"shasum": ""
},
"require": {
"pestphp/pest-plugin": "^0.3",
"pestphp/pest-plugin": "^1.0",
"php": "^7.3 || ^8.0",
"sebastian/environment": "^5.1.2"
},
"conflict": {
"pestphp/pest": "<0.3"
"pestphp/pest": "<1.0"
},
"require-dev": {
"pestphp/pest": "^0.3",
"pestphp/pest": "^1.0",
"pestphp/pest-dev-tools": "dev-master"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "0.3.x-dev"
"dev-master": "1.x-dev"
},
"pest": {
"plugins": [
@@ -7261,7 +7273,7 @@
"unit"
],
"support": {
"source": "https://github.com/pestphp/pest-plugin-coverage/tree/master"
"source": "https://github.com/pestphp/pest-plugin-coverage/tree/v1.0.0"
},
"funding": [
{
@@ -7277,34 +7289,37 @@
"type": "patreon"
}
],
"time": "2020-08-25T20:42:46+00:00"
"time": "2021-01-03T15:51:41+00:00"
},
{
"name": "pestphp/pest-plugin-expectations",
"version": "v0.3.3",
"version": "v1.0.1",
"source": {
"type": "git",
"url": "https://github.com/pestphp/pest-plugin-expectations.git",
"reference": "1d10f8b6d2dced7accffe16eabdee44b1ef90c6a"
"reference": "e543acd6d0ca33c9bdaae05d4dffbfc8c66a0285"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/pestphp/pest-plugin-expectations/zipball/1d10f8b6d2dced7accffe16eabdee44b1ef90c6a",
"reference": "1d10f8b6d2dced7accffe16eabdee44b1ef90c6a",
"url": "https://api.github.com/repos/pestphp/pest-plugin-expectations/zipball/e543acd6d0ca33c9bdaae05d4dffbfc8c66a0285",
"reference": "e543acd6d0ca33c9bdaae05d4dffbfc8c66a0285",
"shasum": ""
},
"require": {
"php": "^7.3 || ^8.0",
"phpunit/phpunit": "^9.0"
},
"conflict": {
"pestphp/pest": "<1.0"
},
"require-dev": {
"pestphp/pest": "^0.3.16",
"pestphp/pest": "^1.0",
"pestphp/pest-dev-tools": "dev-master"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "0.3.x-dev"
"dev-master": "1.x-dev"
}
},
"autoload": {
@@ -7330,7 +7345,7 @@
"unit"
],
"support": {
"source": "https://github.com/pestphp/pest-plugin-expectations/tree/v0.3.3"
"source": "https://github.com/pestphp/pest-plugin-expectations/tree/v1.0.1"
},
"funding": [
{
@@ -7346,37 +7361,37 @@
"type": "patreon"
}
],
"time": "2020-12-26T20:28:03+00:00"
"time": "2021-01-03T16:02:34+00:00"
},
{
"name": "pestphp/pest-plugin-init",
"version": "v0.3.1",
"version": "v1.0.0",
"source": {
"type": "git",
"url": "https://github.com/pestphp/pest-plugin-init.git",
"reference": "7406643b47835b6c6da709b11da89b0844b8d163"
"reference": "bd6fdb058ba5dc7a9f7f3645ad4e0bdc34cf0026"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/pestphp/pest-plugin-init/zipball/7406643b47835b6c6da709b11da89b0844b8d163",
"reference": "7406643b47835b6c6da709b11da89b0844b8d163",
"url": "https://api.github.com/repos/pestphp/pest-plugin-init/zipball/bd6fdb058ba5dc7a9f7f3645ad4e0bdc34cf0026",
"reference": "bd6fdb058ba5dc7a9f7f3645ad4e0bdc34cf0026",
"shasum": ""
},
"require": {
"pestphp/pest-plugin": "^0.3",
"pestphp/pest-plugin": "^1.0",
"php": "^7.3 || ^8.0"
},
"conflict": {
"pestphp/pest": "<0.3"
"pestphp/pest": "<1.0"
},
"require-dev": {
"pestphp/pest": "^0.3",
"pestphp/pest": "^1.0",
"pestphp/pest-dev-tools": "dev-master"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "0.4.x-dev"
"dev-master": "1.x-dev"
},
"pest": {
"plugins": [
@@ -7405,7 +7420,7 @@
"unit"
],
"support": {
"source": "https://github.com/pestphp/pest-plugin-init/tree/v0.3.1"
"source": "https://github.com/pestphp/pest-plugin-init/tree/v1.0.0"
},
"funding": [
{
@@ -7421,7 +7436,7 @@
"type": "patreon"
}
],
"time": "2020-09-27T12:48:43+00:00"
"time": "2021-01-03T15:47:48+00:00"
},
{
"name": "phar-io/manifest",
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,4 +1,4 @@
{
"/js/filament.js": "/js/filament.js?id=575bb8a26dd76080eafa",
"/css/filament.css": "/css/filament.css?id=4800a6c64c508b4b2553"
"/css/filament.css": "/css/filament.css?id=023aff7cc5ff2ee37f96"
}
+3 -3
View File
@@ -7780,9 +7780,9 @@
"dev": true
},
"postcss": {
"version": "8.2.3",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.2.3.tgz",
"integrity": "sha512-tdmNCCmxJEsLZNj810qlj8QbvnUNKFL9A5doV+uHrGGK/YNKWEslrytnHDWr9M/GgGjfUFwXCRbxd/b6IoRBXQ==",
"version": "8.2.4",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.2.4.tgz",
"integrity": "sha512-kRFftRoExRVXZlwUuay9iC824qmXPcQQVzAjbCCgjpXnkdMCJYBu2gTwAaFBzv8ewND6O8xFb3aELmEkh9zTzg==",
"dev": true,
"requires": {
"colorette": "^1.2.1",
+1 -1
View File
@@ -26,7 +26,7 @@
"cross-env": "^7.0.3",
"dotenv": "^8.2.0",
"laravel-mix": "^6.0.9",
"postcss": "^8.2.3",
"postcss": "^8.2.4",
"postcss-import": "^14.0.0",
"postcss-nested": "^5.0.3",
"prettier": "^2.2.1",
@@ -3,8 +3,8 @@
id="banner"
{{ $attributes->merge(['class' => 'bg-gray-900 text-gray-500 flex flex-col space-y-4 shadow-lg md:shadow-none']) }}>
<x-filament::app-branding />
<x-filament-nav />
<x-filament::dropdown class="w-full text-left flex-grow flex items-center p-4 space-x-3 transition-colors duration-200 hover:text-white hover:bg-gray-800" id="dropdown-user">
<x-filament-nav class="flex-grow px-4 overflow-y-auto" />
<x-filament::dropdown class="w-full text-left flex-grow flex items-center px-4 py-3 space-x-3 transition-colors duration-200 hover:text-white hover:bg-gray-800" id="dropdown-user">
<x-filament-avatar :user="Auth::user()" :size="32" class="flex-shrink-0 w-8 h-8 rounded-full" />
<span class="flex-grow text-sm leading-tight font-semibold">{{ Auth::user()->name }}</span>
+1 -1
View File
@@ -1,4 +1,4 @@
<nav aria-label="primary" class="flex-grow px-4">
<nav aria-label="primary" {{ $attributes }}>
<ol class="space-y-1">
@foreach($nav as $item)
<li>
+4 -4
View File
@@ -4,16 +4,16 @@
@section('content')
<a href="#content" class="sr-only">Skip to content</a>
<div class="relative overflow-hidden flex min-h-screen"
<div class="relative overflow-hidden"
role="group"
tabindex="-1"
x-data="{ headerIsOpen: false }"
@keydown.window.escape="headerIsOpen = false"
x-on:resize.window="if (window.outerWidth > 768) headerIsOpen = false"
>
<div class="flex-shrink-0 flex w-56 absolute md:relative z-20 inset-y-0 transform transition-transform duration-200 md:translate-x-0"
<div class="w-56 fixed z-20 h-screen transform transition-transform duration-200 md:translate-x-0 flex"
:class="headerIsOpen ? 'translate-x-0' : '-translate-x-full'">
<x-filament::app-header class="flex-grow" />
<x-filament::app-header class="flex-grow overflow-y-auto" />
<button
type="button"
aria-controls="banner"
@@ -26,7 +26,7 @@
</button>
</div>
<span class="absolute z-10 inset-0 bg-gray-800 bg-opacity-50 md:hidden" x-cloak x-show="headerIsOpen" @click="headerIsOpen = false"></span>
<div class="flex-grow w-full flex flex-col">
<div class="min-h-screen w-full md:pl-56 flex flex-col">
<header class="p-4 md:p-6 flex justify-between items-center space-x-4">
<div class="flex items-center">
<button type="button" aria-controls="banner" @click.prevent="headerIsOpen = true" :aria-expanded="headerIsOpen" class="md:hidden text-blue-600 hover:text-blue-800 transition-colors duration-200 mr-4">