@fonixtree/magic-design 2.0.191 → 2.0.193
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/es/common/SelectStoreModal/SortableImageList/index.js +118 -0
- package/es/common/SelectStoreModal/SortableImageList/index.less +3 -0
- package/es/common/SelectStoreModal/index.js +497 -0
- package/es/common/SelectStoreModal/index.less +152 -0
- package/es/common/StoreSource/index.js +255 -0
- package/es/common/StoreSource/index.less +14 -0
- package/es/common/index.js +8 -0
- package/es/composite-comp/public/components/Stores/defaultJSON.js +2 -1
- package/es/composite-comp/public/components/Stores/mobile/StoreItem/img/defaultHImg.png +0 -0
- package/es/composite-comp/public/components/Stores/mobile/StoreItem/img/defaultImg.png +0 -0
- package/es/composite-comp/public/components/Stores/mobile/StoreItem/index.js +18 -6
- package/es/composite-comp/public/components/Stores/mobile/StoreItem/index.less +15 -1
- package/es/composite-comp/public/components/Stores/mobile/index.js +11 -10
- package/es/composite-comp/public/config-panels/StoresConfig/ConfigContent/index.js +16 -3
- package/es/composite-comp/public/config-panels/StoresConfig/ConfigContent/index.less +14 -0
- package/es/locale/ar/ar.json +10 -1
- package/es/locale/en/en.json +10 -1
- package/es/locale/es/es.json +10 -1
- package/es/locale/mn/mn.json +10 -1
- package/es/utils/commonUtil.js +11 -1
- package/lib/common/SelectStoreModal/SortableImageList/index.js +118 -0
- package/lib/common/SelectStoreModal/SortableImageList/index.less +3 -0
- package/lib/common/SelectStoreModal/index.js +497 -0
- package/lib/common/SelectStoreModal/index.less +152 -0
- package/lib/common/StoreSource/index.js +255 -0
- package/lib/common/StoreSource/index.less +14 -0
- package/lib/common/index.js +8 -0
- package/lib/composite-comp/public/components/Stores/defaultJSON.js +2 -1
- package/lib/composite-comp/public/components/Stores/mobile/StoreItem/img/defaultHImg.png +0 -0
- package/lib/composite-comp/public/components/Stores/mobile/StoreItem/img/defaultImg.png +0 -0
- package/lib/composite-comp/public/components/Stores/mobile/StoreItem/index.js +18 -6
- package/lib/composite-comp/public/components/Stores/mobile/StoreItem/index.less +15 -1
- package/lib/composite-comp/public/components/Stores/mobile/index.js +11 -10
- package/lib/composite-comp/public/config-panels/StoresConfig/ConfigContent/index.js +16 -3
- package/lib/composite-comp/public/config-panels/StoresConfig/ConfigContent/index.less +14 -0
- package/lib/locale/ar/ar.json +10 -1
- package/lib/locale/en/en.json +10 -1
- package/lib/locale/es/es.json +10 -1
- package/lib/locale/mn/mn.json +10 -1
- package/lib/utils/commonUtil.js +11 -1
- package/package.json +1 -1
package/lib/utils/commonUtil.js
CHANGED
|
@@ -245,12 +245,22 @@ function commonFetch(url, data, method) {
|
|
|
245
245
|
var _a, _b;
|
|
246
246
|
|
|
247
247
|
var credentials = localStorage.getItem('credentials');
|
|
248
|
+
var csrf = localStorage.getItem('X-CSRF-TOKEN');
|
|
248
249
|
var headers = {
|
|
250
|
+
Accept: 'application/json',
|
|
249
251
|
'Content-Type': 'application/json; charset=UTF-8',
|
|
250
252
|
credentials: credentials,
|
|
251
|
-
accessToken: credentials
|
|
253
|
+
accessToken: credentials,
|
|
254
|
+
'X-CSRF-TOKEN': csrf
|
|
252
255
|
};
|
|
253
256
|
|
|
257
|
+
if (url.endsWith('portal/login')) {
|
|
258
|
+
headers = __assign(__assign({}, headers), {
|
|
259
|
+
'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8',
|
|
260
|
+
'X-Requested-With': 'XMLHttpRequest'
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
|
|
254
264
|
if (_method === 'GET') {
|
|
255
265
|
if ((_a = window.magicDesign) === null || _a === void 0 ? void 0 : _a.fetch) {
|
|
256
266
|
window.magicDesign.fetch(url, {
|