mirror of
https://github.com/Karaka-Management/oms-Shop.git
synced 2026-01-11 18:48:41 +00:00
add css version
This commit is contained in:
parent
b339b318d9
commit
58cb666ab0
|
|
@ -355,14 +355,14 @@ final class Application
|
||||||
private function initResponseHead(Head $head, HttpRequest $request, HttpResponse $response) : void
|
private function initResponseHead(Head $head, HttpRequest $request, HttpResponse $response) : void
|
||||||
{
|
{
|
||||||
/* Load assets */
|
/* Load assets */
|
||||||
$head->addAsset(AssetType::CSS, '../Resources/fonts/fontawesome/css/font-awesome.min.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');
|
$head->addAsset(AssetType::CSS, '../Resources/fonts/Roboto/roboto.css?v=1.0.0');
|
||||||
$head->addAsset(AssetType::CSS, '../Web/{APPNAME}/css/shop.css');
|
$head->addAsset(AssetType::CSS, '../Web/{APPNAME}/css/shop.css?v=1.0.0');
|
||||||
|
|
||||||
// Framework
|
// Framework
|
||||||
$head->addAsset(AssetType::JS, '../jsOMS/Utils/oLib.js');
|
$head->addAsset(AssetType::JS, '../jsOMS/Utils/oLib.js?v=1.0.0');
|
||||||
$head->addAsset(AssetType::JS, '../jsOMS/UnhandledException.js');
|
$head->addAsset(AssetType::JS, '../jsOMS/UnhandledException.js?v=1.0.0');
|
||||||
$head->addAsset(AssetType::JS, '../Web/{APPNAME}/js/shop.js', ['type' => 'module']);
|
$head->addAsset(AssetType::JS, '../Web/{APPNAME}/js/shop.js?v=1.0.0', ['type' => 'module']);
|
||||||
|
|
||||||
$script = '';
|
$script = '';
|
||||||
$response->header->set(
|
$response->header->set(
|
||||||
|
|
@ -374,7 +374,7 @@ final class Application
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($request->hasData('debug')) {
|
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');
|
$css = \file_get_contents(__DIR__ . '/css/shop-small.css');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user