- Basic HTML templates
- Created entities & new migration - Added packages symfony/stimulus-bundle & symfony/webpack-encore-bundle
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import './bootstrap.js';
|
||||
/*
|
||||
* 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.scss';
|
||||
|
||||
require('fontawesome-free/js/all.js');
|
||||
|
||||
import * as mdb from 'mdb-ui-kit'; // lib
|
||||
import { Input } from 'mdb-ui-kit'; // module
|
||||
|
||||
const $ = require('jquery');
|
||||
// this "modifies" the jquery module: adding behavior to it
|
||||
// the bootstrap module doesn't export/return anything
|
||||
require('bootstrap');
|
||||
|
||||
// or you can include specific pieces
|
||||
// require('bootstrap/js/dist/tooltip');
|
||||
// require('bootstrap/js/dist/popover');
|
||||
|
||||
$(document).ready(function() {
|
||||
$('[data-toggle="popover"]').popover();
|
||||
});
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
// assets/bootstrap.js
|
||||
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,
|
||||
/\.(j|t)sx?$/
|
||||
));
|
||||
|
||||
// register any custom, 3rd party controllers here
|
||||
// app.register('some_controller_name', SomeImportedController);
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"controllers": [],
|
||||
"entrypoints": []
|
||||
}
|
||||
@@ -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';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
body {
|
||||
background-color: lightgray;
|
||||
}
|
||||
|
||||
// customize some Bootstrap variables
|
||||
$primary: darken(#428bca, 20%);
|
||||
|
||||
// the ~ allows you to reference things in node_modules
|
||||
@import "~bootstrap/scss/bootstrap";
|
||||
@import '~mdb-ui-kit/css/mdb.min.css';
|
||||
|
||||
// importing core styling file
|
||||
@import "~fontawesome-free/scss/fontawesome.scss";
|
||||
|
||||
// our project needs Classic Solid, Brands, and Sharp Solid
|
||||
@import "~fontawesome-free/scss/solid.scss";
|
||||
@import "~fontawesome-free/scss/brands.scss";
|
||||
@import "~fontawesome-free/scss/regular.scss";
|
||||
|
||||
/* for login page */
|
||||
.gradient-custom {
|
||||
/* fallback for old browsers */
|
||||
background: #6a11cb;
|
||||
|
||||
/* Chrome 10-25, Safari 5.1-6 */
|
||||
background: -webkit-linear-gradient(to right, rgba(106, 17, 203, 1), rgba(37, 117, 252, 1));
|
||||
|
||||
/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
|
||||
background: linear-gradient(to right, rgba(106, 17, 203, 1), rgba(37, 117, 252, 1))
|
||||
}
|
||||
|
||||
@media (min-width: 991.98px) {
|
||||
main {
|
||||
padding-left: 240px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Sidebar */
|
||||
.sidebar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
padding: 58px 0 0; /* Height of navbar */
|
||||
box-shadow: 0 2px 5px 0 rgb(0 0 0 / 5%), 0 2px 10px 0 rgb(0 0 0 / 5%);
|
||||
width: 240px;
|
||||
z-index: 600;
|
||||
}
|
||||
|
||||
@media (max-width: 991.98px) {
|
||||
.sidebar {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
.sidebar .active {
|
||||
border-radius: 5px;
|
||||
box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
|
||||
}
|
||||
|
||||
.sidebar-sticky {
|
||||
position: relative;
|
||||
top: 0;
|
||||
height: calc(100vh - 48px);
|
||||
padding-top: 0.5rem;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
|
||||
}
|
||||
Reference in New Issue
Block a user