Remove all-js and all-css

This commit is contained in:
DariusIII
2025-10-05 18:31:25 +02:00
parent 171e42f671
commit a61b2e3803
7 changed files with 107 additions and 12 deletions
+70
View File
@@ -1,3 +1,73 @@
/* Import FontAwesome */
@import '@fortawesome/fontawesome-free/css/all.min.css';
/* Import other necessary libraries */
@import 'animate.css/animate.min.css';
@import 'datatables/media/css/jquery.dataTables.min.css';
@tailwind base;
@tailwind components;
@tailwind utilities;
/* Custom styles for proper spacing and button alignment */
.btn {
@apply inline-flex items-center justify-center px-4 py-2 border rounded-md font-semibold text-sm transition-colors duration-150;
}
.btn i {
@apply mr-2;
}
.btn-primary {
@apply bg-blue-600 text-white border-blue-600 hover:bg-blue-700;
}
.btn-secondary {
@apply bg-gray-600 text-white border-gray-600 hover:bg-gray-700;
}
.btn-success {
@apply bg-green-600 text-white border-green-600 hover:bg-green-700;
}
.btn-danger {
@apply bg-red-600 text-white border-red-600 hover:bg-red-700;
}
.btn-warning {
@apply bg-yellow-500 text-white border-yellow-500 hover:bg-yellow-600;
}
.btn-info {
@apply bg-cyan-600 text-white border-cyan-600 hover:bg-cyan-700;
}
.btn-sm {
@apply px-3 py-1 text-xs;
}
.btn-lg {
@apply px-6 py-3 text-base;
}
/* Button group spacing */
.btn-group {
@apply inline-flex space-x-2;
}
/* Icon spacing */
.fas, .far, .fab, .fa {
@apply inline-block;
min-width: 1em;
text-align: center;
}
/* Table action buttons */
.table-actions {
@apply flex items-center gap-2;
}
.table-actions .btn {
@apply flex-shrink-0;
}
+27
View File
@@ -1 +1,28 @@
import './bootstrap';
// Import jQuery and make it globally available
import $ from 'jquery';
window.$ = window.jQuery = $;
// Import Bootstrap JS
import 'bootstrap';
// Import FontAwesome
import '@fortawesome/fontawesome-free/js/all.min.js';
// Import DataTables
import 'datatables';
// Import other necessary libraries
import autosize from 'autosize';
window.autosize = autosize;
// Initialize autosize on page load
document.addEventListener('DOMContentLoaded', function() {
// Auto-resize textareas
const textareas = document.querySelectorAll('textarea[data-autosize]');
if (textareas.length > 0) {
autosize(textareas);
}
});
-2
View File
@@ -10,7 +10,6 @@
<meta name="description" content="{{ $meta_description ?? 'Admin panel' }}">
<!-- Styles -->
<link href="{{ asset('assets/css/all-css.css') }}" rel="stylesheet">
@vite(['resources/css/app.css', 'resources/js/app.js'])
@stack('styles')
</head>
@@ -72,7 +71,6 @@
</div>
<!-- Scripts -->
<script src="{{ asset('assets/js/all-js.js') }}"></script>
@stack('scripts')
</body>
</html>
+1 -4
View File
@@ -9,15 +9,12 @@
<title>{{ config('app.name', 'Laravel') }}</title>
<!-- Scripts -->
<script src="{{ asset('/assets/js/all-js.js') }}" defer></script>
<!-- Fonts -->
<link rel="dns-prefetch" href="//fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
<!-- Styles -->
<link href="{{ asset('assets/css/all-css.css') }}" rel="stylesheet">
@vite(['resources/css/app.css', 'resources/js/app.js'])
</head>
<body>
<div id="app">
-2
View File
@@ -8,7 +8,6 @@
<title>{{ config('app.name') }}</title>
<!-- Styles -->
<link href="{{ asset('assets/css/all-css.css') }}" rel="stylesheet">
@vite(['resources/css/app.css', 'resources/js/app.js'])
@stack('styles')
</head>
@@ -16,7 +15,6 @@
@yield('content')
<!-- Scripts -->
<script src="{{ asset('assets/js/all-js.js') }}"></script>
@stack('scripts')
</body>
</html>
-3
View File
@@ -11,7 +11,6 @@
<meta name="description" content="{{ $meta_description ?? '' }}">
<!-- Styles -->
<link href="{{ asset('assets/css/all-css.css') }}" rel="stylesheet">
@vite(['resources/css/app.css', 'resources/js/app.js'])
@stack('styles')
</head>
@@ -79,8 +78,6 @@
</div>
<!-- Scripts -->
<script src="{{ asset('assets/js/all-js.js') }}"></script>
<!-- Toast Notifications (must load before other scripts) -->
@include('partials.toast-notifications')
+9 -1
View File
@@ -18,7 +18,14 @@ mix
.copyDirectory('node_modules/tinymce/icons/', 'public/assets/js/icons/')
.copyDirectory('vendor/bhuvidya/laravel-countries/flags/', 'public/assets/images/flags/')
.copy('node_modules/icheck/skins/flat/green.png', 'public/assets/css/green.png')
.copy('node_modules/icheck/skins/flat/green@2x.png', 'public/assets/css/green@2x.png')
.copy('node_modules/icheck/skins/flat/green@2x.png', 'public/assets/css/green@2x.png');
/*
* Legacy Smarty template assets - DISABLED
* Now using Vite with Tailwind CSS instead
* These bundled assets are no longer needed as we're using Vite for asset management
*/
/*
.styles(
[
'node_modules/bootstrap/dist/css/bootstrap.min.css',
@@ -66,3 +73,4 @@ mix
'resources/assets/js/functions.js'
]
, 'public/assets/js/all-js.js');
*/