Browse Source

add assets base url

develop
Simon Vieille 3 months ago
parent
commit
21b7863762
  1. 2
      .env
  2. 4
      assets/js/app/knmc.js
  3. BIN
      assets/webapp/android-icon-144x144.png
  4. BIN
      assets/webapp/android-icon-192x192.png
  5. BIN
      assets/webapp/android-icon-36x36.png
  6. BIN
      assets/webapp/android-icon-48x48.png
  7. BIN
      assets/webapp/android-icon-72x72.png
  8. BIN
      assets/webapp/android-icon-96x96.png
  9. BIN
      assets/webapp/apple-icon-114x114.png
  10. BIN
      assets/webapp/apple-icon-120x120.png
  11. BIN
      assets/webapp/apple-icon-144x144.png
  12. BIN
      assets/webapp/apple-icon-152x152.png
  13. BIN
      assets/webapp/apple-icon-180x180.png
  14. BIN
      assets/webapp/apple-icon-57x57.png
  15. BIN
      assets/webapp/apple-icon-60x60.png
  16. BIN
      assets/webapp/apple-icon-72x72.png
  17. BIN
      assets/webapp/apple-icon-76x76.png
  18. BIN
      assets/webapp/apple-icon-precomposed.png
  19. BIN
      assets/webapp/apple-icon.png
  20. BIN
      assets/webapp/apple-touch-icon.png
  21. BIN
      assets/webapp/favicon-16x16.png
  22. BIN
      assets/webapp/favicon-32x32.png
  23. BIN
      assets/webapp/favicon-96x96.png
  24. BIN
      assets/webapp/favicon.ico
  25. BIN
      assets/webapp/favicon.png
  26. 41
      assets/webapp/manifest.json
  27. BIN
      assets/webapp/ms-icon-144x144.png
  28. BIN
      assets/webapp/ms-icon-150x150.png
  29. BIN
      assets/webapp/ms-icon-310x310.png
  30. BIN
      assets/webapp/ms-icon-70x70.png
  31. 4
      config/packages/framework.yaml
  32. 1
      public/favicon.ico
  33. 1
      public/favicon.png
  34. 36
      templates/base.html.twig
  35. 2
      templates/blog/post/_post.html.twig
  36. 2
      templates/module/_navigation.html.twig

2
.env

@ -33,3 +33,5 @@ DATABASE_URL="postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVers
# Delivery is disabled by default via "null://localhost"
MAILER_URL=null://localhost
###< symfony/swiftmailer-bundle ###
ASSET_BASE_URL=null

4
assets/js/app/knmc.js

