From 79ed9823a9633c7008d494fa51193568803f4480 Mon Sep 17 00:00:00 2001 From: Macide Celik Date: Mon, 28 Oct 2019 15:36:33 +0300 Subject: [PATCH] Delete CSSBeautify.mjs --- src/core/operations/CSSBeautify.mjs | 47 ----------------------------- 1 file changed, 47 deletions(-) delete mode 100644 src/core/operations/CSSBeautify.mjs diff --git a/src/core/operations/CSSBeautify.mjs b/src/core/operations/CSSBeautify.mjs deleted file mode 100644 index 3491b618..00000000 --- a/src/core/operations/CSSBeautify.mjs +++ /dev/null @@ -1,47 +0,0 @@ -/** - * @author n1474335 [n1474335@gmail.com] - * @copyright Crown Copyright 2016 - * @license Apache-2.0 - */ - -import vkbeautify from "vkbeautify"; -import Operation from "../Operation.mjs"; - -/** - * CSS Beautify operation - */ -class CSSBeautify extends Operation { - - /** - * CSSBeautify constructor - */ - constructor() { - super(); - - this.name = "CSS Beautify"; - this.module = "Code"; - this.description = "Indents and prettifies Cascading Style Sheets (CSS) code."; - this.inputType = "string"; - this.outputType = "string"; - this.args = [ - { - "name": "Indent string", - "type": "binaryShortString", - "value": "\\t" - } - ]; - } - - /** - * @param {string} input - * @param {Object[]} args - * @returns {string} - */ - run(input, args) { - const indentStr = args[0]; - return vkbeautify.css(input, indentStr); - } - -} - -export default CSSBeautify;