From ffc65ab9446194e8ec43cbe369016795e3fbfeb0 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Wed, 9 Nov 2022 19:25:59 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=20=D0=BD?= =?UTF-8?q?=D0=B0=D0=B4=20BookInfoDialog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/App.vue | 4 ++ .../Search/BookInfoDialog/BookInfoDialog.vue | 42 ++++++++++++++++++- client/components/Search/Search.vue | 2 +- server/core/xml/ObjectNavigator.js | 7 +++- 4 files changed, 51 insertions(+), 4 deletions(-) diff --git a/client/components/App.vue b/client/components/App.vue index b36ba19..dc81796 100644 --- a/client/components/App.vue +++ b/client/components/App.vue @@ -133,6 +133,10 @@ body, html, #app { animation: rotating 2s linear infinite; } +.q-dialog__inner--minimized > div { + max-width: 800px; +} + @keyframes rotating { from { transform: rotate(0deg); diff --git a/client/components/Search/BookInfoDialog/BookInfoDialog.vue b/client/components/Search/BookInfoDialog/BookInfoDialog.vue index 2c3ce57..dc43230 100644 --- a/client/components/Search/BookInfoDialog/BookInfoDialog.vue +++ b/client/components/Search/BookInfoDialog/BookInfoDialog.vue @@ -8,7 +8,8 @@ -
+
+
diff --git a/server/core/xml/ObjectNavigator.js b/server/core/xml/ObjectNavigator.js index aa39057..929422b 100644 --- a/server/core/xml/ObjectNavigator.js +++ b/server/core/xml/ObjectNavigator.js @@ -59,7 +59,7 @@ class ObjectNavigator { return null; raw = (Array.isArray(raw) ? raw : [raw]); - + const result = []; for (const r of raw) result.push(new ObjectNavigator(r)); @@ -80,6 +80,11 @@ class ObjectNavigator { return this.raw; } + v(selector = '') { + const res = this.$(selector); + return (res ? res.value : null); + } + text(selector = '') { const res = this.$(`${selector}/*TEXT`); return (res ? res.value : null);