formalconf 2.0.20 → 2.0.21
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/formalconf.js +13 -4
- package/package.json +1 -1
package/dist/formalconf.js
CHANGED
|
@@ -3622,6 +3622,7 @@ function hexToColorVariable(hex) {
|
|
|
3622
3622
|
strip: normalized.slice(1),
|
|
3623
3623
|
rgb: `rgb(${r},${g},${b})`,
|
|
3624
3624
|
rgba: `rgba(${r},${g},${b},1)`,
|
|
3625
|
+
decimal: `${r},${g},${b}`,
|
|
3625
3626
|
r,
|
|
3626
3627
|
g,
|
|
3627
3628
|
b,
|
|
@@ -3946,6 +3947,8 @@ function applyModifier(color, modifier) {
|
|
|
3946
3947
|
return color.rgb;
|
|
3947
3948
|
case "rgba":
|
|
3948
3949
|
return color.rgba;
|
|
3950
|
+
case "decimal":
|
|
3951
|
+
return color.decimal;
|
|
3949
3952
|
case "r":
|
|
3950
3953
|
return String(color.r);
|
|
3951
3954
|
case "g":
|
|
@@ -3979,6 +3982,7 @@ var init_modifiers = __esm(() => {
|
|
|
3979
3982
|
"strip",
|
|
3980
3983
|
"rgb",
|
|
3981
3984
|
"rgba",
|
|
3985
|
+
"decimal",
|
|
3982
3986
|
"r",
|
|
3983
3987
|
"g",
|
|
3984
3988
|
"b",
|
|
@@ -4240,9 +4244,14 @@ async function getOutputFilename(templateName) {
|
|
|
4240
4244
|
return templateName.replace(/\.template$/, "");
|
|
4241
4245
|
}
|
|
4242
4246
|
async function getTemplateTargets(templateName) {
|
|
4243
|
-
const
|
|
4244
|
-
const
|
|
4245
|
-
|
|
4247
|
+
const installed = await loadTemplatesManifest();
|
|
4248
|
+
const installedMeta = installed.templates[templateName];
|
|
4249
|
+
if (installedMeta?.targets) {
|
|
4250
|
+
return installedMeta.targets;
|
|
4251
|
+
}
|
|
4252
|
+
const bundled = await loadBundledManifest();
|
|
4253
|
+
const bundledMeta = bundled.templates[templateName];
|
|
4254
|
+
return bundledMeta?.targets ?? [];
|
|
4246
4255
|
}
|
|
4247
4256
|
async function listInstalledTemplates() {
|
|
4248
4257
|
if (!existsSync11(TEMPLATES_DIR)) {
|
|
@@ -5704,7 +5713,7 @@ function StatusIndicator({
|
|
|
5704
5713
|
// package.json
|
|
5705
5714
|
var package_default = {
|
|
5706
5715
|
name: "formalconf",
|
|
5707
|
-
version: "2.0.
|
|
5716
|
+
version: "2.0.21",
|
|
5708
5717
|
description: "Dotfiles management TUI for macOS and Linux - config management, package sync, and theme switching",
|
|
5709
5718
|
type: "module",
|
|
5710
5719
|
main: "./dist/formalconf.js",
|
package/package.json
CHANGED