Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  about.js

  Sprache: JAVA
 

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 default class 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}]...`);

    this.element = this.holder.append('div')
      .attr('id', modalId)
      .attr('class''francy-modal');

    let form = this.element.append('form');

    this._buildHeader(form, `About Francy v${VERSION}`);

    let content = form.append('div').attr('class''francy-modal-content')
      .append('div').attr('class''francy-table')
      .append('div').attr('class''francy-table-body')
      .style('text-align''center');

    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');
    }

    if (GlobalConfiguration.object.verbose) {
      content.append('span').text('Loaded Data:');
      content.append('pre').attr('class''francy').style('text-align''left').html(Decorators.Highlight.syntax(JSON.stringify(this.data, null2)));
    }

    content.append('div').text('Verbose').append('div').append('input')
      .attr('type''checkbox')
      .attr('required'null)
      .attr('value', GlobalConfiguration.object.verbose)
      .attr('name''Verbose')
      .property('checked', GlobalConfiguration.object.verbose)
      .on('change'function () {
        GlobalConfiguration.object.verbose = this.value = this.checked = !GlobalConfiguration.object.verbose;
      })
      .on('input'this.onchange)
      .on('keyup'this.onchange)
      .on('paste'this.onchange);

    let footer = form.append('div').attr('class''francy-modal-footer');

    footer.append('button').text('Ok').on('click', (e) => {
      e.preventDefault();
      this.unrender.call(this);
    });

    Logger.debug(`(${this.context.instanceId}) Modal About updated [${modalId}]...`);

    return this;
  }

}

Messung V0.5 in Prozent
C=92 H=99 G=95

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet am  2026-06-26) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik