mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-31 15:53:33 +00:00 
			
		
		
		
	Incorporate feedback
- Empty function removed - Placeholder and Maxlength restored - Validation improved - Typo fixed
This commit is contained in:
		| @@ -1,4 +1,4 @@ | ||||
| const migrate_name = 'scream-domain'; | ||||
| const migrate_name = 'stream_domain'; | ||||
| const logger       = require('../logger').migrate; | ||||
|  | ||||
| /** | ||||
|   | ||||
| @@ -21,9 +21,19 @@ | ||||
|       "maximum": 65535 | ||||
|     }, | ||||
|     "forwarding_host": { | ||||
|       "oneOf": [ | ||||
|         { | ||||
|           "$ref": "../definitions.json#/definitions/domain_name" | ||||
|         }, | ||||
|         { | ||||
|           "type": "string", | ||||
|       "minLength": 1, | ||||
|       "maxLength": 255 | ||||
|           "format": "ipv4" | ||||
|         }, | ||||
|         { | ||||
|           "type": "string", | ||||
|           "format": "ipv6" | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     "forwarding_port": { | ||||
|       "type": "integer", | ||||
|   | ||||
| @@ -15,7 +15,7 @@ | ||||
|                 <div class="col-sm-8 col-md-8"> | ||||
|                     <div class="form-group"> | ||||
|                         <label class="form-label"><%- i18n('streams', 'forwarding-host') %><span class="form-required">*</span></label> | ||||
|                         <input type="text" name="forwarding_host" class="form-control text-monospace" value="<%- forwarding_host %>" autocomplete="off" required> | ||||
|                         <input type="text" name="forwarding_host" class="form-control text-monospace" placeholder="example.com or 10.0.0.1 or 2001:db8:3333:4444:5555:6666:7777:8888" value="<%- forwarding_host %>" autocomplete="off" maxlength="255" required> | ||||
|                     </div> | ||||
|                 </div> | ||||
|                 <div class="col-sm-4 col-md-4"> | ||||
|   | ||||
| @@ -76,9 +76,6 @@ module.exports = Mn.View.extend({ | ||||
|         } | ||||
|     }, | ||||
|  | ||||
|     onRender: function () { | ||||
|     }, | ||||
|  | ||||
|     initialize: function (options) { | ||||
|         if (typeof options.model === 'undefined' || !options.model) { | ||||
|             this.model = new StreamModel.Model(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user