@gitsense/gsc-utils 0.2.31 → 0.2.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/gsc-utils.cjs.js
CHANGED
|
@@ -9926,7 +9926,7 @@ function fixTextCodeBlocks$2(text) {
|
|
|
9926
9926
|
const newLines = lines.map(line => {
|
|
9927
9927
|
// Check for UUID fields in patch metadata
|
|
9928
9928
|
if ((line.includes('# Source-Block-UUID:') || line.includes('# Target-Block-UUID:')) &&
|
|
9929
|
-
!line.includes('{{GS-UUID}')) {
|
|
9929
|
+
!line.includes('{{GS-UUID}}')) {
|
|
9930
9930
|
|
|
9931
9931
|
const [fieldPart, valuePart] = line.split(':').map(p => p.trim());
|
|
9932
9932
|
|
|
@@ -9970,7 +9970,7 @@ function fixTextCodeBlocks$2(text) {
|
|
|
9970
9970
|
if (validation["Block-UUID"] === "INVALID UUID") {
|
|
9971
9971
|
blockModified = true;
|
|
9972
9972
|
modified = true;
|
|
9973
|
-
return
|
|
9973
|
+
return ` ${fieldPart}: ${validation["Correct Block-UUID"]}`;
|
|
9974
9974
|
}
|
|
9975
9975
|
}
|
|
9976
9976
|
return line;
|
|
@@ -10462,13 +10462,13 @@ var markerRemover = { removeCodeBlockMarkers: removeCodeBlockMarkers$2 };
|
|
|
10462
10462
|
|
|
10463
10463
|
/**
|
|
10464
10464
|
* Component: CodeBlockUtils Traceable Code Parser
|
|
10465
|
-
* Block-UUID:
|
|
10466
|
-
* Parent-UUID:
|
|
10467
|
-
* Version: 1.0.
|
|
10468
|
-
* Description: Parses the `Traceable Code` metadata lines preceding code blocks to extract pre-generated UUIDs
|
|
10465
|
+
* Block-UUID: b87c8e44-6417-4788-a220-7f587307c60a
|
|
10466
|
+
* Parent-UUID: 8a4b2c1d-9e6f-4a3b-8c7d-1e2f3a4b5c6d
|
|
10467
|
+
* Version: 1.0.1
|
|
10468
|
+
* Description: Parses the `Traceable Code` metadata lines preceding code blocks to extract pre-generated UUIDs, version flags, and current block identifiers for backend validation.
|
|
10469
10469
|
* Language: JavaScript
|
|
10470
10470
|
* Created-at: 2026-01-26T17:50:00.000Z
|
|
10471
|
-
* Authors: GLM-4.7 (v1.0.0)
|
|
10471
|
+
* Authors: GLM-4.7 (v1.0.0), GLM-4.7 (v1.0.1)
|
|
10472
10472
|
*/
|
|
10473
10473
|
|
|
10474
10474
|
const { findAllCodeFences: findAllCodeFences$3 } = blockExtractor;
|
|
@@ -10569,6 +10569,7 @@ function parseTraceableLine(line) {
|
|
|
10569
10569
|
|
|
10570
10570
|
const isTraceableStr = extract('Traceable Code');
|
|
10571
10571
|
const isNewVersionStr = extract('New Version');
|
|
10572
|
+
const currentBlockUUID = extract('Current Block-UUID');
|
|
10572
10573
|
const currentParentUUID = extract('Current Parent-UUID');
|
|
10573
10574
|
const newParentUUID = extract('New Parent-UUID');
|
|
10574
10575
|
const newBlockUUID = extract('New Block-UUID');
|
|
@@ -10588,6 +10589,7 @@ function parseTraceableLine(line) {
|
|
|
10588
10589
|
data: {
|
|
10589
10590
|
isTraceable: isTraceableStr === 'Yes',
|
|
10590
10591
|
isNewVersion: isNewVersionStr === 'Yes',
|
|
10592
|
+
currentBlockUUID: currentBlockUUID,
|
|
10591
10593
|
currentParentUUID: currentParentUUID,
|
|
10592
10594
|
newParentUUID: newParentUUID,
|
|
10593
10595
|
newBlockUUID: newBlockUUID
|
|
@@ -12144,6 +12146,11 @@ var saver = {
|
|
|
12144
12146
|
* Authors: Gemini 2.5 Flash (v1.0.0), Gemini 2.5 Pro (v1.1.0), Claude Haiku 4.5 (v1.2.0), Claude Haiku 4.5 (v1.3.0), Qwen 3 Coder 480B - Cerebras (v1.4.0), GLM-4.6 (v1.4.1)
|
|
12145
12147
|
*/
|
|
12146
12148
|
|
|
12149
|
+
const fs$5 = require$$0.promises;
|
|
12150
|
+
const path$3 = require$$1;
|
|
12151
|
+
const CodeBlockUtils$3 = CodeBlockUtils$7;
|
|
12152
|
+
const { preprocessJsonForValidation: preprocessJsonForValidation$3 } = jsonParser;
|
|
12153
|
+
|
|
12147
12154
|
/**
|
|
12148
12155
|
* Parses the 'Custom Metadata Definitions' block from the markdown content.
|
|
12149
12156
|
* Handles both formats:
|
|
@@ -12191,11 +12198,6 @@ function parseMetadataDefinitions(markdownContent) {
|
|
|
12191
12198
|
return definitions;
|
|
12192
12199
|
}
|
|
12193
12200
|
|
|
12194
|
-
const fs$5 = require$$0.promises;
|
|
12195
|
-
const path$3 = require$$1;
|
|
12196
|
-
const CodeBlockUtils$3 = CodeBlockUtils$7;
|
|
12197
|
-
const { preprocessJsonForValidation: preprocessJsonForValidation$3 } = jsonParser;
|
|
12198
|
-
|
|
12199
12201
|
/**
|
|
12200
12202
|
* Maps a simple type string (from the definitions block) to a JSON schema type object.
|
|
12201
12203
|
* @param {string} simpleType - The type string (e.g., "number", "array of strings").
|
|
@@ -12344,6 +12346,7 @@ async function getAnalyzerSchema$2(analyzersBasePath, analyzerId) {
|
|
|
12344
12346
|
const schema = {
|
|
12345
12347
|
type: 'object',
|
|
12346
12348
|
description: rawJson.description,
|
|
12349
|
+
label: rawJson.label,
|
|
12347
12350
|
version: rawJson.version,
|
|
12348
12351
|
properties: {},
|
|
12349
12352
|
required: [],
|
|
@@ -24051,6 +24054,16 @@ let SVGUtils$1 = class SVGUtils {
|
|
|
24051
24054
|
return this.create(xml, params);
|
|
24052
24055
|
}
|
|
24053
24056
|
|
|
24057
|
+
/**
|
|
24058
|
+
* Generate commandPallete SVG icon
|
|
24059
|
+
* @param {Object} params - Configuration parameters
|
|
24060
|
+
* @returns {Element} SVG element
|
|
24061
|
+
*/
|
|
24062
|
+
static commandPallete(params) {
|
|
24063
|
+
const xml = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path d="m6.354 8.04-4.773 4.773a.75.75 0 1 0 1.061 1.06L7.945 8.57a.75.75 0 0 0 0-1.06L2.642 2.206a.75.75 0 0 0-1.06 1.061L6.353 8.04ZM8.75 11.5a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5h-5.5Z"></path></svg>`;
|
|
24064
|
+
return this.create(xml, params);
|
|
24065
|
+
}
|
|
24066
|
+
|
|
24054
24067
|
/**
|
|
24055
24068
|
* Generate comment SVG icon
|
|
24056
24069
|
* @param {Object} params - Configuration parameters
|
|
@@ -24960,6 +24973,16 @@ let SVGUtils$1 = class SVGUtils {
|
|
|
24960
24973
|
return this.create(xml, params);
|
|
24961
24974
|
}
|
|
24962
24975
|
|
|
24976
|
+
/**
|
|
24977
|
+
* Generate terminal SVG icon
|
|
24978
|
+
* @param {Object} params - Configuration parameters
|
|
24979
|
+
* @returns {Element} SVG element
|
|
24980
|
+
*/
|
|
24981
|
+
static terminal(params) {
|
|
24982
|
+
const xml = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path d="M0 2.75C0 1.784.784 1 1.75 1h12.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25Zm1.75-.25a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25ZM7.25 8a.749.749 0 0 1-.22.53l-2.25 2.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L5.44 8 3.72 6.28a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l2.25 2.25c.141.14.22.331.22.53Zm1.5 1.5h3a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5Z"></path></svg>`;
|
|
24983
|
+
return this.create(xml, params);
|
|
24984
|
+
}
|
|
24985
|
+
|
|
24963
24986
|
/**
|
|
24964
24987
|
* Generate toggle SVG icon
|
|
24965
24988
|
* @param {Object} params - Configuration parameters
|
package/dist/gsc-utils.esm.js
CHANGED
|
@@ -9924,7 +9924,7 @@ function fixTextCodeBlocks$2(text) {
|
|
|
9924
9924
|
const newLines = lines.map(line => {
|
|
9925
9925
|
// Check for UUID fields in patch metadata
|
|
9926
9926
|
if ((line.includes('# Source-Block-UUID:') || line.includes('# Target-Block-UUID:')) &&
|
|
9927
|
-
!line.includes('{{GS-UUID}')) {
|
|
9927
|
+
!line.includes('{{GS-UUID}}')) {
|
|
9928
9928
|
|
|
9929
9929
|
const [fieldPart, valuePart] = line.split(':').map(p => p.trim());
|
|
9930
9930
|
|
|
@@ -9968,7 +9968,7 @@ function fixTextCodeBlocks$2(text) {
|
|
|
9968
9968
|
if (validation["Block-UUID"] === "INVALID UUID") {
|
|
9969
9969
|
blockModified = true;
|
|
9970
9970
|
modified = true;
|
|
9971
|
-
return
|
|
9971
|
+
return ` ${fieldPart}: ${validation["Correct Block-UUID"]}`;
|
|
9972
9972
|
}
|
|
9973
9973
|
}
|
|
9974
9974
|
return line;
|
|
@@ -10460,13 +10460,13 @@ var markerRemover = { removeCodeBlockMarkers: removeCodeBlockMarkers$2 };
|
|
|
10460
10460
|
|
|
10461
10461
|
/**
|
|
10462
10462
|
* Component: CodeBlockUtils Traceable Code Parser
|
|
10463
|
-
* Block-UUID:
|
|
10464
|
-
* Parent-UUID:
|
|
10465
|
-
* Version: 1.0.
|
|
10466
|
-
* Description: Parses the `Traceable Code` metadata lines preceding code blocks to extract pre-generated UUIDs
|
|
10463
|
+
* Block-UUID: b87c8e44-6417-4788-a220-7f587307c60a
|
|
10464
|
+
* Parent-UUID: 8a4b2c1d-9e6f-4a3b-8c7d-1e2f3a4b5c6d
|
|
10465
|
+
* Version: 1.0.1
|
|
10466
|
+
* Description: Parses the `Traceable Code` metadata lines preceding code blocks to extract pre-generated UUIDs, version flags, and current block identifiers for backend validation.
|
|
10467
10467
|
* Language: JavaScript
|
|
10468
10468
|
* Created-at: 2026-01-26T17:50:00.000Z
|
|
10469
|
-
* Authors: GLM-4.7 (v1.0.0)
|
|
10469
|
+
* Authors: GLM-4.7 (v1.0.0), GLM-4.7 (v1.0.1)
|
|
10470
10470
|
*/
|
|
10471
10471
|
|
|
10472
10472
|
const { findAllCodeFences: findAllCodeFences$3 } = blockExtractor;
|
|
@@ -10567,6 +10567,7 @@ function parseTraceableLine(line) {
|
|
|
10567
10567
|
|
|
10568
10568
|
const isTraceableStr = extract('Traceable Code');
|
|
10569
10569
|
const isNewVersionStr = extract('New Version');
|
|
10570
|
+
const currentBlockUUID = extract('Current Block-UUID');
|
|
10570
10571
|
const currentParentUUID = extract('Current Parent-UUID');
|
|
10571
10572
|
const newParentUUID = extract('New Parent-UUID');
|
|
10572
10573
|
const newBlockUUID = extract('New Block-UUID');
|
|
@@ -10586,6 +10587,7 @@ function parseTraceableLine(line) {
|
|
|
10586
10587
|
data: {
|
|
10587
10588
|
isTraceable: isTraceableStr === 'Yes',
|
|
10588
10589
|
isNewVersion: isNewVersionStr === 'Yes',
|
|
10590
|
+
currentBlockUUID: currentBlockUUID,
|
|
10589
10591
|
currentParentUUID: currentParentUUID,
|
|
10590
10592
|
newParentUUID: newParentUUID,
|
|
10591
10593
|
newBlockUUID: newBlockUUID
|
|
@@ -12142,6 +12144,11 @@ var saver = {
|
|
|
12142
12144
|
* Authors: Gemini 2.5 Flash (v1.0.0), Gemini 2.5 Pro (v1.1.0), Claude Haiku 4.5 (v1.2.0), Claude Haiku 4.5 (v1.3.0), Qwen 3 Coder 480B - Cerebras (v1.4.0), GLM-4.6 (v1.4.1)
|
|
12143
12145
|
*/
|
|
12144
12146
|
|
|
12147
|
+
const fs$5 = require$$0.promises;
|
|
12148
|
+
const path$3 = require$$1;
|
|
12149
|
+
const CodeBlockUtils$3 = CodeBlockUtils$7;
|
|
12150
|
+
const { preprocessJsonForValidation: preprocessJsonForValidation$3 } = jsonParser;
|
|
12151
|
+
|
|
12145
12152
|
/**
|
|
12146
12153
|
* Parses the 'Custom Metadata Definitions' block from the markdown content.
|
|
12147
12154
|
* Handles both formats:
|
|
@@ -12189,11 +12196,6 @@ function parseMetadataDefinitions(markdownContent) {
|
|
|
12189
12196
|
return definitions;
|
|
12190
12197
|
}
|
|
12191
12198
|
|
|
12192
|
-
const fs$5 = require$$0.promises;
|
|
12193
|
-
const path$3 = require$$1;
|
|
12194
|
-
const CodeBlockUtils$3 = CodeBlockUtils$7;
|
|
12195
|
-
const { preprocessJsonForValidation: preprocessJsonForValidation$3 } = jsonParser;
|
|
12196
|
-
|
|
12197
12199
|
/**
|
|
12198
12200
|
* Maps a simple type string (from the definitions block) to a JSON schema type object.
|
|
12199
12201
|
* @param {string} simpleType - The type string (e.g., "number", "array of strings").
|
|
@@ -12342,6 +12344,7 @@ async function getAnalyzerSchema$2(analyzersBasePath, analyzerId) {
|
|
|
12342
12344
|
const schema = {
|
|
12343
12345
|
type: 'object',
|
|
12344
12346
|
description: rawJson.description,
|
|
12347
|
+
label: rawJson.label,
|
|
12345
12348
|
version: rawJson.version,
|
|
12346
12349
|
properties: {},
|
|
12347
12350
|
required: [],
|
|
@@ -24049,6 +24052,16 @@ let SVGUtils$1 = class SVGUtils {
|
|
|
24049
24052
|
return this.create(xml, params);
|
|
24050
24053
|
}
|
|
24051
24054
|
|
|
24055
|
+
/**
|
|
24056
|
+
* Generate commandPallete SVG icon
|
|
24057
|
+
* @param {Object} params - Configuration parameters
|
|
24058
|
+
* @returns {Element} SVG element
|
|
24059
|
+
*/
|
|
24060
|
+
static commandPallete(params) {
|
|
24061
|
+
const xml = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path d="m6.354 8.04-4.773 4.773a.75.75 0 1 0 1.061 1.06L7.945 8.57a.75.75 0 0 0 0-1.06L2.642 2.206a.75.75 0 0 0-1.06 1.061L6.353 8.04ZM8.75 11.5a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5h-5.5Z"></path></svg>`;
|
|
24062
|
+
return this.create(xml, params);
|
|
24063
|
+
}
|
|
24064
|
+
|
|
24052
24065
|
/**
|
|
24053
24066
|
* Generate comment SVG icon
|
|
24054
24067
|
* @param {Object} params - Configuration parameters
|
|
@@ -24958,6 +24971,16 @@ let SVGUtils$1 = class SVGUtils {
|
|
|
24958
24971
|
return this.create(xml, params);
|
|
24959
24972
|
}
|
|
24960
24973
|
|
|
24974
|
+
/**
|
|
24975
|
+
* Generate terminal SVG icon
|
|
24976
|
+
* @param {Object} params - Configuration parameters
|
|
24977
|
+
* @returns {Element} SVG element
|
|
24978
|
+
*/
|
|
24979
|
+
static terminal(params) {
|
|
24980
|
+
const xml = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path d="M0 2.75C0 1.784.784 1 1.75 1h12.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25Zm1.75-.25a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25ZM7.25 8a.749.749 0 0 1-.22.53l-2.25 2.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L5.44 8 3.72 6.28a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l2.25 2.25c.141.14.22.331.22.53Zm1.5 1.5h3a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5Z"></path></svg>`;
|
|
24981
|
+
return this.create(xml, params);
|
|
24982
|
+
}
|
|
24983
|
+
|
|
24961
24984
|
/**
|
|
24962
24985
|
* Generate toggle SVG icon
|
|
24963
24986
|
* @param {Object} params - Configuration parameters
|
package/package.json
CHANGED
|
@@ -10,6 +10,11 @@
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
|
|
13
|
+
const fs = require('fs').promises;
|
|
14
|
+
const path = require('path');
|
|
15
|
+
const CodeBlockUtils = require('../CodeBlockUtils');
|
|
16
|
+
const { preprocessJsonForValidation } = require('./jsonParser');
|
|
17
|
+
|
|
13
18
|
/**
|
|
14
19
|
* Parses the 'Custom Metadata Definitions' block from the markdown content.
|
|
15
20
|
* Handles both formats:
|
|
@@ -57,11 +62,6 @@ function parseMetadataDefinitions(markdownContent) {
|
|
|
57
62
|
return definitions;
|
|
58
63
|
}
|
|
59
64
|
|
|
60
|
-
const fs = require('fs').promises;
|
|
61
|
-
const path = require('path');
|
|
62
|
-
const CodeBlockUtils = require('../CodeBlockUtils');
|
|
63
|
-
const { preprocessJsonForValidation } = require('./jsonParser');
|
|
64
|
-
|
|
65
65
|
/**
|
|
66
66
|
* Maps a simple type string (from the definitions block) to a JSON schema type object.
|
|
67
67
|
* @param {string} simpleType - The type string (e.g., "number", "array of strings").
|
|
@@ -210,6 +210,7 @@ async function getAnalyzerSchema(analyzersBasePath, analyzerId) {
|
|
|
210
210
|
const schema = {
|
|
211
211
|
type: 'object',
|
|
212
212
|
description: rawJson.description,
|
|
213
|
+
label: rawJson.label,
|
|
213
214
|
version: rawJson.version,
|
|
214
215
|
properties: {},
|
|
215
216
|
required: [],
|
|
@@ -467,7 +467,7 @@ function fixTextCodeBlocks(text) {
|
|
|
467
467
|
const newLines = lines.map(line => {
|
|
468
468
|
// Check for UUID fields in patch metadata
|
|
469
469
|
if ((line.includes('# Source-Block-UUID:') || line.includes('# Target-Block-UUID:')) &&
|
|
470
|
-
!line.includes('{{GS-UUID}')) {
|
|
470
|
+
!line.includes('{{GS-UUID}}')) {
|
|
471
471
|
|
|
472
472
|
const [fieldPart, valuePart] = line.split(':').map(p => p.trim());
|
|
473
473
|
|
|
@@ -511,7 +511,7 @@ function fixTextCodeBlocks(text) {
|
|
|
511
511
|
if (validation["Block-UUID"] === "INVALID UUID") {
|
|
512
512
|
blockModified = true;
|
|
513
513
|
modified = true;
|
|
514
|
-
return
|
|
514
|
+
return ` ${fieldPart}: ${validation["Correct Block-UUID"]}`;
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
return line;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Component: CodeBlockUtils Traceable Code Parser
|
|
3
|
-
* Block-UUID:
|
|
4
|
-
* Parent-UUID:
|
|
5
|
-
* Version: 1.0.
|
|
6
|
-
* Description: Parses the `Traceable Code` metadata lines preceding code blocks to extract pre-generated UUIDs
|
|
3
|
+
* Block-UUID: b87c8e44-6417-4788-a220-7f587307c60a
|
|
4
|
+
* Parent-UUID: 8a4b2c1d-9e6f-4a3b-8c7d-1e2f3a4b5c6d
|
|
5
|
+
* Version: 1.0.1
|
|
6
|
+
* Description: Parses the `Traceable Code` metadata lines preceding code blocks to extract pre-generated UUIDs, version flags, and current block identifiers for backend validation.
|
|
7
7
|
* Language: JavaScript
|
|
8
8
|
* Created-at: 2026-01-26T17:50:00.000Z
|
|
9
|
-
* Authors: GLM-4.7 (v1.0.0)
|
|
9
|
+
* Authors: GLM-4.7 (v1.0.0), GLM-4.7 (v1.0.1)
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
|
|
@@ -108,6 +108,7 @@ function parseTraceableLine(line) {
|
|
|
108
108
|
|
|
109
109
|
const isTraceableStr = extract('Traceable Code');
|
|
110
110
|
const isNewVersionStr = extract('New Version');
|
|
111
|
+
const currentBlockUUID = extract('Current Block-UUID');
|
|
111
112
|
const currentParentUUID = extract('Current Parent-UUID');
|
|
112
113
|
const newParentUUID = extract('New Parent-UUID');
|
|
113
114
|
const newBlockUUID = extract('New Block-UUID');
|
|
@@ -127,6 +128,7 @@ function parseTraceableLine(line) {
|
|
|
127
128
|
data: {
|
|
128
129
|
isTraceable: isTraceableStr === 'Yes',
|
|
129
130
|
isNewVersion: isNewVersionStr === 'Yes',
|
|
131
|
+
currentBlockUUID: currentBlockUUID,
|
|
130
132
|
currentParentUUID: currentParentUUID,
|
|
131
133
|
newParentUUID: newParentUUID,
|
|
132
134
|
newBlockUUID: newBlockUUID
|
package/src/SVGUtils.js
CHANGED
|
@@ -377,6 +377,16 @@ class SVGUtils {
|
|
|
377
377
|
return this.create(xml, params);
|
|
378
378
|
}
|
|
379
379
|
|
|
380
|
+
/**
|
|
381
|
+
* Generate commandPallete SVG icon
|
|
382
|
+
* @param {Object} params - Configuration parameters
|
|
383
|
+
* @returns {Element} SVG element
|
|
384
|
+
*/
|
|
385
|
+
static commandPallete(params) {
|
|
386
|
+
const xml = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path d="m6.354 8.04-4.773 4.773a.75.75 0 1 0 1.061 1.06L7.945 8.57a.75.75 0 0 0 0-1.06L2.642 2.206a.75.75 0 0 0-1.06 1.061L6.353 8.04ZM8.75 11.5a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5h-5.5Z"></path></svg>`;
|
|
387
|
+
return this.create(xml, params);
|
|
388
|
+
}
|
|
389
|
+
|
|
380
390
|
/**
|
|
381
391
|
* Generate comment SVG icon
|
|
382
392
|
* @param {Object} params - Configuration parameters
|
|
@@ -1286,6 +1296,16 @@ class SVGUtils {
|
|
|
1286
1296
|
return this.create(xml, params);
|
|
1287
1297
|
}
|
|
1288
1298
|
|
|
1299
|
+
/**
|
|
1300
|
+
* Generate terminal SVG icon
|
|
1301
|
+
* @param {Object} params - Configuration parameters
|
|
1302
|
+
* @returns {Element} SVG element
|
|
1303
|
+
*/
|
|
1304
|
+
static terminal(params) {
|
|
1305
|
+
const xml = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path d="M0 2.75C0 1.784.784 1 1.75 1h12.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25Zm1.75-.25a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25ZM7.25 8a.749.749 0 0 1-.22.53l-2.25 2.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L5.44 8 3.72 6.28a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l2.25 2.25c.141.14.22.331.22.53Zm1.5 1.5h3a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5Z"></path></svg>`;
|
|
1306
|
+
return this.create(xml, params);
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1289
1309
|
/**
|
|
1290
1310
|
* Generate toggle SVG icon
|
|
1291
1311
|
* @param {Object} params - Configuration parameters
|