@feedmepos/mf-miniprogram-v2 0.2.2-dev.6 → 0.2.2-dev.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-miniprogram-v2",
3
- "version": "0.2.2-dev.6",
3
+ "version": "0.2.2-dev.7",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -1,21 +0,0 @@
1
- import { defineComponent as s, watchEffect as a, openBlock as n, createElementBlock as p } from "vue";
2
- import { useRoute as u, useRouter as i } from "vue-router";
3
- import { u as l } from "./portalContext-CTVzkJV7.js";
4
- import { w as m, a as f } from "./portalNavigation-DKCfwTH8.js";
5
- const _ = {
6
- class: "portal-loading",
7
- role: "status"
8
- }, h = /* @__PURE__ */ s({
9
- __name: "WorkspaceEntryView",
10
- setup(w) {
11
- const r = l(), t = u(), c = i();
12
- return a(() => {
13
- var e;
14
- const o = (e = r.context.value) == null ? void 0 : e.projectId;
15
- o && c.replace(m(o, f(t.query.view), t.query));
16
- }), (o, e) => (n(), p("p", _, "Opening your workspace…"));
17
- }
18
- });
19
- export {
20
- h as default
21
- };
@@ -1,28 +0,0 @@
1
- function a(r) {
2
- return r === "releases" || r === "sessions" ? r : "workspace";
3
- }
4
- function o(r) {
5
- const { view: s, ...e } = r;
6
- return e;
7
- }
8
- function c(r, s, e) {
9
- return {
10
- name: "miniprogram-v2-project",
11
- params: { projectId: r, view: s === "workspace" ? void 0 : s },
12
- query: o(e)
13
- };
14
- }
15
- function i(r, s = "settings") {
16
- const e = new URLSearchParams();
17
- for (const n of ["businessId", "country", "restaurantId"]) {
18
- const t = r[n];
19
- typeof t == "string" && e.set(n, t);
20
- }
21
- return `/brand/${s}${e.size ? `?${e}` : ""}`;
22
- }
23
- export {
24
- a,
25
- i as l,
26
- o as p,
27
- c as w
28
- };