Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim-the-Diamond authored and github-actions[bot] committed Jan 7, 2025
1 parent 16acb6a commit e94aef1
Show file tree
Hide file tree
Showing 58 changed files with 145 additions and 146 deletions.
6 changes: 3 additions & 3 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ protected function schedule(Schedule $schedule)
{
$schedule->command('moox:batchjob')->daily();
$schedule->command('moox:demojob')->hourly();
//$schedule->command('moox:failjob')->cron('0 */3 * * *'); // Every 3 minutes
//$schedule->command('moox:longjob')->cron('0 */45 * * *'); // Every 45 minutes
//$schedule->command('moox:timeoutjob')->cron('0 */20 * * *'); // Every 20 minutes
// $schedule->command('moox:failjob')->cron('0 */3 * * *'); // Every 3 minutes
// $schedule->command('moox:longjob')->cron('0 */45 * * *'); // Every 45 minutes
// $schedule->command('moox:timeoutjob')->cron('0 */20 * * *'); // Every 20 minutes
}

/**
Expand Down
2 changes: 1 addition & 1 deletion app/Locale/Models/StaticLocale.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class StaticLocale extends Model
'country_id',
'locale',
'name',
'is_official_language'
'is_official_language',
];

public function language()
Expand Down
24 changes: 12 additions & 12 deletions app/Locale/Resources/StaticLanguageResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,15 @@ public static function table(Table $table): Table
->query(function (Builder $query, array $data): Builder {
return $query->when(
$data['alpha2'],
fn(Builder $query, $value): Builder => $query->where('alpha2', 'like', "%{$value}%"),
fn (Builder $query, $value): Builder => $query->where('alpha2', 'like', "%{$value}%"),
);
})
->indicateUsing(function (array $data): ?string {
if (! $data['alpha2']) {
return null;
}

return 'Alpha-2 Code: ' . $data['alpha2'];
return 'Alpha-2 Code: '.$data['alpha2'];
}),
Filter::make('alpha3_b')
->form([
Expand All @@ -158,15 +158,15 @@ public static function table(Table $table): Table
->query(function (Builder $query, array $data): Builder {
return $query->when(
$data['alpha3_b'],
fn(Builder $query, $value): Builder => $query->where('alpha3_b', 'like', "%{$value}%"),
fn (Builder $query, $value): Builder => $query->where('alpha3_b', 'like', "%{$value}%"),
);
})
->indicateUsing(function (array $data): ?string {
if (! $data['alpha3_b']) {
return null;
}

return 'Alpha-3 Bibliographic Code: ' . $data['alpha3_b'];
return 'Alpha-3 Bibliographic Code: '.$data['alpha3_b'];
}),
Filter::make('alpha3_t')
->form([
Expand All @@ -177,15 +177,15 @@ public static function table(Table $table): Table
->query(function (Builder $query, array $data): Builder {
return $query->when(
$data['alpha3_t'],
fn(Builder $query, $value): Builder => $query->where('alpha3_t', 'like', "%{$value}%"),
fn (Builder $query, $value): Builder => $query->where('alpha3_t', 'like', "%{$value}%"),
);
})
->indicateUsing(function (array $data): ?string {
if (! $data['alpha3_t']) {
return null;
}

return 'Alpha-3 Terminology Code: ' . $data['alpha3_t'];
return 'Alpha-3 Terminology Code: '.$data['alpha3_t'];
}),
Filter::make('common_name')
->form([
Expand All @@ -196,15 +196,15 @@ public static function table(Table $table): Table
->query(function (Builder $query, array $data): Builder {
return $query->when(
$data['common_name'],
fn(Builder $query, $value): Builder => $query->where('common_name', 'like', "%{$value}%"),
fn (Builder $query, $value): Builder => $query->where('common_name', 'like', "%{$value}%"),
);
})
->indicateUsing(function (array $data): ?string {
if (! $data['common_name']) {
return null;
}

return 'Common Name: ' . $data['common_name'];
return 'Common Name: '.$data['common_name'];
}),
Filter::make('native_name')
->form([
Expand All @@ -215,23 +215,23 @@ public static function table(Table $table): Table
->query(function (Builder $query, array $data): Builder {
return $query->when(
$data['native_name'],
fn(Builder $query, $value): Builder => $query->where('native_name', 'like', "%{$value}%"),
fn (Builder $query, $value): Builder => $query->where('native_name', 'like', "%{$value}%"),
);
})
->indicateUsing(function (array $data): ?string {
if (! $data['native_name']) {
return null;
}

return 'Native Name: ' . $data['native_name'];
return 'Native Name: '.$data['native_name'];
}),
SelectFilter::make('script')
->label('Script')
->placeholder(__('core::core.filter') . ' Script')
->placeholder(__('core::core.filter').' Script')
->options(['Latin' => 'Latin', 'Cyrillic' => 'Cyrillic', 'Arabic' => 'Arabic', 'Devanagari' => 'Devanagari', 'Other' => 'Other']),
SelectFilter::make('direction')
->label('Direction')
->placeholder(__('core::core.filter') . ' Direction')
->placeholder(__('core::core.filter').' Direction')
->options(['LTR' => 'LTR', 'RTL' => 'RTL']),
]);
}
Expand Down
20 changes: 10 additions & 10 deletions app/Locale/Resources/StaticLocaleResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,15 @@ public static function table(Table $table): Table
->query(function (Builder $query, array $data): Builder {
return $query->when(
$data['id'],
fn(Builder $query, $value): Builder => $query->where('id', 'like', "%{$value}%"),
fn (Builder $query, $value): Builder => $query->where('id', 'like', "%{$value}%"),
);
})
->indicateUsing(function (array $data): ?string {
if (! $data['id']) {
return null;
}

return 'ID: ' . $data['id'];
return 'ID: '.$data['id'];
}),
Filter::make('language_id')
->form([
Expand All @@ -148,15 +148,15 @@ public static function table(Table $table): Table
->query(function (Builder $query, array $data): Builder {
return $query->when(
$data['language_id'],
fn(Builder $query, $value): Builder => $query->where('language_id', 'like', "%{$value}%"),
fn (Builder $query, $value): Builder => $query->where('language_id', 'like', "%{$value}%"),
);
})
->indicateUsing(function (array $data): ?string {
if (! $data['language_id']) {
return null;
}

return 'Language ID: ' . $data['language_id'];
return 'Language ID: '.$data['language_id'];
}),
Filter::make('country_id')
->form([
Expand All @@ -167,15 +167,15 @@ public static function table(Table $table): Table
->query(function (Builder $query, array $data): Builder {
return $query->when(
$data['country_id'],
fn(Builder $query, $value): Builder => $query->where('country_id', 'like', "%{$value}%"),
fn (Builder $query, $value): Builder => $query->where('country_id', 'like', "%{$value}%"),
);
})
->indicateUsing(function (array $data): ?string {
if (! $data['country_id']) {
return null;
}

return 'Country ID: ' . $data['country_id'];
return 'Country ID: '.$data['country_id'];
}),
Filter::make('locale')
->form([
Expand All @@ -186,15 +186,15 @@ public static function table(Table $table): Table
->query(function (Builder $query, array $data): Builder {
return $query->when(
$data['locale'],
fn(Builder $query, $value): Builder => $query->where('locale', 'like', "%{$value}%"),
fn (Builder $query, $value): Builder => $query->where('locale', 'like', "%{$value}%"),
);
})
->indicateUsing(function (array $data): ?string {
if (! $data['locale']) {
return null;
}

return 'Locale: ' . $data['locale'];
return 'Locale: '.$data['locale'];
}),
Filter::make('name')
->form([
Expand All @@ -205,15 +205,15 @@ public static function table(Table $table): Table
->query(function (Builder $query, array $data): Builder {
return $query->when(
$data['name'],
fn(Builder $query, $value): Builder => $query->where('name', 'like', "%{$value}%"),
fn (Builder $query, $value): Builder => $query->where('name', 'like', "%{$value}%"),
);
})
->indicateUsing(function (array $data): ?string {
if (! $data['name']) {
return null;
}

return 'Name: ' . $data['name'];
return 'Name: '.$data['name'];
}),
SelectFilter::make('language')
->relationship('language', 'common_name'),
Expand Down
2 changes: 1 addition & 1 deletion app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class User extends Authenticatable implements FilamentUser
public function canAccessPanel(Panel $panel): bool
{
// TODO: Implement roles and permissions.
//return $this->hasAnyRole(['super_admin', 'filament_user']);
// return $this->hasAnyRole(['super_admin', 'filament_user']);
return true;
}
}
12 changes: 6 additions & 6 deletions app/Providers/Filament/AdminPanelProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function panel(Panel $panel): Panel
->passwordReset(RequestPasswordReset::class)
->login(Login::class)
// TODO: check this
//->authGuard('admin')
// ->authGuard('admin')
->brandLogo(asset('img/logo.png'))
->brandLogoHeight('1.6rem')
->colors([
Expand Down Expand Up @@ -70,9 +70,9 @@ public function panel(Panel $panel): Panel
GravatarPlugin::make(),
\Moox\Audit\AuditPlugin::make(),
\Moox\Locate\AreaPlugin::make(),
//\Moox\Locate\CountryPlugin::make(),
//\Moox\Locate\LanguagePlugin::make(),
//\Moox\Locate\TimezonePlugin::make(),
// \Moox\Locate\CountryPlugin::make(),
// \Moox\Locate\LanguagePlugin::make(),
// \Moox\Locate\TimezonePlugin::make(),

// Builder plugin
\Moox\Builder\SimpleTaxonomyPlugin::make(),
Expand All @@ -99,8 +99,8 @@ public function panel(Panel $panel): Panel
\Moox\Jobs\JobsBatchesPlugin::make(),

// Sync Plugins
//\Moox\Sync\SyncPlugin::make(),
//\Moox\Sync\PlatformPlugin::make(),
// \Moox\Sync\SyncPlugin::make(),
// \Moox\Sync\PlatformPlugin::make(),

// User plugins
\Moox\User\UserPlugin::make(),
Expand Down
4 changes: 2 additions & 2 deletions app/Providers/Filament/PressPanelProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ public function panel(Panel $panel): Panel
\Moox\Jobs\JobsBatchesPlugin::make(),

// Sync Plugins
//\Moox\Sync\SyncPlugin::make(),
//\Moox\Sync\PlatformPlugin::make(),
// \Moox\Sync\SyncPlugin::make(),
// \Moox\Sync\PlatformPlugin::make(),

// User plugins
\Moox\Press\WpUserPlugin::make(),
Expand Down
4 changes: 2 additions & 2 deletions config/builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@
'template' => __DIR__.'/../packages/builder/src/Templates/Entity/plugin.php.stub',
'generator' => \Moox\Builder\Generators\Entity\PluginGenerator::class,
],
//'migration' => [
// 'migration' => [
// 'path' => '%BasePath%\app\Builder\Locale\database\migrations',
// 'template' => __DIR__ . '/../packages/builder/src/Templates/Entity/migration.php.stub',
// 'generator' => \Moox\Builder\Generators\Entity\MigrationGenerator::class,
//],
// ],
'translation' => [
'path' => 'Locale\lang\%locale%\entities',
'template' => __DIR__.'/../packages/builder/src/Templates/Entity/translation.php.stub',
Expand Down
4 changes: 2 additions & 2 deletions config/permission.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@
/*
* Change this if you want to name the related pivots other than defaults
*/
'role_pivot_key' => null, //default 'role_id',
'permission_pivot_key' => null, //default 'permission_id',
'role_pivot_key' => null, // default 'role_id',
'permission_pivot_key' => null, // default 'permission_id',