@ -1,3 +1,5 @@
const Mario = require('../../images/mario.gif')
const Knmc = function(w) {
this.window = w;
}
@ -12,7 +14,7 @@ Knmc.prototype.init = function() {
if (chars.indexOf(seq) !== -1) {
chars = '';
var url = '/bundles/deblanblog/skin2018/frontoffice/img/mario.gif';
var url = Mario;
var image = new Image();
image.classList.add('fixed');
image.style.position = 'fixed';

BIN
assets/webapp/android-icon-144x144.png

After

Width: 144  |  Height: 144  |  Size: 3.2 KiB

BIN
assets/webapp/android-icon-192x192.png

After

Width: 192  |  Height: 192  |  Size: 3.5 KiB

BIN
assets/webapp/android-icon-36x36.png

After

Width: 36  |  Height: 36  |  Size: 1.2 KiB

BIN
assets/webapp/android-icon-48x48.png

After

Width: 48  |  Height: 48  |  Size: 1.5 KiB

BIN
assets/webapp/android-icon-72x72.png

After

Width: 72  |  Height: 72  |  Size: 1.7 KiB

BIN
assets/webapp/android-icon-96x96.png

After

Width: 96  |  Height: 96  |  Size: 2.0 KiB

BIN
assets/webapp/apple-icon-114x114.png

After

Width: 114  |  Height: 114  |  Size: 2.1 KiB

BIN
assets/webapp/apple-icon-120x120.png

After

Width: 120  |  Height: 120  |  Size: 2.5 KiB

BIN
assets/webapp/apple-icon-144x144.png

After

Width: 144  |  Height: 144  |  Size: 3.2 KiB

BIN
assets/webapp/apple-icon-152x152.png

After

Width: 152  |  Height: 152  |  Size: 3.2 KiB

BIN
assets/webapp/apple-icon-180x180.png

After

Width: 180  |  Height: 180  |  Size: 4.3 KiB

BIN
assets/webapp/apple-icon-57x57.png

After

Width: 57  |  Height: 57  |  Size: 1.3 KiB

BIN
assets/webapp/apple-icon-60x60.png

After

Width: 60  |  Height: 60  |  Size: 1.5 KiB

BIN
assets/webapp/apple-icon-72x72.png

After

Width: 72  |  Height: 72  |  Size: 1.7 KiB

BIN
assets/webapp/apple-icon-76x76.png

After

Width: 76  |  Height: 76  |  Size: 1.6 KiB

BIN
assets/webapp/apple-icon-precomposed.png

After

Width: 192  |  Height: 192  |  Size: 4.1 KiB

BIN
assets/webapp/apple-icon.png

After

Width: 192  |  Height: 192  |  Size: 4.1 KiB

BIN
assets/webapp/apple-touch-icon.png

After

Width: 129  |  Height: 129  |  Size: 2.0 KiB

BIN
assets/webapp/favicon-16x16.png

After

Width: 16  |  Height: 16  |  Size: 1002 B

BIN
assets/webapp/favicon-32x32.png

After

Width: 32  |  Height: 32  |  Size: 1.3 KiB

BIN
assets/webapp/favicon-96x96.png

After

Width: 96  |  Height: 96  |  Size: 2.0 KiB

BIN
assets/webapp/favicon.ico

After

Width: 32  |  Height: 32  |  Size: 1.3 KiB

BIN
assets/webapp/favicon.png

After

Width: 32  |  Height: 32  |  Size: 1.3 KiB

41
assets/webapp/manifest.json

@ -0,0 +1,41 @@
{
"name": "Deblan - Blog",
"icons": [
{
"src": "\/android-icon-36x36.png",
"sizes": "36x36",
"type": "image\/png",
"density": "0.75"
},
{
"src": "\/android-icon-48x48.png",
"sizes": "48x48",
"type": "image\/png",
"density": "1.0"
},
{
"src": "\/android-icon-72x72.png",
"sizes": "72x72",
"type": "image\/png",
"density": "1.5"
},
{
"src": "\/android-icon-96x96.png",
"sizes": "96x96",
"type": "image\/png",
"density": "2.0"
},
{
"src": "\/android-icon-144x144.png",
"sizes": "144x144",
"type": "image\/png",
"density": "3.0"
},
{
"src": "\/android-icon-192x192.png",
"sizes": "192x192",
"type": "image\/png",
"density": "4.0"
}
]
}

BIN
assets/webapp/ms-icon-144x144.png

After

Width: 144  |  Height: 144  |  Size: 3.2 KiB

BIN
assets/webapp/ms-icon-150x150.png

After

Width: 150  |  Height: 150  |  Size: 3.3 KiB

BIN
assets/webapp/ms-icon-310x310.png

After

Width: 310  |  Height: 310  |  Size: 9.8 KiB

BIN
assets/webapp/ms-icon-70x70.png

After

Width: 70  |  Height: 70  |  Size: 1.6 KiB

4
config/packages/framework.yaml

@ -15,3 +15,7 @@ framework:
#fragments: true
php_errors:
log: true
assets:
base_urls:
- "%env(ASSET_BASE_URL)%"

1
public/favicon.ico

@ -0,0 +1 @@
../assets/webapp/favicon.ico

1
public/favicon.png

@ -0,0 +1 @@
../assets/webapp/favicon.png

36
templates/base.html.twig

@ -1,5 +1,3 @@
{% set assets_host = '' %}
<!DOCTYPE html>
<!--
_==/ i i \==_
@ -37,26 +35,26 @@ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
{#
<link rel="alternate" type="application/rss+xml" title="Flux RSS" href="https://{{ app.request.host ~ cms_path('rss') }}">
#}
<link rel="apple-touch-icon" sizes="57x57" href="{{ asset('apple-icon-57x57.png') }}?v={{ assets_cache_version }}">
<link rel="apple-touch-icon" sizes="60x60" href="{{ asset('apple-icon-60x60.png') }}?v={{ assets_cache_version }}0">
<link rel="apple-touch-icon" sizes="72x72" href="{{ asset('apple-icon-72x72.png') }}?v={{ assets_cache_version }}">
<link rel="apple-touch-icon" sizes="76x76" href="{{ asset('apple-icon-76x76.png') }}?v={{ assets_cache_version }}">
<link rel="apple-touch-icon" sizes="114x114" href="{{ asset('apple-icon-114x114.png') }}?v={{ assets_cache_version }}">
<link rel="apple-touch-icon" sizes="120x120" href="{{ asset('apple-icon-120x120.png') }}?v={{ assets_cache_version }}">
<link rel="apple-touch-icon" sizes="144x144" href="{{ asset('apple-icon-144x144.png') }}?v={{ assets_cache_version }}">
<link rel="apple-touch-icon" sizes="152x152" href="{{ asset('apple-icon-152x152.png') }}?v={{ assets_cache_version }}">
<link rel="apple-touch-icon" sizes="180x180" href="{{ asset('apple-icon-180x180.png') }}?v={{ assets_cache_version }}">
<link rel="icon" type="image/png" href="{{ asset('favicon.png') }}?v={{ assets_cache_version }}" >
<link rel="icon" type="image/png" sizes="192x192" href="{{ asset('android-icon-192x192.png') }}?v={{ assets_cache_version }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ asset('favicon.png') }}?v={{ assets_cache_version }}">
<link rel="icon" type="image/png" sizes="96x96" href="{{ asset('favicon-96x96.png') }}?v={{ assets_cache_version }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ asset('favicon-16x16.png') }}?v={{ assets_cache_version }}">
<link rel="manifest" href="{{ asset('manifest.json') }}?v={{ assets_cache_version }}">
<link rel="apple-touch-icon" sizes="57x57" href="{{ asset('build/webapp/apple-icon-57x57.png') }}">
<link rel="apple-touch-icon" sizes="60x60" href="{{ asset('build/webapp/apple-icon-60x60.png') }}">
<link rel="apple-touch-icon" sizes="72x72" href="{{ asset('build/webapp/apple-icon-72x72.png') }}">
<link rel="apple-touch-icon" sizes="76x76" href="{{ asset('build/webapp/apple-icon-76x76.png') }}">
<link rel="apple-touch-icon" sizes="114x114" href="{{ asset('build/webapp/apple-icon-114x114.png') }}">
<link rel="apple-touch-icon" sizes="120x120" href="{{ asset('build/webapp/apple-icon-120x120.png') }}">
<link rel="apple-touch-icon" sizes="144x144" href="{{ asset('build/webapp/apple-icon-144x144.png') }}">
<link rel="apple-touch-icon" sizes="152x152" href="{{ asset('build/webapp/apple-icon-152x152.png') }}">
<link rel="apple-touch-icon" sizes="180x180" href="{{ asset('build/webapp/apple-icon-180x180.png') }}">
<link rel="icon" type="image/png" href="{{ asset('build/webapp/favicon.png') }}" >
<link rel="icon" type="image/png" sizes="192x192" href="{{ asset('build/webapp/android-icon-192x192.png') }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ asset('build/webapp/favicon.png') }}">
<link rel="icon" type="image/png" sizes="96x96" href="{{ asset('build/webapp/favicon-96x96.png') }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ asset('build/webapp/favicon-16x16.png') }}">
<link rel="manifest" href="{{ asset('build/webapp/manifest.json') }}">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="{{ asset('ms-icon-144x144.png') }}?v={{ assets_cache_version }}">
<meta name="msapplication-TileImage" content="{{ asset('build/webapp/ms-icon-144x144.png') }}">
<meta name="theme-color" content="#ffffff">
#}
</head>
<body>
<div class="page" data-grid="va-stretch">

2
templates/blog/post/_post.html.twig

@ -18,7 +18,7 @@
{% elseif post.quickImage %}
<div class="quick-image">
<a href="{{ url }}" target="_blank">
<img src="{{ assets_host ~ asset('build/images/px.png') }}" data-src="{{ image }}" alt="{{ title }}" title="{{ title }}">
<img src="{{ asset('build/images/px.png') }}" data-src="{{ image }}" alt="{{ title }}" title="{{ title }}">
</a>
</div>
{% endif %}

2
templates/module/_navigation.html.twig

@ -43,7 +43,7 @@
</div>
<div class="small-menu hidden-large hidden-medium visible-small">
<a href="{{ safe_path('posts') }}">
<img src="{{ assets_host ~ asset('build/images/logo-small.png') }}" class="fixed" alt="Deblan blog">
<img src="{{ asset('build/images/logo-small.png') }}" class="fixed" alt="Deblan blog">
</a>
<nav class="navigation push-right">

Loading…
Cancel
Save