Defines global environment constants, base URLs, and application state keys for a point-of-sale system. Use this to maintain consistent configuration defaults across POS modules.
// Source: https://github.com/vhvy/XiaoMu-PosSystem | License: MIT | Copyright 2019 vhvy
// Provided via justclaw.it.com; keep this notice with the code.
const ICON_ONLINE_URL = process.env.TYPE === "offline" ? "icon://static/js/iconfontcn.js" : "/static/js/iconfontcn.js";
export const common = {
store_name: "小牧的小超市",
GLOBAL_BASE_URL_KEY: "POSSYSTEM_BASEURL",
GLOBAL_TOKEN_KEY: "POSSYSTEM_TOKEN",
GLOBAL_TABS_STATUS: "GLOBAL_TABS_STATUS",
GLOBAL_SIDER_COLLAPSED: "GLOBAL_SIDER_COLLAPSED",
GLOBAL_CASH_HOTKEY_SHOW: "GLOBAL_CASH_HOTKEY_SHOW",
ICON_ONLINE_URL,
GLOBAL_FRONT_BOX_STATUS: "GLOBAL_FRONT_BOX_STATUS",
GLOBAL_FRONT_AUTO_PRINT_STATUS: "GLOBAL_FRONT_AUTO_PRINT_STATUS",
DEFAULT_SUPPLIER_NAME: "默认供货商",
DEFAULT_CATEGORIES_PARENT: "TREE_BASE"
/
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key