@feedmepos/mf-common 0.0.10 → 0.26.0
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/README.md +18 -31
- package/dist/App.vue.d.ts +19 -5
- package/dist/App.vue.d.ts.map +1 -0
- package/dist/CustomAttributesForm-84d67123.js +96 -0
- package/dist/Entry.vue.d.ts +3 -0
- package/dist/Entry.vue.d.ts.map +1 -0
- package/dist/ItemSelector-0ef7086f.js +24797 -0
- package/dist/RestaurantSelector-065f80f3.js +218 -0
- package/dist/api/index.d.ts +54 -3
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/menu.d.ts +7 -0
- package/dist/api/menu.d.ts.map +1 -0
- package/dist/app-7518a4c8.js +41042 -0
- package/dist/app-9575c6c7.js +7846 -0
- package/dist/app.d.ts +703 -1326
- package/dist/app.d.ts.map +1 -0
- package/dist/app.js +37 -16301
- package/dist/components/AllBusinessDialog.vue.d.ts +17 -0
- package/dist/components/AllBusinessDialog.vue.d.ts.map +1 -0
- package/dist/components/ChangePassword/ConfirmPassword.vue.d.ts +3 -0
- package/dist/components/ChangePassword/ConfirmPassword.vue.d.ts.map +1 -0
- package/dist/components/ChangePassword/NewPassword.vue.d.ts +3 -0
- package/dist/components/ChangePassword/NewPassword.vue.d.ts.map +1 -0
- package/dist/components/ChangePassword/PasswordField.vue.d.ts +15 -0
- package/dist/components/ChangePassword/PasswordField.vue.d.ts.map +1 -0
- package/dist/components/DebugUserDialog.vue.d.ts +3 -0
- package/dist/components/DebugUserDialog.vue.d.ts.map +1 -0
- package/dist/components/FeedmeLogo.vue.d.ts +3 -0
- package/dist/components/FeedmeLogo.vue.d.ts.map +1 -0
- package/dist/components/ItemSelector.vue.d.ts +46 -0
- package/dist/components/ItemSelector.vue.d.ts.map +1 -0
- package/dist/components/ManageAccountDialog.vue.d.ts +15 -0
- package/dist/components/ManageAccountDialog.vue.d.ts.map +1 -0
- package/dist/components/MyBusinessDialog.vue.d.ts +15 -0
- package/dist/components/MyBusinessDialog.vue.d.ts.map +1 -0
- package/dist/components/NoPermission.vue.d.ts +3 -0
- package/dist/components/NoPermission.vue.d.ts.map +1 -0
- package/dist/components/PermissionWrapper.vue.d.ts +10 -0
- package/dist/components/PermissionWrapper.vue.d.ts.map +1 -0
- package/dist/components/Portal/Ads.vue.d.ts +16 -0
- package/dist/components/Portal/Ads.vue.d.ts.map +1 -0
- package/dist/components/Portal/BusinessDialogMobile.vue.d.ts +17 -0
- package/dist/components/Portal/BusinessDialogMobile.vue.d.ts.map +1 -0
- package/dist/components/Portal/PortalDesktop.vue.d.ts +34 -0
- package/dist/components/Portal/PortalDesktop.vue.d.ts.map +1 -0
- package/dist/components/Portal/PortalMobile.vue.d.ts +34 -0
- package/dist/components/Portal/PortalMobile.vue.d.ts.map +1 -0
- package/dist/components/Portal/PortalSidebar.vue.d.ts +3 -0
- package/dist/components/Portal/PortalSidebar.vue.d.ts.map +1 -0
- package/dist/components/Portal/PortalTablet.vue.d.ts +33 -0
- package/dist/components/Portal/PortalTablet.vue.d.ts.map +1 -0
- package/dist/components/Portal/index.d.ts +28 -0
- package/dist/components/Portal/index.d.ts.map +1 -0
- package/dist/components/Portal/index.vue.d.ts +40 -0
- package/dist/components/Portal/index.vue.d.ts.map +1 -0
- package/dist/components/RestaurantSelector.vue.d.ts +48 -0
- package/dist/components/RestaurantSelector.vue.d.ts.map +1 -0
- package/dist/components/SelectCountryDialog.vue.d.ts +93 -0
- package/dist/components/SelectCountryDialog.vue.d.ts.map +1 -0
- package/dist/components/UserInfo/ProfileMenuItem.vue.d.ts +25 -0
- package/dist/components/UserInfo/ProfileMenuItem.vue.d.ts.map +1 -0
- package/dist/components/UserInfo/index.vue.d.ts +72 -0
- package/dist/components/UserInfo/index.vue.d.ts.map +1 -0
- package/dist/components/attribute/CustomAttributesForm.vue.d.ts +25 -0
- package/dist/components/attribute/CustomAttributesForm.vue.d.ts.map +1 -0
- package/dist/components/attribute/MongoQueryBuilder.vue.d.ts +22 -0
- package/dist/components/attribute/MongoQueryBuilder.vue.d.ts.map +1 -0
- package/dist/components/attribute/OptionChip.vue.d.ts +16 -0
- package/dist/components/attribute/OptionChip.vue.d.ts.map +1 -0
- package/dist/composables/filterSelector.d.ts +13 -0
- package/dist/composables/filterSelector.d.ts.map +1 -0
- package/dist/composables/search.d.ts +6 -0
- package/dist/composables/search.d.ts.map +1 -0
- package/dist/composables/useDebugUser.d.ts +6 -0
- package/dist/composables/useDebugUser.d.ts.map +1 -0
- package/dist/composables/useLocale.d.ts +27 -0
- package/dist/composables/useLocale.d.ts.map +1 -0
- package/dist/composables/usePaginatedBusinesses.d.ts +145 -0
- package/dist/composables/usePaginatedBusinesses.d.ts.map +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/locales/en-US.json +33 -0
- package/dist/locales/th-TH.json +33 -0
- package/dist/locales/types.d.ts +104 -0
- package/dist/locales/zh-CN.json +33 -0
- package/dist/logo.svg +15 -0
- package/dist/main.d.ts +2 -1
- package/dist/main.d.ts.map +1 -0
- package/dist/object-27ce045b.js +16 -0
- package/dist/permission/permission.d.ts +107 -0
- package/dist/permission/permission.d.ts.map +1 -0
- package/dist/plugin/loading.d.ts +18 -0
- package/dist/plugin/loading.d.ts.map +1 -0
- package/dist/router/index.d.ts +3 -0
- package/dist/router/index.d.ts.map +1 -0
- package/dist/router/query.d.ts +3 -0
- package/dist/router/query.d.ts.map +1 -0
- package/dist/store.d.ts +13951 -301
- package/dist/store.d.ts.map +1 -0
- package/dist/stores/menu.d.ts +7231 -0
- package/dist/stores/menu.d.ts.map +1 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/utils/businessStorage.d.ts +12 -0
- package/dist/utils/businessStorage.d.ts.map +1 -0
- package/dist/utils/clipboard.d.ts +2 -0
- package/dist/utils/clipboard.d.ts.map +1 -0
- package/dist/utils/country.d.ts +11 -0
- package/dist/utils/country.d.ts.map +1 -0
- package/dist/utils/object.d.ts +2 -0
- package/dist/utils/object.d.ts.map +1 -0
- package/dist/utils/postMessageMethodCall.d.ts +16 -0
- package/dist/utils/postMessageMethodCall.d.ts.map +1 -0
- package/dist/utils/storage.d.ts +6 -0
- package/dist/utils/storage.d.ts.map +1 -0
- package/dist/vite-preset.d.ts +12 -2
- package/dist/vite-preset.d.ts.map +1 -0
- package/dist/vite-preset.js +89 -47
- package/package.json +27 -13
- package/dist/FeedmeLogo.vue.d.ts +0 -2
- package/dist/UserInfo.vue.d.ts +0 -268
- package/dist/auth.d.ts +0 -106
@@ -0,0 +1,16 @@
|
|
1
|
+
/**
|
2
|
+
* Utils for calling methods via postMessage
|
3
|
+
*/
|
4
|
+
export declare const FM_POST_MESSAGE_REQUEST = "fm-post-message-request";
|
5
|
+
export declare const FM_POST_MESSAGE_RESPONSE = "fm-post-message-response";
|
6
|
+
export type PostMessageMethodCallParams = {
|
7
|
+
targetWindow: Window;
|
8
|
+
methodName: string;
|
9
|
+
params?: Object[];
|
10
|
+
timeout?: number;
|
11
|
+
};
|
12
|
+
export declare function callMethodOnWindow({ targetWindow, methodName, params, timeout }: PostMessageMethodCallParams): Promise<any>;
|
13
|
+
export declare function registerPostMessageMethod(methodName: string, method: (...args: any[]) => Promise<any>): void;
|
14
|
+
export declare function installPostMessageMethodCall(): void;
|
15
|
+
export declare function uninstallPostMessageMethodCall(): void;
|
16
|
+
//# sourceMappingURL=postMessageMethodCall.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"postMessageMethodCall.d.ts","sourceRoot":"","sources":["../../../src/utils/postMessageMethodCall.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,uBAAuB,4BAA4B,CAAA;AAChE,eAAO,MAAM,wBAAwB,6BAA6B,CAAA;AAElE,MAAM,MAAM,2BAA2B,GAAG;IACxC,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,wBAAgB,kBAAkB,CAAC,EACjC,YAAY,EACZ,UAAU,EACV,MAAW,EACX,OAAO,EACR,EAAE,2BAA2B,GAAG,OAAO,CAAC,GAAG,CAAC,CAmC5C;AA4BD,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,QAGzC;AAGD,wBAAgB,4BAA4B,SAM3C;AAED,wBAAgB,8BAA8B,SAG7C"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/utils/storage.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;mBACR,MAAM,SAAS,MAAM;mBAGrB,MAAM;sBAOH,MAAM;CAGzB,CAAA"}
|
package/dist/vite-preset.d.ts
CHANGED
@@ -1,2 +1,12 @@
|
|
1
|
-
import type { ConfigEnv, UserConfig } from
|
2
|
-
export
|
1
|
+
import type { ConfigEnv, UserConfig } from "vite";
|
2
|
+
export interface FmmfPresentOptions {
|
3
|
+
excludeFmmfPackages?: string[];
|
4
|
+
includeFmmfPackages?: string[];
|
5
|
+
replaceFmmfPackages?: Record<string, string>;
|
6
|
+
importMapScopes?: Record<string, string>;
|
7
|
+
isDev?: boolean;
|
8
|
+
externalize?: boolean | string[];
|
9
|
+
externalizeCore?: boolean;
|
10
|
+
}
|
11
|
+
export declare const fmmfVitePresent: (config: UserConfig, { command, mode }: ConfigEnv, options?: FmmfPresentOptions) => Promise<UserConfig>;
|
12
|
+
//# sourceMappingURL=vite-preset.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"vite-preset.d.ts","sourceRoot":"","sources":["../vite-preset.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAwB,UAAU,EAAE,MAAM,MAAM,CAAA;AAMvE,MAAM,WAAW,kBAAkB;IACjC,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC9B,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC9B,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC5C,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACxC,KAAK,CAAC,EAAE,OAAO,CAAA;IAIf,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,CAAA;IAChC,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED,eAAO,MAAM,eAAe,WAClB,UAAU,qBACC,SAAS,YACnB,kBAAkB,KAC1B,QAAQ,UAAU,CAkJpB,CAAA"}
|
package/dist/vite-preset.js
CHANGED
@@ -1,37 +1,37 @@
|
|
1
|
-
import { resolve as
|
2
|
-
import { readFileSync as
|
1
|
+
import { resolve as h } from "path";
|
2
|
+
import { readFileSync as b } from "fs";
|
3
3
|
const g = (l) => {
|
4
|
-
const
|
5
|
-
return new RegExp(`^(${
|
6
|
-
},
|
4
|
+
const r = l.join("|");
|
5
|
+
return new RegExp(`^(${r})(\\/.*)?$`);
|
6
|
+
}, y = ({
|
7
7
|
externals: l
|
8
8
|
}) => {
|
9
|
-
const
|
9
|
+
const r = g(l);
|
10
10
|
return {
|
11
11
|
name: "externalize",
|
12
12
|
setup(e) {
|
13
|
-
e.onResolve({ filter:
|
13
|
+
e.onResolve({ filter: r }, (t) => ({
|
14
14
|
path: t.path,
|
15
15
|
namespace: "externalize"
|
16
|
-
})), e.onLoad({ filter:
|
16
|
+
})), e.onLoad({ filter: r }, () => ({
|
17
17
|
contents: ""
|
18
18
|
}));
|
19
19
|
}
|
20
20
|
};
|
21
|
-
},
|
22
|
-
const
|
23
|
-
`${
|
21
|
+
}, z = (l) => {
|
22
|
+
const r = "/@id/", e = new RegExp(
|
23
|
+
`${r}(${l.join("|")})`,
|
24
24
|
"g"
|
25
25
|
);
|
26
26
|
return {
|
27
27
|
name: "vite-plugin-remove-prefix",
|
28
28
|
transform: (t) => e.test(t) ? t.replace(
|
29
29
|
e,
|
30
|
-
(p,
|
30
|
+
(p, c) => c
|
31
31
|
) : t
|
32
32
|
};
|
33
|
-
},
|
34
|
-
const { externals:
|
33
|
+
}, O = (l) => {
|
34
|
+
const { externals: r } = l;
|
35
35
|
return {
|
36
36
|
name: "vite-plugin-externalize",
|
37
37
|
enforce: "pre",
|
@@ -40,73 +40,115 @@ const g = (l) => {
|
|
40
40
|
var t;
|
41
41
|
const p = { ...e };
|
42
42
|
return p.optimizeDeps && p.optimizeDeps.esbuildOptions && ((t = p.optimizeDeps.esbuildOptions).plugins ?? (t.plugins = []), p.optimizeDeps.esbuildOptions.plugins.push(
|
43
|
-
|
43
|
+
y({ externals: r })
|
44
44
|
)), p;
|
45
45
|
},
|
46
46
|
configResolved: (e) => {
|
47
47
|
if (e.optimizeDeps && e.optimizeDeps.include) {
|
48
48
|
const p = e.optimizeDeps.include.filter(
|
49
|
-
(
|
49
|
+
(c) => !r.includes(c)
|
50
50
|
);
|
51
51
|
e.optimizeDeps.include = p;
|
52
52
|
}
|
53
|
-
e.optimizeDeps && (e.optimizeDeps.exclude = e.optimizeDeps.exclude || [], e.optimizeDeps.exclude.push(...
|
54
|
-
const t =
|
53
|
+
e.optimizeDeps && (e.optimizeDeps.exclude = e.optimizeDeps.exclude || [], e.optimizeDeps.exclude.push(...r));
|
54
|
+
const t = z(r);
|
55
55
|
e.plugins.push(t);
|
56
56
|
},
|
57
57
|
// Supresses the following warning:
|
58
58
|
// Failed to resolve import [dependency] from [sourceFile]. Does the file exist?
|
59
|
-
resolveId: (e) =>
|
59
|
+
resolveId: (e) => r.includes(e) ? { id: e, external: !0 } : null,
|
60
60
|
// Supresses the following warning:
|
61
61
|
// The following dependencies are imported but could not be resolved:
|
62
62
|
// [dependency] (imported by [sourceFile])
|
63
|
-
load: (e) =>
|
63
|
+
load: (e) => r.includes(e) ? "export default {};" : null
|
64
64
|
};
|
65
|
-
},
|
66
|
-
var
|
67
|
-
const
|
68
|
-
|
69
|
-
),
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
65
|
+
}, k = "@feedmepos/mf-", P = async (l, { command: r, mode: e }, t = {}) => {
|
66
|
+
var f, j, x;
|
67
|
+
const p = JSON.parse(
|
68
|
+
b(h(process.cwd(), "package.json"), "utf-8")
|
69
|
+
), c = Object.keys(p.dependencies).filter((s) => s.startsWith(k)).reduce((s, i) => (s[i] = p.dependencies[i], s), {});
|
70
|
+
(f = t.includeFmmfPackages) == null || f.forEach((s) => {
|
71
|
+
c[s] = p.dependencies[s] ?? "latest";
|
72
|
+
}), (j = t.excludeFmmfPackages) == null || j.forEach((s) => {
|
73
|
+
delete c[s];
|
74
|
+
});
|
75
|
+
const a = {
|
76
|
+
"@feedmepos/ui-library": "https://cdn.jsdelivr.net/npm/@feedmepos/ui-library@latest/dist/feedmepos-ui-library.js",
|
77
|
+
...t.externalizeCore ? {
|
78
|
+
"@feedmepos/core": "https://cdn.jsdelivr.net/npm/@feedmepos/core@latest/es/index.js",
|
79
|
+
"@feedmepos/core/fn": "https://cdn.jsdelivr.net/npm/@feedmepos/core@latest/es/fn.js",
|
80
|
+
"@feedmepos/core/entity": "https://cdn.jsdelivr.net/npm/@feedmepos/core@latest/es/entity.js",
|
81
|
+
"@feedmepos/core/modules": "https://cdn.jsdelivr.net/npm/@feedmepos/core@latest/es/modules.js"
|
82
|
+
} : {}
|
83
|
+
}, o = {
|
84
|
+
"@vue/devtools-api": "6.5.0/lib/esm/index.js",
|
85
|
+
vue: "3.5.13/dist/vue.esm-browser.prod.min.js",
|
86
|
+
"vue-router": "4.2.5/dist/vue-router.esm-browser.min.js",
|
87
|
+
pinia: "2.1.7/+esm"
|
88
|
+
};
|
89
|
+
let m = [
|
90
|
+
...Object.keys(o),
|
91
|
+
...Object.keys(c),
|
92
|
+
...Object.keys(a)
|
93
|
+
];
|
94
|
+
const n = { ...l };
|
95
|
+
if (r == "build" && e.startsWith("fmmf") && (m = [
|
96
|
+
...Object.keys(c),
|
97
|
+
...Object.keys(o),
|
98
|
+
...Object.keys(a)
|
99
|
+
], n.build = {
|
77
100
|
emptyOutDir: !0,
|
78
101
|
lib: {
|
79
102
|
entry: {
|
80
|
-
app:
|
103
|
+
app: h(process.cwd(), "src/app.ts")
|
81
104
|
},
|
82
105
|
formats: ["es"]
|
83
|
-
},
|
84
|
-
rollupOptions: {
|
85
|
-
external: u
|
86
106
|
}
|
87
|
-
}), n.plugins ?? (n.plugins = []),
|
88
|
-
|
107
|
+
}), n.plugins ?? (n.plugins = []), t.externalize) {
|
108
|
+
const s = t.externalize === !0 ? m : t.externalize;
|
109
|
+
n.plugins.push(O({ externals: s }));
|
110
|
+
}
|
111
|
+
n.build ?? (n.build = {}), (x = n.build).rollupOptions ?? (x.rollupOptions = {}), n.build.rollupOptions.external = m.concat(
|
112
|
+
...n.build.rollupOptions.external ?? []
|
113
|
+
);
|
114
|
+
const d = c;
|
115
|
+
await Promise.all(
|
116
|
+
Object.keys(d).map(async (s) => {
|
117
|
+
const i = "latest";
|
118
|
+
return d[s] = `https://cdn.jsdelivr.net/npm/${s}@${i}/dist/app.js`;
|
119
|
+
})
|
120
|
+
);
|
121
|
+
const u = {
|
89
122
|
imports: {
|
90
|
-
...
|
91
|
-
...Object.keys(o).reduce((
|
92
|
-
|
93
|
-
|
123
|
+
...d,
|
124
|
+
...Object.keys(o).reduce((s, i) => (s[i] = `https://cdn.jsdelivr.net/npm/${i}@${o[i]}`, s), {}),
|
125
|
+
...a
|
126
|
+
},
|
127
|
+
scopes: t.importMapScopes ?? {}
|
128
|
+
};
|
129
|
+
t.replaceFmmfPackages && Object.entries(t.replaceFmmfPackages).forEach(([s, i]) => {
|
130
|
+
if (s.startsWith("@feedmepos/mf-") || s === "@feedmepos/ui-library")
|
131
|
+
u.imports[s] = i;
|
132
|
+
else
|
133
|
+
throw new Error(`Invalid replaceFmmfPackages key: ${s}, must start with @feedmepos/mf-`);
|
134
|
+
});
|
135
|
+
const v = {
|
94
136
|
name: "vite-plugin-feedme-microfrontend",
|
95
137
|
enforce: "pre",
|
96
138
|
config: async () => {
|
97
139
|
},
|
98
140
|
transformIndexHtml: {
|
99
141
|
enforce: "pre",
|
100
|
-
transform(
|
142
|
+
transform(s) {
|
101
143
|
return {
|
102
|
-
html:
|
144
|
+
html: s,
|
103
145
|
tags: [
|
104
146
|
{
|
105
147
|
tag: "script",
|
106
148
|
attrs: {
|
107
149
|
type: "importmap"
|
108
150
|
},
|
109
|
-
children: JSON.stringify(
|
151
|
+
children: JSON.stringify(u, null, 2),
|
110
152
|
injectTo: "head-prepend"
|
111
153
|
},
|
112
154
|
{
|
@@ -121,8 +163,8 @@ const g = (l) => {
|
|
121
163
|
}
|
122
164
|
}
|
123
165
|
};
|
124
|
-
return n.plugins.push(
|
166
|
+
return n.plugins.push(v), n;
|
125
167
|
};
|
126
168
|
export {
|
127
|
-
|
169
|
+
P as fmmfVitePresent
|
128
170
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@feedmepos/mf-common",
|
3
|
-
"version": "0.0
|
3
|
+
"version": "0.26.0",
|
4
4
|
"type": "module",
|
5
5
|
"files": [
|
6
6
|
"dist"
|
@@ -15,19 +15,28 @@
|
|
15
15
|
},
|
16
16
|
"./style.css": "./dist/style.css"
|
17
17
|
},
|
18
|
-
"publishConfig": {
|
19
|
-
"registry": "https://registry.npmjs.org"
|
20
|
-
},
|
21
18
|
"dependencies": {
|
22
|
-
"@feedmepos/
|
23
|
-
"@feedmepos/
|
24
|
-
"
|
19
|
+
"@feedmepos/ui-library": "1.3.9",
|
20
|
+
"@feedmepos/auth": "^1.2.0-beta.2",
|
21
|
+
"@feedmepos/core": "2.14.10",
|
22
|
+
"@feedmepos/menu": "1.4.3",
|
23
|
+
"@feedmepos/i18n": "0.2.0",
|
24
|
+
"@feedmepos/custom-attributes": "0.0.0-rc.6",
|
25
|
+
"vue-i18n": "10.0.5",
|
26
|
+
"@vue/devtools-api": "^6.5.0",
|
27
|
+
"@vueuse/core": "^10.11.0",
|
28
|
+
"axios": "^1.7.7",
|
29
|
+
"firebase": "^10.12.2",
|
30
|
+
"libphonenumber-js": "^1.11.1",
|
25
31
|
"pinia": "^2.1.6",
|
26
|
-
"vue": "^3.
|
27
|
-
"vue-router": "^4.2.5"
|
32
|
+
"vue": "^3.5.13",
|
33
|
+
"vue-router": "^4.2.5",
|
34
|
+
"@casl/ability": "^3.2.0",
|
35
|
+
"sift": "^17.1.3",
|
36
|
+
"@feedmepos/vue-client-monitoring": "0.1.0-beta.6",
|
37
|
+
"vue-country-flag-next": "2.3.2"
|
28
38
|
},
|
29
39
|
"devDependencies": {
|
30
|
-
"@rushstack/eslint-patch": "^1.3.3",
|
31
40
|
"@tsconfig/node18": "^18.2.2",
|
32
41
|
"@types/node": "^18.17.17",
|
33
42
|
"@vitejs/plugin-vue": "^4.3.4",
|
@@ -36,10 +45,13 @@
|
|
36
45
|
"@vue/tsconfig": "^0.4.0",
|
37
46
|
"autoprefixer": "^10.4.16",
|
38
47
|
"eslint": "^8.49.0",
|
48
|
+
"eslint-plugin-tailwindcss": "^3.14.0",
|
39
49
|
"eslint-plugin-vue": "^9.17.0",
|
50
|
+
"node-fetch": "^3.3.2",
|
40
51
|
"npm-run-all2": "^6.0.6",
|
41
52
|
"postcss": "^8.4.31",
|
42
53
|
"prettier": "^3.0.3",
|
54
|
+
"sass": "^1.77.1",
|
43
55
|
"tailwindcss": "^3.3.3",
|
44
56
|
"typescript": "~5.2.0",
|
45
57
|
"vite": "^4.4.9",
|
@@ -48,13 +60,15 @@
|
|
48
60
|
"vue-tsc": "^1.8.11"
|
49
61
|
},
|
50
62
|
"scripts": {
|
51
|
-
"dev": "vite",
|
63
|
+
"dev": "vite --port 5200",
|
52
64
|
"build": "run-p type-check \"build-only\"",
|
53
65
|
"build:mf": "vite build --mode fmmf",
|
54
66
|
"build:vitePreset": "vite build --mode vite-preset",
|
55
67
|
"build:dts": "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* dist",
|
56
|
-
"publish-npm": "pnpm build:mf && pnpm build:dts && pnpm build:vitePreset && pnpm publish --no-git-checks",
|
57
|
-
"
|
68
|
+
"publish-npm": "pnpm build:mf && pnpm build:dts && pnpm build:vitePreset && pnpm publish --tag legacy --no-git-checks",
|
69
|
+
"copy-common-locales": "cp -r ./node_modules/@feedmepos/i18n/dist/locales dist/",
|
70
|
+
"deploy": "pnpm publish --tag latest --no-git-checks .",
|
71
|
+
"build-only": "pnpm build:mf && pnpm build:dts && pnpm build:vitePreset && pnpm copy-common-locales",
|
58
72
|
"type-check": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
|
59
73
|
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
60
74
|
"format": "prettier --write src/"
|
package/dist/FeedmeLogo.vue.d.ts
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
2
|
-
export default _default;
|
package/dist/UserInfo.vue.d.ts
DELETED
@@ -1,268 +0,0 @@
|
|
1
|
-
import { type PropType } from 'vue';
|
2
|
-
import type { FeedMeUser } from './auth';
|
3
|
-
declare const _default: import("vue").DefineComponent<{
|
4
|
-
user: {
|
5
|
-
type: PropType<FeedMeUser | null>;
|
6
|
-
default: undefined;
|
7
|
-
};
|
8
|
-
businesses: {
|
9
|
-
type: PropType<{
|
10
|
-
internal?: boolean | null | undefined;
|
11
|
-
expiredAt?: string | null | undefined;
|
12
|
-
url?: string | null | undefined;
|
13
|
-
agentId?: string | null | undefined;
|
14
|
-
pf_agent?: {
|
15
|
-
clickupId?: string | null | undefined;
|
16
|
-
members?: {
|
17
|
-
pf_user?: {
|
18
|
-
birthday?: Date | null | undefined;
|
19
|
-
gender?: "MALE" | "FEMALE" | null | undefined;
|
20
|
-
addresses?: {
|
21
|
-
name: string;
|
22
|
-
address: string;
|
23
|
-
coordinates: number[];
|
24
|
-
}[] | null | undefined;
|
25
|
-
email?: string | null | undefined;
|
26
|
-
photoURL?: string | null | undefined;
|
27
|
-
displayName?: string | null | undefined;
|
28
|
-
phoneNumber?: string | null | undefined;
|
29
|
-
imported?: {
|
30
|
-
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
31
|
-
raw: Record<string, any>;
|
32
|
-
} | null | undefined;
|
33
|
-
_id: string;
|
34
|
-
} | null | undefined;
|
35
|
-
userId: string;
|
36
|
-
role: "ADMIN";
|
37
|
-
}[] | null | undefined;
|
38
|
-
_id: string;
|
39
|
-
name: string;
|
40
|
-
code: string;
|
41
|
-
isReseller: boolean;
|
42
|
-
} | null | undefined;
|
43
|
-
thumbnail?: string | null | undefined;
|
44
|
-
billingInfos?: {
|
45
|
-
_id?: string | undefined;
|
46
|
-
name: string;
|
47
|
-
email: string;
|
48
|
-
address: {
|
49
|
-
coordinates?: number[] | undefined;
|
50
|
-
line2?: string | undefined;
|
51
|
-
line1: string;
|
52
|
-
state: string;
|
53
|
-
city: string;
|
54
|
-
postcode: string;
|
55
|
-
country: string;
|
56
|
-
};
|
57
|
-
companyName: string;
|
58
|
-
contact: string;
|
59
|
-
}[] | null | undefined;
|
60
|
-
_id: string;
|
61
|
-
ownerId: string;
|
62
|
-
name: string;
|
63
|
-
restaurantQuota: number;
|
64
|
-
warehouseQuota: number;
|
65
|
-
menuVersion: "v2" | "v3" | "v4";
|
66
|
-
}[]>;
|
67
|
-
required: true;
|
68
|
-
};
|
69
|
-
currentBusinessId: {
|
70
|
-
type: StringConstructor;
|
71
|
-
required: true;
|
72
|
-
};
|
73
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
74
|
-
login: () => void;
|
75
|
-
logout: () => void;
|
76
|
-
"select-business": (business: {
|
77
|
-
internal?: boolean | null | undefined;
|
78
|
-
expiredAt?: string | null | undefined;
|
79
|
-
url?: string | null | undefined;
|
80
|
-
agentId?: string | null | undefined;
|
81
|
-
pf_agent?: {
|
82
|
-
clickupId?: string | null | undefined;
|
83
|
-
members?: {
|
84
|
-
pf_user?: {
|
85
|
-
birthday?: Date | null | undefined;
|
86
|
-
gender?: "MALE" | "FEMALE" | null | undefined;
|
87
|
-
addresses?: {
|
88
|
-
name: string;
|
89
|
-
address: string;
|
90
|
-
coordinates: number[];
|
91
|
-
}[] | null | undefined;
|
92
|
-
email?: string | null | undefined;
|
93
|
-
photoURL?: string | null | undefined;
|
94
|
-
displayName?: string | null | undefined;
|
95
|
-
phoneNumber?: string | null | undefined;
|
96
|
-
imported?: {
|
97
|
-
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
98
|
-
raw: Record<string, any>;
|
99
|
-
} | null | undefined;
|
100
|
-
_id: string;
|
101
|
-
} | null | undefined;
|
102
|
-
userId: string;
|
103
|
-
role: "ADMIN";
|
104
|
-
}[] | null | undefined;
|
105
|
-
_id: string;
|
106
|
-
name: string;
|
107
|
-
code: string;
|
108
|
-
isReseller: boolean;
|
109
|
-
} | null | undefined;
|
110
|
-
thumbnail?: string | null | undefined;
|
111
|
-
billingInfos?: {
|
112
|
-
_id?: string | undefined;
|
113
|
-
name: string;
|
114
|
-
email: string;
|
115
|
-
address: {
|
116
|
-
coordinates?: number[] | undefined;
|
117
|
-
line2?: string | undefined;
|
118
|
-
line1: string;
|
119
|
-
state: string;
|
120
|
-
city: string;
|
121
|
-
postcode: string;
|
122
|
-
country: string;
|
123
|
-
};
|
124
|
-
companyName: string;
|
125
|
-
contact: string;
|
126
|
-
}[] | null | undefined;
|
127
|
-
_id: string;
|
128
|
-
ownerId: string;
|
129
|
-
name: string;
|
130
|
-
restaurantQuota: number;
|
131
|
-
warehouseQuota: number;
|
132
|
-
menuVersion: "v2" | "v3" | "v4";
|
133
|
-
}) => void;
|
134
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
135
|
-
user: {
|
136
|
-
type: PropType<FeedMeUser | null>;
|
137
|
-
default: undefined;
|
138
|
-
};
|
139
|
-
businesses: {
|
140
|
-
type: PropType<{
|
141
|
-
internal?: boolean | null | undefined;
|
142
|
-
expiredAt?: string | null | undefined;
|
143
|
-
url?: string | null | undefined;
|
144
|
-
agentId?: string | null | undefined;
|
145
|
-
pf_agent?: {
|
146
|
-
clickupId?: string | null | undefined;
|
147
|
-
members?: {
|
148
|
-
pf_user?: {
|
149
|
-
birthday?: Date | null | undefined;
|
150
|
-
gender?: "MALE" | "FEMALE" | null | undefined;
|
151
|
-
addresses?: {
|
152
|
-
name: string;
|
153
|
-
address: string;
|
154
|
-
coordinates: number[];
|
155
|
-
}[] | null | undefined;
|
156
|
-
email?: string | null | undefined;
|
157
|
-
photoURL?: string | null | undefined;
|
158
|
-
displayName?: string | null | undefined;
|
159
|
-
phoneNumber?: string | null | undefined;
|
160
|
-
imported?: {
|
161
|
-
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
162
|
-
raw: Record<string, any>;
|
163
|
-
} | null | undefined;
|
164
|
-
_id: string;
|
165
|
-
} | null | undefined;
|
166
|
-
userId: string;
|
167
|
-
role: "ADMIN";
|
168
|
-
}[] | null | undefined;
|
169
|
-
_id: string;
|
170
|
-
name: string;
|
171
|
-
code: string;
|
172
|
-
isReseller: boolean;
|
173
|
-
} | null | undefined;
|
174
|
-
thumbnail?: string | null | undefined;
|
175
|
-
billingInfos?: {
|
176
|
-
_id?: string | undefined;
|
177
|
-
name: string;
|
178
|
-
email: string;
|
179
|
-
address: {
|
180
|
-
coordinates?: number[] | undefined;
|
181
|
-
line2?: string | undefined;
|
182
|
-
line1: string;
|
183
|
-
state: string;
|
184
|
-
city: string;
|
185
|
-
postcode: string;
|
186
|
-
country: string;
|
187
|
-
};
|
188
|
-
companyName: string;
|
189
|
-
contact: string;
|
190
|
-
}[] | null | undefined;
|
191
|
-
_id: string;
|
192
|
-
ownerId: string;
|
193
|
-
name: string;
|
194
|
-
restaurantQuota: number;
|
195
|
-
warehouseQuota: number;
|
196
|
-
menuVersion: "v2" | "v3" | "v4";
|
197
|
-
}[]>;
|
198
|
-
required: true;
|
199
|
-
};
|
200
|
-
currentBusinessId: {
|
201
|
-
type: StringConstructor;
|
202
|
-
required: true;
|
203
|
-
};
|
204
|
-
}>> & {
|
205
|
-
onLogin?: (() => any) | undefined;
|
206
|
-
onLogout?: (() => any) | undefined;
|
207
|
-
"onSelect-business"?: ((business: {
|
208
|
-
internal?: boolean | null | undefined;
|
209
|
-
expiredAt?: string | null | undefined;
|
210
|
-
url?: string | null | undefined;
|
211
|
-
agentId?: string | null | undefined;
|
212
|
-
pf_agent?: {
|
213
|
-
clickupId?: string | null | undefined;
|
214
|
-
members?: {
|
215
|
-
pf_user?: {
|
216
|
-
birthday?: Date | null | undefined;
|
217
|
-
gender?: "MALE" | "FEMALE" | null | undefined;
|
218
|
-
addresses?: {
|
219
|
-
name: string;
|
220
|
-
address: string;
|
221
|
-
coordinates: number[];
|
222
|
-
}[] | null | undefined;
|
223
|
-
email?: string | null | undefined;
|
224
|
-
photoURL?: string | null | undefined;
|
225
|
-
displayName?: string | null | undefined;
|
226
|
-
phoneNumber?: string | null | undefined;
|
227
|
-
imported?: {
|
228
|
-
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
229
|
-
raw: Record<string, any>;
|
230
|
-
} | null | undefined;
|
231
|
-
_id: string;
|
232
|
-
} | null | undefined;
|
233
|
-
userId: string;
|
234
|
-
role: "ADMIN";
|
235
|
-
}[] | null | undefined;
|
236
|
-
_id: string;
|
237
|
-
name: string;
|
238
|
-
code: string;
|
239
|
-
isReseller: boolean;
|
240
|
-
} | null | undefined;
|
241
|
-
thumbnail?: string | null | undefined;
|
242
|
-
billingInfos?: {
|
243
|
-
_id?: string | undefined;
|
244
|
-
name: string;
|
245
|
-
email: string;
|
246
|
-
address: {
|
247
|
-
coordinates?: number[] | undefined;
|
248
|
-
line2?: string | undefined;
|
249
|
-
line1: string;
|
250
|
-
state: string;
|
251
|
-
city: string;
|
252
|
-
postcode: string;
|
253
|
-
country: string;
|
254
|
-
};
|
255
|
-
companyName: string;
|
256
|
-
contact: string;
|
257
|
-
}[] | null | undefined;
|
258
|
-
_id: string;
|
259
|
-
ownerId: string;
|
260
|
-
name: string;
|
261
|
-
restaurantQuota: number;
|
262
|
-
warehouseQuota: number;
|
263
|
-
menuVersion: "v2" | "v3" | "v4";
|
264
|
-
}) => any) | undefined;
|
265
|
-
}, {
|
266
|
-
user: FeedMeUser | null;
|
267
|
-
}, {}>;
|
268
|
-
export default _default;
|