mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-20 15:23:44 +02:00
Use the client API to load servers on the listing page
This commit is contained in:
19
resources/assets/scripts/models/allocation.js
Normal file
19
resources/assets/scripts/models/allocation.js
Normal file
@@ -0,0 +1,19 @@
|
||||
const Allocation = function () {
|
||||
this.ip = null;
|
||||
this.port = null;
|
||||
};
|
||||
|
||||
/**
|
||||
* Return a new allocation model.
|
||||
*
|
||||
* @param obj
|
||||
* @returns {Allocation}
|
||||
*/
|
||||
Allocation.prototype.fill = function (obj) {
|
||||
this.ip = obj.ip || null;
|
||||
this.port = obj.port || null;
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
export default Allocation;
|
||||
Reference in New Issue
Block a user