mirror of
https://github.com/Karaka-Management/oms-Support.git
synced 2026-01-11 00:58:41 +00:00
add css version
This commit is contained in:
parent
c01032c570
commit
3b3016de79
|
|
@ -355,14 +355,14 @@ final class Application
|
|||
private function initResponseHead(Head $head, HttpRequest $request, HttpResponse $response) : void
|
||||
{
|
||||
/* Load assets */
|
||||
$head->addAsset(AssetType::CSS, '../Resources/fonts/fontawesome/css/font-awesome.min.css');
|
||||
$head->addAsset(AssetType::CSS, '../Resources/fonts/Roboto/roboto.css');
|
||||
$head->addAsset(AssetType::CSS, '../Web/{APPNAME}/css/shop.css');
|
||||
$head->addAsset(AssetType::CSS, '../Resources/fonts/fontawesome/css/font-awesome.min.css?v=1.0.0');
|
||||
$head->addAsset(AssetType::CSS, '../Resources/fonts/Roboto/roboto.css?v=1.0.0');
|
||||
$head->addAsset(AssetType::CSS, '../Web/{APPNAME}/css/shop.css?v=1.0.0');
|
||||
|
||||
// Framework
|
||||
$head->addAsset(AssetType::JS, '../jsOMS/Utils/oLib.js');
|
||||
$head->addAsset(AssetType::JS, '../jsOMS/UnhandledException.js');
|
||||
$head->addAsset(AssetType::JS, '../Web/{APPNAME}/js/shop.js', ['type' => 'module']);
|
||||
$head->addAsset(AssetType::JS, '../jsOMS/Utils/oLib.js?v=1.0.0');
|
||||
$head->addAsset(AssetType::JS, '../jsOMS/UnhandledException.js?v=1.0.0');
|
||||
$head->addAsset(AssetType::JS, '../Web/{APPNAME}/js/shop.js?v=1.0.0', ['type' => 'module']);
|
||||
|
||||
$script = '';
|
||||
$response->header->set(
|
||||
|
|
@ -374,7 +374,7 @@ final class Application
|
|||
);
|
||||
|
||||
if ($request->hasData('debug')) {
|
||||
$head->addAsset(AssetType::CSS, 'cssOMS/debug.css');
|
||||
$head->addAsset(AssetType::CSS, 'cssOMS/debug.css?v=1.0.0');
|
||||
}
|
||||
|
||||
$css = \file_get_contents(__DIR__ . '/css/shop-small.css');
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ final class BackendController extends Controller
|
|||
public function viewSupportList(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : RenderableInterface
|
||||
{
|
||||
$head = $response->get('Content')->getData('head');
|
||||
$head->addAsset(AssetType::CSS, 'Modules/Tasks/Theme/Backend/css/styles.css');
|
||||
$head->addAsset(AssetType::CSS, 'Modules/Tasks/Theme/Backend/css/styles.css?v=1.0.0');
|
||||
|
||||
$view = new View($this->app->l11nManager, $request, $response);
|
||||
$view->setTemplate('/Modules/Support/Theme/Backend/support-list');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user