WebUI Vue
The Vue-based WebUI lives in webui-vue/ and is currently documented as
a technical preview that exists in parallel with the classic PHP-based WebUI
in webui/.
Coexistence model
The repository currently contains two different WebUI implementations:
webui/for the classic PHP-based WebUIwebui-vue/for the Vue-based technical preview
Documentation, packaging, and operational guidance should reflect that both variants currently coexist. Changes to the Vue WebUI should not implicitly assume that it has already replaced the classic WebUI everywhere.
Repository layout
The most relevant parts of the Vue WebUI are:
webui-vue/src/for the application sourcewebui-vue/src/pages/for page-level route componentswebui-vue/src/components/for reusable UI componentswebui-vue/src/composables/for shared page and data-loading logicwebui-vue/src/stores/for Pinia storeswebui-vue/src/generated/for generated version and translation datawebui-vue/tests/unit/for unit testswebui-vue/tests/e2e/for Playwright-based end-to-end tests
Build and installation
The installable SPA bundle is generated from the repository root with:
cmake --build <builddir> --target bareos-webui-vue-build
The build logic is implemented in:
webui-vue/CMakeLists.txtwebui-vue/build-dist.cmake
The installed Apache configuration is generated from:
webui-vue/install/apache/bareos-webui-new.conf.in
The SPA is installed below $CMAKE_INSTALL_FULL_DATAROOTDIR/bareos-webui-new
and exposed by Apache below /bareos-webui-new.
Runtime architecture
Unlike the classic PHP WebUI, the Vue WebUI does not talk to the Director through PHP. Instead it uses bareos-webui-proxy for both HTTP session handling and WebSocket-based director communication.
The default Apache configuration:
serves the SPA from
/bareos-webui-newrewrites SPA routes back to
index.htmlproxies
/wsto bareos-webui-proxy on port 9104proxies
/api/to bareos-webui-proxy on port 9104
The HTTP side currently provides the session endpoints
/api/session, /api/session/login, and
/api/session/logout.
The WebSocket side is then used for the live director connection once the
session has been established.
The proxy configuration behavior is:
without
--config, it first tries/etc/bareos-webui-proxy/bareos-webui-proxy.iniif that file is missing, it uses built-in defaults
with explicit
--config, the specified file is required
The default configuration template is installed as
bareos-webui-proxy.ini in $configtemplatedir.
Testing
Typical local validation commands are:
cd webui-vue && npm run build
cd webui-vue && npm run test:unit
ctest --test-dir cmake-build --output-on-failure -R '^webui-vue:'
The browser-based system tests use the shared WebUI Vue test setup under:
systemtests/tests/webui-vue-common/
Translations
The Vue WebUI uses independent, flat JSON translation catalogs that are loaded directly by Vue I18n. They are stored in:
webui-vue/src/i18n/locales/locales.jsonfor the locale listwebui-vue/src/i18n/locales/en_EN.jsonfor the English source termswebui-vue/src/i18n/locales/<locale>.jsonfor translations
The English message is also the stable key, for example:
{
"Log in": "Anmelden",
"Password": "Passwort"
}
This keeps calls such as t('Log in') readable and matches the term model
used by the existing WebUI POEditor project. Empty translations are ignored
at runtime and fall back to English.
Adding or changing translatable text
Literal calls to t('…') and translate('…') are extracted
automatically. Text stored in data and translated later through
t(value) must be marked where it is defined:
import { messageId } from '../i18n/messageId.js'
const action = {
label: messageId('Run action'),
}
After changing translatable source text, update and check the catalogs:
cd webui-vue
npm run update:i18n
npm run check:i18n
update:i18n adds new keys, removes keys no longer used by Vue, preserves
existing translations and sorts every catalog. check:i18n makes no
changes and verifies source synchronization, locale parity, JSON value
types and interpolation placeholders such as {count}.
Translating with POEditor
The existing Bareos WebUI project is continued for the Vue WebUI: https://poeditor.com/join/project/ELnLNbvQJb.
The Bareos team maintains the project as follows:
Run
npm run update:i18n.Import
en_EN.jsoninto POEditor as Key-Value JSON and synchronize the project terms, removing terms which are no longer present.Export each language as Key-Value JSON to its corresponding file in
webui-vue/src/i18n/locales/.Run
npm run update:i18nto add any untranslated keys omitted by the export, then runnpm run check:i18nand the unit tests before committing.
When the project was converted to Vue JSON, matching translations were seeded once from the classic PHP WebUI catalogs. PHP-only terms were not copied. The Vue translation scripts and runtime do not depend on the classic WebUI, so removing it does not affect Vue translations.
The temporary MESSAGE_OVERRIDES block in
webui-vue/src/i18n/index.js still takes precedence over JSON
translations for those messages. Consequently, edits to those specific
terms in POEditor do not become visible until the override block is removed.
Adding a language
Add the locale and its display label to locales.json, add the
corresponding JSON catalog import in locales/catalogs.js, import the
language from POEditor, and update the locale mappings in
webui-vue/src/utils/locales.js. Then run npm run check:i18n.
Documentation guidance
When documenting Vue WebUI work:
add operator-facing documentation to the introduction/tutorial manual
add implementation and workflow details here in the developer guide
clearly mark the Vue WebUI as a technical preview while it coexists with the classic PHP WebUI
avoid wording that implies the classic WebUI no longer exists unless that product decision has changed