feat: 턴 선택기를 재 작성 (#211)

- select form에서 유사 dialog 버튼 방식으로 변경
  - 카테고리마다 페이지 이동
- 일반 모드 / 고급 모드 분리
- 일반 모드에서는 턴별 즉시 설정
- 고급 모드에서는 드래그를 포함한 각종 기능 제공
  - 최근 실행 턴
  - 잘라내기, 복사하기, 붙여넣기
  - 반복하기
  - 비우기
  - 지우고 당기기, 뒤로 밀기
  - 보관하기, 보관한 턴 사용하기

Co-authored-by: Hide_D <hided62@gmail.com>
Reviewed-on: https://storage.hided.net/gitea/devsam/core/pulls/211
Co-authored-by: hide_d <hided62@gmail.com>
Co-committed-by: hide_d <hided62@gmail.com>
This commit is contained in:
2022-03-23 20:13:27 +09:00
parent eb03f34a7e
commit 3548d4e939
18 changed files with 1979 additions and 586 deletions
+12 -2
View File
@@ -1,3 +1,5 @@
import type { Args } from "./processing/args";
export type InvalidResponse = {
result: false;
reason: string;
@@ -33,6 +35,11 @@ export type GeneralListResponse = {
token: Record<number, number>,
}
export type ReserveCommandResponse = {
result: true,
brief: string,
}
export type NationLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
export const NationLevelText: Record<NationLevel, string> = {
0: '방랑군',
@@ -176,13 +183,14 @@ export type OptionalFull<Type> = {
export type TurnObj = {
action: string;
brief: string;
arg: null | [] | Record<string, number | string | number[] | string[]>;
arg: Args;
};
export type CommandItem = {
value: string;
title: string;
info: string,
compensation: number;
simpleName: string;
possible: boolean;
@@ -215,6 +223,8 @@ export type ChiefResponse = {
category: string;
values: CommandItem[];
}[];
mapName: string,
unitSet: string,
};
@@ -250,4 +260,4 @@ export type BettingInfo = {
closeYearMonth: number;
candidates: SelectItem[];
winner?: number[];
}
}