From f3afcb29d58983e67fd943d8c0c5645ad06b9b0f Mon Sep 17 00:00:00 2001 From: Gordon Lin <75815453+gordlin@users.noreply.github.com> Date: Wed, 18 Sep 2024 13:51:29 -0400 Subject: [PATCH] Implement metadata editor redesign --- src/components/editor.vue | 8 +- src/components/metadata-editor.vue | 657 ++++++++++++++++++----------- src/lang/lang.csv | 17 +- 3 files changed, 441 insertions(+), 241 deletions(-) diff --git a/src/components/editor.vue b/src/components/editor.vue index f40bfd41..b4ecacf6 100644 --- a/src/components/editor.vue +++ b/src/components/editor.vue @@ -372,10 +372,11 @@ export default class EditorV extends Vue { } .editor-input { - padding: 5px 10px; + padding: 10px 10px; margin-top: 5px; border: 1px solid black; display: inline; + border-radius: 5px; } .editor-container .input-error { @@ -389,6 +390,11 @@ export default class EditorV extends Vue { transition-duration: 0.2s; } +.editor-forms-button { + padding: 11px 15px; + border-radius: 5px; +} + .editor-button:hover:enabled { background-color: #dbdbdb; color: black; diff --git a/src/components/metadata-editor.vue b/src/components/metadata-editor.vue index 710d713e..263d0953 100644 --- a/src/components/metadata-editor.vue +++ b/src/components/metadata-editor.vue @@ -2,192 +2,44 @@
+ {{ $t('editor.metadata.uuidInstructions') }} +
+- {{ $t('editor.metadata.instructions') }} -
-+ {{ $t('editor.editMetadata.loading') }} +
++ {{ + storylineHistory.length === 0 + ? $t('editor.editMetadata.versionHistory.noResults') + : $t('editor.editMetadata.versionHistory.resultsFound') + }} +
+
+
+ {{ $t('editor.editMetadata.versionHistory.saveDate') }}
+
+ |
+
+
+ {{ $t('editor.editMetadata.versionHistory.actions') }}
+
+ |
+
+ {{ historyItem.created }} + | ++ + | +
+ {{ $t('editor.metadata.instructions') }} +
+