mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-16 03:12:02 +08:00
【新增】私有证书
This commit is contained in:
73
frontend/apps/domain-official/src/utils/index.ts
Normal file
73
frontend/apps/domain-official/src/utils/index.ts
Normal file
@@ -0,0 +1,73 @@
|
||||
/**
|
||||
* @module @utils
|
||||
* 新的聚合入口,统一导出 `core` 与 `ui` 两类通用工具,降低导入复杂度。
|
||||
*
|
||||
* - 核心方法(Core):数据获取、模版渲染、防抖、价格格式化、URL 参数处理、存储与轻量状态等
|
||||
* - UI 管理(UI):模态框、通知、下拉与遮罩层的展示/管理器
|
||||
*
|
||||
* 导入方式:
|
||||
* ```ts
|
||||
* import { calculateDropdownPosition, ModalManager } from '@utils'
|
||||
* // 或
|
||||
* import Utils from '@utils'
|
||||
* ```
|
||||
*/
|
||||
export * from './core'
|
||||
export * from './ui'
|
||||
export * from './date'
|
||||
export * from './type'
|
||||
|
||||
import {
|
||||
getDeepValue,
|
||||
calculateDropdownPosition,
|
||||
renderTemplate,
|
||||
renderTemplateList,
|
||||
debounce,
|
||||
formatPrice,
|
||||
getUrlParam,
|
||||
updateUrlParam,
|
||||
storage,
|
||||
createState,
|
||||
createStore,
|
||||
} from './core'
|
||||
import * as DateUtils from './date'
|
||||
import * as TypeUtils from './type'
|
||||
|
||||
import { ModalManager, NotificationManager, DropdownManager, OverlayManager } from './ui'
|
||||
|
||||
export {
|
||||
getDeepValue,
|
||||
calculateDropdownPosition,
|
||||
renderTemplate,
|
||||
renderTemplateList,
|
||||
debounce,
|
||||
formatPrice,
|
||||
getUrlParam,
|
||||
updateUrlParam,
|
||||
storage,
|
||||
createState,
|
||||
createStore,
|
||||
ModalManager,
|
||||
NotificationManager,
|
||||
DropdownManager,
|
||||
OverlayManager,
|
||||
DateUtils,
|
||||
TypeUtils,
|
||||
}
|
||||
|
||||
export const Utils = {
|
||||
calculateDropdownPosition,
|
||||
renderTemplate,
|
||||
renderTemplateList,
|
||||
debounce,
|
||||
formatPrice,
|
||||
getUrlParam,
|
||||
updateUrlParam,
|
||||
storage,
|
||||
createState,
|
||||
createStore,
|
||||
DateUtils,
|
||||
TypeUtils,
|
||||
}
|
||||
|
||||
export default Utils
|
||||
Reference in New Issue
Block a user