Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESD-3.0.1 #91

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG_de-DE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 3.0.1
- Verbessert den Upload der Seriennummer per csv-Datei

# 3.0.0
- Shopware 6 Kompatibilität

Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG_en-GB.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 3.0.1
- Improved the upload serial number by csv file

# 3.0.0
- Shopware 6 compatibility

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description":"ESD / Download plugin",
"type":"shopware-platform-plugin",
"keywords": ["esd", "download"],
"version":"3.0.0",
"version":"3.0.1",
"license":"proprietary",
"authors":[
{
Expand Down
3 changes: 3 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,6 @@ review: ## Review
make ecs -B
make phpunit -B
make eslint -B

zip:
shopware-cli extension zip . --release --disable-git --output-directory ../
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ export default {
_this.callback(this.form.csv);
},
buildMappedCsv() {
const _this = this;
const csv = this.hasHeaders ? drop(this.csv) : this.csv;
const _this = this;
return map(csv, (row) => {
const newRow = {};
forEach(_this.map, (column, field) => {
Expand Down Expand Up @@ -224,6 +224,7 @@ export default {
},
toggleHasHeaders() {
this.hasHeaders = !this.hasHeaders;
this.map = this.hasHeaders ? { serial: null } : { serial: 0 };
},
makeId(id) {
return `${id}${this._uid}`;
Expand All @@ -242,12 +243,13 @@ export default {
watch: {
map: {
deep: true,
handler: (newVal) => {
immediate: true,
handler(newVal) {
if (!this.url) {
const hasAllKeys = Array.isArray(this.mapFields) ? every(this.mapFields, (item) => {
return newVal.hasOwnProperty(item);
return newVal.hasOwnProperty(item) && newVal[item] !== null;
}) : every(this.mapFields, (item, key) => {
return newVal.hasOwnProperty(key);
return newVal.hasOwnProperty(key) && newVal[key] !== null;
});
if (hasAllKeys) {
this.createNotificationSuccess({
Expand All @@ -257,6 +259,8 @@ export default {
),
});
this.isDisabled = false;
} else {
this.isDisabled = true;
}
}
},
Expand All @@ -278,6 +282,12 @@ export default {
}
}
},
isValidFileMimeType() {
if (this.isValidFileMimeType) {
this.load();
this.map = this.hasHeaders ? this.map : { serial: 0 };
}
},
},
computed: {
...mapState('swProductDetail', [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ name="hasHeaders"
:value="hasHeaders"
:class="checkboxClass"
:label="$tc('sas-esd.sas-esd-modal-csv.checkboxLabel')"
@@update:value="toggleHasHeaders"
@update:value="toggleHasHeaders"
/>
</slot>
</div>
Expand Down Expand Up @@ -84,7 +84,10 @@ size="small"
v-if="sample"
class="vue-csv-mapping"
>
<table :class="tableClass">
<table
v-if="hasHeaders"
:class="tableClass"
>
<slot name="thead">
<thead>
<tr>
Expand Down
1 change: 1 addition & 0 deletions src/Resources/public/static/css/152.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.sas-process-bar-container{background:#f0f0f0;height:10px;width:100%;border-radius:10px}.sas-process-bar{background:#189eff;height:10px;width:0;border-radius:10px;transition:width 400ms}
1 change: 1 addition & 0 deletions src/Resources/public/static/css/167.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions src/Resources/public/static/css/447.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions src/Resources/public/static/css/639.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.sas-esd-csv-import .sw-alert{margin-top:5px}.sas-esd-csv-import .sw-alert.sw-alert--error{padding:5px}.sas-esd-csv-import .csv-import-file{margin-top:24px;margin-bottom:22px}
1 change: 1 addition & 0 deletions src/Resources/public/static/css/943.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/Resources/public/static/css/96.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading