forked from coolaj86/goldilocks.js
		
	retrieve ips, show priorities
This commit is contained in:
		
							parent
							
								
									22b7a1b880
								
							
						
					
					
						commit
						0103ae02d4
					
				@ -5,6 +5,17 @@
 | 
			
		||||
  </head>
 | 
			
		||||
  <body class="fade" ng-class="[ 'in' ]">
 | 
			
		||||
 | 
			
		||||
    <ul>
 | 
			
		||||
      <li>Change API format to verbose arrays and nested objects</li>
 | 
			
		||||
      <li>Set Default Path, Module (dir, api)</li>
 | 
			
		||||
      <li>Set Hostname, Path, Module (dir, api)</li>
 | 
			
		||||
      <li>Show Device Name</li>
 | 
			
		||||
      <li>Login to Daplie</li>
 | 
			
		||||
      <li>Show domains (or ask purchase)</li>
 | 
			
		||||
      <li>Tunnel On</li>
 | 
			
		||||
      <li>Show configured domains</li>
 | 
			
		||||
    </ul>
 | 
			
		||||
 | 
			
		||||
    <div class="container" ng-controller="LoginController as vm" ng-init="vm.setSimple()">
 | 
			
		||||
      <h1 ng-if="!vm.authnUpdated">Initializing... {{vm.hello}}</h1>
 | 
			
		||||
      <div ng-if="!vm.authnUpdated">
 | 
			
		||||
@ -34,6 +45,20 @@
 | 
			
		||||
      </div>
 | 
			
		||||
 | 
			
		||||
      <div ng-if="vm.config">
 | 
			
		||||
        <div class="input-group" ng-init="siteconf = vm.config.global">
 | 
			
		||||
          <h1>Global Settings:</h1>
 | 
			
		||||
          <br/>
 | 
			
		||||
          <div ng-repeat="(pathname, modules) in siteconf.paths">Pathname:
 | 
			
		||||
            <input class="form-control" ng-model="pathname" />
 | 
			
		||||
            <div ng-repeat="(modulename, module) in modules">Modulename: {{modulename}}
 | 
			
		||||
              <div ng-repeat="target in modules">Target:
 | 
			
		||||
                <input class="form-control" ng-model="target" />
 | 
			
		||||
              </div>
 | 
			
		||||
            </div>
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
        <h1>Per-Domain Settings:</h1>
 | 
			
		||||
        <div class="input-group" ng-repeat="(sitename, siteconf) in vm.config.sites">
 | 
			
		||||
          <label>Hostname:</label> <input class="form-control" ng-model="sitename" />
 | 
			
		||||
          <br/>
 | 
			
		||||
@ -51,13 +76,6 @@
 | 
			
		||||
      <pre><code ng-bind="vm.config | json">{{vm.config}}</code></pre>
 | 
			
		||||
 | 
			
		||||
    </div>
 | 
			
		||||
    <ul>
 | 
			
		||||
      <li>Show Device Name</li>
 | 
			
		||||
      <li>Login to Daplie</li>
 | 
			
		||||
      <li>Show domains (or ask purchase)</li>
 | 
			
		||||
      <li>Tunnel On</li>
 | 
			
		||||
      <li>Show configured domains</li>
 | 
			
		||||
    </ul>
 | 
			
		||||
 | 
			
		||||
    <script src="/assets/com.jquery/jquery-3.1.1.js"></script>
 | 
			
		||||
    <script src="/assets/com.google/angular.1.6.2.min.js"></script>
 | 
			
		||||
 | 
			
		||||
@ -431,6 +431,9 @@ function run() {
 | 
			
		||||
  opts.assetsPath = path.join(__dirname, '..', 'packages', 'assets');
 | 
			
		||||
  opts.webRoot = defaultWebRoot;
 | 
			
		||||
 | 
			
		||||
  // ifaces
 | 
			
		||||
  opts.ifaces = require('../lib/local-ip.js').find();
 | 
			
		||||
 | 
			
		||||
  // TODO use arrays in all things
 | 
			
		||||
  opts._old_server_name = Object.keys(opts.sites)[0];
 | 
			
		||||
  opts.pubdir = defaultWebRoot.replace(/(:hostname|:servername).*/, '');
 | 
			
		||||
@ -518,8 +521,6 @@ function run() {
 | 
			
		||||
      // TODO what is this condition actually intending to test again?
 | 
			
		||||
      // (I think it can be replaced with if (!opts._externalHost) { ... }
 | 
			
		||||
 | 
			
		||||
      // ifaces
 | 
			
		||||
      opts.ifaces = require('../lib/local-ip.js').find();
 | 
			
		||||
      promise = PromiseA.resolve();
 | 
			
		||||
    } else {
 | 
			
		||||
      console.info("Attempting to resolve external connection for '" + opts._old_server_name + "'");
 | 
			
		||||
 | 
			
		||||
@ -1 +1 @@
 | 
			
		||||
Subproject commit f179cfe3c9553718676db24f1203f67ea0427662
 | 
			
		||||
Subproject commit 356a2d3131bcc6d0f6199a1d2039dcdcee0e3481
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user