mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-26 19:36:29 +03:00
62780001f7
* [empty commit] pull request for remote browser support * Remote browser: Added UI screens and DB tables. * Remote browser working * Fixing tests * Fix tests * Fix tests * fix tests * Test browser * revert init_db.js * Changed drop down to ActionSelect * Fix translations * added remote browsers toggle * revert changes package-lock * Fix bad english * Set default remote browser * Remote browsers Requested changes * fixed description.
17 lines
385 B
JavaScript
17 lines
385 B
JavaScript
const { BeanModel } = require("redbean-node/dist/bean-model");
|
|
|
|
class RemoteBrowser extends BeanModel {
|
|
/**
|
|
* Returns an object that ready to parse to JSON
|
|
* @returns {object} Object ready to parse
|
|
*/
|
|
toJSON() {
|
|
return {
|
|
id: this.id,
|
|
url: this.url,
|
|
name: this.name,
|
|
};
|
|
}
|
|
}
|
|
|
|
module.exports = RemoteBrowser;
|