mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 17:15:51 +02:00
Updated symfony recipes.
This commit is contained in:
parent
f20f1ffa13
commit
0da879347d
9 changed files with 60 additions and 11 deletions
12
assets/app.js
Normal file
12
assets/app.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
/*
|
||||
* Welcome to your app's main JavaScript file!
|
||||
*
|
||||
* We recommend including the built version of this JavaScript file
|
||||
* (and its CSS file) in your base layout (base.html.twig).
|
||||
*/
|
||||
|
||||
// any CSS you import will output into a single css file (app.css in this case)
|
||||
import './styles/app.css';
|
||||
|
||||
// start the Stimulus application
|
||||
import './bootstrap';
|
5
assets/bootstrap.js
vendored
Normal file
5
assets/bootstrap.js
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
import { startStimulusApp } from '@symfony/stimulus-bridge';
|
||||
import '@symfony/autoimport';
|
||||
|
||||
// Registers Stimulus controllers from controllers.json and in the controllers/ directory
|
||||
export const app = startStimulusApp(require.context('./controllers', true, /\.(j|t)sx?$/));
|
4
assets/controllers.json
Normal file
4
assets/controllers.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"controllers": [],
|
||||
"entrypoints": []
|
||||
}
|
16
assets/controllers/hello_controller.js
Normal file
16
assets/controllers/hello_controller.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
import { Controller } from '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';
|
||||
}
|
||||
}
|
3
assets/styles/app.css
Normal file
3
assets/styles/app.css
Normal file
|
@ -0,0 +1,3 @@
|
|||
body {
|
||||
background-color: lightgray;
|
||||
}
|
|
@ -17,4 +17,4 @@ framework:
|
|||
doctrine.result_cache_pool:
|
||||
adapter: cache.app
|
||||
doctrine.system_cache_pool:
|
||||
adapter: cache.system
|
||||
adapter: cache.system
|
||||
|
|
5
config/preload.php
Normal file
5
config/preload.php
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?php
|
||||
|
||||
if (file_exists(dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php')) {
|
||||
require dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php';
|
||||
}
|
|
@ -1,3 +1,3 @@
|
|||
_translation_edit_in_place:
|
||||
resource: '@TranslationBundle/Resources/config/routing_edit_in_place.yaml'
|
||||
prefix: /admin
|
||||
prefix: /admin
|
||||
|
|
22
symfony.lock
22
symfony.lock
|
@ -74,7 +74,7 @@
|
|||
"repo": "github.com/symfony/recipes",
|
||||
"branch": "master",
|
||||
"version": "2.0",
|
||||
"ref": "a9f2463b9f73efe74482f831f03a204a41328555"
|
||||
"ref": "368794356c1fb634e58b38ad2addb36933f2e73e"
|
||||
},
|
||||
"files": [
|
||||
"./config/packages/doctrine.yaml",
|
||||
|
@ -89,7 +89,7 @@
|
|||
"repo": "github.com/symfony/recipes",
|
||||
"branch": "master",
|
||||
"version": "3.0",
|
||||
"ref": "fc52d86631a6dfd9fdf3381d0b7e3df2069e51b3"
|
||||
"ref": "e5b542d4ef47d8a003c91beb35650c76907f7e53"
|
||||
},
|
||||
"files": [
|
||||
"./src/DataFixtures/AppFixtures.php"
|
||||
|
@ -328,7 +328,7 @@
|
|||
"repo": "github.com/symfony/recipes-contrib",
|
||||
"branch": "master",
|
||||
"version": "0.10",
|
||||
"ref": "7626dc2639039d9db29789b560171f2f2a9d8468"
|
||||
"ref": "5c712c2758c3cccb964713f0061493b8ce2dd430"
|
||||
},
|
||||
"files": [
|
||||
"./config/packages/dev/php_translation.yaml",
|
||||
|
@ -567,17 +567,18 @@
|
|||
"version": "v4.2.3"
|
||||
},
|
||||
"symfony/framework-bundle": {
|
||||
"version": "5.1",
|
||||
"version": "5.2",
|
||||
"recipe": {
|
||||
"repo": "github.com/symfony/recipes",
|
||||
"branch": "master",
|
||||
"version": "5.1",
|
||||
"ref": "ffcb76bab779154c0a7d8cddb9f448c2c45a4e50"
|
||||
"version": "5.2",
|
||||
"ref": "6ec87563dcc85cd0c48856dcfbfc29610506d250"
|
||||
},
|
||||
"files": [
|
||||
"./config/packages/cache.yaml",
|
||||
"./config/packages/framework.yaml",
|
||||
"./config/packages/test/framework.yaml",
|
||||
"./config/preload.php",
|
||||
"./config/routes/dev/framework.yaml",
|
||||
"./config/services.yaml",
|
||||
"./public/index.php",
|
||||
|
@ -842,11 +843,14 @@
|
|||
"repo": "github.com/symfony/recipes",
|
||||
"branch": "master",
|
||||
"version": "1.6",
|
||||
"ref": "69e1d805ad95964088bd510c05995e87dc391564"
|
||||
"ref": "f362ed8e8aa99a8cb216e6bdb2ac833dfb7643dd"
|
||||
},
|
||||
"files": [
|
||||
"./assets/css/app.css",
|
||||
"./assets/js/app.js",
|
||||
"./assets/app.js",
|
||||
"./assets/bootstrap.js",
|
||||
"./assets/controllers.json",
|
||||
"./assets/controllers/hello_controller.js",
|
||||
"./assets/styles/app.css",
|
||||
"./config/packages/assets.yaml",
|
||||
"./config/packages/prod/webpack_encore.yaml",
|
||||
"./config/packages/test/webpack_encore.yaml",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue