Replacing the logo, background and favicon¶
The images of the system are in the catalog react-resources/images
Replacing the logo¶
Logo name must be logoplatform-${theme}-${locale}.svg (and the same with .png).
theme may have dark (black bg) or light (white bg).
locale may have ru or en
runtime - you have to put your new image in a folder react-resources/images/logo.
compile - you must add the resource to the configuration file.
ASSETS:
- # all i18n localization
from: 'node_modules/@unidata/core-app/assets/locale-global'
to: 'react-resources/locale-global'
- # default images
from: 'node_modules/@unidata/app/assets/images'
to: 'react-resources/images'
# ADD NEW HERE
-
from: 'path/to/your/logos' # path to folder with logos
to: 'react-resources/images/logo'
force: 'true'
toType: 'dir'
Replacing the favicon¶
Имя favicon должно быть favicon.ico
Replacement options:
runtime - you have to put your new image in a folder react-resources/images.
compile - you must add the resource to the configuration file.
ASSETS:
- # all i18n localization
from: 'node_modules/@unidata/core-app/assets/locale-global'
to: 'react-resources/locale-global'
- # default images
from: 'node_modules/@unidata/app/assets/images'
to: 'react-resources/images'
# ADD NEW HERE
-
from: 'path/to/your/favicon' # path to folder with favicon
to: 'react-resources/images/favicon.ico'
force: 'true'
Replacing the background¶
The name of the login background image should be loginbackground.jpg
Replacement options:
runtime - you have to put your new image in a folder react-resources/images.
compile - you must add the resource to the configuration file.
ASSETS:
- # all i18n localization
from: 'node_modules/@unidata/core-app/assets/locale-global'
to: 'react-resources/locale-global'
- # default images
from: 'node_modules/@unidata/app/assets/images'
to: 'react-resources/images'
# ADD NEW HERE
-
from: 'path/to/your/bg_image' # path to folder with favicon
to: 'react-resources/images/loginbackground.jpg'
force: 'true'