[FIX] Default theme

This commit is contained in:
1day2die 2023-01-30 09:43:13 +01:00
parent 7cdf9c6c93
commit 9cd65a3f02
17 changed files with 112 additions and 16847 deletions

220
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -14,7 +14,6 @@
"resolve-url-loader": "^3.1.2", "resolve-url-loader": "^3.1.2",
"sass": "^1.32.1", "sass": "^1.32.1",
"sass-loader": "^10.1.1" "sass-loader": "^10.1.1"
}, },
"dependencies": { "dependencies": {
"tinymce": "^6.3.1", "tinymce": "^6.3.1",

View file

@ -1,7 +1,7 @@
{ {
"resources/sass/app.scss": { "themes/default/sass/app.scss": {
"file": "assets/app-bac23d88.css", "file": "assets/app-bac23d88.css",
"src": "resources/sass/app.scss", "src": "themes/default/sass/app.scss",
"isEntry": true "isEntry": true
} }
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,21 +0,0 @@
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-thumb {
background: #3A4047;
border-radius: 9px;
}
::-webkit-scrollbar-thumb:hover{
background: #2E3339;
}
::-webkit-scrollbar-track{
background: #343a40;
border-radius: 10px;
box-shadow: inset 7px 10px 12px #343a40;
}
.nav-link>span,
.nav-link {
display: flex;
align-items: center;
}

2733
resources/js/adminlte.js vendored

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

6
resources/js/app.js vendored
View file

@ -1,6 +0,0 @@
require('./adminlte');
require('./slim.kickstart.min')
require('./bootstrap');

View file

@ -1,41 +0,0 @@
// window._ = require('lodash');
/**
* We'll load jQuery and the Bootstrap jQuery plugin which provides support
* for JavaScript based Bootstrap features such as modals and tabs. This
* code may be modified to fit the specific needs of your application.
*/
try {
window.Popper = require('popper.js').default;
window.$ = window.jQuery = require('jquery');
require('bootstrap');
} catch (e) {}
/**
* We'll load the axios HTTP library which allows us to easily issue requests
* to our Laravel back-end. This library automatically handles sending the
* CSRF token as a header based on the value of the "XSRF" token cookie.
*/
window.axios = require('axios');
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
/**
* Echo exposes an expressive API for subscribing to channels and listening
* for events that are broadcast by Laravel. Echo and event broadcasting
* allows your team to easily build robust real-time web applications.
*/
// import Echo from 'laravel-echo';
// window.Pusher = require('pusher-js');
// window.Echo = new Echo({
// broadcaster: 'pusher',
// key: process.env.MIX_PUSHER_APP_KEY,
// cluster: process.env.MIX_PUSHER_APP_CLUSTER,
// forceTLS: true
// });

10872
resources/js/jquery.js vendored

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,19 +0,0 @@
// Body
$body-bg: #f8fafc;
// Typography
$font-family-sans-serif: 'Nunito', sans-serif;
$font-size-base: 0.9rem;
$line-height-base: 1.6;
// Colors
$blue: #3490dc;
$indigo: #6574cd;
$purple: #9561e2;
$pink: #f66d9b;
$red: #e3342f;
$orange: #f6993f;
$yellow: #ffed4a;
$green: #38c172;
$teal: #4dc0b5;
$cyan: #6cb2eb;

View file

@ -1,7 +0,0 @@
// Fonts
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback");
// Bootstrap
@import "../css/stylesheet.css";
@import "../css/adminlte.min.css";
@import "../css/slim.min.css";

View file

@ -30,7 +30,7 @@
@if (config('SETTINGS::RECAPTCHA:ENABLED') == 'true') @if (config('SETTINGS::RECAPTCHA:ENABLED') == 'true')
{!! htmlScriptTagJsApi() !!} {!! htmlScriptTagJsApi() !!}
@endif @endif
@vite('resources/sass/app.scss') @vite('themes/default/sass/app.scss')
</head> </head>
@yield('content') @yield('content')

View file

@ -37,7 +37,7 @@
<script src="{{ asset('js/app.js') }}"></script> <script src="{{ asset('js/app.js') }}"></script>
<!-- tinymce --> <!-- tinymce -->
<script src={{ asset('plugins/tinymce/js/tinymce/tinymce.min.js') }}></script> <script src={{ asset('plugins/tinymce/js/tinymce/tinymce.min.js') }}></script>
@vite('resources/sass/app.scss') @vite('themes/default/sass/app.scss')
</head> </head>
<body class="sidebar-mini layout-fixed dark-mode" style="height: auto;"> <body class="sidebar-mini layout-fixed dark-mode" style="height: auto;">

37
themes/default/vite.config.js vendored Normal file
View file

@ -0,0 +1,37 @@
import { defineConfig } from "vite";
import laravel from "laravel-vite-plugin";
import path from "path";
export default defineConfig({
plugins: [
laravel({
input: [
"themes/default/sass/app.scss",
"themes/default/js/app.js"
],
buildDirectory: "build",
}),
{
name: "blade",
handleHotUpdate({ file, server }) {
if (file.endsWith(".blade.php")) {
server.ws.send({
type: "full-reload",
path: "*",
});
}
},
},
],
resolve: {
alias: {
'@': '/themes/default/js',
'~bootstrap': path.resolve('node_modules/bootstrap'),
}
},
});