mirror of
				https://github.com/mickael-kerjean/filestash.git
				synced 2025-10-31 18:16:00 +08:00 
			
		
		
		
	chore (debt): cleanup tech debt
This commit is contained in:
		| @ -188,45 +188,45 @@ func (f Ftp) Init(params map[string]string, app *App) (IBackend, error) { | |||||||
| func (f Ftp) LoginForm() Form { | func (f Ftp) LoginForm() Form { | ||||||
| 	return Form{ | 	return Form{ | ||||||
| 		Elmnts: []FormElement{ | 		Elmnts: []FormElement{ | ||||||
| 			FormElement{ | 			{ | ||||||
| 				Name:  "type", | 				Name:  "type", | ||||||
| 				Type:  "hidden", | 				Type:  "hidden", | ||||||
| 				Value: "ftp", | 				Value: "ftp", | ||||||
| 			}, | 			}, | ||||||
| 			FormElement{ | 			{ | ||||||
| 				Name:        "hostname", | 				Name:        "hostname", | ||||||
| 				Type:        "text", | 				Type:        "text", | ||||||
| 				Placeholder: "Hostname*", | 				Placeholder: "Hostname*", | ||||||
| 			}, | 			}, | ||||||
| 			FormElement{ | 			{ | ||||||
| 				Name:        "username", | 				Name:        "username", | ||||||
| 				Type:        "text", | 				Type:        "text", | ||||||
| 				Placeholder: "Username", | 				Placeholder: "Username", | ||||||
| 			}, | 			}, | ||||||
| 			FormElement{ | 			{ | ||||||
| 				Name:        "password", | 				Name:        "password", | ||||||
| 				Type:        "password", | 				Type:        "password", | ||||||
| 				Placeholder: "Password", | 				Placeholder: "Password", | ||||||
| 			}, | 			}, | ||||||
| 			FormElement{ | 			{ | ||||||
| 				Name:        "advanced", | 				Name:        "advanced", | ||||||
| 				Type:        "enable", | 				Type:        "enable", | ||||||
| 				Placeholder: "Advanced", | 				Placeholder: "Advanced", | ||||||
| 				Target:      []string{"ftp_path", "ftp_port", "ftp_conn"}, | 				Target:      []string{"ftp_path", "ftp_port", "ftp_conn"}, | ||||||
| 			}, | 			}, | ||||||
| 			FormElement{ | 			{ | ||||||
| 				Id:          "ftp_path", | 				Id:          "ftp_path", | ||||||
| 				Name:        "path", | 				Name:        "path", | ||||||
| 				Type:        "text", | 				Type:        "text", | ||||||
| 				Placeholder: "Path", | 				Placeholder: "Path", | ||||||
| 			}, | 			}, | ||||||
| 			FormElement{ | 			{ | ||||||
| 				Id:          "ftp_port", | 				Id:          "ftp_port", | ||||||
| 				Name:        "port", | 				Name:        "port", | ||||||
| 				Type:        "number", | 				Type:        "number", | ||||||
| 				Placeholder: "Port", | 				Placeholder: "Port", | ||||||
| 			}, | 			}, | ||||||
| 			FormElement{ | 			{ | ||||||
| 				Id:          "ftp_conn", | 				Id:          "ftp_conn", | ||||||
| 				Name:        "conn", | 				Name:        "conn", | ||||||
| 				Type:        "number", | 				Type:        "number", | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 MickaelK
					MickaelK