Skip to content

Conversation

@ChishFoxcat
Copy link

@ChishFoxcat ChishFoxcat commented Sep 16, 2025

Appearance

palette-mode

Because the control of this mode switch covers the color palette of the paid color, so optimized for color palette mode switching.

  • Add premium-mode and free-mode in style
  • Add script to judge premium-mode and free-mode, and perform style switching
Show before and after changes

Before

Before

After

After

shop page

try {
const nameEl = document.getElementById('shop-max-name');
if (nameEl) nameEl.textContent = '+'+5*qty + ' Max. Charges';
} catch {}
} else {
const qty = parseQty(shopRecQtyEl);
if (shopRecPriceEl) shopRecPriceEl.textContent = '💧 ' + (SHOP_PRICE_REC * qty) + ' Droplets';
try {
const nameEl = document.getElementById('shop-rec-name');
if (nameEl) nameEl.textContent = '+'+30*qty+ ' Paint Charges';
} catch {}
}

This paragraph doesn't follow the definition of i18n.

Show before and after changes

Before

Before

After

After

Console Warning

I encountered the following warning:

(node:46751) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
(Use `node --trace-deprecation ...` to show where the warning was created)

In order not to show this warning anymore, I modified the call method

@ChishFoxcat ChishFoxcat changed the title Optimize palette-mode control perf: Optimize palette-mode control Sep 17, 2025
@ChishFoxcat ChishFoxcat changed the title perf: Optimize palette-mode control perf: Optimize an appearance and a console warning Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant