import {Decorators} from '../../decorator/factory'; import {GlobalConfiguration} from '../../util/configuration'; import {Logger} from '../../util/logger'; import Modal from './base';
/** * Implements The About Modal Window. * * This component shows information about this app. * * @extends {Modal}
*/
export defaultclass AboutModal extends Modal {
/** * Base constructor * * @typedef {Object} options * @property {String} options.appendTo - where the generated html/svg components will be attached to, default body * @property {Function} options.callbackHandler - this handler will be used to invoke actions from the menu, default console.log * @property {Object} context - the context of the application, usually a configuration and a rendering manager instance
*/
constructor({appendTo, callbackHandler}, context) { super({appendTo: appendTo, callbackHandler: callbackHandler}, context);
}
@Decorators.Initializer.initialize()
@Decorators.Data.requires('canvas')
async render() {
let modalId = 'AboutModalWindow';
Logger.debug(`(${this.context.instanceId}) Creating About Modal [${modalId}]...`);
content.append('span').text(FRANCY_DESC);
content.append('br');
content.append('br');
content.append('span').append('a').attr('href', 'https://github.com/gap-packages/francy').attr('target', '_blank').text('Francy on Github');
content.append('br');
content.append('br');
if (this.data.version !== VERSION) {
content.append('span').text(`Data was generated in Francy GAP v${this.data.version} and you're using Francy JS v${VERSION}... Rendering may fail, please update your system...`);
content.append('br');
content.append('br');
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.