-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a8936de
Showing
64 changed files
with
13,715 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# In all environments, the following files are loaded if they exist, | ||
# the latter taking precedence over the former: | ||
# | ||
# * .env contains default values for the environment variables needed by the app | ||
# * .env.local uncommitted file with local overrides | ||
# * .env.$APP_ENV committed environment-specific defaults | ||
# * .env.$APP_ENV.local uncommitted environment-specific overrides | ||
# | ||
# Real environment variables win over .env files. | ||
# | ||
# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES. | ||
# | ||
# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2). | ||
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration | ||
|
||
COMPOSE_PROJECT_NAME=orange | ||
|
||
###> symfony/framework-bundle ### | ||
APP_ENV=dev | ||
APP_SECRET=ed8bdbb29b45ab7823cdde4ef504d0a5 | ||
###< symfony/framework-bundle ### | ||
|
||
###> symfony/mailer ### | ||
# MAILER_DSN=smtp://localhost | ||
###< symfony/mailer ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/tools/php-cs-fixer/composer.json | ||
/tools/php-cs-fixer/composer.lock | ||
/tools/php-cs-fixer/vendor/ | ||
|
||
###> symfony/framework-bundle ### | ||
/.env.local | ||
/.env.local.php | ||
/.env.*.local | ||
/config/secrets/prod/prod.decrypt.private.php | ||
/public/bundles/ | ||
/var/ | ||
/vendor/ | ||
###< symfony/framework-bundle ### | ||
|
||
###> symfony/webpack-encore-bundle ### | ||
/node_modules/ | ||
/public/build/ | ||
npm-debug.log | ||
yarn-error.log | ||
###< symfony/webpack-encore-bundle ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2022 LongitudeOne | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Application Orange | ||
Template d'application Docker - PHP - PostGreSQL - SCSS - Bootstrap - Charte Cerema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* 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 SCSS you import will output into a single css file (app.scss in this case) | ||
import './styles/app.scss'; | ||
|
||
// start the Stimulus application | ||
import './bootstrap'; | ||
|
||
// start the Bootstrap template | ||
// this "modifies" the jquery module: adding behavior to it | ||
// the bootstrap module export now | ||
const bootstrap = require('bootstrap'); | ||
|
||
// and you can include specific pieces | ||
require('bootstrap/js/dist/tooltip'); | ||
require('bootstrap/js/dist/popover'); | ||
|
||
window.addEventListener('DOMContentLoaded', () => { | ||
|
||
//TODO TOOLTIP | ||
|
||
//POPOVER | ||
const popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]')) | ||
popoverTriggerList.map(function (popoverTriggerEl) { | ||
return new bootstrap.Popover(popoverTriggerEl) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { startStimulusApp } from '@symfony/stimulus-bridge'; | ||
|
||
// Registers Stimulus controllers from controllers.json and in the controllers/ directory | ||
export const app = startStimulusApp(require.context( | ||
'@symfony/stimulus-bridge/lazy-controller-loader!./controllers', | ||
true, | ||
/\.([jt])sx?$/ | ||
)); | ||
|
||
// register any custom, 3rd party controllers here | ||
// app.register('some_controller_name', SomeImportedController); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"controllers": [], | ||
"entrypoints": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
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'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
//"Pistache":["#B3C21A","#D0D774","#DDE19A","#E9EBC0"], | ||
//"Vert":["#5C962F","#8CB23D","#A2BE5E","#CEDAA9"], | ||
//"Pistache foncé":["#268966","#55B4A6","#9CCDC4","#BED6CC"], | ||
//"Bleu":["#1F6869","#289DB7","#7FBCD2","#C1D8E2"], | ||
//"Gris":["#464749","#808285","#BCBDC0","#E6E7E8"], | ||
//"Orange fonc\u00e9":["#E54719","#F58220","#FAB072","#FDC99B"]} | ||
$primary: #F58220; | ||
$secondary: #808285; | ||
$green: #D0D774; | ||
$blue: #289DB7; | ||
|
||
// Create your own map | ||
$custom-colors: ( | ||
"pistache": #D0D774, | ||
"pistachefonce": #55B4A6, | ||
"orange": #F58220, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
@import "colors"; | ||
@import "../../node_modules/bootstrap/scss/bootstrap"; | ||
|
||
//// 1. Include functions first (so you can manipulate colors, SVGs, calc, etc) | ||
//@import "../../node_modules/bootstrap/scss/functions"; | ||
// | ||
//// 2. Include any default variable overrides here | ||
//@import "colors"; | ||
// | ||
//// 3. Include remainder of required Bootstrap stylesheets | ||
//@import "../../node_modules/bootstrap/scss/variables"; | ||
//@import "../../node_modules/bootstrap/scss/mixins"; | ||
//@import "../../node_modules/bootstrap/scss/root"; | ||
// | ||
//// 4. Include any optional Bootstrap CSS as needed | ||
//@import "../../node_modules/bootstrap/scss/utilities"; | ||
//@import "../../node_modules/bootstrap/scss/reboot"; | ||
//@import "../../node_modules/bootstrap/scss/type"; | ||
//@import "../../node_modules/bootstrap/scss/images"; | ||
//@import "../../node_modules/bootstrap/scss/containers"; | ||
//@import "../../node_modules/bootstrap/scss/grid"; | ||
//@import "../../node_modules/bootstrap/scss/helpers"; | ||
// | ||
//// 5. Optionally include utilities API last to generate classes based on the Sass map in `_utilities.scss` | ||
//@import "../../node_modules/bootstrap/scss/utilities/api"; | ||
// | ||
//// 6. Add additional custom code here | ||
//// Merge the maps | ||
//$theme-colors: map-merge($theme-colors, $custom-colors); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@import 'themes'; | ||
@import 'fonts/my_fonts'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@import '~@fortawesome/fontawesome-free/scss/fontawesome'; | ||
@import '~@fortawesome/fontawesome-free/scss/brands'; | ||
@import '~@fortawesome/fontawesome-free/scss/regular'; | ||
@import '~@fortawesome/fontawesome-free/scss/solid'; | ||
@import '~@fortawesome/fontawesome-free/scss/v4-shims'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import "fontawesome"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
use App\Kernel; | ||
use Symfony\Bundle\FrameworkBundle\Console\Application; | ||
|
||
if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) { | ||
throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".'); | ||
} | ||
|
||
require_once dirname(__DIR__).'/vendor/autoload_runtime.php'; | ||
|
||
return function (array $context) { | ||
$kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']); | ||
|
||
return new Application($kernel); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
{ | ||
"type": "project", | ||
"license": "proprietary", | ||
"minimum-stability": "stable", | ||
"prefer-stable": true, | ||
"require": { | ||
"php": ">=8.0.2", | ||
"ext-ctype": "*", | ||
"ext-iconv": "*", | ||
"sensio/framework-extra-bundle": "^6.1", | ||
"symfony/asset": "6.0.*", | ||
"symfony/console": "6.0.*", | ||
"symfony/dotenv": "6.0.*", | ||
"symfony/flex": "^2", | ||
"symfony/form": "6.0.*", | ||
"symfony/framework-bundle": "6.0.*", | ||
"symfony/http-client": "6.0.*", | ||
"symfony/intl": "6.0.*", | ||
"symfony/mailer": "6.0.*", | ||
"symfony/mime": "6.0.*", | ||
"symfony/runtime": "6.0.*", | ||
"symfony/security-bundle": "6.0.*", | ||
"symfony/twig-bundle": "6.0.*", | ||
"symfony/webpack-encore-bundle": "^1.13", | ||
"symfony/yaml": "6.0.*", | ||
"twig/extra-bundle": "^2.12|^3.0", | ||
"twig/twig": "^2.12|^3.0" | ||
}, | ||
"require-dev": { | ||
"symfony/debug-bundle": "6.0.*", | ||
"symfony/maker-bundle": "^1.0", | ||
"symfony/monolog-bundle": "^3.0", | ||
"symfony/stopwatch": "6.0.*", | ||
"symfony/web-profiler-bundle": "6.0.*" | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"composer/package-versions-deprecated": true, | ||
"symfony/flex": true, | ||
"symfony/runtime": true | ||
}, | ||
"optimize-autoloader": true, | ||
"preferred-install": { | ||
"*": "dist" | ||
}, | ||
"sort-packages": true | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"App\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"App\\Tests\\": "tests/" | ||
} | ||
}, | ||
"replace": { | ||
"symfony/polyfill-ctype": "*", | ||
"symfony/polyfill-iconv": "*", | ||
"symfony/polyfill-php72": "*", | ||
"symfony/polyfill-php73": "*", | ||
"symfony/polyfill-php74": "*", | ||
"symfony/polyfill-php80": "*" | ||
}, | ||
"scripts": { | ||
"auto-scripts": { | ||
"cache:clear": "symfony-cmd", | ||
"assets:install %PUBLIC_DIR%": "symfony-cmd" | ||
}, | ||
"post-install-cmd": [ | ||
"@auto-scripts" | ||
], | ||
"post-update-cmd": [ | ||
"@auto-scripts" | ||
] | ||
}, | ||
"conflict": { | ||
"symfony/symfony": "*" | ||
}, | ||
"extra": { | ||
"symfony": { | ||
"allow-contrib": false, | ||
"require": "6.0.*" | ||
} | ||
} | ||
} |
Oops, something went wrong.