feat(controller): add post lists controller

This commit is contained in:
2024-08-03 10:47:43 +02:00
parent 58f43f096a
commit a99f6244b4
32 changed files with 8956 additions and 447 deletions

View File

@@ -1,4 +1,3 @@
import './bootstrap.js';
/*
* Welcome to your app's main JavaScript file!
*
@@ -6,5 +5,7 @@ import './bootstrap.js';
* which should already be in your base.html.twig.
*/
import './styles/app.css';
import './styles/global.scss';
console.log('This log comes from assets/app.js - welcome to AssetMapper! 🎉');
require('bootstrap');

5
assets/bootstrap.js vendored
View File

@@ -1,5 +0,0 @@
import { startStimulusApp } from '@symfony/stimulus-bundle';
const app = startStimulusApp();
// register any custom, 3rd party controllers here
// app.register('some_controller_name', SomeImportedController);

View File

@@ -1,15 +0,0 @@
{
"controllers": {
"@symfony/ux-turbo": {
"turbo-core": {
"enabled": true,
"fetch": "eager"
},
"mercure-turbo-stream": {
"enabled": false,
"fetch": "eager"
}
}
},
"entrypoints": []
}

View File

@@ -1,16 +0,0 @@
import { Controller } from '@hotwired/stimulus';
/*
* 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 {
connect() {
this.element.textContent = 'Hello Stimulus! Edit me in assets/controllers/hello_controller.js';
}
}

View File

@@ -1,3 +0,0 @@
body {
background-color: skyblue;
}

View File

@@ -0,0 +1,3 @@
$primary: darken(#66531e, 20%);
@import "~bootstrap/scss/bootstrap";

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

22
assets/vendor/installed.php vendored Normal file
View File

@@ -0,0 +1,22 @@
<?php return array (
'@hotwired/stimulus' =>
array (
'version' => '3.2.2',
'dependencies' =>
array (
),
'extraFiles' =>
array (
),
),
'@hotwired/turbo' =>
array (
'version' => '7.3.0',
'dependencies' =>
array (
),
'extraFiles' =>
array (
),
),
);