/*
* Change this if you want to name the related model primary key other than
Expand Down
2 changes: 1 addition & 1 deletion config/press.php
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,7 @@
'user_registered' => now()->toDateTimeString(),
'user_status' => '0',
// TODO: suppress errors for first and last name
//'display_name' => $first_name.' '.$last_name ?? $user_login ?? '',
// 'display_name' => $first_name.' '.$last_name ?? $user_login ?? '',
],

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function up(): void
{
Schema::create('taggables', function (Blueprint $table) {
$table->id();
$table->foreignId('tag_id')->constrained()->onDelete('cascade'); //????????
$table->foreignId('tag_id')->constrained()->onDelete('cascade'); // ????????
$table->morphs('taggable');
$table->timestamps();
});
Expand Down
1 change: 0 additions & 1 deletion database/seeders/StaticLocaleSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class StaticLocaleSeeder extends Seeder
Expand Down
4 changes: 2 additions & 2 deletions packages/audit/src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,12 @@ public function registerPluginInPanelProvider(): void
$panelsToregister = $this->getPanelProviderPath();
if ($panelsToregister != null) {
if (is_array($panelsToregister)) {
//Multiselect
// Multiselect
foreach ($panelsToregister as $panelprovider) {
$this->registerPlugins($providerPath.'/'.$panelprovider);
}
} else {
//only one
// only one
$this->registerPlugins($panelsToregister);
}
} else {
Expand Down
4 changes: 2 additions & 2 deletions packages/builder/src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,12 @@ public function registerPluginInPanelProvider(): void
$panelsToregister = $this->getPanelProviderPath();
if ($panelsToregister != null) {
if (is_array($panelsToregister)) {
//Multiselect
// Multiselect
foreach ($panelsToregister as $panelprovider) {
$this->registerPlugins($providerPath.'/'.$panelprovider);
}
} else {
//only one
// only one
$this->registerPlugins($panelsToregister);
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion packages/builder/src/Providers/BuilderPanelProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function panel(Panel $panel): Panel
])
->discoverResources(in: app_path('Locale/Resources'), for: 'App\\Locale\\Resources')
->plugins([
//ExpiryPlugin::make(),
// ExpiryPlugin::make(),
])
->pages([
BuilderDashboard::class,
Expand Down
4 changes: 2 additions & 2 deletions packages/category/src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,12 @@ public function registerPluginInPanelProvider(): void
$panelsToregister = $this->getPanelProviderPath();
if ($panelsToregister != null) {
if (is_array($panelsToregister)) {
//Multiselect
// Multiselect
foreach ($panelsToregister as $panelprovider) {
$this->registerPlugins($providerPath.'/'.$panelprovider);
}
} else {
//only one
// only one
$this->registerPlugins($panelsToregister);
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion packages/category/src/Resources/CategoryResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
use Moox\Core\Traits\Base\BaseInResource;
use Moox\Core\Traits\Tabs\TabsInResource;

//use Moox\Core\Forms\Components\TitleWithSlugInput;
// use Moox\Core\Forms\Components\TitleWithSlugInput;

class CategoryResource extends Resource
{
Expand Down
6 changes: 3 additions & 3 deletions packages/core/tests/Feature/ConfigApiTest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

//it('will response with 200', function () {
// it('will response with 200', function () {
// $response = $this->get('/api/core');
//
// $response->assertStatus(200);
//});
// });
//
//arch('globals')
// arch('globals')
// ->expect(['dd', 'dump'])
// ->not->toBeUsed();
Loading

0 comments on commit e94aef1

Please sign in to comment.