aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2023-07-24 00:41:53 +0800
committercrupest <crupest@outlook.com>2023-07-24 00:41:53 +0800
commitae48ac24c5533653f1e1f1e6d2a33e0238222297 (patch)
treefe25c677bbd8f6cdc2f6abfc9b4bbb7f2bb47ff6
parentc7934c59cb17a4266ea882cdb40be79f22043d10 (diff)
downloadtimeline-ae48ac24c5533653f1e1f1e6d2a33e0238222297.tar.gz
timeline-ae48ac24c5533653f1e1f1e6d2a33e0238222297.tar.bz2
timeline-ae48ac24c5533653f1e1f1e6d2a33e0238222297.zip
...
-rw-r--r--FrontEnd/package.json1
-rw-r--r--FrontEnd/pnpm-lock.yaml18
-rw-r--r--FrontEnd/src/views/common/input/InputPanel.tsx12
-rw-r--r--FrontEnd/src/views/timeline/TimelinePropertyChangeDialog.tsx6
4 files changed, 20 insertions, 17 deletions
diff --git a/FrontEnd/package.json b/FrontEnd/package.json
index 725b09dd..56af818c 100644
--- a/FrontEnd/package.json
+++ b/FrontEnd/package.json
@@ -51,6 +51,7 @@
"@types/react-transition-group": "^4.4.6",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
+ "buffer": "^6.0.0",
"eslint": "^8.44.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
diff --git a/FrontEnd/pnpm-lock.yaml b/FrontEnd/pnpm-lock.yaml
index a31e5a2c..cad9a287 100644
--- a/FrontEnd/pnpm-lock.yaml
+++ b/FrontEnd/pnpm-lock.yaml
@@ -118,6 +118,9 @@ devDependencies:
'@typescript-eslint/parser':
specifier: ^5.61.0
version: 5.61.0(eslint@8.44.0)(typescript@5.1.6)
+ buffer:
+ specifier: ^6.0.0
+ version: 6.0.0
eslint:
specifier: ^8.44.0
version: 8.44.0
@@ -1748,6 +1751,10 @@ packages:
safe-buffer: 5.2.1
dev: true
+ /base64-js@1.5.1:
+ resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==}
+ dev: true
+
/boolbase@1.0.0:
resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==}
dev: true
@@ -1789,6 +1796,13 @@ packages:
update-browserslist-db: 1.0.11(browserslist@4.21.9)
dev: true
+ /buffer@6.0.0:
+ resolution: {integrity: sha512-Sxdxq98A+Y9kRjO/3+mc2IAxIyTAKqzBiYKpeo5EluWnw9535rI4fN8DeMGsiQqpqqaWtFtTdxQgHnku6IEjCA==}
+ dependencies:
+ base64-js: 1.5.1
+ ieee754: 1.2.1
+ dev: true
+
/call-bind@1.0.2:
resolution: {integrity: sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==}
dependencies:
@@ -2648,6 +2662,10 @@ packages:
'@babel/runtime': 7.22.6
dev: false
+ /ieee754@1.2.1:
+ resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==}
+ dev: true
+
/ignore@5.2.4:
resolution: {integrity: sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==}
engines: {node: '>= 4'}
diff --git a/FrontEnd/src/views/common/input/InputPanel.tsx b/FrontEnd/src/views/common/input/InputPanel.tsx
index 27937a05..e0db3787 100644
--- a/FrontEnd/src/views/common/input/InputPanel.tsx
+++ b/FrontEnd/src/views/common/input/InputPanel.tsx
@@ -31,23 +31,13 @@ export interface SelectInput {
options: SelectInputOption[];
}
-export interface ColorInput {
- type: "color";
- label?: I18nText;
-}
-
export interface DateTimeInput {
type: "datetime";
label?: I18nText;
helper?: I18nText;
}
-export type Input =
- | TextInput
- | BoolInput
- | SelectInput
- | ColorInput
- | DateTimeInput;
+export type Input = TextInput | BoolInput | SelectInput | DateTimeInput;
interface InputTypeToValueTypeMap {
text: string;
diff --git a/FrontEnd/src/views/timeline/TimelinePropertyChangeDialog.tsx b/FrontEnd/src/views/timeline/TimelinePropertyChangeDialog.tsx
index 63750445..bd5bef4c 100644
--- a/FrontEnd/src/views/timeline/TimelinePropertyChangeDialog.tsx
+++ b/FrontEnd/src/views/timeline/TimelinePropertyChangeDialog.tsx
@@ -52,12 +52,6 @@ const TimelinePropertyChangeDialog: React.FC<
label: "timeline.dialogChangeProperty.description",
initValue: timeline.description,
},
- {
- type: "color",
- label: "timeline.dialogChangeProperty.color",
- initValue: timeline.color ?? null,
- canBeNull: true,
- },
] as const
}
open={props.open}