UNPKG

woltlab-compiler

Version:

A compiler for WoltLab-Package Archives and WoltLab-Package Components

42 lines 1.27 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const ThemeInstructionCompiler_1 = require("../../../../Compilation/PackageSystem/Instructions/ThemeInstructionCompiler"); const Theme_1 = require("../../../../Customization/Presentation/Themes/Theme"); const Instruction_1 = require("../../Instruction"); /** * Represents an instruction which provides a theme. */ class ThemeInstruction extends Instruction_1.Instruction { /** * Initializes a new instance of the `ThemeInstruction` class. * * @param options * The options for the theme-instruction. */ constructor(options) { super({ FileName: options.FileName || `${options.Theme.Name}.tar`, }); this.theme = new Theme_1.Theme(this, options.Theme); } /** * @inheritdoc */ get Type() { return "style"; } /** * Gets the theme provided by the instruction. */ get Theme() { return this.theme; } /** * @inheritdoc */ get Compiler() { return new ThemeInstructionCompiler_1.ThemeInstructionCompiler(this); } } exports.ThemeInstruction = ThemeInstruction; //# sourceMappingURL=ThemeInstruction.js.map