@lancom/shared 0.0.204 → 0.0.206
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/assets/js/api/admin.js +3 -0
- package/nuxt.config.js +3 -2
- package/package.json +1 -1
package/assets/js/api/admin.js
CHANGED
|
@@ -428,6 +428,9 @@ export default {
|
|
|
428
428
|
fetchWarehouseLocations(params) {
|
|
429
429
|
return _get('admin/warehouse-locations', params);
|
|
430
430
|
},
|
|
431
|
+
fetchWarehouseAllocations(warehouse, params) {
|
|
432
|
+
return _get(`admin/warehouse/${warehouse}/allocations`, params);
|
|
433
|
+
},
|
|
431
434
|
fetchWarehouseLocationById(id) {
|
|
432
435
|
return _get(`admin/warehouse-locations/${id}`);
|
|
433
436
|
},
|
package/nuxt.config.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const sharedRoutes = require('./routes');
|
|
2
2
|
|
|
3
|
-
module.exports = (config, axios, { raygunClient } = {}) => ({
|
|
3
|
+
module.exports = (config, axios, { raygunClient, publicPath } = {}) => ({
|
|
4
|
+
globalName: 'appLancom',
|
|
4
5
|
mode: 'universal',
|
|
5
6
|
head: {
|
|
6
7
|
title: config.npm_package_name || '',
|
|
@@ -85,7 +86,7 @@ module.exports = (config, axios, { raygunClient } = {}) => ({
|
|
|
85
86
|
STATIC_URL: process.env.STATIC_URL
|
|
86
87
|
},
|
|
87
88
|
build: {
|
|
88
|
-
publicPath: '/client/',
|
|
89
|
+
publicPath: publicPath || '/client/',
|
|
89
90
|
postcss: null,
|
|
90
91
|
transpile: [
|
|
91
92
|
'vee-validate/dist/rules',
|