Customisation: различия между версиями

Материал из WiKi - UserSide
([IronBot] Sync EN/UK localization from RU)
([IronBot] Sync EN localization from RU)
 
Строка 1: Строка 1:
'''en''' | [[Кастомізація|uk]] | [[Кастомизация|ru]]
'''en''' | [[Кастомізація|uk]] | [[Кастомизация|ru]]


The client can add its own JavaScripts to the system, as well as add its own css styles or re-assign existing ones.
The client can add custom JavaScript files to the system, add custom CSS styles, or override existing styles.


The files should be used for these purposes:
Use the following files for this:


For versions '''up to 3.19''':
For versions '''3.21 and later''':
 
/public/assets/js/client-custom.js
/public/assets/css/client-custom.css
 
For versions '''3.19-3.20''':
 
/public/main/js/user_script.js
/public/main/css/user_style.css
 
For versions '''earlier than 3.19''':


  /userside3/main/js/user_script.js
  /userside3/main/js/user_script.js
  /userside3/main/skins/user_style.css
  /userside3/main/skins/user_style.css


For versions '''3.19 and above''':
If these files do not exist, create them. They are not overwritten during updates.


/public/main/js/user_script.js
For version '''3.21 and later''', you can configure a custom logo on the login page:
/public/main/skins/user_style.css


If there are no such files, then create them. They are not overwritten during the update.
body#login_page {
    --login-client-slot-width: 320px;
    --login-client-slot-gap: 28px;
    --login-client-logo-height: 96px;
    --login-client-slot-mobile-gap: 14px;
}
#login_page_client_logo {
    background-image: url('../picture/client-login-logo.svg');
}

Текущая версия от 18:03, 16 сентября 2026

en | uk | ru

The client can add custom JavaScript files to the system, add custom CSS styles, or override existing styles.

Use the following files for this:

For versions 3.21 and later:

/public/assets/js/client-custom.js
/public/assets/css/client-custom.css

For versions 3.19-3.20:

/public/main/js/user_script.js
/public/main/css/user_style.css

For versions earlier than 3.19:

/userside3/main/js/user_script.js
/userside3/main/skins/user_style.css

If these files do not exist, create them. They are not overwritten during updates.

For version 3.21 and later, you can configure a custom logo on the login page:

body#login_page {
   --login-client-slot-width: 320px;
   --login-client-slot-gap: 28px;
   --login-client-logo-height: 96px;
   --login-client-slot-mobile-gap: 14px;
}

#login_page_client_logo {
   background-image: url('../picture/client-login-logo.svg');
}