From 7bba7f189cb76873b61344ae9115cbbe8ae0f996 Mon Sep 17 00:00:00 2001 From: atmonshi Date: Thu, 2 Nov 2023 12:41:40 +0000 Subject: [PATCH 1/2] Fix styling --- resources/lang/ar/filament-navigation.php | 6 +++--- resources/lang/en/filament-navigation.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/lang/ar/filament-navigation.php b/resources/lang/ar/filament-navigation.php index c31ab6e..5a8631d 100644 --- a/resources/lang/ar/filament-navigation.php +++ b/resources/lang/ar/filament-navigation.php @@ -14,7 +14,7 @@ 'select-options' => [ 'same-tab' => 'نفس علامة التبويب', - 'new-tab' => 'علامة تبويب جديدة' + 'new-tab' => 'علامة تبويب جديدة', ], 'items' => [ @@ -25,7 +25,7 @@ 'move-down' => 'تحريك للأسفل', 'indent' => 'إزاحة للداخل', 'dedent' => 'إزاحة للخارج', - 'remove' => 'إزالة' + 'remove' => 'إزالة', ], 'items-modal' => [ @@ -34,4 +34,4 @@ 'type' => 'النوع', 'btn' => 'حفظ', ], -]; \ No newline at end of file +]; diff --git a/resources/lang/en/filament-navigation.php b/resources/lang/en/filament-navigation.php index 38870f5..a9d0493 100644 --- a/resources/lang/en/filament-navigation.php +++ b/resources/lang/en/filament-navigation.php @@ -15,7 +15,7 @@ 'select-options' => [ 'same-tab' => 'Same tab', - 'new-tab' => 'New tab' + 'new-tab' => 'New tab', ], 'items' => [ @@ -26,7 +26,7 @@ 'move-down' => 'Move down', 'indent' => 'Indent', 'dedent' => 'Dedent', - 'remove' => 'Remove' + 'remove' => 'Remove', ], 'items-modal' => [ @@ -35,4 +35,4 @@ 'type' => 'Type', 'btn' => 'Save', ], -]; \ No newline at end of file +]; From cef39006192d1d5fc1b7d8a9d56f021ec13b5b48 Mon Sep 17 00:00:00 2001 From: Ash Monsh Date: Thu, 2 Nov 2023 15:50:05 +0300 Subject: [PATCH 2/2] update docs --- composer.lock | 10 +++++----- .../migrations/create_navigations_table.php.stub | 16 +++++++++------- docs/advanced/customization.md | 2 +- docs/getting-started/configuration.md | 2 -- docs/getting-started/installation.md | 1 - docs/getting-started/upgrade.md | 4 ++++ resources/lang/ar/filament-navigation.php | 6 +++--- resources/lang/en/filament-navigation.php | 6 +++--- 8 files changed, 25 insertions(+), 22 deletions(-) diff --git a/composer.lock b/composer.lock index b46c628..8cb3896 100644 --- a/composer.lock +++ b/composer.lock @@ -2300,16 +2300,16 @@ }, { "name": "lara-zeus/core", - "version": "v3.0.10", + "version": "v3.0.11", "source": { "type": "git", "url": "https://github.com/lara-zeus/core.git", - "reference": "2b7fa3401288dce85f2e7ff7d54edea6e826ae59" + "reference": "07b64a72ef6d0aa17ee55d8f6145542fb68f8b63" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/lara-zeus/core/zipball/2b7fa3401288dce85f2e7ff7d54edea6e826ae59", - "reference": "2b7fa3401288dce85f2e7ff7d54edea6e826ae59", + "url": "https://api.github.com/repos/lara-zeus/core/zipball/07b64a72ef6d0aa17ee55d8f6145542fb68f8b63", + "reference": "07b64a72ef6d0aa17ee55d8f6145542fb68f8b63", "shasum": "" }, "require": { @@ -2382,7 +2382,7 @@ "type": "github" } ], - "time": "2023-10-29T18:18:31+00:00" + "time": "2023-11-02T12:34:15+00:00" }, { "name": "laravel/framework", diff --git a/database/migrations/create_navigations_table.php.stub b/database/migrations/create_navigations_table.php.stub index 4d52db9..31e2051 100644 --- a/database/migrations/create_navigations_table.php.stub +++ b/database/migrations/create_navigations_table.php.stub @@ -13,13 +13,15 @@ return new class extends Migration */ public function up() { - Schema::create('navigations', function (Blueprint $table) { - $table->id(); - $table->string('name'); - $table->string('handle')->unique(); - $table->longText('items')->nullable(); - $table->timestamps(); - }); + if (!Schema::hasTable('navigations')) { + Schema::create('navigations', function (Blueprint $table) { + $table->id(); + $table->string('name'); + $table->string('handle')->unique(); + $table->longText('items')->nullable(); + $table->timestamps(); + }); + } } /** diff --git a/docs/advanced/customization.md b/docs/advanced/customization.md index d9d98a1..9808deb 100644 --- a/docs/advanced/customization.md +++ b/docs/advanced/customization.md @@ -47,7 +47,7 @@ to render the navigation: you can also copy the `RenderNavItem` class and customize it as you need. -for more information refer to the main plugin [Filament Navigation](https://github.com/ryangjchandler/filament-navigation) +the navigation plugin was originally created by [ryangjchandler](https://github.com/ryangjchandler/filament-navigation). and now it's included in sky plugin. ## themes diff --git a/docs/getting-started/configuration.md b/docs/getting-started/configuration.md index 81c8b71..3e894ef 100644 --- a/docs/getting-started/configuration.md +++ b/docs/getting-started/configuration.md @@ -20,8 +20,6 @@ SpatieLaravelTranslatablePlugin::make() // or if you have more ->defaultLocales(['en', 'pt']), -FilamentNavigation::make(), - SkyPlugin::make() ->navigationGroupLabel('Sky') diff --git a/docs/getting-started/installation.md b/docs/getting-started/installation.md index f3b61a5..7806dc7 100644 --- a/docs/getting-started/installation.md +++ b/docs/getting-started/installation.md @@ -33,7 +33,6 @@ The install command will publish the migrations and the necessary assets for the ```php ->plugins([ SpatieLaravelTranslatablePlugin::make()->defaultLocales([config('app.locale')]), - FilamentNavigation::make(), SkyPlugin::make(), ]) ``` diff --git a/docs/getting-started/upgrade.md b/docs/getting-started/upgrade.md index 6e3b33f..78e958d 100644 --- a/docs/getting-started/upgrade.md +++ b/docs/getting-started/upgrade.md @@ -4,6 +4,10 @@ weight: 100 --- +## upgrade to v3.3 + +remove `FilamentNavigation::make(),` from your panel plugins + ## upgrade to v3.2 In v3.2, I refactored the configuration to separate the frontend configuration from filament-related ones. diff --git a/resources/lang/ar/filament-navigation.php b/resources/lang/ar/filament-navigation.php index c31ab6e..5a8631d 100644 --- a/resources/lang/ar/filament-navigation.php +++ b/resources/lang/ar/filament-navigation.php @@ -14,7 +14,7 @@ 'select-options' => [ 'same-tab' => 'نفس علامة التبويب', - 'new-tab' => 'علامة تبويب جديدة' + 'new-tab' => 'علامة تبويب جديدة', ], 'items' => [ @@ -25,7 +25,7 @@ 'move-down' => 'تحريك للأسفل', 'indent' => 'إزاحة للداخل', 'dedent' => 'إزاحة للخارج', - 'remove' => 'إزالة' + 'remove' => 'إزالة', ], 'items-modal' => [ @@ -34,4 +34,4 @@ 'type' => 'النوع', 'btn' => 'حفظ', ], -]; \ No newline at end of file +]; diff --git a/resources/lang/en/filament-navigation.php b/resources/lang/en/filament-navigation.php index 38870f5..a9d0493 100644 --- a/resources/lang/en/filament-navigation.php +++ b/resources/lang/en/filament-navigation.php @@ -15,7 +15,7 @@ 'select-options' => [ 'same-tab' => 'Same tab', - 'new-tab' => 'New tab' + 'new-tab' => 'New tab', ], 'items' => [ @@ -26,7 +26,7 @@ 'move-down' => 'Move down', 'indent' => 'Indent', 'dedent' => 'Dedent', - 'remove' => 'Remove' + 'remove' => 'Remove', ], 'items-modal' => [ @@ -35,4 +35,4 @@ 'type' => 'Type', 'btn' => 'Save', ], -]; \ No newline at end of file +];