演示

系统服务

来自 @quan-erp/shared-frontend-core 的平台检测、指标、语言、通知、PluginAPI、资源、后端 URL 与数字格式化。

概述

@quan-erp/shared-frontend-core 的系统服务 — 平台检测、设备性能档位、指标、语言、通知、跨插件注册、资源 URL、后端根 URL 与数字格式化。

  • Platforms — isDesktop(), isMobile(), isWeb()
  • DeviceClassTier — detect() → low | mid | high
  • System — CPU / 内存 / 信息指标
  • SystemLocale — getDeviceLocale()
  • Placeholders — SafeArea、Permissions、Firebase(未就绪)
  • Notification — requestPermission, sendNotification
  • PluginAPI — expose / use / debug
  • PluginAssets — PluginAssets.network(metadata, path)
  • BackendAPI — setBackendAPI / getBackendAPI
  • NumberFormatter — NumberFormatter.format(num, locale, options)