Some comment fixes
This commit is contained in:
		
							parent
							
								
									24a0a9f5ee
								
							
						
					
					
						commit
						321ef8b926
					
				| 
						 | 
					@ -118,7 +118,7 @@ func WireGuardClients(db store.IStore) echo.HandlerFunc {
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// GetClients handler return a list of Wireguard client data
 | 
					// GetClients handler return a JSON list of Wireguard client data
 | 
				
			||||||
func GetClients(db store.IStore) echo.HandlerFunc {
 | 
					func GetClients(db store.IStore) echo.HandlerFunc {
 | 
				
			||||||
	return func(c echo.Context) error {
 | 
						return func(c echo.Context) error {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -133,7 +133,7 @@ func GetClients(db store.IStore) echo.HandlerFunc {
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// GetClient handler return a of Wireguard client data
 | 
					// GetClient handler returns a JSON object of Wireguard client data
 | 
				
			||||||
func GetClient(db store.IStore) echo.HandlerFunc {
 | 
					func GetClient(db store.IStore) echo.HandlerFunc {
 | 
				
			||||||
	return func(c echo.Context) error {
 | 
						return func(c echo.Context) error {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -133,7 +133,7 @@ func (o *JsonDB) GetGlobalSettings() (model.GlobalSetting, error) {
 | 
				
			||||||
	return settings, o.conn.Read("server", "global_settings", &settings)
 | 
						return settings, o.conn.Read("server", "global_settings", &settings)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// GetServer func to query Server setting from the database
 | 
					// GetServer func to query Server settings from the database
 | 
				
			||||||
func (o *JsonDB) GetServer() (model.Server, error) {
 | 
					func (o *JsonDB) GetServer() (model.Server, error) {
 | 
				
			||||||
	server := model.Server{}
 | 
						server := model.Server{}
 | 
				
			||||||
	// read server interface information
 | 
						// read server interface information
 | 
				
			||||||
| 
						 | 
					@ -157,7 +157,7 @@ func (o *JsonDB) GetServer() (model.Server, error) {
 | 
				
			||||||
func (o *JsonDB) GetClients(hasQRCode bool) ([]model.ClientData, error) {
 | 
					func (o *JsonDB) GetClients(hasQRCode bool) ([]model.ClientData, error) {
 | 
				
			||||||
	var clients []model.ClientData
 | 
						var clients []model.ClientData
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// read all client json file in "clients" directory
 | 
						// read all client json files in "clients" directory
 | 
				
			||||||
	records, err := o.conn.ReadAll("clients")
 | 
						records, err := o.conn.ReadAll("clients")
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		return clients, err
 | 
							return clients, err
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -418,7 +418,7 @@ Wireguard Clients
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // submitEmailClient function for sending an email to the client with the configuration
 | 
					        // submitEmailClient function for sending an email with the configuration to the client
 | 
				
			||||||
        function submitEmailClient() {
 | 
					        function submitEmailClient() {
 | 
				
			||||||
            const client_id = $("#e_client_id").val();
 | 
					            const client_id = $("#e_client_id").val();
 | 
				
			||||||
            const email = $("#e_client_email").val();
 | 
					            const email = $("#e_client_email").val();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue