@lancom/shared 0.0.135 → 0.0.138

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.
@@ -142,6 +142,18 @@ export default {
142
142
  removeTaskType(id) {
143
143
  return _delete(`admin/task-types/${id}`);
144
144
  },
145
+ fetchAccessTokens() {
146
+ return _get('admin/access-tokens');
147
+ },
148
+ fetchAccessTokenById(id) {
149
+ return _get(`admin/access-tokens/${id}`);
150
+ },
151
+ saveAccessToken(item) {
152
+ return item._id ? _put(`admin/access-tokens/${item._id}`, item) : _post('admin/access-tokens', item);
153
+ },
154
+ removeAccessToken(id) {
155
+ return _delete(`admin/access-tokens/${id}`);
156
+ },
145
157
  fetchFAQ() {
146
158
  return _get('admin/faq');
147
159
  },
@@ -305,6 +317,18 @@ export default {
305
317
  removeDecorator(id) {
306
318
  return _delete(`admin/decorators/${id}`);
307
319
  },
320
+ async fetchWebhooks(params) {
321
+ return sortByName(await _get('admin/webhooks', params));
322
+ },
323
+ fetchWebhookById(id) {
324
+ return _get(`admin/webhooks/${id}`);
325
+ },
326
+ saveWebhook(webhook) {
327
+ return webhook._id ? _put(`admin/webhooks/${webhook._id}`, webhook) : _post('admin/webhooks', webhook);
328
+ },
329
+ removeWebhook(id) {
330
+ return _delete(`admin/webhooks/${id}`);
331
+ },
308
332
  async fetchWarehouses(params) {
309
333
  return sortByName(await _get('admin/warehouse', params));
310
334
  },
@@ -41,11 +41,11 @@ export default {
41
41
  valid = currentIndex === targetIndex;
42
42
  }
43
43
  if (valid) {
44
- return this.$slots.default;
44
+ return this.$slots.content || this.$slots.default;
45
45
  }
46
46
  return null;
47
47
  }
48
- return null;
48
+ return this.$slots.shadow;
49
49
  }
50
50
  };
51
51
  </script>
package/nuxt.config.js CHANGED
@@ -62,6 +62,7 @@ module.exports = (config, axios, { raygunClient } = {}) => ({
62
62
  ],
63
63
  axios: {
64
64
  },
65
+ dev: !!config.IS_LOCAL,
65
66
  env: {
66
67
  NODE_ENV: config.NODE_ENV || 'development'
67
68
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancom/shared",
3
- "version": "0.0.135",
3
+ "version": "0.0.138",
4
4
  "description": "lancom common scripts",
5
5
  "author": "e.tokovenko <e.tokovenko@gmail.com>",
6
6
  "repository": {
package/store/index.js CHANGED
@@ -10,6 +10,7 @@ export const state = () => ({
10
10
  orderInfo: {},
11
11
  pricing: {},
12
12
  notificationBar: {},
13
+ discountPopup: {},
13
14
  helpMessages: {},
14
15
  depositInfo: {}
15
16
  });
@@ -22,6 +23,7 @@ export const getters = {
22
23
  helpMessages: ({ helpMessages }) => helpMessages || {},
23
24
  contacts: ({ contacts }) => contacts || {},
24
25
  notificationBar: ({ notificationBar }) => notificationBar || {},
26
+ discountPopup: ({ discountPopup }) => discountPopup || {},
25
27
  pricingSettings: ({ pricing }) => pricing || {},
26
28
  orderSettings: ({ orderInfo }) => orderInfo || {},
27
29
  gstTax: ({ pricing }) => pricing?.gstTax || 0,
@@ -73,11 +75,12 @@ export const actions = {
73
75
  };
74
76
 
75
77
  export const mutations = {
76
- setSettings(state, { contacts, pricing, notificationBar, order, depositInfo }) {
78
+ setSettings(state, { contacts, pricing, notificationBar, discountPopup, order, depositInfo }) {
77
79
  state.contacts = contacts;
78
80
  state.pricing = pricing;
79
81
  state.orderInfo = order;
80
82
  state.notificationBar = notificationBar;
83
+ state.discountPopup = discountPopup;
81
84
  state.depositInfo = depositInfo;
82
85
  },
83
86
  setShop(state, shop) {