Shun Miyazawa 3 лет назад
Родитель
Сommit
12d3a4e28d
1 измененных файлов с 10 добавлено и 9 удалено
  1. 10 9
      packages/app/src/interfaces/activity.ts

+ 10 - 9
packages/app/src/interfaces/activity.ts

@@ -36,7 +36,6 @@ const ACTION_COMMENT_CREATE = 'COMMENT_CREATE';
 const ACTION_COMMENT_UPDATE = 'COMMENT_UPDATE';
 const ACTION_COMMENT_UPDATE = 'COMMENT_UPDATE';
 const ACTION_COMMENT_REMOVE = 'COMMENT_REMOVE';
 const ACTION_COMMENT_REMOVE = 'COMMENT_REMOVE';
 
 
-
 export const SUPPORTED_TARGET_MODEL_TYPE = {
 export const SUPPORTED_TARGET_MODEL_TYPE = {
   MODEL_PAGE,
   MODEL_PAGE,
 } as const;
 } as const;
@@ -88,13 +87,6 @@ export const SUPPORTED_ACTION_TO_NOTIFIED_TYPE = {
   ACTION_COMMENT_CREATE,
   ACTION_COMMENT_CREATE,
 } as const;
 } as const;
 
 
-
-export const AllSupportedTargetModelType = Object.values(SUPPORTED_TARGET_MODEL_TYPE);
-export const AllSupportedEventModelType = Object.values(SUPPORTED_EVENT_MODEL_TYPE);
-export const AllSupportedActionType = Object.values(SUPPORTED_ACTION_TYPE);
-export const AllSupportedActionToNotifiedType = Object.values(SUPPORTED_ACTION_TO_NOTIFIED_TYPE);
-
-
 /*
 /*
  * For AuditLogManagement.tsx
  * For AuditLogManagement.tsx
  */
  */
@@ -115,12 +107,21 @@ export const CommentActions = Object.values({
   ACTION_COMMENT_UPDATE,
   ACTION_COMMENT_UPDATE,
 } as const);
 } as const);
 
 
+/*
+ * Array
+ */
+export const AllSupportedTargetModelType = Object.values(SUPPORTED_TARGET_MODEL_TYPE);
+export const AllSupportedEventModelType = Object.values(SUPPORTED_EVENT_MODEL_TYPE);
+export const AllSupportedActionType = Object.values(SUPPORTED_ACTION_TYPE);
+export const AllSupportedActionToNotifiedType = Object.values(SUPPORTED_ACTION_TO_NOTIFIED_TYPE);
 
 
+/*
+ * Type
+ */
 export type SupportedTargetModelType = typeof SUPPORTED_TARGET_MODEL_TYPE[keyof typeof SUPPORTED_TARGET_MODEL_TYPE];
 export type SupportedTargetModelType = typeof SUPPORTED_TARGET_MODEL_TYPE[keyof typeof SUPPORTED_TARGET_MODEL_TYPE];
 export type SupportedEventModelType = typeof SUPPORTED_EVENT_MODEL_TYPE[keyof typeof SUPPORTED_EVENT_MODEL_TYPE];
 export type SupportedEventModelType = typeof SUPPORTED_EVENT_MODEL_TYPE[keyof typeof SUPPORTED_EVENT_MODEL_TYPE];
 export type SupportedActionType = typeof SUPPORTED_ACTION_TYPE[keyof typeof SUPPORTED_ACTION_TYPE];
 export type SupportedActionType = typeof SUPPORTED_ACTION_TYPE[keyof typeof SUPPORTED_ACTION_TYPE];
 
 
-
 export type ISnapshot = Partial<Pick<IUser, 'username'>>
 export type ISnapshot = Partial<Pick<IUser, 'username'>>
 
 
 export type IActivity = {
 export type IActivity = {