@pristy/pristy-libvue 0.14.2 → 0.14.4

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.
@@ -1710,7 +1710,7 @@ const Be = q, et = vt({
1710
1710
  ESPACES_HOST: "http://espaces",
1711
1711
  ACTES_HOST: "http://actes",
1712
1712
  PORTAIL_HOST: "http://portail",
1713
- COLLABORA_HOST: "http://collabora:9980",
1713
+ COLLABORA_HOSTING_DISCOVERY: "http://collabora:9980/hosting/discovery",
1714
1714
  ALFRESCO_AUTH: "BASIC",
1715
1715
  ALFRESCO_ROOT: "alfresco",
1716
1716
  AUTH: "basic",
@@ -6983,21 +6983,20 @@ const yo = new bo(), uo = vt({
6983
6983
  }),
6984
6984
  actions: {
6985
6985
  init() {
6986
- if (!this.loaded)
6987
- return console.log("Loading collabora extensions"), this.loadExtensionsXML().then((e) => {
6988
- this.$patch({
6989
- XMLExtensions: [...e.getElementsByTagName("app")],
6990
- loaded: !0
6991
- });
6992
- }).catch((e) => {
6993
- console.error("Fail loading collabora extensions", e);
6986
+ return console.log("Loading collabora extensions"), this.loadExtensionsXML().then((e) => {
6987
+ this.$patch({
6988
+ XMLExtensions: [...e.getElementsByTagName("app")],
6989
+ loaded: !0
6994
6990
  });
6991
+ }).catch((e) => {
6992
+ console.error("Fail loading collabora extensions", e);
6993
+ });
6995
6994
  },
6996
6995
  loadExtensionsXML() {
6997
6996
  const e = et();
6998
6997
  return console.log(
6999
- `Loading collabora extensions: ${e.COLLABORA_HOST}/hosting/discovery`
7000
- ), Be.get(`${e.COLLABORA_HOST}/hosting/discovery`).then((t) => new DOMParser().parseFromString(t.data, "text/xml")).catch((t) => {
6998
+ `Loading collabora extensions: ${e.COLLABORA_HOSTING_DISCOVERY}`
6999
+ ), Be.get(`${e.COLLABORA_HOSTING_DISCOVERY}`).then((t) => new DOMParser().parseFromString(t.data, "text/xml")).catch((t) => {
7001
7000
  vu(t);
7002
7001
  });
7003
7002
  },
@@ -7141,7 +7140,6 @@ class oo {
7141
7140
  }
7142
7141
  getDestinationName(t) {
7143
7142
  const M = uo();
7144
- M.init();
7145
7143
  let I;
7146
7144
  return t.content.mimeType.startsWith("image/") ? I = "consultation-image" : t.content.mimeType.startsWith("video/") ? I = "consultation-video" : M.checkIfExists(t.content.mimeType, "edit") ? I = "edit-collabora" : I = "consultation-pdf", I;
7147
7145
  }