Skip to content

Commit

Permalink
Update composer, autoremove flash on live actions, fix archive check
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioMendolia committed Aug 29, 2023
1 parent 25182be commit 2ae6508
Show file tree
Hide file tree
Showing 8 changed files with 172 additions and 201 deletions.
16 changes: 0 additions & 16 deletions assets/controllers/hello_controller.js

This file was deleted.

29 changes: 29 additions & 0 deletions assets/controllers/inline-edit-controller.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { Controller } from '@hotwired/stimulus';
import { getComponent } from '@symfony/ux-live-component';

/*
* This is an example Stimulus controller!
*
* Any element with a data-controller="hello" attribute will cause
* this controller to be executed. The name "hello" comes from the filename:
* hello_controller.js -> "hello"
*
* Delete this file or adapt it for your use!
*/

export default class extends Controller {
async initialize() {
this.component = await getComponent(this.element);

this.component.on('render:finished', (component) => {

if(document.querySelector('.alert-remove')) {
setTimeout(function () {
document.querySelector('.alert-remove').remove();
}, 1000);
}

});
}

}
10 changes: 2 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"doctrine/orm": "^2.14",
"easycorp/easyadmin-bundle": "^4.7",
"gedmo/doctrine-extensions": "^3.11",
"kiwilan/php-ebook": "dev-main",
"kiwilan/php-ebook": "2.0.20",
"knplabs/knp-markdown-bundle": "^1.10",
"knplabs/knp-menu-bundle": "^3.2",
"knplabs/knp-paginator-bundle": "^6.2",
Expand Down Expand Up @@ -123,11 +123,5 @@
"phpstan/phpstan-strict-rules": "^1.0",
"phpstan/phpstan-doctrine": "^1.3",
"phpstan/phpstan-symfony": "^1.2"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/SergioMendolia/php-ebook"
}
]
}
}
Loading

0 comments on commit 2ae6508

Please sign in to comment.