Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
hotfix: change module name (#762)
Browse files Browse the repository at this point in the history
  • Loading branch information
bleto authored Mar 8, 2021
1 parent e00c5ec commit d12ae45
Show file tree
Hide file tree
Showing 38 changed files with 80 additions and 80 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
<img width="300" src="https://ergonode.com/img/logo-dark.svg" alt="Ergonode logo">
</a>
</p>
<h3 align="center">Products batch actions module</h3>
<h3 align="center">Product batch actions module</h3>
<p align="center">
<a href="https://www.npmjs.com/package/@ergonode/products-batch-actions">
<img alt="npm" src="https://img.shields.io/npm/v/@ergonode/products-batch-actions">
<a href="https://www.npmjs.com/package/@ergonode/product-batch-actions">
<img alt="npm" src="https://img.shields.io/npm/v/@ergonode/product-batch-actions">
</a>
<a href="https://www.npmjs.com/package/@ergonode/products-batch-actions">
<img alt="npm" src="https://img.shields.io/npm/l/@ergonode/products-batch-actions">
<a href="https://www.npmjs.com/package/@ergonode/product-batch-actions">
<img alt="npm" src="https://img.shields.io/npm/l/@ergonode/product-batch-actions">
</a>
</p>
<br>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ergonode/products-batch-actions",
"name": "@ergonode/product-batch-actions",
"version": "1.0.0-rc.1",
"author": "Team Ergonode <[email protected]>",
"description": "Ergonode products batch actions module",
Expand All @@ -11,7 +11,7 @@
"repository": {
"type": "git",
"url": "git://github.com/ergonode/frontend.git",
"directory": "modules/@ergonode/products-batch-actions"
"directory": "modules/@ergonode/product-batch-actions"
},
"homepage": "https://ergonode.com",
"bugs": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ import {
import {
getUUID,
} from '@Core/models/stringWrapper';
import PRIVILEGES from '@Products/config/privileges';
import {
BATCH_ACTION_TYPE,
} from '@ProductsBatchActions/defaults';
} from '@ProductBatchActions/defaults';
import PRIVILEGES from '@Products/config/privileges';
import {
mapActions,
mapState,
Expand All @@ -42,7 +42,7 @@ export default {
name: 'ProductsBatchActionsButton',
components: {
BatchActionsButton,
UpdateProductsModal: () => import('@ProductsBatchActions/components/Modals/UpdateProductsModal'),
UpdateProductsModal: () => import('@ProductBatchActions/components/Modals/UpdateProductsModal'),
},
props: {
selectedRows: {
Expand Down Expand Up @@ -79,19 +79,19 @@ export default {
}),
removeBatchActionItem() {
return {
label: this.$t('@ProductsBatchActions.productBatchAction.components.ProductsBatchActions.deleteBatchActionLabel'),
label: this.$t('@ProductBatchActions.productBatchAction.components.ProductsBatchActions.deleteBatchActionLabel'),
action: ({
selectedRowsCount,
filter,
onApply,
}) => {
this.$confirm({
type: MODAL_TYPE.DESTRUCTIVE,
title: this.$t('@ProductsBatchActions.productBatchAction.components.ProductsBatchActions.confirmTitle', {
title: this.$t('@ProductBatchActions.productBatchAction.components.ProductsBatchActions.confirmTitle', {
info: selectedRowsCount,
}),
subtitle: this.$t('@ProductsBatchActions.productBatchAction.components.ProductsBatchActions.confirmSubtitle'),
applyTitle: this.$t('@ProductsBatchActions.productBatchAction.components.ProductsBatchActions.confirmApplyTitle', {
subtitle: this.$t('@ProductBatchActions.productBatchAction.components.ProductsBatchActions.confirmSubtitle'),
applyTitle: this.$t('@ProductBatchActions.productBatchAction.components.ProductsBatchActions.confirmApplyTitle', {
info: selectedRowsCount,
}),
action: () => {
Expand Down Expand Up @@ -126,7 +126,7 @@ export default {
},
editBatchActionItem() {
return {
label: this.$t('@ProductsBatchActions.productBatchAction.components.ProductsBatchActions.editBatchActionLabel'),
label: this.$t('@ProductBatchActions.productBatchAction.components.ProductsBatchActions.editBatchActionLabel'),
action: ({
ids,
excludedIds,
Expand Down Expand Up @@ -248,7 +248,7 @@ export default {
if (!event.detail.error) {
this.$addAlert({
type: ALERT_TYPE.SUCCESS,
message: this.$t('@ProductsBatchActions.productBatchAction.components.ProductsBatchActions.successAlert'),
message: this.$t('@ProductBatchActions.productBatchAction.components.ProductsBatchActions.successAlert'),
});
this.onFetchData();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<template #default="{ hasValueToSave }">
<Button
data-cy="submit"
:title="$t('@ProductsBatchActions.productBatchAction._.submit')"
:title="$t('@ProductBatchActions.productBatchAction._.submit')"
:floating="{ bottom: '24px', right: '24px' }"
:disabled="!isAllowedToUpdate"
@click.native="onSubmit">
Expand All @@ -34,10 +34,10 @@ import updateButtonFeedbackMixin from '@Core/mixins/feedback/updateButtonFeedbac
import {
getUUID,
} from '@Core/models/stringWrapper';
import PRIVILEGES from '@Products/config/privileges';
import {
BATCH_ACTION_TYPE,
} from '@ProductsBatchActions/defaults';
} from '@ProductBatchActions/defaults';
import PRIVILEGES from '@Products/config/privileges';
import Button from '@UI/components/Button/Button';
import FeedbackProvider from '@UI/components/Feedback/FeedbackProvider';
import IconSync from '@UI/components/Icons/Feedback/IconSync';
Expand Down Expand Up @@ -98,24 +98,24 @@ export default {
});
if (emptyValues > 0) {
let title = this.$t('@ProductsBatchActions.productBatchAction.components.UpdateProductsButton.confirmTitlePlural', {
let title = this.$t('@ProductBatchActions.productBatchAction.components.UpdateProductsButton.confirmTitlePlural', {
info: emptyValues,
});
let applyTitle = this.$t('@ProductsBatchActions.productBatchAction.components.UpdateProductsButton.confirmApplyPlural', {
let applyTitle = this.$t('@ProductBatchActions.productBatchAction.components.UpdateProductsButton.confirmApplyPlural', {
info: emptyValues,
});
if (emptyValues === 1) {
title = this.$t('@ProductsBatchActions.productBatchAction.components.UpdateProductsButton.confirmTitleSingular');
applyTitle = this.$t('@ProductsBatchActions.productBatchAction.components.UpdateProductsButton.confirmApplySingular');
title = this.$t('@ProductBatchActions.productBatchAction.components.UpdateProductsButton.confirmTitleSingular');
applyTitle = this.$t('@ProductBatchActions.productBatchAction.components.UpdateProductsButton.confirmApplySingular');
}
this.$confirm({
type: MODAL_TYPE.DESTRUCTIVE,
title,
subtitle: this.$t('@ProductsBatchActions.productBatchAction.components.UpdateProductsButton.confirmSubtitle'),
subtitle: this.$t('@ProductBatchActions.productBatchAction.components.UpdateProductsButton.confirmSubtitle'),
applyTitle,
cancelTitle: this.$t('@ProductsBatchActions.productBatchAction.components.UpdateProductsButton.confirmCancel'),
cancelTitle: this.$t('@ProductBatchActions.productBatchAction.components.UpdateProductsButton.confirmCancel'),
action: this.onUpdateProducts,
});
} else {
Expand All @@ -132,7 +132,7 @@ export default {
if (!keys.length) {
this.$addAlert({
type: ALERT_TYPE.ERROR,
message: this.$t('@ProductsBatchActions.productBatchAction.components.UpdateProductsButton.emptyAttributes'),
message: this.$t('@ProductBatchActions.productBatchAction.components.UpdateProductsButton.emptyAttributes'),
});
return false;
Expand Down Expand Up @@ -170,16 +170,16 @@ export default {
this.$confirm({
type: MODAL_TYPE.DESTRUCTIVE,
title: this.$t('@ProductsBatchActions.productBatchAction.components.UpdateProductsButton.confirmCountTitle', {
title: this.$t('@ProductBatchActions.productBatchAction.components.UpdateProductsButton.confirmCountTitle', {
count: this.selectedRowsCount,
}),
subtitle: this.$t('@ProductsBatchActions.productBatchAction.components.UpdateProductsButton.confirmCountSubtitle', {
subtitle: this.$t('@ProductBatchActions.productBatchAction.components.UpdateProductsButton.confirmCountSubtitle', {
count: this.selectedRowsCount,
}),
applyTitle: this.$t('@ProductsBatchActions.productBatchAction.components.UpdateProductsButton.confirmCountApplyPlural', {
applyTitle: this.$t('@ProductBatchActions.productBatchAction.components.UpdateProductsButton.confirmCountApplyPlural', {
count: this.selectedRowsCount,
}),
cancelTitle: this.$t('@ProductsBatchActions.productBatchAction.components.UpdateProductsButton.confirmCancel'),
cancelTitle: this.$t('@ProductBatchActions.productBatchAction.components.UpdateProductsButton.confirmCancel'),
action: () => {
this.addBatchAction({
id: uuid,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<DropZone
v-show="isDropZoneVisible"
:hover-background-color="graphiteLightColor"
:title="$t('@ProductsBatchActions.productBatchAction.components.RemoveFormFieldDropZone.title')">
:title="$t('@ProductBatchActions.productBatchAction.components.RemoveFormFieldDropZone.title')">
<template #icon="{ color }">
<IconRemoveFilter :fill-color="color" />
</template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default {
},
computed: {
title() {
return this.$t('@ProductsBatchActions.productBatchAction.components.AttributeNotDefinedField.title', {
return this.$t('@ProductBatchActions.productBatchAction.components.AttributeNotDefinedField.title', {
info: this.attribute.type,
});
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default {
},
mixins: [
extendPropsMixin({
extendedKey: '@ProductsBatchActions/components/Grids/ProductBatchActionDetailsGrid/props',
extendedKey: '@ProductBatchActions/components/Grids/ProductBatchActionDetailsGrid/props',
extendedNames: [
'grid',
],
Expand Down Expand Up @@ -88,7 +88,7 @@ export default {
details() {
return [
{
label: this.$t('@ProductsBatchActions.productBatchAction.components.ProductBatchActionDetailsGrid.detailsLabel'),
label: this.$t('@ProductBatchActions.productBatchAction.components.ProductBatchActionDetailsGrid.detailsLabel'),
value: this.item.createdAt,
},
];
Expand Down Expand Up @@ -146,7 +146,7 @@ export default {
onFetchGridDataError() {
this.$addAlert({
type: ALERT_TYPE.ERROR,
message: this.$t('@ProductsBatchActions.productBatchAction.components.ProductBatchActionDetailsGrid.getRequest'),
message: this.$t('@ProductBatchActions.productBatchAction.components.ProductBatchActionDetailsGrid.getRequest'),
});
this.isPrefetchingData = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/
<template>
<ModalGrid
:title="$t('@ProductsBatchActions.productBatchAction.components.ProductBatchActionDetailsModalGrid.title')"
:title="$t('@ProductBatchActions.productBatchAction.components.ProductBatchActionDetailsModalGrid.title')"
@close="onClose">
<template #body>
<ProductBatchActionDetailsGrid :item="item" />
Expand All @@ -13,7 +13,7 @@
</template>

<script>
import ProductBatchActionDetailsGrid from '@ProductsBatchActions/components/Grids/ProductBatchActionDetailsGrid';
import ProductBatchActionDetailsGrid from '@ProductBatchActions/components/Grids/ProductBatchActionDetailsGrid';
import ModalGrid from '@UI/components/Modal/ModalGrid';
export default {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<VerticalFixedScroll>
<div class="update-products-modal__form">
<DraggableForm
:title="$t('@ProductsBatchActions.productBatchAction.components.UpdateProductsModal.draggableFormTitle')"
:title="$t('@ProductBatchActions.productBatchAction.components.UpdateProductsModal.draggableFormTitle')"
:width="424"
:items="formItems"
@add-item="onAddItem"
Expand Down Expand Up @@ -66,11 +66,11 @@ import {
capitalizeAndConcatenationArray,
} from '@Core/models/stringWrapper';
import UpdateProductsButton
from '@ProductsBatchActions/components/Buttons/UpdateProductsButton';
from '@ProductBatchActions/components/Buttons/UpdateProductsButton';
import RemoveFormFieldDropZone
from '@ProductsBatchActions/components/DropZones/RemoveFormFieldDropZone';
from '@ProductBatchActions/components/DropZones/RemoveFormFieldDropZone';
import AttributeFormField
from '@ProductsBatchActions/components/Forms/Fields/AttributeFormField';
from '@ProductBatchActions/components/Forms/Fields/AttributeFormField';
import DraggableForm from '@UI/components/DraggableForm/DraggableForm';
import VerticalFixedScroll from '@UI/components/Layout/Scroll/VerticalFixedScroll';
import ModalHeader from '@UI/components/Modal/ModalHeader';
Expand Down Expand Up @@ -132,13 +132,13 @@ export default {
},
computed: {
title() {
return this.$t('@ProductsBatchActions.productBatchAction.components.UpdateProductsModal.title', {
return this.$t('@ProductBatchActions.productBatchAction.components.UpdateProductsModal.title', {
info: this.selectedRowsCount,
});
},
},
async mounted() {
const extendedVerticalTabs = await this.$getExtendMethod('@ProductsBatchActions/components/Modals/UpdateProductsModal/verticalTabs', {
const extendedVerticalTabs = await this.$getExtendMethod('@ProductBatchActions/components/Modals/UpdateProductsModal/verticalTabs', {
$this: this,
props: {
ids: this.ids,
Expand Down Expand Up @@ -267,7 +267,7 @@ export default {
if (!this.app.$axios.isCancel(e)) {
this.$addAlert({
type: ALERT_TYPE.ERROR,
message: this.$t('@ProductsBatchActions.productBatchAction._.getRequest'),
message: this.$t('@ProductBatchActions.productBatchAction._.getRequest'),
});
}
Expand All @@ -293,21 +293,21 @@ export default {
let component = null;
try {
const extendedSlots = this.$getExtendSlot('@ProductsBatchActions/components/Forms/Fields');
const extendedSlots = this.$getExtendSlot('@ProductBatchActions/components/Forms/Fields');
if (extendedSlots && typeof extendedSlots[type] === 'function') {
component = await extendedSlots[type]();
} else {
const mappedType = capitalizeAndConcatenationArray(type.split('_'));
component = await import(`@ProductsBatchActions/components/Forms/Fields/Attribute${mappedType}FormField`);
component = await import(`@ProductBatchActions/components/Forms/Fields/Attribute${mappedType}FormField`);
}
} catch (e) {
component = await import('@ProductsBatchActions/components/Forms/Fields/AttributeNotDefinedField');
component = await import('@ProductBatchActions/components/Forms/Fields/AttributeNotDefinedField');
this.$addAlert({
type: ALERT_TYPE.ERROR,
message: this.$t('@ProductsBatchActions.productBatchAction.components.UpdateProductsModal.getComponent', {
message: this.$t('@ProductBatchActions.productBatchAction.components.UpdateProductsModal.getComponent', {
info: type,
}),
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default {
components: {
NotificationListItemAvatar,
NotificationListItemTemplate,
ProductBatchActionDetailsModalGrid: () => import('@ProductsBatchActions/components/Modals/ProductBatchActionDetailsModalGrid'),
ProductBatchActionDetailsModalGrid: () => import('@ProductBatchActions/components/Modals/ProductBatchActionDetailsModalGrid'),
},
props: {
item: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default {
},
computed: {
itemsCountDescription() {
return `${this.group.itemsCount} ${this.$t('@ProductsBatchActions.productBatchAction._.title')}`;
return `${this.group.itemsCount} ${this.$t('@ProductBatchActions.productBatchAction._.title')}`;
},
},
};
Expand Down
Loading

0 comments on commit d12ae45

Please sign in to comment.