From 5dc1ef81d352ac90f6ad1092ccbaa21dc074146d Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Sat, 11 Jun 2022 16:13:45 +1000 Subject: Adjust server+client code to handle merged image sets --- src/components/TileInfoModal.vue | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'src/components/TileInfoModal.vue') diff --git a/src/components/TileInfoModal.vue b/src/components/TileInfoModal.vue index 6e1a8ab..5f28dbd 100644 --- a/src/components/TileInfoModal.vue +++ b/src/components/TileInfoModal.vue @@ -9,7 +9,7 @@ import {TolNode} from '../tol'; import {capitalizeWords} from '../lib'; type DescInfo = {text: string, fromRedirect: boolean, wikiId: number, fromDbp: boolean}; -type ImgInfo = {eolId: string, sourceUrl: string, license: string, copyrightOwner: string} +type ImgInfo = {imgId: number, imgSrc: 'eol' | 'enwiki', url: string, license: string, artist: string, credit: string} type TileInfoResponse = { tolNode: null | TolNode, descData: null | DescInfo | [DescInfo, DescInfo], @@ -105,7 +105,6 @@ export default defineComponent({ } else { [this.imgInfo1, this.imgInfo2] = obj.imgData; } - } }); }, @@ -125,7 +124,7 @@ export default defineComponent({
({{tolNode.children.length}} children, {{tolNode.tips}} tips, - OTOL Link) + {{tolNode.otolId}})

@@ -135,23 +134,29 @@ export default defineComponent({
    +
  • Obtained via: {{imgInfo.imgSrc}}
  • License: {{imgInfo.license}}
  • -
  • Source URL
  • -
  • Copyright Owner: {{imgInfo.copyrightOwner}}
  • +
  • Source URL
  • +
  • Artist: {{imgInfo.artist}}
  • +
  • Credit: {{imgInfo.credit}}
    +
  • Obtained via: {{imgInfo1.imgSrc}}
  • License: {{imgInfo1.license}}
  • -
  • Source URL
  • -
  • Copyright Owner: {{imgInfo1.copyrightOwner}}
  • +
  • Source URL
  • +
  • Artist: {{imgInfo1.artist}}
  • +
  • Credit: {{imgInfo1.credit}}
    +
  • Obtained via: {{imgInfo2.imgSrc}}
  • License: {{imgInfo2.license}}
  • -
  • Source URL
  • -
  • Copyright Owner: {{imgInfo2.copyrightOwner}}
  • +
  • Source URL
  • +
  • Artist: {{imgInfo2.artist}}
  • +
  • Credit: {{imgInfo2.credit}}
-- cgit v1.2.3