ordering-ui-admin-external 1.6.0 → 1.6.1
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/_bundles/{ordering-ui-admin.0fd83f227d29409cb170.js → ordering-ui-admin.47d189a0568d6b5734d5.js} +2 -2
- package/_bundles/{ordering-ui-admin.0fd83f227d29409cb170.js.LICENSE.txt → ordering-ui-admin.47d189a0568d6b5734d5.js.LICENSE.txt} +0 -0
- package/_modules/components/OrderingProducts/OrderingProductDetails/index.js +4 -4
- package/_modules/components/Settings/PluginList/index.js +1 -31
- package/_modules/components/SidebarMenu/index.js +26 -17
- package/_modules/components/Stores/BusinessProductAddForm/index.js +4 -4
- package/package.json +1 -1
- package/src/components/OrderingProducts/OrderingProductDetails/index.js +2 -2
- package/src/components/Settings/PluginList/index.js +2 -2
- package/src/components/SidebarMenu/index.js +17 -17
- package/src/components/Stores/BusinessProductAddForm/index.js +2 -2
|
File without changes
|
|
@@ -47,10 +47,10 @@ var OrderingProductDetailsUI = function OrderingProductDetailsUI(props) {
|
|
|
47
47
|
var tabs = [{
|
|
48
48
|
key: 'general',
|
|
49
49
|
content: t('GENERAL', 'General')
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
}
|
|
51
|
+
// { key: 'theme', content: t('THEME', 'Theme') }
|
|
52
|
+
];
|
|
53
|
+
|
|
54
54
|
var moreOptions = [{
|
|
55
55
|
value: 0,
|
|
56
56
|
content: t('DELETE', 'Delete')
|
|
@@ -32,7 +32,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
32
32
|
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
33
33
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
34
34
|
var PluginListUI = function PluginListUI(props) {
|
|
35
|
-
var _pluginListState$sysP, _currentPlugins$plugi
|
|
35
|
+
var _pluginListState$sysP, _currentPlugins$plugi;
|
|
36
36
|
var pluginListState = props.pluginListState,
|
|
37
37
|
isAddMode = props.isAddMode,
|
|
38
38
|
setIsAddMode = props.setIsAddMode,
|
|
@@ -236,36 +236,6 @@ var PluginListUI = function PluginListUI(props) {
|
|
|
236
236
|
handleChangePageSize: function handleChangePageSize(e) {
|
|
237
237
|
return _handleChangePageSize(e, 'plugins');
|
|
238
238
|
}
|
|
239
|
-
}))), !pluginListState.loading && ((_pluginListState$sysP2 = pluginListState.sysPlugins) === null || _pluginListState$sysP2 === void 0 ? void 0 : _pluginListState$sysP2.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles2.PLuginsSeparator, {
|
|
240
|
-
h: "50%"
|
|
241
|
-
}, /*#__PURE__*/_react.default.createElement(_styles2.Header, {
|
|
242
|
-
mb: 0
|
|
243
|
-
}, /*#__PURE__*/_react.default.createElement("h1", {
|
|
244
|
-
style: {
|
|
245
|
-
marginTop: 20
|
|
246
|
-
}
|
|
247
|
-
}, t('SYSTEM_PLUGINS', 'System Plugins'))), /*#__PURE__*/_react.default.createElement(_styles2.PluginsTable, null, /*#__PURE__*/_react.default.createElement("thead", null, /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("th", null, t('PLUGINS', 'Plugins')), /*#__PURE__*/_react.default.createElement("th", null, t('ACTIONS', 'Actions')))), currentPlugins.sysPlugins.map(function (plugin) {
|
|
248
|
-
return /*#__PURE__*/_react.default.createElement(_styles2.PluginTbody, {
|
|
249
|
-
key: plugin.id
|
|
250
|
-
}, /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", null, plugin === null || plugin === void 0 ? void 0 : plugin.name), /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement(_styles2.ActionsContainer, null, plugin !== null && plugin !== void 0 && plugin.installed ? /*#__PURE__*/_react.default.createElement("span", null, t('SYSTEM_PLUGIN_INSTALLED', 'Installed')) : /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
251
|
-
borderRadius: "8px",
|
|
252
|
-
color: "lightPrimary",
|
|
253
|
-
onClick: function onClick() {
|
|
254
|
-
return handleInstallSysPlugin(plugin.id);
|
|
255
|
-
}
|
|
256
|
-
}, /*#__PURE__*/_react.default.createElement("span", null, t('INSTALL', 'Install')))))));
|
|
257
|
-
})), /*#__PURE__*/_react.default.createElement(_styles2.PagesBottomContainer, {
|
|
258
|
-
justifyContent: "flex-end"
|
|
259
|
-
}, ((_currentPlugins$sysPl = currentPlugins.sysPlugins) === null || _currentPlugins$sysPl === void 0 ? void 0 : _currentPlugins$sysPl.length) > 0 && /*#__PURE__*/_react.default.createElement(_Shared.Pagination, {
|
|
260
|
-
currentPage: currentPage.sysPlugins,
|
|
261
|
-
totalPages: totalPages.sysPlugins,
|
|
262
|
-
handleChangePage: function handleChangePage(e) {
|
|
263
|
-
return _handleChangePage(e, 'sysPlugins');
|
|
264
|
-
},
|
|
265
|
-
defaultPageSize: pluginsPerPage.sysPlugins,
|
|
266
|
-
handleChangePageSize: function handleChangePageSize(e) {
|
|
267
|
-
return _handleChangePageSize(e, 'sysPlugins');
|
|
268
|
-
}
|
|
269
239
|
})))), /*#__PURE__*/_react.default.createElement(_Shared.Alert, {
|
|
270
240
|
title: t('WEB_APPNAME', 'Ordering'),
|
|
271
241
|
content: alertState.content,
|
|
@@ -57,11 +57,14 @@ var SidebarMenu = function SidebarMenu(props) {
|
|
|
57
57
|
id: 3,
|
|
58
58
|
title: t('DRIVERS_DASHBOARD', 'Drivers Dashboard'),
|
|
59
59
|
pageName: 'drivers'
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
}
|
|
61
|
+
// {
|
|
62
|
+
// id: 4,
|
|
63
|
+
// title: t('APPOINTMENTS', 'Appointments'),
|
|
64
|
+
// pageName: 'appointments'
|
|
65
|
+
// }
|
|
66
|
+
];
|
|
67
|
+
|
|
65
68
|
var loyaltySubMenus = [{
|
|
66
69
|
id: 1,
|
|
67
70
|
title: t('REWARDS_PROGRAMS', 'Rewards programs'),
|
|
@@ -140,12 +143,15 @@ var SidebarMenu = function SidebarMenu(props) {
|
|
|
140
143
|
title: t('MANAGERS', 'Managers'),
|
|
141
144
|
pageName: 'managers',
|
|
142
145
|
url: '/users/managers'
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
146
|
+
}
|
|
147
|
+
// {
|
|
148
|
+
// id: 3,
|
|
149
|
+
// title: t('PROFESSIONALS', 'Professionals'),
|
|
150
|
+
// pageName: 'professionals',
|
|
151
|
+
// url: '/users/professionals'
|
|
152
|
+
// }
|
|
153
|
+
];
|
|
154
|
+
|
|
149
155
|
var settingsSubMenus = [{
|
|
150
156
|
id: 1,
|
|
151
157
|
title: t('BASIC_SETTINGS', 'Basic settings'),
|
|
@@ -239,12 +245,15 @@ var SidebarMenu = function SidebarMenu(props) {
|
|
|
239
245
|
title: t('PROMOTIONS_ENTERPRISE', 'Promotions enterprise'),
|
|
240
246
|
pageName: 'enterprise_promotions',
|
|
241
247
|
url: '/marketing/promotions-enterprise'
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
+
}
|
|
249
|
+
// {
|
|
250
|
+
// id: 2,
|
|
251
|
+
// title: t('CAMPAIGN', 'Campaign'),
|
|
252
|
+
// pageName: 'campaign',
|
|
253
|
+
// url: '/marketing/campaign'
|
|
254
|
+
// }
|
|
255
|
+
];
|
|
256
|
+
|
|
248
257
|
var downloadsSubMenus = [{
|
|
249
258
|
id: 1,
|
|
250
259
|
title: t('FREE_PRODUCTS', 'Free products'),
|
|
@@ -73,10 +73,10 @@ var BusinessProductAddFormUI = function BusinessProductAddFormUI(props) {
|
|
|
73
73
|
var typeList = [{
|
|
74
74
|
value: 'item',
|
|
75
75
|
content: /*#__PURE__*/_react.default.createElement(_styles2.Option, null, t('ITEM', 'Item'))
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
}
|
|
77
|
+
// { value: 'service', content: <Option>{t('SERVICE', 'Service')}</Option> }
|
|
78
|
+
];
|
|
79
|
+
|
|
80
80
|
var durationList = [{
|
|
81
81
|
value: 15,
|
|
82
82
|
content: /*#__PURE__*/_react.default.createElement(_styles2.Option, null, "15 ", /*#__PURE__*/_react.default.createElement("span", null, t('MINUTES', 'minutes')))
|
package/package.json
CHANGED
|
@@ -26,8 +26,8 @@ const OrderingProductDetailsUI = (props) => {
|
|
|
26
26
|
const [confirm, setConfirm] = useState({ open: false, content: null, handleOnAccept: null })
|
|
27
27
|
|
|
28
28
|
const tabs = [
|
|
29
|
-
{ key: 'general', content: t('GENERAL', 'General') }
|
|
30
|
-
{ key: 'theme', content: t('THEME', 'Theme') }
|
|
29
|
+
{ key: 'general', content: t('GENERAL', 'General') }
|
|
30
|
+
// { key: 'theme', content: t('THEME', 'Theme') }
|
|
31
31
|
]
|
|
32
32
|
|
|
33
33
|
const moreOptions = [
|
|
@@ -234,7 +234,7 @@ const PluginListUI = (props) => {
|
|
|
234
234
|
)}
|
|
235
235
|
</PLuginsSeparator>
|
|
236
236
|
|
|
237
|
-
{!pluginListState.loading && pluginListState.sysPlugins?.length > 0 && (
|
|
237
|
+
{/* {!pluginListState.loading && pluginListState.sysPlugins?.length > 0 && (
|
|
238
238
|
<PLuginsSeparator h='50%'>
|
|
239
239
|
<Header mb={0}>
|
|
240
240
|
<h1 style={{ marginTop: 20 }}>{t('SYSTEM_PLUGINS', 'System Plugins')}</h1>
|
|
@@ -282,7 +282,7 @@ const PluginListUI = (props) => {
|
|
|
282
282
|
)}
|
|
283
283
|
</PagesBottomContainer>
|
|
284
284
|
</PLuginsSeparator>
|
|
285
|
-
)}
|
|
285
|
+
)} */}
|
|
286
286
|
</PluginListContainer>
|
|
287
287
|
<Alert
|
|
288
288
|
title={t('WEB_APPNAME', 'Ordering')}
|
|
@@ -66,12 +66,12 @@ export const SidebarMenu = (props) => {
|
|
|
66
66
|
id: 3,
|
|
67
67
|
title: t('DRIVERS_DASHBOARD', 'Drivers Dashboard'),
|
|
68
68
|
pageName: 'drivers'
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
id: 4,
|
|
72
|
-
title: t('APPOINTMENTS', 'Appointments'),
|
|
73
|
-
pageName: 'appointments'
|
|
74
69
|
}
|
|
70
|
+
// {
|
|
71
|
+
// id: 4,
|
|
72
|
+
// title: t('APPOINTMENTS', 'Appointments'),
|
|
73
|
+
// pageName: 'appointments'
|
|
74
|
+
// }
|
|
75
75
|
]
|
|
76
76
|
|
|
77
77
|
const loyaltySubMenus = [
|
|
@@ -170,13 +170,13 @@ export const SidebarMenu = (props) => {
|
|
|
170
170
|
title: t('MANAGERS', 'Managers'),
|
|
171
171
|
pageName: 'managers',
|
|
172
172
|
url: '/users/managers'
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
id: 3,
|
|
176
|
-
title: t('PROFESSIONALS', 'Professionals'),
|
|
177
|
-
pageName: 'professionals',
|
|
178
|
-
url: '/users/professionals'
|
|
179
173
|
}
|
|
174
|
+
// {
|
|
175
|
+
// id: 3,
|
|
176
|
+
// title: t('PROFESSIONALS', 'Professionals'),
|
|
177
|
+
// pageName: 'professionals',
|
|
178
|
+
// url: '/users/professionals'
|
|
179
|
+
// }
|
|
180
180
|
]
|
|
181
181
|
|
|
182
182
|
const settingsSubMenus = [
|
|
@@ -296,13 +296,13 @@ export const SidebarMenu = (props) => {
|
|
|
296
296
|
title: t('PROMOTIONS_ENTERPRISE', 'Promotions enterprise'),
|
|
297
297
|
pageName: 'enterprise_promotions',
|
|
298
298
|
url: '/marketing/promotions-enterprise'
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
id: 2,
|
|
302
|
-
title: t('CAMPAIGN', 'Campaign'),
|
|
303
|
-
pageName: 'campaign',
|
|
304
|
-
url: '/marketing/campaign'
|
|
305
299
|
}
|
|
300
|
+
// {
|
|
301
|
+
// id: 2,
|
|
302
|
+
// title: t('CAMPAIGN', 'Campaign'),
|
|
303
|
+
// pageName: 'campaign',
|
|
304
|
+
// url: '/marketing/campaign'
|
|
305
|
+
// }
|
|
306
306
|
]
|
|
307
307
|
|
|
308
308
|
const downloadsSubMenus = [
|
|
@@ -51,8 +51,8 @@ const BusinessProductAddFormUI = (props) => {
|
|
|
51
51
|
const [isCustom, setIsCustom] = useState(false)
|
|
52
52
|
|
|
53
53
|
const typeList = [
|
|
54
|
-
{ value: 'item', content: <Option>{t('ITEM', 'Item')}</Option> }
|
|
55
|
-
{ value: 'service', content: <Option>{t('SERVICE', 'Service')}</Option> }
|
|
54
|
+
{ value: 'item', content: <Option>{t('ITEM', 'Item')}</Option> }
|
|
55
|
+
// { value: 'service', content: <Option>{t('SERVICE', 'Service')}</Option> }
|
|
56
56
|
]
|
|
57
57
|
|
|
58
58
|
const durationList = [
|