${i18n.t('page.unpublished.noPages', 'No unpublished pages found.')}
`; - } - else { - pageItemsHtml = ` -${options.message || i18n.t("alerts.error.message", "Some error occured")}
`, - }); -}; -const alertConfirm = (options) => { - return new Promise((resolve) => { - openModal({ - title: options.title || i18n.t("alerts.confirm.title", "Are you sure?"), - body: `${options.message || i18n.t("alerts.confirm.message", "You won't be able to revert this!")}
`, - onOk: () => resolve(true), - onCancel: () => resolve(false) - }); - }); -}; -const alertPrompt = (options) => { - return new Promise((resolve) => { - const modalBody = ` - - `; - openModal({ - title: options.title || i18n.t("alerts.prompt.title", "Enter value?"), - body: modalBody, - validate: () => { - const value = document.getElementById('modalInput').value; - if (options.validator) { - const validationResult = options.validator(value); - return validationResult === null || validationResult === undefined; - } - return true; - }, - onOk: () => { - const value = document.getElementById('modalInput').value; - resolve(value); - }, - onCancel: () => resolve(null) - }); - }); -}; -export { alertSelect, alertError, alertConfirm, alertPrompt }; diff --git a/modules/ui-module/src/main/ts/dist/js/modules/event-bus.d.ts b/modules/ui-module/src/main/ts/dist/js/modules/event-bus.d.ts deleted file mode 100644 index d44295919..000000000 --- a/modules/ui-module/src/main/ts/dist/js/modules/event-bus.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export namespace EventBus { - function on(event: any, handler: any): void; - function emit(event: any, payload: any): void; -} diff --git a/modules/ui-module/src/main/ts/dist/js/modules/event-bus.js b/modules/ui-module/src/main/ts/dist/js/modules/event-bus.js deleted file mode 100644 index 16ee9dff6..000000000 --- a/modules/ui-module/src/main/ts/dist/js/modules/event-bus.js +++ /dev/null @@ -1,29 +0,0 @@ -/*- - * #%L - * UI Module - * %% - * Copyright (C) 2023 - 2026 CondationCMS - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see| - | {{filenameHeader}} | -{{actionHeader}} | -
|---|---|---|
|
- {{#if directory}}
-
- {{else if media}}
-
-
- {{else}}
-
- {{/if}}
- |
- {{name}} | -- {{#if directory}} - {{#ifNotEquals name ".."}} - - {{/ifNotEquals}} - {{else if content}} - - - - {{else}} - - {{/if}} - {{#ifNotEquals name ".."}} - - {{/ifNotEquals}} - | -
Sidebar content
'} -