mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
refactor(server): use feature model (#9932)
This commit is contained in:
4
packages/backend/server/src/base/utils/index.ts
Normal file
4
packages/backend/server/src/base/utils/index.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export * from './promise';
|
||||
export * from './request';
|
||||
export * from './types';
|
||||
export * from './unit';
|
||||
4
packages/backend/server/src/base/utils/unit.ts
Normal file
4
packages/backend/server/src/base/utils/unit.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export const OneKB = 1024;
|
||||
export const OneMB = OneKB * OneKB;
|
||||
export const OneGB = OneKB * OneMB;
|
||||
export const OneDay = 1000 * 60 * 60 * 24;
|
||||
Reference in New Issue
Block a user