unclean SPARC

This commit is contained in:
STEINNI
2025-08-27 07:03:09 +00:00
commit f308460931
430 changed files with 54426 additions and 0 deletions
@@ -0,0 +1,33 @@
/**
*
*/
class ICMPProjectsModel extends EICModel {
list = [];
constructor(privileges) { super('/icmp', privileges); }
/**
*
* @param {*} node
*/
get(phase) {
if(!this.hasPrivilege('list')) return( new Promise((resolve, reject) => reject()))
this.list = [];
let payload = {}
let endpoint = this.getApiEndpoint('list');
return (
this.request(endpoint.uri, endpoint.method, payload)
.then( async serverData => {
this.list = this.sanitize(serverData.payload);
return this.list;
})
)
}
sanitize(data) { return data; }
}
app.registerClass('ICMPProjectsModel', ICMPProjectsModel);