diff --git a/preferences/js/app.ts b/preferences/js/app.ts new file mode 100644 index 0000000000..88f5947b23 --- /dev/null +++ b/preferences/js/app.ts @@ -0,0 +1,44 @@ +/** + * EGroupware Preferences + * + * @link https://www.egroupware.org + * @author Ralf Becker + * @package preferences + */ + +import {EgwApp} from '../../api/js/jsapi/egw_app'; + +/** + * JavaScript for Preferences + * + * @augments AppJS + */ +export class PreferencesApp extends EgwApp +{ + /** + * Constructor + * + */ + constructor() + { + // call parent + super("preferences"); + } + + /** + * This function is called when the etemplate2 object is loaded + * and ready. If you must store a reference to the et2 object, + * make sure to clean it up in destroy(). + * + * @param et2 etemplate2 Newly ready object + * @param name + */ + et2_ready(et2, name) + { + // call parent + super.et2_ready(et2, name); + } +} + +// @ts-ignore +app.classes.preferences = PreferencesApp; diff --git a/rollup.config.js b/rollup.config.js index 5f92ee56d6..5d00ffabbf 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -38,7 +38,7 @@ export default { "addressbook/js/app": "addressbook/js/app.ts", "admin/js/app": "admin/js/app.ts", "bookmarks/js/app": "bookmarks/js/app.ts", - "calendar/js/app.min" : "calendar/js/app.ts", + "calendar/js/app" : "calendar/js/app.ts", "collabora/js/app": "collabora/js/app.ts", "filemanager/js/app": "filemanager/js/app.ts", //"home/js/app": "home/js/app.js", @@ -47,7 +47,7 @@ export default { "mail/js/app.min": "mail/js/app.js", //"news_admin/js/app.min": "news_admin/js/app.js", "notifications/js/notificationajaxpopup.min": "notifications/js/notificationajaxpopup.js", - //"preferences/js/app": "preferences/js/app.js", + "preferences/js/app": "preferences/js/app.ts", "projectmanager/js/app.min": "projectmanager/js/app.ts", "resources/js/app": "resources/js/app.ts", "rocketchat/js/app.min": "rocketchat/js/app.js",