mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-09 01:32:02 +08:00
Docker Hosts are now a table & have their own dialog
This commit is contained in:
19
server/model/docker_host.js
Normal file
19
server/model/docker_host.js
Normal file
@@ -0,0 +1,19 @@
|
||||
const { BeanModel } = require("redbean-node/dist/bean-model");
|
||||
|
||||
class DockerHost extends BeanModel {
|
||||
/**
|
||||
* Returns an object that ready to parse to JSON
|
||||
* @returns {Object}
|
||||
*/
|
||||
toJSON() {
|
||||
return {
|
||||
id: this._id,
|
||||
userId: this._user_id,
|
||||
daemon: this._dockerDaemon,
|
||||
type: this._dockerType,
|
||||
name: this._name,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DockerHost;
|
Reference in New Issue
Block a user