Skip to content

Commit 9723556

Browse files
Kim-the-DiamondAzGasimmooxbot
authored
Feature/localizations (#853)
* load functions.php * stan lv-0 core * Fix styling * Create phpstan.neon * remove unnecessary functions * stan fix core lvl 1 * Fix styling * fix published_at textentry * stan l1 for prompts done * stan l2 for prompts done * stan l3 for prompts done * stan l4 for prompts done * stan l0 media done * stan l1 media done * stan l2 media done * Fix styling * stan l3 media done * stan lv-0 core * Fix styling * stan fix core lvl 1 * Fix styling * phpstan l0 done * stan l1 for prompts done * stan l2 for prompts done * stan l2 media done * Fix styling * stan l4 media done * stan l5 media done * stan l0 jobs done * stan l1-4 jobs done * stan l5 jobs done * wip prompts * wip prompts * prompts stan with new changes * wip core stan 5 * Fix styling * wip stan errors * Localization Installer compatible * data installer compatible * Fix styling * lv5 stan except tests folder * Fix styling * fix audit * Update DefaultEnglishLocalizationInstaller.php * Fix styling * bump composer jsons * wip media installer * Fix styling * fix null error taxonomies * fix boot=> bootPackage methode in SP * update tag & category to mooxserviceprovider * Fix styling * wip installer * Fix styling * media-picker fix * Fix styling * wip jobs migration and readme * Fix styling * update split yaml change every moox dependecy to the given version * file icons * Fix styling * update devlink config * Update media composer * load file icons in media * Update README.md * refactor(media): centralize icon map in MediaIconHelper * wip installer auto package shorname * fix media picker display * Fix styling * swiss german not needed * Fix styling * english as default * Fix styling * default should be always shown in admin * Fix styling * remove mediapicker from tags and category form temporary * Fix styling * en_us to en_US * Update DEVLOG.md * update media data in json when updated globaly * Fix styling * update README, media picker meta data * Fix styling * Fix styling * locale for media picker * Fix styling * wip * Fix styling --------- Co-authored-by: Aziz Gasim <104441723+AzGasim@users.noreply.github.com> Co-authored-by: mooxbot <106848579+mooxbot@users.noreply.github.com>
1 parent f7ecfc1 commit 9723556

132 files changed

Lines changed: 2326 additions & 1197 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/split.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ jobs:
126126
# Also handle self.version case
127127
sed -i 's/"moox\/core":\s*"self\.version"/"moox\/core": "${{ needs.prepare.outputs.core-version }}"/g' composer.json
128128
129+
# Handle other Moox packages dependencies
130+
sed -i 's/"moox\/\([^"]*\)":\s*"dev-main"/"moox\/\1": "${{ needs.prepare.outputs.core-version }}"/g' composer.json
131+
129132
echo "Updated composer.json:"
130133
grep "moox/core" composer.json || echo "No moox/core dependency found"
131134
else

packages/audit/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
}
1818
],
1919
"require": {
20-
"moox/core": "self.version",
20+
"moox/core": "dev-main",
2121
"spatie/laravel-activitylog": "^4.0"
2222
},
2323
"require-dev": {
24-
"moox/devtools": "self.version"
24+
"moox/devtools": "dev-main"
2525
},
2626
"autoload": {
2727
"psr-4": {

packages/audit/src/AuditServiceProvider.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@ public function configureMoox(Package $package): void
1515
$package
1616
->name('audit')
1717
->hasConfigFile()
18-
->hasMigrations(['create_activity_log_table'])
1918
->hasCommand(InstallCommand::class);
20-
21-
$this->getMooxPackage()
22-
->mooxPlugins([
23-
'audit',
24-
])
25-
->mooxFirstPlugin(true);
26-
// ->mooxRequiredSeeders(['AuditSeeder']);
2719
}
2820
}

packages/audit/src/AuditPlugin.php renamed to packages/audit/src/Moox/Plugins/AuditPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Moox\Audit;
3+
namespace Moox\Audit\Moox\Plugins;
44

55
use Filament\Contracts\Plugin;
66
use Filament\Panel;

packages/backup-server/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
}
1818
],
1919
"require": {
20-
"moox/core": "self.version",
20+
"moox/core": "dev-main",
2121
"spatie/laravel-backup-server": "^4.1"
2222
},
2323
"require-dev": {
24-
"moox/devtools": "self.version"
24+
"moox/devtools": "dev-main"
2525
},
2626
"autoload": {
2727
"psr-4": {

packages/build/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919
],
2020
"require": {
21-
"moox/core": "self.version"
21+
"moox/core": "dev-main"
2222
},
2323
"autoload": {
2424
"psr-4": {
@@ -72,4 +72,4 @@
7272
"pestphp/pest-plugin": true
7373
}
7474
}
75-
}
75+
}

packages/category/composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
],
1919
"require": {
2020
"codewithdennis/filament-select-tree": "4.x",
21-
"moox/core": "self.version",
22-
"moox/localization": "*",
21+
"moox/core": "dev-main",
22+
"moox/localization": "dev-main",
2323
"kalnoy/nestedset": "^6.0",
24-
"moox/flag-icons-circle": "*",
25-
"moox/slug": "*"
24+
"moox/flag-icons-circle": "dev-main",
25+
"moox/slug": "dev-main"
2626
},
2727
"autoload": {
2828
"psr-4": {

packages/category/src/CategoryServiceProvider.php

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
use Illuminate\Support\Facades\Blade;
1010
use Moox\Category\Commands\InstallCommand;
1111
use Moox\Category\Moox\Entities\Categories\Category\Resources\CategoryResource\Pages\ListCategories;
12+
use Moox\Core\MooxServiceProvider;
1213
use Spatie\LaravelPackageTools\Package;
13-
use Spatie\LaravelPackageTools\PackageServiceProvider;
1414

15-
class CategoryServiceProvider extends PackageServiceProvider
15+
class CategoryServiceProvider extends MooxServiceProvider
1616
{
17-
public function configurePackage(Package $package): void
17+
public function configureMoox(Package $package): void
1818
{
1919
$package
2020
->name('category')
@@ -32,4 +32,12 @@ public function packageBooted(): void
3232
scopes: ListCategories::class
3333
);
3434
}
35+
36+
public function mooxInfo(): array
37+
{
38+
$info = parent::mooxInfo();
39+
$info['migration_depends_on'] = ['moox/localization'];
40+
41+
return $info;
42+
}
3543
}

packages/category/src/Moox/Entities/Categories/Category/Forms/TaxonomyCreateForm.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use Illuminate\Database\Eloquent\Builder;
1111
use Illuminate\Validation\Rules\Unique;
1212
use Moox\Category\Models\Category;
13-
use Moox\Media\Forms\Components\MediaPicker;
1413
use Moox\Slug\Forms\Components\TitleWithSlugInput;
1514

1615
class TaxonomyCreateForm
@@ -42,8 +41,6 @@ public static function getSchema(): array
4241
'column' => 'slug',
4342
]
4443
),
45-
MediaPicker::make('featured_image_url')
46-
->label(__('core::core.featured_image_url')),
4744
MarkdownEditor::make('content')
4845
->label(__('core::core.content')),
4946
SelectTree::make('parent_id')

packages/category/src/Moox/Entities/Categories/Plugins/CategoryPlugin.php renamed to packages/category/src/Moox/Plugins/CategoryPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Moox\Category\Moox\Entities\Categories\Plugins;
5+
namespace Moox\Category\Moox\Plugins;
66

77
use Filament\Contracts\Plugin;
88
use Filament\Panel;

0 commit comments

Comments
 (0)