Skip to content

Commit

Permalink
feat: Version 0.17.1 (#202)
Browse files Browse the repository at this point in the history
* feat: component filter added (#176)

* fix: only add column when it doesn't exist (#167)

* fix: only add column when it doesn't exist

* style: formatting

* feat: export cms (#169)

* feat: import export

* feat: use file instead of database

* feat: move import/export to model

* fix: export from tableitem

* feat: move export to Trait

* style: formatting

* style: formatting

* fix: never use file as source of truth

* style: formatting

* chore: cleanup

* fix: use export to file

* feat: comment things that no longer work

* feat: add  meta data

* feat: list filenames

* feat: cleaner export

* feat: remove UI for import/export

* style: formatting

* feat: add import command

* feat: import from files

* feat: remove import UI

* feat: prevent editing tables with changes on disk

* feat: do not use id's in export for tables

* feat: optionally export ids

* feat: import ids when available

---------

Co-authored-by: Rene <rene@64k.nl>

* feat: component filter added

* feat: added filterparams

* feat: only query if filter exists

* feat: WIP

* feat: typed editor classes

* feat: editor changes

* feat: removed code

* feat: removed request from editor and overview

* feat: added TODO

* chore: update dependency

* feat: migration for model column in cms_table

* fix: retain model on import export cms_table

* feat: moved code to component

* feat: added guards

* style: formatting

* feat: parameters now in tableservice

* feat: removed parameter

* feat: removed request() from editor

* fix: return empty array if key not exists

* style: formatting

* style: formatting

---------

Co-authored-by: René <rene@64k.nl>

* fix: exceptions handling (#189)

* fix: exception handling

* style: formatting

* fix: return type

* feat: date helper (#191)

* feat: moved layoutbar to editor (#193)

* feat: moved layoutbar to editor

* style: formatting

* chore: remove unused methods

---------

Co-authored-by: Rene <rene@64k.nl>

* feat: CMS editor import/export (#197)

* feat: move to service

* style: formatting

* feat: template import

* fix: edit tables

* feat: moved bar items to editor (#196)

* feat: moved bar items to editor

* feat: abstract class

* style: formatting

* feat: updated default editor

---------

Co-authored-by: Rene <rene@64k.nl>

* fix: editing template items throws error (#201)

* fix: editing template items throws error

* style: formatting

* fix: insights requirements fail

---------

Co-authored-by: Xander Schuurman <44030544+keeama13@users.noreply.github.com>
  • Loading branch information
64knl and keeama13 committed Feb 8, 2024
1 parent 6cc299e commit 6164568
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
6 changes: 3 additions & 3 deletions phpinsights.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
],
],
'requirements' => [
'min-quality' => 60,
'min-quality' => 59,
'min-complexity' => 60,
'min-architecture' => 55,
'min-style' => 80,
'min-architecture' => 58,
'min-style' => 86,
],
];
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ public function readOne(Template $table, TemplateItem $tableItem)

$widgetPage->widget->addForm($form);

$widgetPage->widget->addWidget(CmsEditorImportExportController::getExport([$tableItem]));

return $widgetPage->response();
}

Expand Down Expand Up @@ -98,6 +96,10 @@ public function update(FormDataRequest $request, Template $table, TemplateItem $
$tableItem->server_properties = $fieldProperties->updateServerProperties($tableItem->type, $request);

$tableItem->save();

// Write changes to file
$table->exportToFile();

$response = new LayoutResponse();
$response->addAction(new Toast('Field properties updated'));
$response->addAction(new Redirect('/app/editor/page/'.$table->id.'/'));
Expand All @@ -122,6 +124,7 @@ public function enabled(Template $table, TemplateItem $tableItem)
} catch (\Exception $e) {
$response = ['error' => $e];
}
$table->exportToFile();

return $response;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
*/
class Template extends AssetModel
{
use Exchangeable;
use HasFactory;
use SoftDeletes;
use Exchangeable;

protected $table = 'cms_template';

Expand Down
2 changes: 1 addition & 1 deletion src/Services/CmsExchange/AbstractExchangeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function import(bool $debug = false, bool $dryRun = false): void
$this->debug = $debug;
$this->dryRun = $dryRun;
$this->runImport();
}
}

protected function debug($text, $force = false)
{
Expand Down

0 comments on commit 6164568

Please sign in to comment.