@panoramax/web-viewer 4.0.3-develop-03accd6d → 4.0.3-develop-d48b09a7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -0
- package/build/index.js +50 -41
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/menus/PictureMetadata.js +14 -3
- package/src/utils/services.js +8 -0
package/package.json
CHANGED
|
@@ -15,6 +15,7 @@ import { faTags } from "@fortawesome/free-solid-svg-icons/faTags";
|
|
|
15
15
|
import { faSvg, titles, textarea, hidden } from "../styles";
|
|
16
16
|
import { createWebComp } from "../../utils/widgets";
|
|
17
17
|
import { getGPSPrecision } from "../../utils/picture";
|
|
18
|
+
import { PanoramaxMetaCatalogURL } from "../../utils/services";
|
|
18
19
|
import {
|
|
19
20
|
getGrade, QUALITYSCORE_GPS_VALUES, QUALITYSCORE_RES_360_VALUES,
|
|
20
21
|
QUALITYSCORE_RES_FLAT_VALUES, QUALITYSCORE_POND_GPS, QUALITYSCORE_POND_RES
|
|
@@ -377,11 +378,21 @@ export default class PictureMetadata extends LitElement {
|
|
|
377
378
|
},
|
|
378
379
|
this._meta?.origInstance && {
|
|
379
380
|
title: this._parent?._t.pnx.metadata_general_instance,
|
|
380
|
-
content: html`<strong
|
|
381
|
-
|
|
382
|
-
|
|
381
|
+
content: html`<strong>
|
|
382
|
+
<a href=${this._meta.origInstance.href+window.location.search} target="_blank" style="text-decoration: none">
|
|
383
|
+
<img
|
|
384
|
+
src=${PanoramaxMetaCatalogURL()+"/api/instances/"+this._meta.origInstance.instance_name+"/logo"}
|
|
385
|
+
style="height: 30px; max-width: 150px; vertical-align: middle"
|
|
386
|
+
alt=""
|
|
387
|
+
/>
|
|
388
|
+
<span style="text-decoration: underline">
|
|
389
|
+
${this._meta.origInstance.instance_name || this._meta.origInstance.href.replace(/^http.?:\/\//, "")}
|
|
390
|
+
</span>
|
|
391
|
+
</a>
|
|
392
|
+
</strong>`
|
|
383
393
|
}
|
|
384
394
|
];
|
|
395
|
+
console.log("instance", this._meta.origInstance);
|
|
385
396
|
|
|
386
397
|
return html`<pnx-tabs>
|
|
387
398
|
${this._toTab( // General
|
package/src/utils/services.js
CHANGED
|
@@ -12,6 +12,14 @@ export function PanoramaxPresetsURL() {
|
|
|
12
12
|
return "https://presets.panoramax.fr";
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
/**
|
|
16
|
+
* Panoramax meta-catalog URL
|
|
17
|
+
* @returns {string} The metacatalog URL
|
|
18
|
+
*/
|
|
19
|
+
export function PanoramaxMetaCatalogURL() {
|
|
20
|
+
return "https://explore.panoramax.fr";
|
|
21
|
+
}
|
|
22
|
+
|
|
15
23
|
/**
|
|
16
24
|
* Temaki icons URL
|
|
17
25
|
* @param {string} [iconName] The icon name to insert in URL
|