mirror of
				https://github.com/louislam/uptime-kuma.git
				synced 2025-11-04 13:46:13 +08:00 
			
		
		
		
	WIP: add color column, show tags WIP: Improve TagsManager styling & workflow WIP: Improve styling & validation, use translation WIP: Complete TagsManager functionality WIP: Add tags display in monitorList & Details Fix: update tags list after edit Fix: slightly improve tags styling Fix: Improve mobile UI Fix: Fix tags not showing on create monitor Fix: bring existingTags inside tagsManager Fix: remove unused tags prop Fix: Fix formatting, bump db version
		
			
				
	
	
		
			14 lines
		
	
	
		
			256 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			256 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
const { BeanModel } = require("redbean-node/dist/bean-model");
 | 
						|
 | 
						|
class Tag extends BeanModel {
 | 
						|
    toJSON() {
 | 
						|
        return {
 | 
						|
            id: this._id,
 | 
						|
            name: this._name,
 | 
						|
            color: this._color,
 | 
						|
        };
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
module.exports = Tag;
 |