Remove helper comments

This commit is contained in:
Patrick Jentsch 2023-01-05 08:11:27 +01:00
parent 8b18571725
commit d6b772c2e8
9 changed files with 9 additions and 44 deletions

View File

@ -22,7 +22,6 @@ class CorpusFileList extends ResourceList {
});
}
// #region Mandatory getters and methods to implement
get item() {
return `
<tr class="clickable hoverable">
@ -76,9 +75,7 @@ class CorpusFileList extends ResourceList {
<ul class="pagination"></ul>
`.trim();
}
// #endregion
// #region Optional methods to implement
mapResourceToValue(corpusFile) {
return {
'id': corpusFile.id,
@ -93,7 +90,6 @@ class CorpusFileList extends ResourceList {
sort() {
this.listjs.sort('creation-date', {order: 'desc'});
}
// #endregion
onClick(event) {
let corpusFileElement = event.target.closest('tr');

View File

@ -71,9 +71,7 @@ class CorpusList extends ResourceList {
<ul class="pagination"></ul>
`.trim();
}
// #endregion
// #region Optional methods to implement
mapResourceToValue(corpus) {
return {
'id': corpus.id,
@ -87,7 +85,6 @@ class CorpusList extends ResourceList {
sort() {
this.listjs.sort('creation-date', {order: 'desc'});
}
// #endregion
onClick(event) {
let corpusElement = event.target.closest('tr');

View File

@ -22,7 +22,6 @@ class JobInputList extends ResourceList {
});
}
// #region Mandatory getters and methods to implement
get item() {
return `
<tr class="clickable hoverable">
@ -65,9 +64,7 @@ class JobInputList extends ResourceList {
<ul class="pagination"></ul>
`.trim();
}
// #endregion
// #region Optional methods to implement
mapResourceToValue(jobInput) {
return {
'id': jobInput.id,
@ -79,7 +76,6 @@ class JobInputList extends ResourceList {
sort() {
this.listjs.sort('filename', {order: 'asc'});
}
// #endregion
onClick(event) {
let jobInputElement = event.target.closest('tr');

View File

@ -21,7 +21,6 @@ class JobList extends ResourceList {
});
}
// #region Mandatory getters and methods to implement
get item() {
return `
<tr class="clickable hoverable service-scheme">
@ -72,9 +71,7 @@ class JobList extends ResourceList {
<ul class="pagination"></ul>
`.trim();
}
// #endregion
// #region Optional methods to implement
mapResourceToValue(job) {
return {
'id': job.id,
@ -89,7 +86,6 @@ class JobList extends ResourceList {
sort() {
this.listjs.sort('creation-date', {order: 'desc'});
}
// #endregion
onClick(event) {
let jobElement = event.target.closest('tr');

View File

@ -22,7 +22,6 @@ class JobResultList extends ResourceList {
});
}
// #region Mandatory getters and methods to implement
get item() {
return `
<tr class="clickable hoverable">
@ -68,9 +67,7 @@ class JobResultList extends ResourceList {
<ul class="pagination"></ul>
`.trim();
}
// #endregion
// #region Optional methods to implement
mapResourceToValue(jobResult) {
return {
'id': jobResult.id,
@ -83,7 +80,6 @@ class JobResultList extends ResourceList {
sort() {
this.listjs.sort('filename', {order: 'asc'});
}
// #endregion
onClick(event) {
let jobResultElement = event.target.closest('tr');

View File

@ -10,7 +10,6 @@ class PublicUserList extends ResourceList {
this.listjs.list.addEventListener('click', (event) => {this.onClick(event)});
}
// #region Mandatory getters and methods to implement
get item() {
return `
<tr class="clickable hoverable">
@ -68,9 +67,7 @@ class PublicUserList extends ResourceList {
<ul class="pagination"></ul>
`.trim();
}
// #endregion
// #region Optional methods to implement
mapResourceToValue(user) {
return {
'id': user.id,
@ -87,7 +84,6 @@ class PublicUserList extends ResourceList {
sort() {
this.listjs.sort('member-since', {order: 'desc'});
}
// #endregion
onClick(event) {
let actionButtonElement = event.target.closest('.action-button');

View File

@ -30,7 +30,6 @@ class SpaCyNLPPipelineModelList extends ResourceList {
});
}
// #region Mandatory getters and methods to implement
get item() {
return `
<tr class="clickable hoverable">
@ -95,9 +94,7 @@ class SpaCyNLPPipelineModelList extends ResourceList {
<ul class="pagination"></ul>
`.trim();
}
// #endregion
// #region Optional methods to implement
mapResourceToValue(spaCyNLPPipelineModel) {
return {
'id': spaCyNLPPipelineModel.id,
@ -118,7 +115,6 @@ class SpaCyNLPPipelineModelList extends ResourceList {
sort() {
this.listjs.sort('creation-date', {order: 'desc'});
}
// #endregion
onChange(event) {
let actionSwitchElement = event.target.closest('.action-switch');

View File

@ -30,7 +30,6 @@ class TesseractOCRPipelineModelList extends ResourceList {
});
}
// #region Mandatory getters and methods to implement
get item() {
return `
<tr class="clickable hoverable">
@ -95,9 +94,7 @@ class TesseractOCRPipelineModelList extends ResourceList {
<ul class="pagination"></ul>
`.trim();
}
// #endregion
// #region Optional methods to implement
mapResourceToValue(tesseractOCRPipelineModel) {
return {
'id': tesseractOCRPipelineModel.id,
@ -118,7 +115,6 @@ class TesseractOCRPipelineModelList extends ResourceList {
sort() {
this.listjs.sort('creation-date', {order: 'desc'});
}
// #endregion
onChange(event) {
let actionSwitchElement = event.target.closest('.action-switch');

View File

@ -10,7 +10,6 @@ class UserList extends ResourceList {
this.listjs.list.addEventListener('click', (event) => {this.onClick(event)});
}
// #region Mandatory getters and methods to implement
get item() {
return `
<tr class="clickable hoverable">
@ -67,9 +66,7 @@ class UserList extends ResourceList {
<ul class="pagination"></ul>
`.trim();
}
// #endregion
// #region Optional methods to implement
mapResourceToValue(user) {
return {
'id': user.id,
@ -85,7 +82,6 @@ class UserList extends ResourceList {
sort() {
this.listjs.sort('member-since', {order: 'desc'});
}
// #endregion
onClick(event) {
let userElement = event.target.closest('tr');