mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Remove helper comments
This commit is contained in:
parent
8b18571725
commit
d6b772c2e8
@ -22,7 +22,6 @@ class CorpusFileList extends ResourceList {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// #region Mandatory getters and methods to implement
|
|
||||||
get item() {
|
get item() {
|
||||||
return `
|
return `
|
||||||
<tr class="clickable hoverable">
|
<tr class="clickable hoverable">
|
||||||
@ -76,9 +75,7 @@ class CorpusFileList extends ResourceList {
|
|||||||
<ul class="pagination"></ul>
|
<ul class="pagination"></ul>
|
||||||
`.trim();
|
`.trim();
|
||||||
}
|
}
|
||||||
// #endregion
|
|
||||||
|
|
||||||
// #region Optional methods to implement
|
|
||||||
mapResourceToValue(corpusFile) {
|
mapResourceToValue(corpusFile) {
|
||||||
return {
|
return {
|
||||||
'id': corpusFile.id,
|
'id': corpusFile.id,
|
||||||
@ -93,7 +90,6 @@ class CorpusFileList extends ResourceList {
|
|||||||
sort() {
|
sort() {
|
||||||
this.listjs.sort('creation-date', {order: 'desc'});
|
this.listjs.sort('creation-date', {order: 'desc'});
|
||||||
}
|
}
|
||||||
// #endregion
|
|
||||||
|
|
||||||
onClick(event) {
|
onClick(event) {
|
||||||
let corpusFileElement = event.target.closest('tr');
|
let corpusFileElement = event.target.closest('tr');
|
||||||
|
@ -71,9 +71,7 @@ class CorpusList extends ResourceList {
|
|||||||
<ul class="pagination"></ul>
|
<ul class="pagination"></ul>
|
||||||
`.trim();
|
`.trim();
|
||||||
}
|
}
|
||||||
// #endregion
|
|
||||||
|
|
||||||
// #region Optional methods to implement
|
|
||||||
mapResourceToValue(corpus) {
|
mapResourceToValue(corpus) {
|
||||||
return {
|
return {
|
||||||
'id': corpus.id,
|
'id': corpus.id,
|
||||||
@ -87,7 +85,6 @@ class CorpusList extends ResourceList {
|
|||||||
sort() {
|
sort() {
|
||||||
this.listjs.sort('creation-date', {order: 'desc'});
|
this.listjs.sort('creation-date', {order: 'desc'});
|
||||||
}
|
}
|
||||||
// #endregion
|
|
||||||
|
|
||||||
onClick(event) {
|
onClick(event) {
|
||||||
let corpusElement = event.target.closest('tr');
|
let corpusElement = event.target.closest('tr');
|
||||||
|
@ -22,7 +22,6 @@ class JobInputList extends ResourceList {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// #region Mandatory getters and methods to implement
|
|
||||||
get item() {
|
get item() {
|
||||||
return `
|
return `
|
||||||
<tr class="clickable hoverable">
|
<tr class="clickable hoverable">
|
||||||
@ -65,9 +64,7 @@ class JobInputList extends ResourceList {
|
|||||||
<ul class="pagination"></ul>
|
<ul class="pagination"></ul>
|
||||||
`.trim();
|
`.trim();
|
||||||
}
|
}
|
||||||
// #endregion
|
|
||||||
|
|
||||||
// #region Optional methods to implement
|
|
||||||
mapResourceToValue(jobInput) {
|
mapResourceToValue(jobInput) {
|
||||||
return {
|
return {
|
||||||
'id': jobInput.id,
|
'id': jobInput.id,
|
||||||
@ -79,7 +76,6 @@ class JobInputList extends ResourceList {
|
|||||||
sort() {
|
sort() {
|
||||||
this.listjs.sort('filename', {order: 'asc'});
|
this.listjs.sort('filename', {order: 'asc'});
|
||||||
}
|
}
|
||||||
// #endregion
|
|
||||||
|
|
||||||
onClick(event) {
|
onClick(event) {
|
||||||
let jobInputElement = event.target.closest('tr');
|
let jobInputElement = event.target.closest('tr');
|
||||||
|
@ -21,7 +21,6 @@ class JobList extends ResourceList {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// #region Mandatory getters and methods to implement
|
|
||||||
get item() {
|
get item() {
|
||||||
return `
|
return `
|
||||||
<tr class="clickable hoverable service-scheme">
|
<tr class="clickable hoverable service-scheme">
|
||||||
@ -72,9 +71,7 @@ class JobList extends ResourceList {
|
|||||||
<ul class="pagination"></ul>
|
<ul class="pagination"></ul>
|
||||||
`.trim();
|
`.trim();
|
||||||
}
|
}
|
||||||
// #endregion
|
|
||||||
|
|
||||||
// #region Optional methods to implement
|
|
||||||
mapResourceToValue(job) {
|
mapResourceToValue(job) {
|
||||||
return {
|
return {
|
||||||
'id': job.id,
|
'id': job.id,
|
||||||
@ -89,7 +86,6 @@ class JobList extends ResourceList {
|
|||||||
sort() {
|
sort() {
|
||||||
this.listjs.sort('creation-date', {order: 'desc'});
|
this.listjs.sort('creation-date', {order: 'desc'});
|
||||||
}
|
}
|
||||||
// #endregion
|
|
||||||
|
|
||||||
onClick(event) {
|
onClick(event) {
|
||||||
let jobElement = event.target.closest('tr');
|
let jobElement = event.target.closest('tr');
|
||||||
|
@ -22,7 +22,6 @@ class JobResultList extends ResourceList {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// #region Mandatory getters and methods to implement
|
|
||||||
get item() {
|
get item() {
|
||||||
return `
|
return `
|
||||||
<tr class="clickable hoverable">
|
<tr class="clickable hoverable">
|
||||||
@ -68,9 +67,7 @@ class JobResultList extends ResourceList {
|
|||||||
<ul class="pagination"></ul>
|
<ul class="pagination"></ul>
|
||||||
`.trim();
|
`.trim();
|
||||||
}
|
}
|
||||||
// #endregion
|
|
||||||
|
|
||||||
// #region Optional methods to implement
|
|
||||||
mapResourceToValue(jobResult) {
|
mapResourceToValue(jobResult) {
|
||||||
return {
|
return {
|
||||||
'id': jobResult.id,
|
'id': jobResult.id,
|
||||||
@ -83,7 +80,6 @@ class JobResultList extends ResourceList {
|
|||||||
sort() {
|
sort() {
|
||||||
this.listjs.sort('filename', {order: 'asc'});
|
this.listjs.sort('filename', {order: 'asc'});
|
||||||
}
|
}
|
||||||
// #endregion
|
|
||||||
|
|
||||||
onClick(event) {
|
onClick(event) {
|
||||||
let jobResultElement = event.target.closest('tr');
|
let jobResultElement = event.target.closest('tr');
|
||||||
|
@ -10,7 +10,6 @@ class PublicUserList extends ResourceList {
|
|||||||
this.listjs.list.addEventListener('click', (event) => {this.onClick(event)});
|
this.listjs.list.addEventListener('click', (event) => {this.onClick(event)});
|
||||||
}
|
}
|
||||||
|
|
||||||
// #region Mandatory getters and methods to implement
|
|
||||||
get item() {
|
get item() {
|
||||||
return `
|
return `
|
||||||
<tr class="clickable hoverable">
|
<tr class="clickable hoverable">
|
||||||
@ -68,9 +67,7 @@ class PublicUserList extends ResourceList {
|
|||||||
<ul class="pagination"></ul>
|
<ul class="pagination"></ul>
|
||||||
`.trim();
|
`.trim();
|
||||||
}
|
}
|
||||||
// #endregion
|
|
||||||
|
|
||||||
// #region Optional methods to implement
|
|
||||||
mapResourceToValue(user) {
|
mapResourceToValue(user) {
|
||||||
return {
|
return {
|
||||||
'id': user.id,
|
'id': user.id,
|
||||||
@ -87,7 +84,6 @@ class PublicUserList extends ResourceList {
|
|||||||
sort() {
|
sort() {
|
||||||
this.listjs.sort('member-since', {order: 'desc'});
|
this.listjs.sort('member-since', {order: 'desc'});
|
||||||
}
|
}
|
||||||
// #endregion
|
|
||||||
|
|
||||||
onClick(event) {
|
onClick(event) {
|
||||||
let actionButtonElement = event.target.closest('.action-button');
|
let actionButtonElement = event.target.closest('.action-button');
|
||||||
|
@ -30,7 +30,6 @@ class SpaCyNLPPipelineModelList extends ResourceList {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// #region Mandatory getters and methods to implement
|
|
||||||
get item() {
|
get item() {
|
||||||
return `
|
return `
|
||||||
<tr class="clickable hoverable">
|
<tr class="clickable hoverable">
|
||||||
@ -95,9 +94,7 @@ class SpaCyNLPPipelineModelList extends ResourceList {
|
|||||||
<ul class="pagination"></ul>
|
<ul class="pagination"></ul>
|
||||||
`.trim();
|
`.trim();
|
||||||
}
|
}
|
||||||
// #endregion
|
|
||||||
|
|
||||||
// #region Optional methods to implement
|
|
||||||
mapResourceToValue(spaCyNLPPipelineModel) {
|
mapResourceToValue(spaCyNLPPipelineModel) {
|
||||||
return {
|
return {
|
||||||
'id': spaCyNLPPipelineModel.id,
|
'id': spaCyNLPPipelineModel.id,
|
||||||
@ -118,7 +115,6 @@ class SpaCyNLPPipelineModelList extends ResourceList {
|
|||||||
sort() {
|
sort() {
|
||||||
this.listjs.sort('creation-date', {order: 'desc'});
|
this.listjs.sort('creation-date', {order: 'desc'});
|
||||||
}
|
}
|
||||||
// #endregion
|
|
||||||
|
|
||||||
onChange(event) {
|
onChange(event) {
|
||||||
let actionSwitchElement = event.target.closest('.action-switch');
|
let actionSwitchElement = event.target.closest('.action-switch');
|
||||||
|
@ -30,7 +30,6 @@ class TesseractOCRPipelineModelList extends ResourceList {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// #region Mandatory getters and methods to implement
|
|
||||||
get item() {
|
get item() {
|
||||||
return `
|
return `
|
||||||
<tr class="clickable hoverable">
|
<tr class="clickable hoverable">
|
||||||
@ -95,9 +94,7 @@ class TesseractOCRPipelineModelList extends ResourceList {
|
|||||||
<ul class="pagination"></ul>
|
<ul class="pagination"></ul>
|
||||||
`.trim();
|
`.trim();
|
||||||
}
|
}
|
||||||
// #endregion
|
|
||||||
|
|
||||||
// #region Optional methods to implement
|
|
||||||
mapResourceToValue(tesseractOCRPipelineModel) {
|
mapResourceToValue(tesseractOCRPipelineModel) {
|
||||||
return {
|
return {
|
||||||
'id': tesseractOCRPipelineModel.id,
|
'id': tesseractOCRPipelineModel.id,
|
||||||
@ -118,7 +115,6 @@ class TesseractOCRPipelineModelList extends ResourceList {
|
|||||||
sort() {
|
sort() {
|
||||||
this.listjs.sort('creation-date', {order: 'desc'});
|
this.listjs.sort('creation-date', {order: 'desc'});
|
||||||
}
|
}
|
||||||
// #endregion
|
|
||||||
|
|
||||||
onChange(event) {
|
onChange(event) {
|
||||||
let actionSwitchElement = event.target.closest('.action-switch');
|
let actionSwitchElement = event.target.closest('.action-switch');
|
||||||
|
@ -10,7 +10,6 @@ class UserList extends ResourceList {
|
|||||||
this.listjs.list.addEventListener('click', (event) => {this.onClick(event)});
|
this.listjs.list.addEventListener('click', (event) => {this.onClick(event)});
|
||||||
}
|
}
|
||||||
|
|
||||||
// #region Mandatory getters and methods to implement
|
|
||||||
get item() {
|
get item() {
|
||||||
return `
|
return `
|
||||||
<tr class="clickable hoverable">
|
<tr class="clickable hoverable">
|
||||||
@ -67,9 +66,7 @@ class UserList extends ResourceList {
|
|||||||
<ul class="pagination"></ul>
|
<ul class="pagination"></ul>
|
||||||
`.trim();
|
`.trim();
|
||||||
}
|
}
|
||||||
// #endregion
|
|
||||||
|
|
||||||
// #region Optional methods to implement
|
|
||||||
mapResourceToValue(user) {
|
mapResourceToValue(user) {
|
||||||
return {
|
return {
|
||||||
'id': user.id,
|
'id': user.id,
|
||||||
@ -85,7 +82,6 @@ class UserList extends ResourceList {
|
|||||||
sort() {
|
sort() {
|
||||||
this.listjs.sort('member-since', {order: 'desc'});
|
this.listjs.sort('member-since', {order: 'desc'});
|
||||||
}
|
}
|
||||||
// #endregion
|
|
||||||
|
|
||||||
onClick(event) {
|
onClick(event) {
|
||||||
let userElement = event.target.closest('tr');
|
let userElement = event.target.closest('tr');
|
||||||
|
Loading…
Reference in New Issue
Block a user