@sendelius/vue 0.4.0 → 0.4.2

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.
@@ -2,6 +2,8 @@ export function configure(options?: {}): void;
2
2
  export function getConfig(): {
3
3
  router: any;
4
4
  baseURL: string;
5
+ baseTitle: string;
6
+ baseTitleSeparator: string;
5
7
  routeAfterLogin: string;
6
8
  routeAfterLogout: string;
7
9
  urlUserInfo: string;
@@ -19,6 +19,8 @@ var ae = Object.defineProperty, oe = Object.getOwnPropertyDescriptor, se = Objec
19
19
  }, de = (e, t, n) => (ue(e, t, "default"), n && ue(n, t, "default")), fe = {
20
20
  router: null,
21
21
  baseURL: "",
22
+ baseTitle: "",
23
+ baseTitleSeparator: " - ",
22
24
  routeAfterLogin: "/app/",
23
25
  routeAfterLogout: "/",
24
26
  urlUserInfo: "/auth/me",
@@ -197,7 +199,7 @@ function Pe(e, t, n, r) {
197
199
  }
198
200
  // src/helpers/title.js
199
201
  function Fe(e, t, n) {
200
- n ||= " - ", t || (n = ""), document.title = e ? `${e}${n}${t}` : t;
202
+ t ??= me().baseTitle, n ??= me().baseTitleSeparator, t || (n = ""), document.title = e ? `${e}${n}${t}` : t;
201
203
  }
202
204
  // src/helpers/objects.js
203
205
  function Ie(e) {
package/package.json CHANGED
@@ -45,5 +45,5 @@
45
45
  "@parcel/watcher@2.6.0": true,
46
46
  "vue-demi@0.14.10": true
47
47
  },
48
- "version": "0.4.0"
48
+ "version": "0.4.2"
49
49
  }