From 5567adc9460a20373e3a63f48995d1bbaca5bf50 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Mon, 24 Aug 2020 14:46:51 +0800 Subject: [PATCH] feat(webui): handle new metadata fields closes #276 --- komga-webui/package-lock.json | 13 + komga-webui/package.json | 1 + .../components/dialogs/EditBooksDialog.vue | 205 ++++------- .../components/dialogs/EditSeriesDialog.vue | 326 +++++++++++++++++- .../src/services/komga-referential.service.ts | 24 ++ komga-webui/src/types/komga-books.ts | 16 +- komga-webui/src/types/komga-series.ts | 32 +- komga-webui/src/views/BookReader.vue | 6 +- komga-webui/src/views/BrowseBook.vue | 32 +- komga-webui/src/views/BrowseSeries.vue | 63 +++- 10 files changed, 537 insertions(+), 181 deletions(-) diff --git a/komga-webui/package-lock.json b/komga-webui/package-lock.json index d4ac1ba9f..2ea18296b 100644 --- a/komga-webui/package-lock.json +++ b/komga-webui/package-lock.json @@ -11389,6 +11389,19 @@ "integrity": "sha512-xf88rTeHiXk+XE2Vhi6yj8Wm3gMZrygGdKjJqN8HkV+PwF/t50/LdAKHoHpPcxFAlmQszTZ1CugrK25S7qDRLA==", "dev": true }, + "language-subtag-registry": { + "version": "0.3.20", + "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.20.tgz", + "integrity": "sha512-KPMwROklF4tEx283Xw0pNKtfTj1gZ4UByp4EsIFWLgBavJltF4TiYPc39k06zSTsLzxTVXXDSpbwaQXaFB4Qeg==" + }, + "language-tags": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.5.tgz", + "integrity": "sha1-0yHbxNowuovzAk4ED6XBRmH5GTo=", + "requires": { + "language-subtag-registry": "~0.3.2" + } + }, "launch-editor": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/launch-editor/-/launch-editor-2.2.1.tgz", diff --git a/komga-webui/package.json b/komga-webui/package.json index 83720d663..6e1130cce 100644 --- a/komga-webui/package.json +++ b/komga-webui/package.json @@ -12,6 +12,7 @@ "axios": "^0.19.2", "core-js": "^3.6.5", "jquery": "^3.5.1", + "language-tags": "^1.0.5", "lodash": "^4.17.19", "moment": "^2.27.0", "qs": "^6.9.4", diff --git a/komga-webui/src/components/dialogs/EditBooksDialog.vue b/komga-webui/src/components/dialogs/EditBooksDialog.vue index 48e9f7dd9..a3c33ba8a 100644 --- a/komga-webui/src/components/dialogs/EditBooksDialog.vue +++ b/komga-webui/src/components/dialogs/EditBooksDialog.vue @@ -24,7 +24,7 @@ - + mdi-format-align-center General @@ -32,9 +32,13 @@ mdi-account-multiple Authors + + mdi-tag-multiple + Tags + - + @@ -130,52 +134,6 @@ - - - - - - - - - - - - - - - - @@ -200,29 +158,6 @@ - - - - - - - - - @@ -270,6 +205,47 @@ + + + + + + You are editing tags for multiple books. This will override existing tags of each book. + + + + + + Tags + + + + + + + + + @@ -300,10 +276,9 @@