first build

This commit is contained in:
2026-01-27 16:02:45 +03:30
parent f3a14141c7
commit a29cf38e4d
4891 changed files with 82192 additions and 426764 deletions
@@ -0,0 +1,13 @@
import { a as useConfigStore } from './server.mjs';
function usePrice(price, digit = true, unit) {
const config = useConfigStore();
if (!unit && unit !== "") unit = config.priceUnit;
let _price = Math.ceil(price).toString();
if (digit) {
_price = _price.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}
return `${_price} ${unit}`;
}
export { usePrice as u };