File modules/cms/ui/themes/default/script/openrat/components.js
Last commit: Wed Mar 9 13:28:52 2022 +0100 dankert Refactoring: Checkbox values are always sent to the server. In the actions we must test the value with 'isTrue()'
1 import editor from '../../../../../../template_engine/components/html/component_editor/editor.js'; 2 import group from '../../../../../../template_engine/components/html/component_group/group.js'; 3 import link from '../../../../../../template_engine/components/html/component_link/link.js'; 4 import qrcode from '../../../../../../template_engine/components/html/component_qrcode/qrcode.js'; 5 import table from '../../../../../../template_engine/components/html/component_table/table.js'; 6 import upload from '../../../../../../template_engine/components/html/component_upload/upload.js'; 7 import form from '../../../../../../template_engine/components/html/component_checkbox/checkbox.js'; 8 import Callback from "./callback.js"; 9 10 export default class Components { 11 12 registerComponents() { 13 console.debug('registering component scripts'); 14 15 Callback.afterViewLoadedHandler.add(editor); 16 Callback.afterViewLoadedHandler.add(group ); 17 Callback.afterViewLoadedHandler.add(link ); 18 Callback.afterViewLoadedHandler.add(qrcode); 19 Callback.afterViewLoadedHandler.add(table ); 20 Callback.afterViewLoadedHandler.add(upload); 21 Callback.afterViewLoadedHandler.add(form ); 22 } 23 } 24
Downloadmodules/cms/ui/themes/default/script/openrat/components.js
History Wed, 9 Mar 2022 13:28:52 +0100 dankert Refactoring: Checkbox values are always sent to the server. In the actions we must test the value with 'isTrue()' Sat, 18 Dec 2021 03:47:23 +0100 dankert New: Every ES6-Module should have a minified version for performance reasons. Bad: The Minifier "Jsqueeze" is unable to minify ES6-modules, so we had to implement a simple JS-Minifier which strips out all comments. Sat, 27 Mar 2021 10:19:39 +0100 Jan Dankert Fix: Register component scripts only once. Sat, 27 Mar 2021 05:14:11 +0100 Jan Dankert Refactoring: Converting all script files to ES6 modules (work in progress); removed jquery-ui (drag and drop will be replaced by HTML5, sortable by a small lib)