From acec1640410013525f5fcfae2f4f24881a31e695 Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 9 Jan 2024 22:11:15 +0200 Subject: [PATCH] init master server configuration --- .env | 5 ++++- config/packages/twig.yaml | 1 + config/services.yaml | 1 + public/css/default.css | 12 ++++++++++++ templates/default/layout.html.twig | 16 +++++++++++----- 5 files changed, 29 insertions(+), 6 deletions(-) diff --git a/.env b/.env index 4b75519..8fa0aed 100644 --- a/.env +++ b/.env @@ -43,7 +43,7 @@ MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0 # HLState # Application version, used for API and media cache -APP_VERSION="1.1.0" +APP_VERSION="1.2.0" # Application name APP_NAME="HLState" @@ -56,6 +56,9 @@ APP_META_KEYWORDS="Half-Life, HLState, YGGverse, Servers, Stats, Online, Analyti # Application template APP_THEME="default" +# Masters list, server:port comma separated +APP_MASTERS="" + # Servers registry, URL or filepath # https://github.com/YGGverse/HLServers APP_HLSERVERS="https://raw.githubusercontent.com/YGGverse/HLServers/main/config.json" diff --git a/config/packages/twig.yaml b/config/packages/twig.yaml index 0eaa287..c1063b0 100644 --- a/config/packages/twig.yaml +++ b/config/packages/twig.yaml @@ -5,6 +5,7 @@ twig: version: '%app.version%' name: '%app.name%' theme: '%app.theme%' + masters: '%app.masters%' meta: title: '%env(APP_META_TITLE)%' description: '%env(APP_META_DESCRIPTION)%' diff --git a/config/services.yaml b/config/services.yaml index ee66304..1427a23 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -7,6 +7,7 @@ parameters: app.version: '%env(APP_VERSION)%' app.name: '%env(APP_NAME)%' app.theme: '%env(APP_THEME)%' + app.masters: '%env(APP_MASTERS)%' app.hlservers: '%env(APP_HLSERVERS)%' app.meta.title: '%env(APP_META_TITLE)%' app.meta.description: '%env(APP_META_DESCRIPTION)%' diff --git a/public/css/default.css b/public/css/default.css index 1b8b74a..da94ab1 100644 --- a/public/css/default.css +++ b/public/css/default.css @@ -102,6 +102,8 @@ footer display: block; margin: 16px auto; max-width: var(--container-max-width); + overflow: hidden; + position: relative; } /* framework */ @@ -167,6 +169,16 @@ a.color-default:visited text-align: right; } +.float-left +{ + float: left; +} + +.float-right +{ + float: right; +} + .border-default { border: 1px var(--color-default) solid; diff --git a/templates/default/layout.html.twig b/templates/default/layout.html.twig index 8ab9f4d..830a961 100644 --- a/templates/default/layout.html.twig +++ b/templates/default/layout.html.twig @@ -31,12 +31,18 @@ {% block footer_container %} {% endblock %}