@closedrouter/cli 1.1.15 → 1.1.16
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-branding.d.ts","sourceRoot":"","sources":["../../src/commands/model-branding.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,mUAAqS,CAAC;AACpU,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEhE,eAAO,MAAM,yBAAyB,wqBAOrC,CAAC;AAEF;8EAC8E;AAC9E,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,QAAQ,EAAE,CAiBhG;AAED;oEACoE;AACpE,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,uBAAuB,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"model-branding.d.ts","sourceRoot":"","sources":["../../src/commands/model-branding.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,mUAAqS,CAAC;AACpU,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEhE,eAAO,MAAM,yBAAyB,wqBAOrC,CAAC;AAEF;8EAC8E;AAC9E,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,QAAQ,EAAE,CAiBhG;AAED;oEACoE;AACpE,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,uBAAuB,GAAG,IAAI,CAsFjJ;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,sBAAsB,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAoC/F;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,sBAAsB,GAAG,MAAM,CAS5F"}
|
package/dist/index.js
CHANGED
|
@@ -10361,7 +10361,16 @@ function installModelBranding(models, artwork, electricCss, orbitKeyframes) {
|
|
|
10361
10361
|
bolt.setAttribute("viewBox", "0 0 30 44");
|
|
10362
10362
|
bolt.setAttribute("data-cr-lightning-bolt", position);
|
|
10363
10363
|
const path = "M23 2 11 13 19 15 5 30 13 29 7 42 M11 13 3 11 M19 15 27 23";
|
|
10364
|
-
|
|
10364
|
+
for (const [color, width] of [["#42bdff", "4.2"], ["#f5fcff", "1.7"]]) {
|
|
10365
|
+
const line = document.createElementNS("http://www.w3.org/2000/svg", "path");
|
|
10366
|
+
line.setAttribute("d", path);
|
|
10367
|
+
line.setAttribute("fill", "none");
|
|
10368
|
+
line.setAttribute("stroke", color);
|
|
10369
|
+
line.setAttribute("stroke-width", width);
|
|
10370
|
+
line.setAttribute("stroke-linecap", "round");
|
|
10371
|
+
line.setAttribute("stroke-linejoin", "round");
|
|
10372
|
+
bolt.append(line);
|
|
10373
|
+
}
|
|
10365
10374
|
orbit.append(bolt);
|
|
10366
10375
|
}
|
|
10367
10376
|
layer.append(orbit);
|
|
@@ -10413,7 +10422,8 @@ function installProviderAccountUi(account, artwork) {
|
|
|
10413
10422
|
const paint = () => {
|
|
10414
10423
|
let providerSession = document.documentElement.dataset.closedrouterAccount === "true";
|
|
10415
10424
|
for (const button of document.querySelectorAll("button")) {
|
|
10416
|
-
|
|
10425
|
+
const text = button.innerText;
|
|
10426
|
+
if (!text.includes(account.name) || !(text.includes("Gateway") || providerSession && account.email && text.includes(account.email)))
|
|
10417
10427
|
continue;
|
|
10418
10428
|
providerSession = true;
|
|
10419
10429
|
document.documentElement.dataset.closedrouterAccount = "true";
|
package/package.json
CHANGED