material-icon-theme 5.7.0 → 5.8.0
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/material-icons.json +37 -31
- package/dist/module/index.cjs +93 -50
- package/dist/types/core/generator/applyConfigToIcons.d.ts +10 -0
- package/dist/types/core/generator/applyConfigToIcons.d.ts.map +1 -0
- package/dist/types/core/generator/clones/clonesGenerator.d.ts +3 -3
- package/dist/types/core/generator/clones/clonesGenerator.d.ts.map +1 -1
- package/dist/types/core/generator/clones/utils/cloneData.d.ts +2 -2
- package/dist/types/core/generator/clones/utils/cloneData.d.ts.map +1 -1
- package/dist/types/core/generator/clones/utils/cloning.d.ts +7 -7
- package/dist/types/core/generator/clones/utils/cloning.d.ts.map +1 -1
- package/dist/types/core/generator/clones/utils/color/colors.d.ts +4 -4
- package/dist/types/core/generator/clones/utils/color/colors.d.ts.map +1 -1
- package/dist/types/core/generator/clones/utils/color/materialPalette.d.ts +2 -2
- package/dist/types/core/generator/clones/utils/color/materialPalette.d.ts.map +1 -1
- package/dist/types/core/generator/config/defaultConfig.d.ts +1 -1
- package/dist/types/core/generator/config/defaultConfig.d.ts.map +1 -1
- package/dist/types/core/generator/constants.d.ts +8 -0
- package/dist/types/core/generator/constants.d.ts.map +1 -1
- package/dist/types/core/generator/fileGenerator.d.ts +1 -1
- package/dist/types/core/generator/fileGenerator.d.ts.map +1 -1
- package/dist/types/core/generator/folderGenerator.d.ts +1 -1
- package/dist/types/core/generator/folderGenerator.d.ts.map +1 -1
- package/dist/types/core/generator/generateManifest.d.ts +6 -0
- package/dist/types/core/generator/generateManifest.d.ts.map +1 -0
- package/dist/types/core/generator/iconOpacity.d.ts +1 -1
- package/dist/types/core/generator/iconOpacity.d.ts.map +1 -1
- package/dist/types/core/generator/iconSaturation.d.ts +1 -1
- package/dist/types/core/generator/iconSaturation.d.ts.map +1 -1
- package/dist/types/core/generator/renameIconFiles.d.ts +9 -0
- package/dist/types/core/generator/renameIconFiles.d.ts.map +1 -0
- package/dist/types/core/generator/shared/svg.d.ts +1 -1
- package/dist/types/core/generator/shared/svg.d.ts.map +1 -1
- package/dist/types/core/helpers/configHash.d.ts.map +1 -1
- package/dist/types/core/helpers/writeFile.d.ts +8 -0
- package/dist/types/core/helpers/writeFile.d.ts.map +1 -0
- package/dist/types/core/i18n/translate.d.ts.map +1 -1
- package/dist/types/core/icons/fileIcons.d.ts.map +1 -1
- package/dist/types/core/icons/folderIcons.d.ts.map +1 -1
- package/dist/types/core/index.d.ts +9 -4
- package/dist/types/core/index.d.ts.map +1 -1
- package/dist/types/core/logging/logger.d.ts +19 -0
- package/dist/types/core/logging/logger.d.ts.map +1 -0
- package/dist/types/core/models/icons/config.d.ts +3 -0
- package/dist/types/core/models/icons/config.d.ts.map +1 -1
- package/dist/types/core/models/manifest.d.ts +10 -0
- package/dist/types/core/models/manifest.d.ts.map +1 -1
- package/icons/hurl.svg +1 -0
- package/icons/remark.svg +1 -0
- package/icons/tape.clone.svg +1 -0
- package/package.json +30 -14
- package/dist/types/core/generator/jsonGenerator.d.ts +0 -31
- package/dist/types/core/generator/jsonGenerator.d.ts.map +0 -1
package/dist/material-icons.json
CHANGED
|
@@ -651,6 +651,9 @@
|
|
|
651
651
|
"next_light": {
|
|
652
652
|
"iconPath": "./../icons/next_light.svg"
|
|
653
653
|
},
|
|
654
|
+
"remark": {
|
|
655
|
+
"iconPath": "./../icons/remark.svg"
|
|
656
|
+
},
|
|
654
657
|
"remix": {
|
|
655
658
|
"iconPath": "./../icons/remix.svg"
|
|
656
659
|
},
|
|
@@ -1476,6 +1479,12 @@
|
|
|
1476
1479
|
"deepsource": {
|
|
1477
1480
|
"iconPath": "./../icons/deepsource.svg"
|
|
1478
1481
|
},
|
|
1482
|
+
"tape": {
|
|
1483
|
+
"iconPath": "./../icons/tape.clone.svg"
|
|
1484
|
+
},
|
|
1485
|
+
"hurl": {
|
|
1486
|
+
"iconPath": "./../icons/hurl.svg"
|
|
1487
|
+
},
|
|
1479
1488
|
"file": {
|
|
1480
1489
|
"iconPath": "./../icons/file.svg"
|
|
1481
1490
|
},
|
|
@@ -3383,10 +3392,10 @@
|
|
|
3383
3392
|
".dockerhub": "folder-docker",
|
|
3384
3393
|
"_dockerhub": "folder-docker",
|
|
3385
3394
|
"__dockerhub__": "folder-docker",
|
|
3395
|
+
"astro": "folder-astro",
|
|
3386
3396
|
".astro": "folder-astro",
|
|
3387
|
-
"
|
|
3388
|
-
"
|
|
3389
|
-
"__.astro__": "folder-astro",
|
|
3397
|
+
"_astro": "folder-astro",
|
|
3398
|
+
"__astro__": "folder-astro",
|
|
3390
3399
|
"db": "folder-database",
|
|
3391
3400
|
".db": "folder-database",
|
|
3392
3401
|
"_db": "folder-database",
|
|
@@ -3631,10 +3640,10 @@
|
|
|
3631
3640
|
".lua": "folder-lua",
|
|
3632
3641
|
"_lua": "folder-lua",
|
|
3633
3642
|
"__lua__": "folder-lua",
|
|
3643
|
+
"turbo": "folder-turborepo",
|
|
3634
3644
|
".turbo": "folder-turborepo",
|
|
3635
|
-
"
|
|
3636
|
-
"
|
|
3637
|
-
"__.turbo__": "folder-turborepo",
|
|
3645
|
+
"_turbo": "folder-turborepo",
|
|
3646
|
+
"__turbo__": "folder-turborepo",
|
|
3638
3647
|
"typescript": "folder-typescript",
|
|
3639
3648
|
".typescript": "folder-typescript",
|
|
3640
3649
|
"_typescript": "folder-typescript",
|
|
@@ -5051,15 +5060,6 @@
|
|
|
5051
5060
|
".helmcharts": "folder-helm",
|
|
5052
5061
|
"_helmcharts": "folder-helm",
|
|
5053
5062
|
"__helmcharts__": "folder-helm",
|
|
5054
|
-
"..helm": "folder-helm",
|
|
5055
|
-
"_.helm": "folder-helm",
|
|
5056
|
-
"__.helm__": "folder-helm",
|
|
5057
|
-
"..helmchart": "folder-helm",
|
|
5058
|
-
"_.helmchart": "folder-helm",
|
|
5059
|
-
"__.helmchart__": "folder-helm",
|
|
5060
|
-
"..helmcharts": "folder-helm",
|
|
5061
|
-
"_.helmcharts": "folder-helm",
|
|
5062
|
-
"__.helmcharts__": "folder-helm",
|
|
5063
5063
|
"queue": "folder-queue",
|
|
5064
5064
|
".queue": "folder-queue",
|
|
5065
5065
|
"_queue": "folder-queue",
|
|
@@ -5933,10 +5933,10 @@
|
|
|
5933
5933
|
".dockerhub": "folder-docker-open",
|
|
5934
5934
|
"_dockerhub": "folder-docker-open",
|
|
5935
5935
|
"__dockerhub__": "folder-docker-open",
|
|
5936
|
+
"astro": "folder-astro-open",
|
|
5936
5937
|
".astro": "folder-astro-open",
|
|
5937
|
-
"
|
|
5938
|
-
"
|
|
5939
|
-
"__.astro__": "folder-astro-open",
|
|
5938
|
+
"_astro": "folder-astro-open",
|
|
5939
|
+
"__astro__": "folder-astro-open",
|
|
5940
5940
|
"db": "folder-database-open",
|
|
5941
5941
|
".db": "folder-database-open",
|
|
5942
5942
|
"_db": "folder-database-open",
|
|
@@ -6181,10 +6181,10 @@
|
|
|
6181
6181
|
".lua": "folder-lua-open",
|
|
6182
6182
|
"_lua": "folder-lua-open",
|
|
6183
6183
|
"__lua__": "folder-lua-open",
|
|
6184
|
+
"turbo": "folder-turborepo-open",
|
|
6184
6185
|
".turbo": "folder-turborepo-open",
|
|
6185
|
-
"
|
|
6186
|
-
"
|
|
6187
|
-
"__.turbo__": "folder-turborepo-open",
|
|
6186
|
+
"_turbo": "folder-turborepo-open",
|
|
6187
|
+
"__turbo__": "folder-turborepo-open",
|
|
6188
6188
|
"typescript": "folder-typescript-open",
|
|
6189
6189
|
".typescript": "folder-typescript-open",
|
|
6190
6190
|
"_typescript": "folder-typescript-open",
|
|
@@ -7601,15 +7601,6 @@
|
|
|
7601
7601
|
".helmcharts": "folder-helm-open",
|
|
7602
7602
|
"_helmcharts": "folder-helm-open",
|
|
7603
7603
|
"__helmcharts__": "folder-helm-open",
|
|
7604
|
-
"..helm": "folder-helm-open",
|
|
7605
|
-
"_.helm": "folder-helm-open",
|
|
7606
|
-
"__.helm__": "folder-helm-open",
|
|
7607
|
-
"..helmchart": "folder-helm-open",
|
|
7608
|
-
"_.helmchart": "folder-helm-open",
|
|
7609
|
-
"__.helmchart__": "folder-helm-open",
|
|
7610
|
-
"..helmcharts": "folder-helm-open",
|
|
7611
|
-
"_.helmcharts": "folder-helm-open",
|
|
7612
|
-
"__.helmcharts__": "folder-helm-open",
|
|
7613
7604
|
"queue": "folder-queue-open",
|
|
7614
7605
|
".queue": "folder-queue-open",
|
|
7615
7606
|
"_queue": "folder-queue-open",
|
|
@@ -7902,6 +7893,7 @@
|
|
|
7902
7893
|
"sln.dotsettings": "settings",
|
|
7903
7894
|
"sln.dotsettings.user": "settings",
|
|
7904
7895
|
"cfg": "settings",
|
|
7896
|
+
"cnf": "settings",
|
|
7905
7897
|
"d.ts": "typescript-def",
|
|
7906
7898
|
"d.cts": "typescript-def",
|
|
7907
7899
|
"d.mts": "typescript-def",
|
|
@@ -8637,7 +8629,9 @@
|
|
|
8637
8629
|
"bru": "bruno",
|
|
8638
8630
|
"cairo": "cairo",
|
|
8639
8631
|
"alloy": "grafana-alloy",
|
|
8640
|
-
"ц": "tsil"
|
|
8632
|
+
"ц": "tsil",
|
|
8633
|
+
"tape": "tape",
|
|
8634
|
+
"hurl": "hurl"
|
|
8641
8635
|
},
|
|
8642
8636
|
"fileNames": {
|
|
8643
8637
|
".pug-lintrc": "pug",
|
|
@@ -8676,6 +8670,7 @@
|
|
|
8676
8670
|
"manifest.mf": "settings",
|
|
8677
8671
|
".clang-format": "settings",
|
|
8678
8672
|
".clang-tidy": "settings",
|
|
8673
|
+
".conf": "settings",
|
|
8679
8674
|
"astro.config.js": "astro-config",
|
|
8680
8675
|
"astro.config.mjs": "astro-config",
|
|
8681
8676
|
"astro.config.cjs": "astro-config",
|
|
@@ -8731,6 +8726,7 @@
|
|
|
8731
8726
|
"licence.txt": "certificate",
|
|
8732
8727
|
".htpasswd": "key",
|
|
8733
8728
|
"sha256sums": "key",
|
|
8729
|
+
".secrets": "key",
|
|
8734
8730
|
".ruby-version": "ruby",
|
|
8735
8731
|
"gemfile": "gemfile",
|
|
8736
8732
|
".rubocop.yml": "rubocop",
|
|
@@ -8872,6 +8868,7 @@
|
|
|
8872
8868
|
"nuxt.config.js": "nuxt",
|
|
8873
8869
|
"nuxt.config.ts": "nuxt",
|
|
8874
8870
|
".nuxtignore": "nuxt",
|
|
8871
|
+
".nuxtrc": "nuxt",
|
|
8875
8872
|
"harmonix.config.js": "harmonix",
|
|
8876
8873
|
"harmonix.config.ts": "harmonix",
|
|
8877
8874
|
"security.md": "lock",
|
|
@@ -8897,6 +8894,14 @@
|
|
|
8897
8894
|
"next.config.mjs": "next",
|
|
8898
8895
|
"next.config.ts": "next",
|
|
8899
8896
|
"next.config.mts": "next",
|
|
8897
|
+
".remarkrc": "remark",
|
|
8898
|
+
".remarkrc.cjs": "remark",
|
|
8899
|
+
".remarkrc.js": "remark",
|
|
8900
|
+
".remarkrc.json": "remark",
|
|
8901
|
+
".remarkrc.mjs": "remark",
|
|
8902
|
+
".remarkrc.yaml": "remark",
|
|
8903
|
+
".remarkrc.yml": "remark",
|
|
8904
|
+
".remarkignore": "remark",
|
|
8900
8905
|
"remix.config.js": "remix",
|
|
8901
8906
|
"remix.config.ts": "remix",
|
|
8902
8907
|
"artisan": "laravel",
|
|
@@ -9244,6 +9249,7 @@
|
|
|
9244
9249
|
".env.staging.local": "tune",
|
|
9245
9250
|
".env.test.local": "tune",
|
|
9246
9251
|
".env.uat": "tune",
|
|
9252
|
+
".vars": "tune",
|
|
9247
9253
|
"turbo.json": "turborepo",
|
|
9248
9254
|
".babelrc": "babel",
|
|
9249
9255
|
".babelrc.json": "babel",
|
package/dist/module/index.cjs
CHANGED
|
@@ -52,7 +52,7 @@ var merge = (...objects) => {
|
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
// src/core/generator/config/defaultConfig.ts
|
|
55
|
-
var
|
|
55
|
+
var getDefaultConfig = () => ({
|
|
56
56
|
folders: {
|
|
57
57
|
theme: "specific",
|
|
58
58
|
color: "#90a4ae",
|
|
@@ -68,21 +68,54 @@ var getDefaultConfiguration = () => ({
|
|
|
68
68
|
associations: {},
|
|
69
69
|
customClones: []
|
|
70
70
|
},
|
|
71
|
-
languages: { associations: {} }
|
|
71
|
+
languages: { associations: {} },
|
|
72
|
+
enableLogging: false,
|
|
73
|
+
logLevel: "info"
|
|
72
74
|
});
|
|
73
75
|
var padWithDefaultConfig = (config) => {
|
|
74
|
-
const withDefaultConfig = merge(
|
|
75
|
-
getDefaultConfiguration(),
|
|
76
|
-
config != null ? config : {}
|
|
77
|
-
);
|
|
76
|
+
const withDefaultConfig = merge(getDefaultConfig(), config != null ? config : {});
|
|
78
77
|
return withDefaultConfig;
|
|
79
78
|
};
|
|
80
79
|
|
|
80
|
+
// src/core/logging/logger.ts
|
|
81
|
+
var import_node_events = require("events");
|
|
82
|
+
|
|
83
|
+
// src/core/generator/constants.ts
|
|
84
|
+
var extensionName = "material-icon-theme";
|
|
85
|
+
var logEventKey = `${extensionName}-log-event`;
|
|
86
|
+
var iconFolderPath = "./../icons/";
|
|
87
|
+
var openedFolder = "-open";
|
|
88
|
+
var lightColorFileEnding = "_light";
|
|
89
|
+
var highContrastColorFileEnding = "_highContrast";
|
|
90
|
+
var cloneIconExtension = ".clone.svg";
|
|
91
|
+
var wildcardPattern = new RegExp(/^\*{1,2}\./);
|
|
92
|
+
|
|
93
|
+
// src/core/logging/logger.ts
|
|
94
|
+
var loggerEmitter = new import_node_events.EventEmitter({
|
|
95
|
+
captureRejections: true
|
|
96
|
+
});
|
|
97
|
+
var createLogger = () => {
|
|
98
|
+
const emitLogEvent = (level, message) => {
|
|
99
|
+
const timestamp = (/* @__PURE__ */ new Date()).toISOString();
|
|
100
|
+
const logEvent = {
|
|
101
|
+
level,
|
|
102
|
+
message: `[${level.toUpperCase()}] ${timestamp} - ${message}`
|
|
103
|
+
};
|
|
104
|
+
loggerEmitter.emit(logEventKey, logEvent);
|
|
105
|
+
};
|
|
106
|
+
return {
|
|
107
|
+
info: (message) => emitLogEvent("info", message),
|
|
108
|
+
error: (message) => emitLogEvent("error", message),
|
|
109
|
+
debug: (message) => emitLogEvent("debug", message)
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
var logger = createLogger();
|
|
113
|
+
|
|
81
114
|
// src/core/helpers/configHash.ts
|
|
82
115
|
var getFileConfigHash = (config) => {
|
|
83
116
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
84
117
|
try {
|
|
85
|
-
const defaults =
|
|
118
|
+
const defaults = getDefaultConfig();
|
|
86
119
|
let fileConfigString = "";
|
|
87
120
|
if (config.saturation !== defaults.saturation || config.opacity !== defaults.opacity || ((_a = config.folders) == null ? void 0 : _a.color) !== defaults.folders.color || ((_b = config.files) == null ? void 0 : _b.color) !== defaults.files.color || ((_e = (_d = (_c = config.files) == null ? void 0 : _c.customClones) == null ? void 0 : _d.length) != null ? _e : 0) > 0 || ((_h = (_g = (_f = config.folders) == null ? void 0 : _f.customClones) == null ? void 0 : _g.length) != null ? _h : 0) > 0) {
|
|
88
121
|
fileConfigString += `~${getHash(
|
|
@@ -98,7 +131,7 @@ var getFileConfigHash = (config) => {
|
|
|
98
131
|
}
|
|
99
132
|
return fileConfigString;
|
|
100
133
|
} catch (error) {
|
|
101
|
-
|
|
134
|
+
logger.error(error);
|
|
102
135
|
return "";
|
|
103
136
|
}
|
|
104
137
|
};
|
|
@@ -114,32 +147,6 @@ var getHash = (value) => {
|
|
|
114
147
|
return hash;
|
|
115
148
|
};
|
|
116
149
|
|
|
117
|
-
// src/core/generator/constants.ts
|
|
118
|
-
var iconFolderPath = "./../icons/";
|
|
119
|
-
var openedFolder = "-open";
|
|
120
|
-
var lightColorFileEnding = "_light";
|
|
121
|
-
var highContrastColorFileEnding = "_highContrast";
|
|
122
|
-
var cloneIconExtension = ".clone.svg";
|
|
123
|
-
var wildcardPattern = new RegExp(/^\*{1,2}\./);
|
|
124
|
-
|
|
125
|
-
// src/core/models/manifest.ts
|
|
126
|
-
var createEmptyManifest = () => ({
|
|
127
|
-
iconDefinitions: {},
|
|
128
|
-
folderNames: {},
|
|
129
|
-
folderNamesExpanded: {},
|
|
130
|
-
fileExtensions: {},
|
|
131
|
-
fileNames: {},
|
|
132
|
-
languageIds: {},
|
|
133
|
-
light: {
|
|
134
|
-
fileExtensions: {},
|
|
135
|
-
fileNames: {}
|
|
136
|
-
},
|
|
137
|
-
highContrast: {
|
|
138
|
-
fileExtensions: {},
|
|
139
|
-
fileNames: {}
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
|
|
143
150
|
// src/core/generator/fileGenerator.ts
|
|
144
151
|
var loadFileIconDefinitions = (fileIcons2, config, manifest) => {
|
|
145
152
|
var _a;
|
|
@@ -480,6 +487,24 @@ var getCustomIcons2 = (folderAssociations) => {
|
|
|
480
487
|
return icons;
|
|
481
488
|
};
|
|
482
489
|
|
|
490
|
+
// src/core/models/manifest.ts
|
|
491
|
+
var createEmptyManifest = () => ({
|
|
492
|
+
iconDefinitions: {},
|
|
493
|
+
folderNames: {},
|
|
494
|
+
folderNamesExpanded: {},
|
|
495
|
+
fileExtensions: {},
|
|
496
|
+
fileNames: {},
|
|
497
|
+
languageIds: {},
|
|
498
|
+
light: {
|
|
499
|
+
fileExtensions: {},
|
|
500
|
+
fileNames: {}
|
|
501
|
+
},
|
|
502
|
+
highContrast: {
|
|
503
|
+
fileExtensions: {},
|
|
504
|
+
fileNames: {}
|
|
505
|
+
}
|
|
506
|
+
});
|
|
507
|
+
|
|
483
508
|
// src/core/models/icons/iconPack.ts
|
|
484
509
|
var IconPack = /* @__PURE__ */ ((IconPack2) => {
|
|
485
510
|
IconPack2["Angular"] = "angular";
|
|
@@ -819,7 +844,8 @@ var fileIcons = {
|
|
|
819
844
|
"prefs",
|
|
820
845
|
"sln.dotsettings",
|
|
821
846
|
"sln.dotsettings.user",
|
|
822
|
-
"cfg"
|
|
847
|
+
"cfg",
|
|
848
|
+
"cnf"
|
|
823
849
|
],
|
|
824
850
|
fileNames: [
|
|
825
851
|
".jshintignore",
|
|
@@ -828,7 +854,8 @@ var fileIcons = {
|
|
|
828
854
|
".yardopts",
|
|
829
855
|
"manifest.mf",
|
|
830
856
|
".clang-format",
|
|
831
|
-
".clang-tidy"
|
|
857
|
+
".clang-tidy",
|
|
858
|
+
".conf"
|
|
832
859
|
]
|
|
833
860
|
},
|
|
834
861
|
{
|
|
@@ -1046,7 +1073,7 @@ var fileIcons = {
|
|
|
1046
1073
|
"sha256sum",
|
|
1047
1074
|
"sha256sums"
|
|
1048
1075
|
],
|
|
1049
|
-
fileNames: [".htpasswd", "sha256sums"]
|
|
1076
|
+
fileNames: [".htpasswd", "sha256sums", ".secrets"]
|
|
1050
1077
|
},
|
|
1051
1078
|
{
|
|
1052
1079
|
name: "font",
|
|
@@ -1346,7 +1373,7 @@ var fileIcons = {
|
|
|
1346
1373
|
},
|
|
1347
1374
|
{
|
|
1348
1375
|
name: "nuxt",
|
|
1349
|
-
fileNames: ["nuxt.config.js", "nuxt.config.ts", ".nuxtignore"]
|
|
1376
|
+
fileNames: ["nuxt.config.js", "nuxt.config.ts", ".nuxtignore", ".nuxtrc"]
|
|
1350
1377
|
},
|
|
1351
1378
|
{
|
|
1352
1379
|
name: "harmonix",
|
|
@@ -1541,6 +1568,19 @@ var fileIcons = {
|
|
|
1541
1568
|
],
|
|
1542
1569
|
light: true
|
|
1543
1570
|
},
|
|
1571
|
+
{
|
|
1572
|
+
name: "remark",
|
|
1573
|
+
fileNames: [
|
|
1574
|
+
".remarkrc",
|
|
1575
|
+
".remarkrc.cjs",
|
|
1576
|
+
".remarkrc.js",
|
|
1577
|
+
".remarkrc.json",
|
|
1578
|
+
".remarkrc.mjs",
|
|
1579
|
+
".remarkrc.yaml",
|
|
1580
|
+
".remarkrc.yml",
|
|
1581
|
+
".remarkignore"
|
|
1582
|
+
]
|
|
1583
|
+
},
|
|
1544
1584
|
{
|
|
1545
1585
|
name: "remix",
|
|
1546
1586
|
fileNames: ["remix.config.js", "remix.config.ts"],
|
|
@@ -1711,7 +1751,8 @@ var fileIcons = {
|
|
|
1711
1751
|
".env.production.local",
|
|
1712
1752
|
".env.staging.local",
|
|
1713
1753
|
".env.test.local",
|
|
1714
|
-
".env.uat"
|
|
1754
|
+
".env.uat",
|
|
1755
|
+
".vars"
|
|
1715
1756
|
]
|
|
1716
1757
|
},
|
|
1717
1758
|
{
|
|
@@ -3073,6 +3114,15 @@ var fileIcons = {
|
|
|
3073
3114
|
{
|
|
3074
3115
|
name: "deepsource",
|
|
3075
3116
|
fileNames: [".deepsource.toml"]
|
|
3117
|
+
},
|
|
3118
|
+
{
|
|
3119
|
+
name: "tape",
|
|
3120
|
+
fileExtensions: ["tape"],
|
|
3121
|
+
clone: { base: "video", color: "purple-300" }
|
|
3122
|
+
},
|
|
3123
|
+
{
|
|
3124
|
+
name: "hurl",
|
|
3125
|
+
fileExtensions: ["hurl"]
|
|
3076
3126
|
}
|
|
3077
3127
|
])
|
|
3078
3128
|
};
|
|
@@ -3364,7 +3414,7 @@ var folderIcons = [
|
|
|
3364
3414
|
},
|
|
3365
3415
|
{
|
|
3366
3416
|
name: "folder-astro",
|
|
3367
|
-
folderNames: ["
|
|
3417
|
+
folderNames: ["astro"]
|
|
3368
3418
|
},
|
|
3369
3419
|
{
|
|
3370
3420
|
name: "folder-database",
|
|
@@ -3442,7 +3492,7 @@ var folderIcons = [
|
|
|
3442
3492
|
]
|
|
3443
3493
|
},
|
|
3444
3494
|
{ name: "folder-lua", folderNames: ["lua"] },
|
|
3445
|
-
{ name: "folder-turborepo", folderNames: ["
|
|
3495
|
+
{ name: "folder-turborepo", folderNames: ["turbo"] },
|
|
3446
3496
|
{
|
|
3447
3497
|
name: "folder-typescript",
|
|
3448
3498
|
folderNames: ["typescript", "ts", "typings", "@types", "types"]
|
|
@@ -3880,14 +3930,7 @@ var folderIcons = [
|
|
|
3880
3930
|
},
|
|
3881
3931
|
{
|
|
3882
3932
|
name: "folder-helm",
|
|
3883
|
-
folderNames: [
|
|
3884
|
-
"helm",
|
|
3885
|
-
"helmchart",
|
|
3886
|
-
"helmcharts",
|
|
3887
|
-
".helm",
|
|
3888
|
-
".helmchart",
|
|
3889
|
-
".helmcharts"
|
|
3890
|
-
]
|
|
3933
|
+
folderNames: ["helm", "helmchart", "helmcharts"]
|
|
3891
3934
|
},
|
|
3892
3935
|
{
|
|
3893
3936
|
name: "folder-queue",
|
|
@@ -4213,7 +4256,7 @@ var disableLanguagesByPack = (languageIcons2, activatedIconPack) => {
|
|
|
4213
4256
|
});
|
|
4214
4257
|
};
|
|
4215
4258
|
|
|
4216
|
-
// src/core/generator/
|
|
4259
|
+
// src/core/generator/generateManifest.ts
|
|
4217
4260
|
var generateManifest = (config) => {
|
|
4218
4261
|
const refinedConfig = padWithDefaultConfig(config);
|
|
4219
4262
|
const manifest = createEmptyManifest();
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Config } from '../models/icons/config';
|
|
2
|
+
/**
|
|
3
|
+
* Apply the configuration to the icons. But only if the configuration has changed.
|
|
4
|
+
* If the affectedConfig is not set then all icons will be updated.
|
|
5
|
+
*
|
|
6
|
+
* @param config Configuration that customizes the icons and the manifest.
|
|
7
|
+
* @param affectedConfig Set of configuration keys that have changed so that not all functions need to be executed.
|
|
8
|
+
*/
|
|
9
|
+
export declare const applyConfigToIcons: (config: Config, oldConfig: Config) => Promise<void>;
|
|
10
|
+
//# sourceMappingURL=applyConfigToIcons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applyConfigToIcons.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/applyConfigToIcons.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAMrD;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,WAAkB,MAAM,aAAa,MAAM,kBAsBzE,CAAC"}
|
|
@@ -6,13 +6,13 @@ import type { Manifest } from '../../models/manifest';
|
|
|
6
6
|
* Creates custom icons by cloning already existing icons and changing
|
|
7
7
|
* their colors, based on the user's provided configurations.
|
|
8
8
|
*/
|
|
9
|
-
export declare
|
|
9
|
+
export declare const customClonesIcons: (manifest: Manifest, config: Config) => Promise<Manifest>;
|
|
10
10
|
/**
|
|
11
11
|
* Creates custom icons by cloning already existing icons and changing
|
|
12
12
|
* their colors, based on the configurations provided by the extension.
|
|
13
13
|
* (this is meant to be called at build time)
|
|
14
14
|
*/
|
|
15
|
-
export declare
|
|
15
|
+
export declare const generateConfiguredClones: (iconsList: FolderTheme[] | FileIcons, manifest: Manifest) => Promise<void>;
|
|
16
16
|
/** Checks if there are any custom clones to be created */
|
|
17
|
-
export declare
|
|
17
|
+
export declare const hasCustomClones: (config: Config) => boolean;
|
|
18
18
|
//# sourceMappingURL=clonesGenerator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clonesGenerator.d.ts","sourceRoot":"","sources":["../../../../../src/core/generator/clones/clonesGenerator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"clonesGenerator.d.ts","sourceRoot":"","sources":["../../../../../src/core/generator/clones/clonesGenerator.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,MAAM,EAIP,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAKtD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,aAClB,QAAQ,UACV,MAAM,KACb,OAAO,CAAC,QAAQ,CAiBlB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,cACxB,WAAW,EAAE,GAAG,SAAS,YAC1B,QAAQ,kBA+CnB,CAAC;AAEF,0DAA0D;AAC1D,eAAO,MAAM,eAAe,WAAY,MAAM,KAAG,OAKhD,CAAC"}
|
|
@@ -29,10 +29,10 @@ export declare const isFolder: (clone: CustomClone) => clone is FolderIconClone;
|
|
|
29
29
|
* @param manifest the current configuration of the extension
|
|
30
30
|
* @param hash the current hash being applied to the icons
|
|
31
31
|
*/
|
|
32
|
-
export declare
|
|
32
|
+
export declare const getCloneData: (cloneOpts: CustomClone, manifest: Manifest, subFolder: string, hash: string, ext?: string) => CloneData[] | undefined;
|
|
33
33
|
/**
|
|
34
34
|
* removes the clones folder if it exists
|
|
35
35
|
* and creates a new one if `keep` is true
|
|
36
36
|
*/
|
|
37
|
-
export declare
|
|
37
|
+
export declare const clearCloneFolder: (keep?: boolean) => Promise<void>;
|
|
38
38
|
//# sourceMappingURL=cloneData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloneData.d.ts","sourceRoot":"","sources":["../../../../../../src/core/generator/clones/utils/cloneData.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cloneData.d.ts","sourceRoot":"","sources":["../../../../../../src/core/generator/clones/utils/cloneData.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,WAAW,EAEX,eAAe,EAChB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAOzD,oBAAY,OAAO;IACjB,IAAI,IAAA;IACJ,IAAI,IAAA;IACJ,KAAK,IAAA;IACL,SAAS,IAAA;CACV;AAED,oBAAY,IAAI;IACd,MAAM,IAAA;IACN,IAAI,IAAA;CACL;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AAEF,qEAAqE;AACrE,eAAO,MAAM,QAAQ,UAAW,WAAW,KAAG,KAAK,IAAI,eAEtD,CAAC;AAMF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,cACZ,WAAW,YACZ,QAAQ,aACP,MAAM,QACX,MAAM,QACN,MAAM,KACX,SAAS,EAAE,GAAG,SAwBhB,CAAC;AAgIF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,sBAAwB,OAAO,CAAC,IAAI,CAUhE,CAAC"}
|
|
@@ -3,17 +3,17 @@ import { type INode } from 'svgson';
|
|
|
3
3
|
* Recursively walks through an SVG node tree and its children,
|
|
4
4
|
* calling a callback on each node.
|
|
5
5
|
*/
|
|
6
|
-
export declare
|
|
6
|
+
export declare const traverse: (node: INode, callback: (node: INode) => void, filter?: boolean) => void;
|
|
7
7
|
/** Reads an icon from the file system and returns its content. */
|
|
8
|
-
export declare
|
|
8
|
+
export declare const readIcon: (path: string, hash: string) => Promise<string>;
|
|
9
9
|
/** Clones an icon and changes its colors according to the clone options. */
|
|
10
|
-
export declare
|
|
10
|
+
export declare const cloneIcon: (path: string, color: string, hash?: string) => Promise<string>;
|
|
11
11
|
/** Gets the style attribute of an SVG node if it exists. */
|
|
12
|
-
export declare
|
|
12
|
+
export declare const getStyle: (node: INode) => Record<string, string>;
|
|
13
13
|
/** Converts object to css style string. */
|
|
14
|
-
export declare
|
|
14
|
+
export declare const stringifyStyle: (css: Record<string, string>) => string;
|
|
15
15
|
/** Replaces colors in an SVG node using a replacement map. */
|
|
16
|
-
export declare
|
|
16
|
+
export declare const replaceColors: (node: INode, replacements: Map<string, string>) => void;
|
|
17
17
|
/** Creates a clone configuration with empty light object. */
|
|
18
|
-
export declare
|
|
18
|
+
export declare const createCloneConfig: () => import("../../../models/manifest").Manifest;
|
|
19
19
|
//# sourceMappingURL=cloning.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloning.d.ts","sourceRoot":"","sources":["../../../../../../src/core/generator/clones/utils/cloning.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,KAAK,
|
|
1
|
+
{"version":3,"file":"cloning.d.ts","sourceRoot":"","sources":["../../../../../../src/core/generator/clones/utils/cloning.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,KAAK,EAAoB,MAAM,QAAQ,CAAC;AAItD;;;GAGG;AACH,eAAO,MAAM,QAAQ,SACb,KAAK,YACD,CAAC,IAAI,EAAE,KAAK,KAAK,IAAI,2BAUhC,CAAC;AAEF,kEAAkE;AAClE,eAAO,MAAM,QAAQ,SAAgB,MAAM,QAAQ,MAAM,KAAG,OAAO,CAAC,MAAM,CAOzE,CAAC;AAEF,4EAA4E;AAC5E,eAAO,MAAM,SAAS,SACd,MAAM,SACL,MAAM,oBAEZ,OAAO,CAAC,MAAM,CAMhB,CAAC;AAEF,4DAA4D;AAC5D,eAAO,MAAM,QAAQ,SAAU,KAAK,2BAKnC,CAAC;AAaF,2CAA2C;AAC3C,eAAO,MAAM,cAAc,QAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,WAIzD,CAAC;AAEF,8DAA8D;AAC9D,eAAO,MAAM,aAAa,SAClB,KAAK,gBACG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,SAqClC,CAAC;AAEF,6DAA6D;AAC7D,eAAO,MAAM,iBAAiB,mDAU7B,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type INode } from 'svgson';
|
|
2
2
|
/** Get all the colors used in the SVG node as a `Set` list. **/
|
|
3
|
-
export declare
|
|
3
|
+
export declare const getColorList: (node: INode) => Set<string>;
|
|
4
4
|
/** given a set of colors, orders them from dark to light. **/
|
|
5
|
-
export declare
|
|
5
|
+
export declare const orderDarkToLight: (colors: Set<string>) => string[];
|
|
6
6
|
/** checks if a string is a valid color. **/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const isValidColor: (color: string | undefined) => boolean;
|
|
8
8
|
/**
|
|
9
9
|
* Creates a map of color replacements based on the base color and
|
|
10
10
|
* the list of colors.
|
|
@@ -14,5 +14,5 @@ export declare function isValidColor(color: string | undefined): boolean;
|
|
|
14
14
|
* the material palette to find the most appropriate color for the rest
|
|
15
15
|
* in the list.
|
|
16
16
|
*/
|
|
17
|
-
export declare
|
|
17
|
+
export declare const replacementMap: (baseColor: string, colors: Set<string>) => Map<string, string>;
|
|
18
18
|
//# sourceMappingURL=colors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/generator/clones/utils/color/colors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,QAAQ,CAAC;AAOpC,gEAAgE;AAChE,
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/generator/clones/utils/color/colors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,QAAQ,CAAC;AAOpC,gEAAgE;AAChE,eAAO,MAAM,YAAY,SAAU,KAAK,gBAoCvC,CAAC;AAEF,8DAA8D;AAC9D,eAAO,MAAM,gBAAgB,WAAY,GAAG,CAAC,MAAM,CAAC,aAenD,CAAC;AAMF,4CAA4C;AAC5C,eAAO,MAAM,YAAY,UAAW,MAAM,GAAG,SAAS,KAAG,OAKxD,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,cAAe,MAAM,UAAU,GAAG,CAAC,MAAM,CAAC,wBA0CpE,CAAC"}
|
|
@@ -260,10 +260,10 @@ export declare const materialPalette: {
|
|
|
260
260
|
* Gets the material color from the material palette
|
|
261
261
|
* @param key the key of the material color e.g. 'blue-grey-500'
|
|
262
262
|
*/
|
|
263
|
-
export declare
|
|
263
|
+
export declare const getMaterialColorByKey: (key: string) => string | undefined;
|
|
264
264
|
/**
|
|
265
265
|
* Given a color, returns the closest material color from the
|
|
266
266
|
* material palette.
|
|
267
267
|
*/
|
|
268
|
-
export declare
|
|
268
|
+
export declare const closerMaterialColorTo: (color: string) => string;
|
|
269
269
|
//# sourceMappingURL=materialPalette.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"materialPalette.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/generator/clones/utils/color/materialPalette.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiQ3B,CAAC;AAEF;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"materialPalette.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/generator/clones/utils/color/materialPalette.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiQ3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,QAAS,MAAM,KAAG,MAAM,GAAG,SAM5D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,UAAW,MAAM,KAAG,MAkBrD,CAAC"}
|
|
@@ -3,7 +3,7 @@ import type { RecursivePartial } from '../../types/recursivePartial';
|
|
|
3
3
|
/**
|
|
4
4
|
* The options control the generator and decide which icons are disabled or not.
|
|
5
5
|
*/
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const getDefaultConfig: () => Required<Config>;
|
|
7
7
|
/**
|
|
8
8
|
* Fill in missing configuration values with the default values.
|
|
9
9
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultConfig.d.ts","sourceRoot":"","sources":["../../../../../src/core/generator/config/defaultConfig.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"defaultConfig.d.ts","sourceRoot":"","sources":["../../../../../src/core/generator/config/defaultConfig.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAO,QAAQ,CAAC,MAAM,CAmBjD,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,YACtB,gBAAgB,CAAC,MAAM,CAAC,KAChC,MAIF,CAAC"}
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
* Name of the VS Code extension.
|
|
3
3
|
*/
|
|
4
4
|
export declare const extensionName = "material-icon-theme";
|
|
5
|
+
/**
|
|
6
|
+
* Name of the extension publisher.
|
|
7
|
+
*/
|
|
8
|
+
export declare const extensionPublisher = "PKief";
|
|
9
|
+
/**
|
|
10
|
+
* Key to identify the log event.
|
|
11
|
+
*/
|
|
12
|
+
export declare const logEventKey = "material-icon-theme-log-event";
|
|
5
13
|
/**
|
|
6
14
|
* Path where the icons are located.
|
|
7
15
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,aAAa,wBAAwB,CAAC;AAEnD;;GAEG;AACH,eAAO,MAAM,cAAc,gBAAgB,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,YAAY,wBAAwB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,YAAY,UAAU,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,oBAAoB,WAAW,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,2BAA2B,kBAAkB,CAAC;AAE3D;;GAEG;AACH,eAAO,MAAM,kBAAkB,eAAe,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,YAAY,YAAY,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,eAAe,QAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,aAAa,wBAAwB,CAAC;AAEnD;;GAEG;AACH,eAAO,MAAM,kBAAkB,UAAU,CAAC;AAE1C;;GAEG;AACH,eAAO,MAAM,WAAW,kCAA+B,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,cAAc,gBAAgB,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,YAAY,wBAAwB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,YAAY,UAAU,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,oBAAoB,WAAW,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,2BAA2B,kBAAkB,CAAC;AAE3D;;GAEG;AACH,eAAO,MAAM,kBAAkB,eAAe,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,YAAY,YAAY,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,eAAe,QAA2B,CAAC"}
|
|
@@ -5,5 +5,5 @@ import type { Manifest } from '../models/manifest';
|
|
|
5
5
|
* Get all file icons that can be used in this theme.
|
|
6
6
|
*/
|
|
7
7
|
export declare const loadFileIconDefinitions: (fileIcons: FileIcons, config: Config, manifest: Manifest) => Manifest;
|
|
8
|
-
export declare const generateFileIcons: (color: string, opacity: number, saturation: number) => void
|
|
8
|
+
export declare const generateFileIcons: (color: string, opacity: number, saturation: number) => Promise<void>;
|
|
9
9
|
//# sourceMappingURL=fileGenerator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileGenerator.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/fileGenerator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fileGenerator.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/fileGenerator.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAoB,MAAM,wBAAwB,CAAC;AAEvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAEjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAWnD;;GAEG;AACH,eAAO,MAAM,uBAAuB,cACvB,SAAS,UACZ,MAAM,YACJ,QAAQ,KACjB,QAmFF,CAAC;AAuFF,eAAO,MAAM,iBAAiB,UACrB,MAAM,WACJ,MAAM,cACH,MAAM,kBAenB,CAAC"}
|
|
@@ -5,5 +5,5 @@ import type { Manifest } from '../models/manifest';
|
|
|
5
5
|
* Get the folder icon definitions as object.
|
|
6
6
|
*/
|
|
7
7
|
export declare const loadFolderIconDefinitions: (folderIcons: FolderTheme[], config: Config, manifest: Manifest) => Manifest;
|
|
8
|
-
export declare const generateFolderIcons: (color: string, opacity: number, saturation: number) => void
|
|
8
|
+
export declare const generateFolderIcons: (color: string, opacity: number, saturation: number) => Promise<void>;
|
|
9
9
|
//# sourceMappingURL=folderGenerator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folderGenerator.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/folderGenerator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"folderGenerator.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/folderGenerator.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAoB,MAAM,wBAAwB,CAAC;AAGvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAEvE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAWnD;;GAEG;AACH,eAAO,MAAM,yBAAyB,gBACvB,WAAW,EAAE,UAClB,MAAM,YACJ,QAAQ,KACjB,QAmCF,CAAC;AA4PF,eAAO,MAAM,mBAAmB,UACvB,MAAM,WACJ,MAAM,cACH,MAAM,kBAuCnB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type Manifest, type ManifestConfig } from '../models/manifest';
|
|
2
|
+
/**
|
|
3
|
+
* Generate the manifest that will be written as JSON file.
|
|
4
|
+
*/
|
|
5
|
+
export declare const generateManifest: (config?: ManifestConfig) => Manifest;
|
|
6
|
+
//# sourceMappingURL=generateManifest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateManifest.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/generateManifest.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,cAAc,EAEpB,MAAM,oBAAoB,CAAC;AAM5B;;GAEG;AACH,eAAO,MAAM,gBAAgB,YAAa,cAAc,KAAG,QAwB1D,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Changes the opacity of all icons in the set.
|
|
3
3
|
* @param config Icon JSON options which include the opacity value.
|
|
4
4
|
*/
|
|
5
|
-
export declare const setIconOpacity: (opacity: number, filesAssociations: Record<string, string>) => void
|
|
5
|
+
export declare const setIconOpacity: (opacity: number, filesAssociations: Record<string, string>) => Promise<void>;
|
|
6
6
|
/**
|
|
7
7
|
* Validate the opacity value.
|
|
8
8
|
* @param opacity Opacity value
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iconOpacity.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/iconOpacity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"iconOpacity.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/iconOpacity.ts"],"names":[],"mappings":"AAQA;;;GAGG;AACH,eAAO,MAAM,cAAc,YAChB,MAAM,qBACI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,kBA6B1C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,YAAa,MAAM,GAAG,SAAS,YAE/D,CAAC;AAmCF,gEAAgE;AAChE,eAAO,MAAM,gBAAgB,QAAS,MAAM,WAAW,MAAM,KAAG,MAW/D,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @param config Icon JSON options which include the saturation value.
|
|
4
4
|
* @param fileNames Only change the saturation of certain file names.
|
|
5
5
|
*/
|
|
6
|
-
export declare const setIconSaturation: (saturation: number, filesAssociations: Record<string, string>) => void
|
|
6
|
+
export declare const setIconSaturation: (saturation: number, filesAssociations: Record<string, string>) => Promise<void>;
|
|
7
7
|
/**
|
|
8
8
|
* Validate the saturation value.
|
|
9
9
|
* @param saturation Saturation value
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iconSaturation.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/iconSaturation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"iconSaturation.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/iconSaturation.ts"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,eAChB,MAAM,qBACC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,kBA6B1C,CAAC;AAyDF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,eAAgB,MAAM,GAAG,SAAS,YAErE,CAAC;AAEF,8DAA8D;AAC9D,eAAO,MAAM,mBAAmB,QACzB,MAAM,cACC,MAAM,KACjB,MAsBF,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Config } from '../models/icons/config';
|
|
2
|
+
/**
|
|
3
|
+
* Rename all icon files according their respective config.
|
|
4
|
+
*
|
|
5
|
+
* The rename triggers a change event in VS Code, which will update the icons in the UI.
|
|
6
|
+
* @param config Icon Json Options
|
|
7
|
+
*/
|
|
8
|
+
export declare const renameIconFiles: (config: Config) => void;
|
|
9
|
+
//# sourceMappingURL=renameIconFiles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renameIconFiles.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/renameIconFiles.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAGrD;;;;;GAKG;AACH,eAAO,MAAM,eAAe,WAAY,MAAM,SAsC7C,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const writeSVGFiles: (iconName: string, svg: string, opacity: number, saturation: number) => void
|
|
1
|
+
export declare const writeSVGFiles: (iconName: string, svg: string, opacity: number, saturation: number) => Promise<void>;
|
|
2
2
|
export declare const getPath: (d: string, color: string) => string;
|
|
3
3
|
export declare const getSVG: (path: string, viewBoxSize?: number) => string;
|
|
4
4
|
//# sourceMappingURL=svg.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"svg.d.ts","sourceRoot":"","sources":["../../../../../src/core/generator/shared/svg.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"svg.d.ts","sourceRoot":"","sources":["../../../../../src/core/generator/shared/svg.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,aAAa,aACd,MAAM,OACX,MAAM,WACF,MAAM,cACH,MAAM,kBAanB,CAAC;AAEF,eAAO,MAAM,OAAO,MAAO,MAAM,SAAS,MAAM,WACX,CAAC;AAEtC,eAAO,MAAM,MAAM,SAAU,MAAM,iCACkE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configHash.d.ts","sourceRoot":"","sources":["../../../../src/core/helpers/configHash.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"configHash.d.ts","sourceRoot":"","sources":["../../../../src/core/helpers/configHash.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,WAAY,OAAO,CAAC,MAAM,CAAC,KAAG,MA6B3D,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Write content to a file.
|
|
3
|
+
*
|
|
4
|
+
* @param filePath File path to write to
|
|
5
|
+
* @param data Content to write to the file
|
|
6
|
+
*/
|
|
7
|
+
export declare const writeToFile: (filePath: string, data: string, encoding?: BufferEncoding) => Promise<void>;
|
|
8
|
+
//# sourceMappingURL=writeFile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeFile.d.ts","sourceRoot":"","sources":["../../../../src/core/helpers/writeFile.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,eAAO,MAAM,WAAW,aACZ,MAAM,QACV,MAAM,aACD,cAAc,kBAQ1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translate.d.ts","sourceRoot":"","sources":["../../../../src/core/i18n/translate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"translate.d.ts","sourceRoot":"","sources":["../../../../src/core/i18n/translate.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAsB9D,kCAAkC;AAClC,eAAO,MAAM,gBAAgB,aAAoB,MAAM,kBAQtD,CAAC;AAiDF;;;;;KAKK;AACL,eAAO,MAAM,mBAAmB,QACzB,MAAM,yDAGV,MAAM,GAAG,SAEX,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,QAAS,MAAM,gBAAgB,MAAM,EAAE,KAAG,MAK/D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,OAAO,WAAW,MAAM,gBAAqB,MAAM,EAAE,WAOjE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileIcons.d.ts","sourceRoot":"","sources":["../../../../src/core/icons/fileIcons.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAKjE;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"fileIcons.d.ts","sourceRoot":"","sources":["../../../../src/core/icons/fileIcons.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAKjE;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,SAw9EvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folderIcons.d.ts","sourceRoot":"","sources":["../../../../src/core/icons/folderIcons.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAGvE;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"folderIcons.d.ts","sourceRoot":"","sources":["../../../../src/core/icons/folderIcons.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAGvE;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,WAAW,EAs3BpC,CAAC"}
|
|
@@ -1,20 +1,25 @@
|
|
|
1
|
+
export { applyConfigToIcons } from './generator/applyConfigToIcons';
|
|
1
2
|
export { customClonesIcons, generateConfiguredClones, hasCustomClones, } from './generator/clones/clonesGenerator';
|
|
2
3
|
export { clearCloneFolder } from './generator/clones/utils/cloneData';
|
|
3
|
-
export {
|
|
4
|
-
export { extensionName, highContrastColorFileEnding, lightColorFileEnding, manifestName, openedFolder, } from './generator/constants';
|
|
4
|
+
export { getDefaultConfig, padWithDefaultConfig, } from './generator/config/defaultConfig';
|
|
5
|
+
export { extensionName, extensionPublisher, highContrastColorFileEnding, lightColorFileEnding, logEventKey, manifestName, openedFolder, } from './generator/constants';
|
|
5
6
|
export { generateFileIcons } from './generator/fileGenerator';
|
|
6
7
|
export { generateFolderIcons } from './generator/folderGenerator';
|
|
8
|
+
export { generateManifest } from './generator/generateManifest';
|
|
7
9
|
export { validateOpacityValue } from './generator/iconOpacity';
|
|
8
10
|
export { validateSaturationValue } from './generator/iconSaturation';
|
|
9
|
-
export {
|
|
11
|
+
export { renameIconFiles } from './generator/renameIconFiles';
|
|
10
12
|
export { validateHEXColorCode } from './generator/shared/validation';
|
|
11
13
|
export { availableIconPacks } from './helpers/iconPacks';
|
|
14
|
+
export { get, merge, set } from './helpers/object';
|
|
12
15
|
export { resolvePath } from './helpers/resolvePath';
|
|
13
16
|
export { capitalizeFirstLetter, toTitleCase } from './helpers/titlecase';
|
|
17
|
+
export { writeToFile } from './helpers/writeFile';
|
|
14
18
|
export { initTranslations, translate } from './i18n/translate';
|
|
15
19
|
export { fileIcons } from './icons/fileIcons';
|
|
16
20
|
export { folderIcons } from './icons/folderIcons';
|
|
17
21
|
export { languageIcons } from './icons/languageIcons';
|
|
22
|
+
export { createLoggingObserver, logger, type LogEvent, type LogLevel, } from './logging/logger';
|
|
18
23
|
export type { CloneOptions } from './models/icons/cloneOptions';
|
|
19
24
|
export type { Config, IconAssociations } from './models/icons/config';
|
|
20
25
|
export type { DefaultIcon } from './models/icons/defaultIcon';
|
|
@@ -25,6 +30,6 @@ export type { FolderTheme, FolderThemeName, } from './models/icons/folders/folde
|
|
|
25
30
|
export { IconPack, type IconPackValue } from './models/icons/iconPack';
|
|
26
31
|
export type { LanguageIcon } from './models/icons/languages/languageIdentifier';
|
|
27
32
|
export { FileNamePattern } from './models/icons/patterns/patterns';
|
|
28
|
-
export { type Manifest } from './models/manifest';
|
|
33
|
+
export { type Manifest, type ManifestConfig } from './models/manifest';
|
|
29
34
|
export { parseByPattern } from './patterns/patterns';
|
|
30
35
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,eAAe,GAChB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,eAAe,GAChB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EACL,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,2BAA2B,EAC3B,oBAAoB,EACpB,WAAW,EACX,YAAY,EACZ,YAAY,GACb,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EACL,qBAAqB,EACrB,MAAM,EACN,KAAK,QAAQ,EACb,KAAK,QAAQ,GACd,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACtE,YAAY,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,YAAY,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC9D,YAAY,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAChE,YAAY,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AACpE,YAAY,EACV,WAAW,EACX,eAAe,GAChB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACvE,YAAY,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EventEmitter } from 'node:events';
|
|
2
|
+
export type LogLevel = 'info' | 'error' | 'debug';
|
|
3
|
+
export type LogEvent = {
|
|
4
|
+
level: LogLevel;
|
|
5
|
+
message: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Create a logging observer that listens to log events and calls a callback function when a log event is emitted.
|
|
9
|
+
*
|
|
10
|
+
* @param minLogLevel Minimum log level to observe
|
|
11
|
+
* @param callback Callback function to be called when a log event is emitted
|
|
12
|
+
*/
|
|
13
|
+
export declare const createLoggingObserver: (minLogLevel: LogLevel, callback: (event: LogEvent) => void) => EventEmitter;
|
|
14
|
+
export declare const logger: {
|
|
15
|
+
info: (message: unknown) => void;
|
|
16
|
+
error: (message: unknown) => void;
|
|
17
|
+
debug: (message: unknown) => void;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../../src/core/logging/logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;AAYlD,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,EAAE,QAAQ,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAsBF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,gBACnB,QAAQ,YACX,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,KAClC,YAQF,CAAC;AAEF,eAAO,MAAM,MAAM;oBAzBC,OAAO;qBACN,OAAO;qBACP,OAAO;CAuBQ,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { LogLevel } from '../../logging/logger';
|
|
1
2
|
import type { FolderThemeName } from './folders/folderTheme';
|
|
2
3
|
import type { IconPackValue } from './iconPack';
|
|
3
4
|
export type Config = {
|
|
@@ -19,6 +20,8 @@ export type Config = {
|
|
|
19
20
|
languages: {
|
|
20
21
|
associations: IconAssociations;
|
|
21
22
|
};
|
|
23
|
+
enableLogging: boolean;
|
|
24
|
+
logLevel: LogLevel;
|
|
22
25
|
};
|
|
23
26
|
export type IconAssociations = {
|
|
24
27
|
[pattern: string]: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/core/models/icons/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,MAAM,MAAM,GAAG;IACnB,cAAc,EAAE,aAAa,CAAC;IAC9B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE;QACP,KAAK,EAAE,eAAe,CAAC;QACvB,KAAK,EAAE,MAAM,CAAC;QACd,YAAY,EAAE,gBAAgB,CAAC;QAC/B,YAAY,EAAE,eAAe,EAAE,CAAC;KACjC,CAAC;IACF,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,YAAY,EAAE,gBAAgB,CAAC;QAC/B,YAAY,EAAE,aAAa,EAAE,CAAC;KAC/B,CAAC;IACF,SAAS,EAAE;QACT,YAAY,EAAE,gBAAgB,CAAC;KAChC,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/core/models/icons/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,MAAM,MAAM,GAAG;IACnB,cAAc,EAAE,aAAa,CAAC;IAC9B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE;QACP,KAAK,EAAE,eAAe,CAAC;QACvB,KAAK,EAAE,MAAM,CAAC;QACd,YAAY,EAAE,gBAAgB,CAAC;QAC/B,YAAY,EAAE,eAAe,EAAE,CAAC;KACjC,CAAC;IACF,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,YAAY,EAAE,gBAAgB,CAAC;QAC/B,YAAY,EAAE,aAAa,EAAE,CAAC;KAC/B,CAAC;IACF,SAAS,EAAE;QACT,YAAY,EAAE,gBAAgB,CAAC;KAChC,CAAC;IACF,aAAa,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG;IACxC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG;IAC1C,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC"}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
import type { RecursivePartial } from '../types/recursivePartial';
|
|
2
|
+
import type { Config } from './icons/config';
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for the manifest. It contains the configuration which is used to generate the manifest.
|
|
5
|
+
*/
|
|
6
|
+
export type ManifestConfig = RecursivePartial<Pick<Config, 'activeIconPack' | 'hidesExplorerArrows' | 'languages'> & {
|
|
7
|
+
files: Pick<Config['files'], 'associations'>;
|
|
8
|
+
} & {
|
|
9
|
+
folders: Pick<Config['folders'], 'associations' | 'theme'>;
|
|
10
|
+
}>;
|
|
1
11
|
export type Manifest = {
|
|
2
12
|
file?: string;
|
|
3
13
|
folder?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../../../src/core/models/manifest.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACvD,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAO,QAerC,CAAC"}
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../../../src/core/models/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,gBAAgB,CAC3C,IAAI,CAAC,MAAM,EAAE,gBAAgB,GAAG,qBAAqB,GAAG,WAAW,CAAC,GAAG;IACrE,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,CAAC;CAC9C,GAAG;IACF,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,CAAC;CAC5D,CACF,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACvD,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAO,QAerC,CAAC"}
|
package/icons/hurl.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#ec407a" d="M11 2v2H2v2h9v2l4-3-4-3zM5 8l-4 3 4 3v-2h9v-2H5V8z"/></svg>
|
package/icons/remark.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#ef5350" d="M5.445 2.975C3.724 2.989 3.04 3.93 3 4V3H1v10h2V7c.647-.844 1.609-1.724 3-1V3a5.33 5.33 0 0 0-.555-.025zM10.748 3c-.88 0-1.662.207-2.352.623-.683.41-1.213 1-1.588 1.766-.374.76-.56 1.625-.56 2.593v.25c0 1.444.443 2.6 1.328 3.467C8.467 12.567 9.62 13 11.033 13c.802 0 1.534-.152 2.193-.455.66-.309 1.183-.737 1.569-1.283l-1.266-1.416c-.558.719-1.334 1.078-2.326 1.078-.642 0-1.174-.19-1.596-.57C9.191 9.974 9.083 9.63 9 9h6V7.785c0-1.527-.38-2.705-1.14-3.537C13.104 3.416 12.066 3 10.747 3zm-.008 2.086c.547 0 .969.158 1.266.473.297.309.45.748.463 1.318L12.48 7H9c.089-.642.177-1.054.492-1.398.32-.345.737-.516 1.248-.516z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#BA68C8" d="m24 6 2 6h-4l-2-6h-3l2 6h-4l-2-6h-3l2 6H8L6 6H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h22a3 3 0 0 0 3-3V6Z"/></svg>
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "material-icon-theme",
|
|
3
3
|
"displayName": "Material Icon Theme",
|
|
4
4
|
"description": "Material Design Icons for Visual Studio Code",
|
|
5
|
-
"version": "5.
|
|
5
|
+
"version": "5.8.0",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"precompile": "rimraf dist && bun run verify",
|
|
8
8
|
"compile": "tsc -p ./",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"url": "https://github.com/sponsors/PKief"
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|
|
42
|
-
"vscode": "^1.
|
|
42
|
+
"vscode": "^1.55.0"
|
|
43
43
|
},
|
|
44
44
|
"homepage": "https://github.com/material-extensions/vscode-material-icon-theme/blob/main/README.md",
|
|
45
45
|
"repository": {
|
|
@@ -309,12 +309,28 @@
|
|
|
309
309
|
"minimum": 0,
|
|
310
310
|
"maximum": 1,
|
|
311
311
|
"description": "%configuration.saturation%"
|
|
312
|
+
},
|
|
313
|
+
"material-icon-theme.enableLogging": {
|
|
314
|
+
"type": "boolean",
|
|
315
|
+
"default": false,
|
|
316
|
+
"description": "%configuration.enableLogging%"
|
|
317
|
+
},
|
|
318
|
+
"material-icon-theme.logLevel": {
|
|
319
|
+
"type": "string",
|
|
320
|
+
"default": "info",
|
|
321
|
+
"enum": [
|
|
322
|
+
"info",
|
|
323
|
+
"error",
|
|
324
|
+
"debug"
|
|
325
|
+
],
|
|
326
|
+
"description": "%configuration.logLevel%"
|
|
312
327
|
}
|
|
313
328
|
}
|
|
314
329
|
}
|
|
315
330
|
},
|
|
316
331
|
"dependencies": {
|
|
317
332
|
"chroma-js": "^2.4.2",
|
|
333
|
+
"fast-deep-equal": "^3.1.3",
|
|
318
334
|
"svgson": "^5.3.1"
|
|
319
335
|
},
|
|
320
336
|
"devDependencies": {
|
|
@@ -322,18 +338,18 @@
|
|
|
322
338
|
"@softarc/sheriff-core": "^0.15.1",
|
|
323
339
|
"@types/chroma-js": "^2.4.4",
|
|
324
340
|
"@types/glob": "^7.2.0",
|
|
325
|
-
"@types/puppeteer": "^5.4.
|
|
326
|
-
"@types/vscode": "~1.
|
|
327
|
-
"@vscode/test-electron": "^2.
|
|
328
|
-
"axios": "^1.
|
|
329
|
-
"bun-types": "^1.1.
|
|
330
|
-
"changelog-machine": "^1.0
|
|
331
|
-
"esbuild": "^0.21.
|
|
332
|
-
"glob": "^8.0
|
|
333
|
-
"puppeteer": "^22.
|
|
334
|
-
"rimraf": "^6.0.
|
|
335
|
-
"svg-color-linter": "^1.
|
|
341
|
+
"@types/puppeteer": "^5.4.7",
|
|
342
|
+
"@types/vscode": "~1.55.0",
|
|
343
|
+
"@vscode/test-electron": "^2.4.1",
|
|
344
|
+
"axios": "^1.7.2",
|
|
345
|
+
"bun-types": "^1.1.20",
|
|
346
|
+
"changelog-machine": "^1.1.0",
|
|
347
|
+
"esbuild": "^0.21.5",
|
|
348
|
+
"glob": "^8.1.0",
|
|
349
|
+
"puppeteer": "^22.13.1",
|
|
350
|
+
"rimraf": "^6.0.1",
|
|
351
|
+
"svg-color-linter": "^1.4.0",
|
|
336
352
|
"svgo": "^2.8.0",
|
|
337
|
-
"typescript": "^5.5.
|
|
353
|
+
"typescript": "^5.5.4"
|
|
338
354
|
}
|
|
339
355
|
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { Config } from '../models/icons/config';
|
|
2
|
-
import { type Manifest } from '../models/manifest';
|
|
3
|
-
import type { RecursivePartial } from '../types/recursivePartial';
|
|
4
|
-
/**
|
|
5
|
-
* Configuration for the manifest. It contains the configuration which is used to generate the manifest.
|
|
6
|
-
*/
|
|
7
|
-
export type ManifestConfig = RecursivePartial<Pick<Config, 'activeIconPack' | 'hidesExplorerArrows' | 'languages'> & {
|
|
8
|
-
files: Pick<Config['files'], 'associations'>;
|
|
9
|
-
} & {
|
|
10
|
-
folders: Pick<Config['folders'], 'associations' | 'theme'>;
|
|
11
|
-
}>;
|
|
12
|
-
/**
|
|
13
|
-
* Generate the manifest that will be written as JSON file.
|
|
14
|
-
*/
|
|
15
|
-
export declare const generateManifest: (config?: ManifestConfig) => Manifest;
|
|
16
|
-
/**
|
|
17
|
-
* Apply the configuration to the icons. But only if the configuration has changed.
|
|
18
|
-
* If the affectedConfig is not set then all icons will be updated.
|
|
19
|
-
*
|
|
20
|
-
* @param config Configuration that customizes the icons and the manifest.
|
|
21
|
-
* @param affectedConfig Set of configuration keys that have changed so that not all functions need to be executed.
|
|
22
|
-
*/
|
|
23
|
-
export declare const applyConfigurationToIcons: (config: Config, affectedConfig?: Set<string>) => void;
|
|
24
|
-
/**
|
|
25
|
-
* Rename all icon files according their respective config.
|
|
26
|
-
*
|
|
27
|
-
* The rename triggers a change event in VS Code, which will update the icons in the UI.
|
|
28
|
-
* @param config Icon Json Options
|
|
29
|
-
*/
|
|
30
|
-
export declare const renameIconFiles: (config: Config) => void;
|
|
31
|
-
//# sourceMappingURL=jsonGenerator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsonGenerator.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/jsonGenerator.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,KAAK,QAAQ,EAAuB,MAAM,oBAAoB,CAAC;AACxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAYlE;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,gBAAgB,CAC3C,IAAI,CAAC,MAAM,EAAE,gBAAgB,GAAG,qBAAqB,GAAG,WAAW,CAAC,GAAG;IACrE,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,CAAC;CAC9C,GAAG;IACF,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,CAAC;CAC5D,CACF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,YAAa,cAAc,KAAG,QAwB1D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,WAC5B,MAAM,mBACG,GAAG,CAAC,MAAM,CAAC,SAkB7B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,WAAY,MAAM,SA+B7C,CAAC"}
|